2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.4.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.4'
429 PACKAGE_STRING='llvm 1.4'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/Java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
446 # include <sys/types.h>
449 # include <sys/stat.h>
460 # if !STDC_HEADERS && HAVE_MEMORY_H
466 # include <strings.h>
469 # include <inttypes.h>
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ifGNUmake DATE FIND GREP MKDIR MV PAX RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN PYTHON QMTEST RUNTEST ZIP ETAGSFLAGS ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.4:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-jit Enable Just In Time Compiling (default is YES)
1039 --enable-doxygen Build doxygen documentation (default is NO)
1040 --enable-shared[=PKGS]
1041 build shared libraries [default=yes]
1042 --enable-static[=PKGS]
1043 build static libraries [default=yes]
1044 --enable-fast-install[=PKGS]
1045 optimize for fast installation [default=yes]
1046 --disable-libtool-lock avoid locking (might break parallel builds)
1049 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1050 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1053 --with-pic try to use only PIC/non-PIC objects [default=use
1056 include additional configurations [automatic]
1058 Some influential environment variables:
1059 CC C compiler command
1060 CFLAGS C compiler flags
1061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1062 nonstandard directory <lib dir>
1063 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064 headers in a nonstandard directory <include dir>
1066 CXX C++ compiler command
1067 CXXFLAGS C++ compiler flags
1068 CXXCPP C++ preprocessor
1069 F77 Fortran 77 compiler command
1070 FFLAGS Fortran 77 compiler flags
1072 Use these variables to override the choices made by `configure' or to help
1073 it to find libraries and programs with nonstandard names/locations.
1075 Report bugs to <llvmbugs@cs.uiuc.edu>.
1079 if test "$ac_init_help" = "recursive"; then
1080 # If there are subdirs, report their specific --help.
1082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083 test -d $ac_dir || continue
1086 if test "$ac_dir" != .; then
1087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088 # A "../" for each directory in $ac_dir_suffix.
1089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 ac_dir_suffix= ac_top_builddir=
1095 .) # No --srcdir option. We are building in place.
1097 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 [\\/]* | ?:[\\/]* ) # Absolute path.
1103 ac_srcdir=$srcdir$ac_dir_suffix;
1104 ac_top_srcdir=$srcdir ;;
1106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1113 .) ac_abs_builddir="$ac_dir";;
1116 .) ac_abs_builddir=`pwd`;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 case ${ac_top_builddir}. in
1125 .) ac_abs_top_builddir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1134 .) ac_abs_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 case $ac_top_srcdir in
1143 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 # Check for guested configure; otherwise get Cygnus style configure.
1151 if test -f $ac_srcdir/configure.gnu; then
1153 $SHELL $ac_srcdir/configure.gnu --help=recursive
1154 elif test -f $ac_srcdir/configure; then
1156 $SHELL $ac_srcdir/configure --help=recursive
1157 elif test -f $ac_srcdir/configure.ac ||
1158 test -f $ac_srcdir/configure.in; then
1160 $ac_configure --help
1162 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1172 generated by GNU Autoconf 2.59
1174 Copyright (C) 2003 Free Software Foundation, Inc.
1175 This configure script is free software; the Free Software Foundation
1176 gives unlimited permission to copy, distribute and modify it.
1184 This file contains any messages produced by compilers while
1185 running configure, to aid debugging if configure makes a mistake.
1187 It was created by llvm $as_me 1.4, which was
1188 generated by GNU Autoconf 2.59. Invocation command line was
1199 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1208 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1209 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1210 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1212 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1213 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1214 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222 test -z "$as_dir" && as_dir=.
1223 echo "PATH: $as_dir"
1238 # Keep a trace of the command line.
1239 # Strip out --no-create and --no-recursion so they do not pile up.
1240 # Strip out --silent because we don't want to record it for future runs.
1241 # Also quote any args containing shell meta-characters.
1242 # Make two passes to allow for proper duplicate-argument suppression.
1247 ac_must_keep_next=false
1253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264 if test $ac_must_keep_next = true; then
1265 ac_must_keep_next=false # Got value, back to normal.
1268 *=* | --config-cache | -C | -disable-* | --disable-* \
1269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271 | -with-* | --with-* | -without-* | --without-* | --x)
1272 case "$ac_configure_args0 " in
1273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276 -* ) ac_must_keep_next=true ;;
1279 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280 # Get rid of the leading space.
1286 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289 # When interrupted or exit'd, cleanup temporary files, and complete
1290 # config.log. We remove comments because anyway the quotes in there
1291 # would cause problems or look ugly.
1292 # WARNING: Be sure not to use single quotes in there, as some shells,
1293 # such as our DU 5.0 friend, will then `close' the trap.
1294 trap 'exit_status=$?
1295 # Save into config.log some information that might help in debugging.
1300 ## ---------------- ##
1301 ## Cache variables. ##
1302 ## ---------------- ##
1305 # The following way of writing the cache mishandles newlines in values,
1308 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1323 ## ----------------- ##
1324 ## Output variables. ##
1325 ## ----------------- ##
1328 for ac_var in $ac_subst_vars
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1335 if test -n "$ac_subst_files"; then
1342 for ac_var in $ac_subst_files
1344 eval ac_val=$`echo $ac_var`
1345 echo "$ac_var='"'"'$ac_val'"'"'"
1350 if test -s confdefs.h; then
1357 sed "/^$/d" confdefs.h | sort
1360 test "$ac_signal" != 0 &&
1361 echo "$as_me: caught signal $ac_signal"
1362 echo "$as_me: exit $exit_status"
1364 rm -f core *.core &&
1365 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368 for ac_signal in 1 2 13 15; do
1369 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1374 rm -rf conftest* confdefs.h
1375 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378 # Predefined preprocessor variables.
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_NAME "$PACKAGE_NAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_STRING "$PACKAGE_STRING"
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405 # Let the site file select an alternate cache file if it wants to.
1406 # Prefer explicitly selected file to automatically selected ones.
1407 if test -z "$CONFIG_SITE"; then
1408 if test "x$prefix" != xNONE; then
1409 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414 for ac_site_file in $CONFIG_SITE; do
1415 if test -r "$ac_site_file"; then
1416 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417 echo "$as_me: loading site script $ac_site_file" >&6;}
1418 sed 's/^/| /' "$ac_site_file" >&5
1423 if test -r "$cache_file"; then
1424 # Some versions of bash will fail to source /dev/null (special
1425 # files actually), so we avoid doing that.
1426 if test -f "$cache_file"; then
1427 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428 echo "$as_me: loading cache $cache_file" >&6;}
1430 [\\/]* | ?:[\\/]* ) . $cache_file;;
1431 *) . ./$cache_file;;
1435 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436 echo "$as_me: creating cache $cache_file" >&6;}
1440 # Check that the precious variables saved in the cache have kept the same
1442 ac_cache_corrupted=false
1443 for ac_var in `(set) 2>&1 |
1444 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446 eval ac_new_set=\$ac_env_${ac_var}_set
1447 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448 eval ac_new_val="\$ac_env_${ac_var}_value"
1449 case $ac_old_set,$ac_new_set in
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1460 if test "x$ac_old_val" != "x$ac_new_val"; then
1461 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1462 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1463 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1464 echo "$as_me: former value: $ac_old_val" >&2;}
1465 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1466 echo "$as_me: current value: $ac_new_val" >&2;}
1467 ac_cache_corrupted=:
1470 # Pass precious variables to config.status.
1471 if test "$ac_new_set" = set; then
1473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475 *) ac_arg=$ac_var=$ac_new_val ;;
1477 case " $ac_configure_args " in
1478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1479 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483 if $ac_cache_corrupted; then
1484 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488 { (exit 1); exit 1; }; }
1492 ac_cpp='$CPP $CPPFLAGS'
1493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1533 for ac_dir in autoconf $srcdir/autoconf; do
1534 if test -f $ac_dir/install-sh; then
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1538 elif test -f $ac_dir/install.sh; then
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1542 elif test -f $ac_dir/shtool; then
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1551 { (exit 1); exit 1; }; }
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558 if test ${srcdir} != "." ; then
1559 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1560 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1561 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1562 { (exit 1); exit 1; }; }
1566 for i in `ls ${srcdir}/projects`
1568 if test -d ${srcdir}/projects/${i} ; then
1573 subdirs="$subdirs projects/sample"
1577 subdirs="$subdirs projects/Stacker"
1581 subdirs="$subdirs projects/llvm-test"
1585 subdirs="$subdirs projects/llvm-reopt"
1589 subdirs="$subdirs projects/llvm-gcc"
1593 subdirs="$subdirs projects/Java"
1597 subdirs="$subdirs projects/llvm-tv"
1601 subdirs="$subdirs projects/llvm-fefw"
1605 subdirs="$subdirs projects/poolalloc"
1608 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1697 program_prefix=${target_alias}-
1699 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1700 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1701 if test "${llvm_cv_platform_type+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1706 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1707 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1708 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1709 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1710 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1711 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1712 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1713 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1714 *) llvm_cv_platform_type="Unknown" ;;
1717 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1718 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1720 if test "$llvm_cv_platform_type" = "Unknown" ; then
1721 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1722 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1723 { (exit 1); exit 1; }; }
1726 OS=$llvm_cv_platform_type
1729 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1733 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1738 echo "$as_me:$LINENO: checking target architecture" >&5
1739 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1740 if test "${llvm_cv_target_arch+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 i*86-*) llvm_cv_target_arch="x86" ;;
1745 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1746 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1747 *) llvm_cv_target_arch="Unknown" ;;
1750 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1751 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1753 if test "$llvm_cv_target_arch" = "Unknown" ; then
1754 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1755 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1758 ARCH=$llvm_cv_target_arch
1762 ac_cpp='$CPP $CPPFLAGS'
1763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1766 if test -n "$ac_tool_prefix"; then
1767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1768 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1769 echo "$as_me:$LINENO: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771 if test "${ac_cv_prog_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 if test -n "$CC"; then
1795 echo "$as_me:$LINENO: result: $CC" >&5
1796 echo "${ECHO_T}$CC" >&6
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1803 if test -z "$ac_cv_prog_CC"; then
1805 # Extract the first word of "gcc", so it can be a program name with args.
1806 set dummy gcc; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 if test -n "$ac_ct_CC"; then
1813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_ac_ct_CC="gcc"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1832 if test -n "$ac_ct_CC"; then
1833 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1834 echo "${ECHO_T}$ac_ct_CC" >&6
1836 echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1845 if test -z "$CC"; then
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1848 set dummy ${ac_tool_prefix}cc; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC="$CC" # Let the user override the test.
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_CC="${ac_tool_prefix}cc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 if test -n "$CC"; then
1875 echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1883 if test -z "$ac_cv_prog_CC"; then
1885 # Extract the first word of "cc", so it can be a program name with args.
1886 set dummy cc; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$ac_ct_CC"; then
1893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_CC="cc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912 if test -n "$ac_ct_CC"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914 echo "${ECHO_T}$ac_ct_CC" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1926 if test -z "$CC"; then
1927 # Extract the first word of "cc", so it can be a program name with args.
1928 set dummy cc; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1946 ac_prog_rejected=yes
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 if test $ac_prog_rejected = yes; then
1957 # We found a bogon in the path, so make sure we never use it.
1958 set dummy $ac_cv_prog_CC
1960 if test $# != 0; then
1961 # We chose a different compiler from the bogus one.
1962 # However, it has the same basename, so the bogon will be chosen
1963 # first if we set CC to just the basename; use the full file name.
1965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1971 if test -n "$CC"; then
1972 echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1980 if test -z "$CC"; then
1981 if test -n "$ac_tool_prefix"; then
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2019 test -n "$CC" && break
2022 if test -z "$CC"; then
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$ac_ct_CC" && break
2070 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&5
2072 echo "$as_me: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&2;}
2074 { (exit 1); exit 1; }; }
2076 # Provide some information about the compiler.
2077 echo "$as_me:$LINENO:" \
2078 "checking for C compiler version" >&5
2079 ac_compiler=`set X $ac_compile; echo $2`
2080 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2081 (eval $ac_compiler --version </dev/null >&5) 2>&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2086 (eval $ac_compiler -v </dev/null >&5) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2091 (eval $ac_compiler -V </dev/null >&5) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2096 cat >conftest.$ac_ext <<_ACEOF
2099 cat confdefs.h >>conftest.$ac_ext
2100 cat >>conftest.$ac_ext <<_ACEOF
2101 /* end confdefs.h. */
2111 ac_clean_files_save=$ac_clean_files
2112 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2113 # Try to create an executable without -o first, disregard a.out.
2114 # It will help us diagnose broken compilers, and finding out an intuition
2116 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2117 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2118 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2119 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2120 (eval $ac_link_default) 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; then
2124 # Find the output, starting from the most likely. This scheme is
2125 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128 # Be careful to initialize this variable, since it used to be cached.
2129 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2131 # b.out is created by i960 compilers.
2132 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2134 test -f "$ac_file" || continue
2136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2139 # This is the source file.
2142 # We found the default executable, but exeext='' is most
2146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2147 # FIXME: I believe we export ac_cv_exeext for Libtool,
2148 # but it would be cool to find out if it's true. Does anybody
2149 # maintain Libtool? --akim.
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2160 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2161 See \`config.log' for more details." >&5
2162 echo "$as_me: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&2;}
2164 { (exit 77); exit 77; }; }
2167 ac_exeext=$ac_cv_exeext
2168 echo "$as_me:$LINENO: result: $ac_file" >&5
2169 echo "${ECHO_T}$ac_file" >&6
2171 # Check the compiler produces executables we can run. If not, either
2172 # the compiler is broken, or we cross compile.
2173 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2174 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2175 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2176 # If not cross compiling, check that we can run a simple program.
2177 if test "$cross_compiling" != yes; then
2178 if { ac_try='./$ac_file'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2186 if test "$cross_compiling" = maybe; then
2189 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2190 If you meant to cross compile, use \`--host'.
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: cannot run C compiled programs.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&2;}
2195 { (exit 1); exit 1; }; }
2199 echo "$as_me:$LINENO: result: yes" >&5
2200 echo "${ECHO_T}yes" >&6
2202 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2203 ac_clean_files=$ac_clean_files_save
2204 # Check the compiler produces executables we can run. If not, either
2205 # the compiler is broken, or we cross compile.
2206 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2207 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2208 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2209 echo "${ECHO_T}$cross_compiling" >&6
2211 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2212 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2214 (eval $ac_link) 2>&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; then
2218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2219 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2220 # work properly (i.e., refer to `conftest.exe'), while it won't with
2222 for ac_file in conftest.exe conftest conftest.*; do
2223 test -f "$ac_file" || continue
2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2240 rm -f conftest$ac_cv_exeext
2241 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2242 echo "${ECHO_T}$ac_cv_exeext" >&6
2244 rm -f conftest.$ac_ext
2245 EXEEXT=$ac_cv_exeext
2247 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2248 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2249 if test "${ac_cv_objext+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 cat >conftest.$ac_ext <<_ACEOF
2255 cat confdefs.h >>conftest.$ac_ext
2256 cat >>conftest.$ac_ext <<_ACEOF
2257 /* end confdefs.h. */
2267 rm -f conftest.o conftest.obj
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2276 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2291 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2293 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2294 echo "${ECHO_T}$ac_cv_objext" >&6
2295 OBJEXT=$ac_cv_objext
2297 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2298 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2299 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 cat >conftest.$ac_ext <<_ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>conftest.er1
2324 grep -v '^ *+' conftest.er1 >conftest.err
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -z "$ac_c_werror_flag"
2330 || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2354 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2355 GCC=`test $ac_compiler_gnu = yes && echo yes`
2356 ac_test_CFLAGS=${CFLAGS+set}
2357 ac_save_CFLAGS=$CFLAGS
2359 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2361 if test "${ac_cv_prog_cc_g+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2411 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2412 if test "$ac_test_CFLAGS" = set; then
2413 CFLAGS=$ac_save_CFLAGS
2414 elif test $ac_cv_prog_cc_g = yes; then
2415 if test "$GCC" = yes; then
2421 if test "$GCC" = yes; then
2427 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2428 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2429 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 ac_cv_prog_cc_stdc=no
2434 cat >conftest.$ac_ext <<_ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2442 #include <sys/types.h>
2443 #include <sys/stat.h>
2444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2445 struct buf { int x; };
2446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2447 static char *e (p, i)
2453 static char *f (char * (*g) (char **, int), char **p, ...)
2458 s = g (p, va_arg (v,int));
2463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2464 function prototypes and stuff, but not '\xHH' hex character constants.
2465 These don't provoke an error unfortunately, instead are silently treated
2466 as 'x'. The following induces an error, until -std1 is added to get
2467 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2468 array size at least. It's necessary to write '\x00'==0 to get something
2469 that's true only with -std1. */
2470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2472 int test (int i, double x);
2473 struct s1 {int (*f) (int a);};
2474 struct s2 {int (*f) (double a);};
2475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2486 # Don't try gcc -ansi; that turns off useful extensions and
2487 # breaks some systems' header files.
2488 # AIX -qlanglvl=ansi
2489 # Ultrix and OSF/1 -std1
2490 # HP-UX 10.20 and later -Ae
2491 # HP-UX older versions -Aa -D_HPUX_SOURCE
2492 # SVR4 -Xc -D__EXTENSIONS__
2493 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2495 CC="$ac_save_CC $ac_arg"
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>conftest.er1
2500 grep -v '^ *+' conftest.er1 >conftest.err
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -z "$ac_c_werror_flag"
2506 || test ! -s conftest.err'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; } &&
2512 { ac_try='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 ac_cv_prog_cc_stdc=$ac_arg
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2525 rm -f conftest.err conftest.$ac_objext
2527 rm -f conftest.$ac_ext conftest.$ac_objext
2532 case "x$ac_cv_prog_cc_stdc" in
2534 echo "$as_me:$LINENO: result: none needed" >&5
2535 echo "${ECHO_T}none needed" >&6 ;;
2537 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2538 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2539 CC="$CC $ac_cv_prog_cc_stdc" ;;
2542 # Some people use a C++ compiler to compile C. Since we use `exit',
2543 # in C++ we need to declare it. In case someone uses the same compiler
2544 # for both compiling C and C++ we need to have the C++ compiler decide
2545 # the declaration of exit, since it's the most demanding environment.
2546 cat >conftest.$ac_ext <<_ACEOF
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 for ac_declaration in \
2575 'extern "C" void std::exit (int) throw (); using std::exit;' \
2576 'extern "C" void std::exit (int); using std::exit;' \
2577 'extern "C" void exit (int) throw ();' \
2578 'extern "C" void exit (int);' \
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2601 grep -v '^ *+' conftest.er1 >conftest.err
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>conftest.er1
2646 grep -v '^ *+' conftest.er1 >conftest.err
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -z "$ac_c_werror_flag"
2652 || test ! -s conftest.err'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; } &&
2658 { ac_try='test -s conftest.$ac_objext'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 if test -n "$ac_declaration"; then
2674 echo '#ifdef __cplusplus' >>confdefs.h
2675 echo $ac_declaration >>confdefs.h
2676 echo '#endif' >>confdefs.h
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2693 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2694 if test "${ac_cv_c_bigendian+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 # See if sys/param.h defines the BYTE_ORDER macro.
2698 cat >conftest.$ac_ext <<_ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2704 #include <sys/types.h>
2705 #include <sys/param.h>
2710 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2722 grep -v '^ *+' conftest.er1 >conftest.err
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag"
2728 || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 # It does; now see whether it defined to BIG_ENDIAN or not.
2741 cat >conftest.$ac_ext <<_ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2747 #include <sys/types.h>
2748 #include <sys/param.h>
2753 #if BYTE_ORDER != BIG_ENDIAN
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>conftest.er1
2765 grep -v '^ *+' conftest.er1 >conftest.err
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -z "$ac_c_werror_flag"
2771 || test ! -s conftest.err'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; } &&
2777 { ac_try='test -s conftest.$ac_objext'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 ac_cv_c_bigendian=yes
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 ac_cv_c_bigendian=no
2790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2795 # It does not; compile a test program.
2796 if test "$cross_compiling" = yes; then
2797 # try to guess the endianness by grepping values into an object file
2798 ac_cv_c_bigendian=unknown
2799 cat >conftest.$ac_ext <<_ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2805 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2806 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2807 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2808 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2809 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2810 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2814 _ascii (); _ebcdic ();
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2842 ac_cv_c_bigendian=yes
2844 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2845 if test "$ac_cv_c_bigendian" = unknown; then
2846 ac_cv_c_bigendian=no
2848 # finding both strings is unlikely to happen, but who knows?
2849 ac_cv_c_bigendian=unknown
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2859 cat >conftest.$ac_ext <<_ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2868 /* Are we little or big endian? From Harbison&Steele. */
2872 char c[sizeof (long)];
2875 exit (u.c[sizeof (long) - 1] == 1);
2878 rm -f conftest$ac_exeext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2880 (eval $ac_link) 2>&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 ac_cv_c_bigendian=no
2891 echo "$as_me: program exited with status $ac_status" >&5
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2896 ac_cv_c_bigendian=yes
2898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2904 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2905 case $ac_cv_c_bigendian in
2913 { { echo "$as_me:$LINENO: error: unknown endianness
2914 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2915 echo "$as_me: error: unknown endianness
2916 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2917 { (exit 1); exit 1; }; } ;;
2922 # Check whether --enable-optimized or --disable-optimized was given.
2923 if test "${enable_optimized+set}" = set; then
2924 enableval="$enable_optimized"
2929 if test ${enableval} = "no" ; then
2933 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2937 # Check whether --enable-jit or --disable-jit was given.
2938 if test "${enable_jit+set}" = set; then
2939 enableval="$enable_jit"
2944 if test ${enableval} = "no"
2949 case "$llvm_cv_target_arch" in
2950 x86) JIT=TARGET_HAS_JIT=1
2952 Sparc) JIT=TARGET_HAS_JIT=1
2954 PowerPC) JIT=TARGET_HAS_JIT=1
2961 # Check whether --enable-doxygen or --disable-doxygen was given.
2962 if test "${enable_doxygen+set}" = set; then
2963 enableval="$enable_doxygen"
2968 case "$enableval" in
2969 yes) ENABLE_DOXYGEN=1
2971 no) ENABLE_DOXYGEN=0
2973 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2974 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2975 { (exit 1); exit 1; }; } ;;
2979 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2980 if test "${with_llvmgccdir+set}" = set; then
2981 withval="$with_llvmgccdir"
2986 if test "x$LLVMGCCDIR" = x ; then
2987 case "$llvm_cv_platform_type" in
2989 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2990 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2995 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
2996 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3010 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3011 # On Suns, sometimes $CPP names a directory.
3012 if test -n "$CPP" && test -d "$CPP"; then
3015 if test -z "$CPP"; then
3016 if test "${ac_cv_prog_CPP+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 # Double quotes because CPP needs to be expanded
3020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3023 for ac_c_preproc_warn_flag in '' yes
3025 # Use a header file that comes with gcc, so configuring glibc
3026 # with a fresh cross-compiler works.
3027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3028 # <limits.h> exists even on freestanding compilers.
3029 # On the NeXT, cc -E runs the code through the compiler's parser,
3030 # not just through cpp. "Syntax error" is here to catch this case.
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3038 # include <limits.h>
3040 # include <assert.h>
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null; then
3052 if test -s conftest.err; then
3053 ac_cpp_err=$ac_c_preproc_warn_flag
3054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3061 if test -z "$ac_cpp_err"; then
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3067 # Broken: fails on valid input.
3070 rm -f conftest.err conftest.$ac_ext
3072 # OK, works on sane cases. Now check whether non-existent headers
3073 # can be detected and how.
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3080 #include <ac_nonexistent.h>
3082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } >/dev/null; then
3090 if test -s conftest.err; then
3091 ac_cpp_err=$ac_c_preproc_warn_flag
3092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3099 if test -z "$ac_cpp_err"; then
3100 # Broken: success on invalid input.
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 # Passes both tests.
3110 rm -f conftest.err conftest.$ac_ext
3113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3114 rm -f conftest.err conftest.$ac_ext
3115 if $ac_preproc_ok; then
3127 echo "$as_me:$LINENO: result: $CPP" >&5
3128 echo "${ECHO_T}$CPP" >&6
3130 for ac_c_preproc_warn_flag in '' yes
3132 # Use a header file that comes with gcc, so configuring glibc
3133 # with a fresh cross-compiler works.
3134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3135 # <limits.h> exists even on freestanding compilers.
3136 # On the NeXT, cc -E runs the code through the compiler's parser,
3137 # not just through cpp. "Syntax error" is here to catch this case.
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3145 # include <limits.h>
3147 # include <assert.h>
3151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } >/dev/null; then
3159 if test -s conftest.err; then
3160 ac_cpp_err=$ac_c_preproc_warn_flag
3161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3168 if test -z "$ac_cpp_err"; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 # Broken: fails on valid input.
3177 rm -f conftest.err conftest.$ac_ext
3179 # OK, works on sane cases. Now check whether non-existent headers
3180 # can be detected and how.
3181 cat >conftest.$ac_ext <<_ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3187 #include <ac_nonexistent.h>
3189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev/null; then
3197 if test -s conftest.err; then
3198 ac_cpp_err=$ac_c_preproc_warn_flag
3199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3206 if test -z "$ac_cpp_err"; then
3207 # Broken: success on invalid input.
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 # Passes both tests.
3217 rm -f conftest.err conftest.$ac_ext
3220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221 rm -f conftest.err conftest.$ac_ext
3222 if $ac_preproc_ok; then
3225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3226 See \`config.log' for more details." >&5
3227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3228 See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248 echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250 if test "${ac_cv_prog_CC+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test -n "$CC"; then
3274 echo "$as_me:$LINENO: result: $CC" >&5
3275 echo "${ECHO_T}$CC" >&6
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3281 test -n "$CC" && break
3284 if test -z "$CC"; then
3288 # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 if test -n "$ac_ct_CC"; then
3296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_ac_ct_CC="$ac_prog"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315 if test -n "$ac_ct_CC"; then
3316 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3317 echo "${ECHO_T}$ac_ct_CC" >&6
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3323 test -n "$ac_ct_CC" && break
3330 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3331 See \`config.log' for more details." >&5
3332 echo "$as_me: error: no acceptable C compiler found in \$PATH
3333 See \`config.log' for more details." >&2;}
3334 { (exit 1); exit 1; }; }
3336 # Provide some information about the compiler.
3337 echo "$as_me:$LINENO:" \
3338 "checking for C compiler version" >&5
3339 ac_compiler=`set X $ac_compile; echo $2`
3340 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3341 (eval $ac_compiler --version </dev/null >&5) 2>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3346 (eval $ac_compiler -v </dev/null >&5) 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3351 (eval $ac_compiler -V </dev/null >&5) 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3356 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 cat >conftest.$ac_ext <<_ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>conftest.er1
3383 grep -v '^ *+' conftest.er1 >conftest.err
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -z "$ac_c_werror_flag"
3389 || test ! -s conftest.err'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; } &&
3395 { ac_try='test -s conftest.$ac_objext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3412 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3414 GCC=`test $ac_compiler_gnu = yes && echo yes`
3415 ac_test_CFLAGS=${CFLAGS+set}
3416 ac_save_CFLAGS=$CFLAGS
3418 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3419 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3420 if test "${ac_cv_prog_cc_g+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3438 rm -f conftest.$ac_objext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
3447 { ac_try='test -z "$ac_c_werror_flag"
3448 || test ! -s conftest.err'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3471 if test "$ac_test_CFLAGS" = set; then
3472 CFLAGS=$ac_save_CFLAGS
3473 elif test $ac_cv_prog_cc_g = yes; then
3474 if test "$GCC" = yes; then
3480 if test "$GCC" = yes; then
3486 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3487 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3488 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 ac_cv_prog_cc_stdc=no
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3501 #include <sys/types.h>
3502 #include <sys/stat.h>
3503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3504 struct buf { int x; };
3505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3506 static char *e (p, i)
3512 static char *f (char * (*g) (char **, int), char **p, ...)
3517 s = g (p, va_arg (v,int));
3522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3523 function prototypes and stuff, but not '\xHH' hex character constants.
3524 These don't provoke an error unfortunately, instead are silently treated
3525 as 'x'. The following induces an error, until -std1 is added to get
3526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3527 array size at least. It's necessary to write '\x00'==0 to get something
3528 that's true only with -std1. */
3529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3531 int test (int i, double x);
3532 struct s1 {int (*f) (int a);};
3533 struct s2 {int (*f) (double a);};
3534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3545 # Don't try gcc -ansi; that turns off useful extensions and
3546 # breaks some systems' header files.
3547 # AIX -qlanglvl=ansi
3548 # Ultrix and OSF/1 -std1
3549 # HP-UX 10.20 and later -Ae
3550 # HP-UX older versions -Aa -D_HPUX_SOURCE
3551 # SVR4 -Xc -D__EXTENSIONS__
3552 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3554 CC="$ac_save_CC $ac_arg"
3555 rm -f conftest.$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 { ac_try='test -z "$ac_c_werror_flag"
3565 || test ! -s conftest.err'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; } &&
3571 { ac_try='test -s conftest.$ac_objext'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; }; then
3577 ac_cv_prog_cc_stdc=$ac_arg
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3584 rm -f conftest.err conftest.$ac_objext
3586 rm -f conftest.$ac_ext conftest.$ac_objext
3591 case "x$ac_cv_prog_cc_stdc" in
3593 echo "$as_me:$LINENO: result: none needed" >&5
3594 echo "${ECHO_T}none needed" >&6 ;;
3596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3597 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3598 CC="$CC $ac_cv_prog_cc_stdc" ;;
3601 # Some people use a C++ compiler to compile C. Since we use `exit',
3602 # in C++ we need to declare it. In case someone uses the same compiler
3603 # for both compiling C and C++ we need to have the C++ compiler decide
3604 # the declaration of exit, since it's the most demanding environment.
3605 cat >conftest.$ac_ext <<_ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>conftest.er1
3614 grep -v '^ *+' conftest.er1 >conftest.err
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -z "$ac_c_werror_flag"
3620 || test ! -s conftest.err'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 for ac_declaration in \
3634 'extern "C" void std::exit (int) throw (); using std::exit;' \
3635 'extern "C" void std::exit (int); using std::exit;' \
3636 'extern "C" void exit (int) throw ();' \
3637 'extern "C" void exit (int);' \
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3656 rm -f conftest.$ac_objext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>conftest.er1
3660 grep -v '^ *+' conftest.er1 >conftest.err
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_c_werror_flag"
3666 || test ! -s conftest.err'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try='test -s conftest.$ac_objext'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3701 rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3705 grep -v '^ *+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3732 if test -n "$ac_declaration"; then
3733 echo '#ifdef __cplusplus' >>confdefs.h
3734 echo $ac_declaration >>confdefs.h
3735 echo '#endif' >>confdefs.h
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 ac_cpp='$CXXCPP $CPPFLAGS'
3752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3755 if test -n "$ac_tool_prefix"; then
3756 for ac_prog in $CCC g++
3758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3760 echo "$as_me:$LINENO: checking for $ac_word" >&5
3761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3762 if test "${ac_cv_prog_CXX+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 if test -n "$CXX"; then
3766 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 if test -n "$CXX"; then
3786 echo "$as_me:$LINENO: result: $CXX" >&5
3787 echo "${ECHO_T}$CXX" >&6
3789 echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3793 test -n "$CXX" && break
3796 if test -z "$CXX"; then
3798 for ac_prog in $CCC g++
3800 # Extract the first word of "$ac_prog", so it can be a program name with args.
3801 set dummy $ac_prog; ac_word=$2
3802 echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -n "$ac_ct_CXX"; then
3808 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_ac_ct_CXX="$ac_prog"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3827 if test -n "$ac_ct_CXX"; then
3828 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3829 echo "${ECHO_T}$ac_ct_CXX" >&6
3831 echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3835 test -n "$ac_ct_CXX" && break
3837 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3843 # Provide some information about the compiler.
3844 echo "$as_me:$LINENO:" \
3845 "checking for C++ compiler version" >&5
3846 ac_compiler=`set X $ac_compile; echo $2`
3847 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3848 (eval $ac_compiler --version </dev/null >&5) 2>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }
3852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3853 (eval $ac_compiler -v </dev/null >&5) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }
3857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3858 (eval $ac_compiler -V </dev/null >&5) 2>&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }
3863 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3864 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3865 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 cat >conftest.$ac_ext <<_ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>conftest.er1
3890 grep -v '^ *+' conftest.er1 >conftest.err
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -z "$ac_cxx_werror_flag"
3896 || test ! -s conftest.err'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3916 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3919 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3920 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3921 GXX=`test $ac_compiler_gnu = yes && echo yes`
3922 ac_test_CXXFLAGS=${CXXFLAGS+set}
3923 ac_save_CXXFLAGS=$CXXFLAGS
3925 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3926 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3927 if test "${ac_cv_prog_cxx_g+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3945 rm -f conftest.$ac_objext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947 (eval $ac_compile) 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -z "$ac_cxx_werror_flag"
3955 || test ! -s conftest.err'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3967 ac_cv_prog_cxx_g=yes
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3976 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3977 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3978 if test "$ac_test_CXXFLAGS" = set; then
3979 CXXFLAGS=$ac_save_CXXFLAGS
3980 elif test $ac_cv_prog_cxx_g = yes; then
3981 if test "$GXX" = yes; then
3987 if test "$GXX" = yes; then
3993 for ac_declaration in \
3995 'extern "C" void std::exit (int) throw (); using std::exit;' \
3996 'extern "C" void std::exit (int); using std::exit;' \
3997 'extern "C" void exit (int) throw ();' \
3998 'extern "C" void exit (int);' \
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_cxx_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_cxx_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 if test -n "$ac_declaration"; then
4094 echo '#ifdef __cplusplus' >>confdefs.h
4095 echo $ac_declaration >>confdefs.h
4096 echo '#endif' >>confdefs.h
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105 echo "$as_me:$LINENO: checking " >&5
4106 echo $ECHO_N "checking ... $ECHO_C" >&6
4107 if test "${ac_cv_has_flex+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 for ac_prog in flex lex
4112 # Extract the first word of "$ac_prog", so it can be a program name with args.
4113 set dummy $ac_prog; ac_word=$2
4114 echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116 if test "${ac_cv_prog_LEX+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 if test -n "$LEX"; then
4120 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_LEX="$ac_prog"
4130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 if test -n "$LEX"; then
4140 echo "$as_me:$LINENO: result: $LEX" >&5
4141 echo "${ECHO_T}$LEX" >&6
4143 echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4147 test -n "$LEX" && break
4149 test -n "$LEX" || LEX=":"
4151 if test -z "$LEXLIB"
4153 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4154 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4155 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 ac_check_lib_save_LIBS=$LIBS
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4167 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4182 rm -f conftest.$ac_objext conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>conftest.er1
4186 grep -v '^ *+' conftest.er1 >conftest.err
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } &&
4191 { ac_try='test -z "$ac_c_werror_flag"
4192 || test ! -s conftest.err'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; } &&
4198 { ac_try='test -s conftest$ac_exeext'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4204 ac_cv_lib_fl_yywrap=yes
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 ac_cv_lib_fl_yywrap=no
4211 rm -f conftest.err conftest.$ac_objext \
4212 conftest$ac_exeext conftest.$ac_ext
4213 LIBS=$ac_check_lib_save_LIBS
4215 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4216 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4217 if test $ac_cv_lib_fl_yywrap = yes; then
4220 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4221 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4222 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 ac_check_lib_save_LIBS=$LIBS
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4234 /* Override any gcc2 internal prototype to avoid an error. */
4238 /* We use char because int might match the return type of a gcc2
4239 builtin and then its argument prototype would still apply. */
4249 rm -f conftest.$ac_objext conftest$ac_exeext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251 (eval $ac_link) 2>conftest.er1
4253 grep -v '^ *+' conftest.er1 >conftest.err
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag"
4259 || test ! -s conftest.err'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; } &&
4265 { ac_try='test -s conftest$ac_exeext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_cv_lib_l_yywrap=yes
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 ac_cv_lib_l_yywrap=no
4278 rm -f conftest.err conftest.$ac_objext \
4279 conftest$ac_exeext conftest.$ac_ext
4280 LIBS=$ac_check_lib_save_LIBS
4282 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4283 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4284 if test $ac_cv_lib_l_yywrap = yes; then
4292 if test "x$LEX" != "x:"; then
4293 echo "$as_me:$LINENO: checking lex output file root" >&5
4294 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4295 if test "${ac_cv_prog_lex_root+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 # The minimal lex program is just a single line: %%. But some broken lexes
4299 # (Solaris, I think it was) want two %% lines, so accommodate them.
4300 cat >conftest.l <<_ACEOF
4304 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4305 (eval $LEX conftest.l) 2>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }
4309 if test -f lex.yy.c; then
4310 ac_cv_prog_lex_root=lex.yy
4311 elif test -f lexyy.c; then
4312 ac_cv_prog_lex_root=lexyy
4314 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4315 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4316 { (exit 1); exit 1; }; }
4319 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4320 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4322 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4324 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4325 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4326 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 # POSIX says lex can declare yytext either as a pointer or an array; the
4330 # default is implementation-dependent. Figure out which it is, since
4331 # not all implementations provide the %pointer and %array declarations.
4332 ac_cv_prog_lex_yytext_pointer=no
4333 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4335 LIBS="$LIBS $LEXLIB"
4336 cat >conftest.$ac_ext <<_ACEOF
4337 `cat $LEX_OUTPUT_ROOT.c`
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341 (eval $ac_link) 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest$ac_exeext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_cv_prog_lex_yytext_pointer=yes
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4367 rm -f conftest.err conftest.$ac_objext \
4368 conftest$ac_exeext conftest.$ac_ext
4370 rm -f "${LEX_OUTPUT_ROOT}.c"
4373 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4374 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4375 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4377 cat >>confdefs.h <<\_ACEOF
4378 #define YYTEXT_POINTER 1
4386 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4387 echo "${ECHO_T}$ac_cv_has_flex" >&6
4388 if test "$LEX" != "flex"; then
4389 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4390 echo "$as_me: error: flex not found but required" >&2;}
4391 { (exit 1); exit 1; }; }
4397 echo "$as_me:$LINENO: checking " >&5
4398 echo $ECHO_N "checking ... $ECHO_C" >&6
4399 if test "${llvm_cv_has_bison+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 for ac_prog in 'bison -y' byacc
4404 # Extract the first word of "$ac_prog", so it can be a program name with args.
4405 set dummy $ac_prog; ac_word=$2
4406 echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408 if test "${ac_cv_prog_YACC+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 if test -n "$YACC"; then
4412 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_YACC="$ac_prog"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 YACC=$ac_cv_prog_YACC
4431 if test -n "$YACC"; then
4432 echo "$as_me:$LINENO: result: $YACC" >&5
4433 echo "${ECHO_T}$YACC" >&6
4435 echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4439 test -n "$YACC" && break
4441 test -n "$YACC" || YACC="yacc"
4445 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4446 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4447 if test "$YACC" != "bison -y"; then
4448 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4449 echo "$as_me: error: bison not found but required" >&2;}
4450 { (exit 1); exit 1; }; }
4459 # Check whether --enable-shared or --disable-shared was given.
4460 if test "${enable_shared+set}" = set; then
4461 enableval="$enable_shared"
4462 p=${PACKAGE-default}
4464 yes) enable_shared=yes ;;
4465 no) enable_shared=no ;;
4468 # Look at the argument we got. We use all the common list separators.
4469 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4470 for pkg in $enableval; do
4472 if test "X$pkg" = "X$p"; then
4483 # Check whether --enable-static or --disable-static was given.
4484 if test "${enable_static+set}" = set; then
4485 enableval="$enable_static"
4486 p=${PACKAGE-default}
4488 yes) enable_static=yes ;;
4489 no) enable_static=no ;;
4492 # Look at the argument we got. We use all the common list separators.
4493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4494 for pkg in $enableval; do
4496 if test "X$pkg" = "X$p"; then
4507 # Check whether --enable-fast-install or --disable-fast-install was given.
4508 if test "${enable_fast_install+set}" = set; then
4509 enableval="$enable_fast_install"
4510 p=${PACKAGE-default}
4512 yes) enable_fast_install=yes ;;
4513 no) enable_fast_install=no ;;
4515 enable_fast_install=no
4516 # Look at the argument we got. We use all the common list separators.
4517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4518 for pkg in $enableval; do
4520 if test "X$pkg" = "X$p"; then
4521 enable_fast_install=yes
4528 enable_fast_install=yes
4531 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4532 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4533 if test "${lt_cv_path_SED+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 # Loop through the user's path and test for sed and gsed.
4537 # Then use that list of sed's as ones to test for truncation.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for lt_ac_prog in sed gsed; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4546 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4553 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4554 # along with /bin/sed that truncates output.
4555 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4556 test ! -f $lt_ac_sed && break
4557 cat /dev/null > conftest.in
4559 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4560 # Check for GNU sed and select it if it is found.
4561 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4562 lt_cv_path_SED=$lt_ac_sed
4566 cat conftest.in conftest.in >conftest.tmp
4567 mv conftest.tmp conftest.in
4568 cp conftest.in conftest.nl
4570 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4571 cmp -s conftest.out conftest.nl || break
4572 # 10000 chars as input seems more than enough
4573 test $lt_ac_count -gt 10 && break
4574 lt_ac_count=`expr $lt_ac_count + 1`
4575 if test $lt_ac_count -gt $lt_ac_max; then
4576 lt_ac_max=$lt_ac_count
4577 lt_cv_path_SED=$lt_ac_sed
4585 echo "$as_me:$LINENO: result: $SED" >&5
4586 echo "${ECHO_T}$SED" >&6
4588 echo "$as_me:$LINENO: checking for egrep" >&5
4589 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4590 if test "${ac_cv_prog_egrep+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4594 then ac_cv_prog_egrep='grep -E'
4595 else ac_cv_prog_egrep='egrep'
4598 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4599 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4600 EGREP=$ac_cv_prog_egrep
4604 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4605 if test "${with_gnu_ld+set}" = set; then
4606 withval="$with_gnu_ld"
4607 test "$withval" = no || with_gnu_ld=yes
4612 if test "$GCC" = yes; then
4613 # Check if gcc -print-prog-name=ld gives a path.
4614 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4615 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4618 # gcc leaves a trailing carriage return which upsets mingw
4619 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4621 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4624 # Accept absolute paths.
4626 re_direlt='/[^/][^/]*/\.\./'
4627 # Canonicalize the pathname of ld
4628 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4629 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4630 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4632 test -z "$LD" && LD="$ac_prog"
4635 # If it fails, then pretend we aren't using GCC.
4639 # If it is relative, then search for the first ld in PATH.
4643 elif test "$with_gnu_ld" = yes; then
4644 echo "$as_me:$LINENO: checking for GNU ld" >&5
4645 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4647 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4648 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4650 if test "${lt_cv_path_LD+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -z "$LD"; then
4654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4655 for ac_dir in $PATH; do
4657 test -z "$ac_dir" && ac_dir=.
4658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4659 lt_cv_path_LD="$ac_dir/$ac_prog"
4660 # Check to see if the program is GNU ld. I'd rather use --version,
4661 # but apparently some GNU ld's only accept -v.
4662 # Break only if it was the GNU/non-GNU ld that we prefer.
4663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4664 *GNU* | *'with BFD'*)
4665 test "$with_gnu_ld" != no && break
4668 test "$with_gnu_ld" != yes && break
4675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4680 if test -n "$LD"; then
4681 echo "$as_me:$LINENO: result: $LD" >&5
4682 echo "${ECHO_T}$LD" >&6
4684 echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6
4687 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4688 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4689 { (exit 1); exit 1; }; }
4690 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4691 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4692 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4696 case `$LD -v 2>&1 </dev/null` in
4697 *GNU* | *'with BFD'*)
4698 lt_cv_prog_gnu_ld=yes
4701 lt_cv_prog_gnu_ld=no
4705 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4706 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4707 with_gnu_ld=$lt_cv_prog_gnu_ld
4710 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4711 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4712 if test "${lt_cv_ld_reload_flag+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 lt_cv_ld_reload_flag='-r'
4717 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4718 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4719 reload_flag=$lt_cv_ld_reload_flag
4720 case $reload_flag in
4722 *) reload_flag=" $reload_flag" ;;
4724 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4727 if test "$GCC" = yes; then
4728 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4730 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4735 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4736 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4737 if test "${lt_cv_path_NM+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 if test -n "$NM"; then
4741 # Let the user override the test.
4744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4745 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4747 test -z "$ac_dir" && ac_dir=.
4748 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4749 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4750 # Check to see if the nm accepts a BSD-compat flag.
4751 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4752 # nm: unknown option "B" ignored
4753 # Tru64's nm complains that /dev/null is an invalid object file
4754 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4755 */dev/null* | *'Invalid file or object type'*)
4756 lt_cv_path_NM="$tmp_nm -B"
4760 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4762 lt_cv_path_NM="$tmp_nm -p"
4766 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4767 continue # so that we can try to find one that supports BSD flags
4774 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4777 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4778 echo "${ECHO_T}$lt_cv_path_NM" >&6
4781 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4782 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4784 if test "$LN_S" = "ln -s"; then
4785 echo "$as_me:$LINENO: result: yes" >&5
4786 echo "${ECHO_T}yes" >&6
4788 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4789 echo "${ECHO_T}no, using $LN_S" >&6
4792 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4793 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4794 if test "${lt_cv_deplibs_check_method+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 lt_cv_file_magic_cmd='$MAGIC_CMD'
4798 lt_cv_file_magic_test_file=
4799 lt_cv_deplibs_check_method='unknown'
4800 # Need to set the preceding variable on all platforms that support
4801 # interlibrary dependencies.
4802 # 'none' -- dependencies not supported.
4803 # `unknown' -- same as none, but documents that we really don't know.
4804 # 'pass_all' -- all dependencies passed with no checks.
4805 # 'test_compile' -- check by making test program.
4806 # 'file_magic [[regex]]' -- check by looking for files in library path
4807 # which responds to the $file_magic_cmd with a given extended regex.
4808 # If you have `file' or equivalent on your system and you're not sure
4809 # whether `pass_all' will *always* work, you probably want this one.
4813 lt_cv_deplibs_check_method=pass_all
4817 lt_cv_deplibs_check_method=pass_all
4821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4822 lt_cv_file_magic_cmd='/usr/bin/file -L'
4823 lt_cv_file_magic_test_file=/shlib/libc.so
4827 # func_win32_libid is a shell function defined in ltmain.sh
4828 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4829 lt_cv_file_magic_cmd='func_win32_libid'
4833 # Base MSYS/MinGW do not provide the 'file' command needed by
4834 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4835 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4836 lt_cv_file_magic_cmd='$OBJDUMP -f'
4839 darwin* | rhapsody*)
4840 lt_cv_deplibs_check_method=pass_all
4843 freebsd* | kfreebsd*-gnu)
4844 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4847 # Not sure whether the presence of OpenBSD here was a mistake.
4848 # Let's accept both of them until this is cleared up.
4849 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4850 lt_cv_file_magic_cmd=/usr/bin/file
4851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4855 lt_cv_deplibs_check_method=pass_all
4860 lt_cv_deplibs_check_method=pass_all
4863 hpux10.20* | hpux11*)
4864 lt_cv_file_magic_cmd=/usr/bin/file
4867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4868 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4871 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]'
4872 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4875 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4876 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4881 irix5* | irix6* | nonstopux*)
4883 *-32|*"-32 ") libmagic=32-bit;;
4884 *-n32|*"-n32 ") libmagic=N32;;
4885 *-64|*"-64 ") libmagic=64-bit;;
4886 *) libmagic=never-match;;
4888 lt_cv_deplibs_check_method=pass_all
4891 # This must be Linux ELF.
4893 lt_cv_deplibs_check_method=pass_all
4897 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4906 lt_cv_file_magic_cmd=/usr/bin/file
4907 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4911 lt_cv_deplibs_check_method=unknown
4915 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4922 osf3* | osf4* | osf5*)
4923 lt_cv_deplibs_check_method=pass_all
4927 lt_cv_deplibs_check_method=pass_all
4931 lt_cv_deplibs_check_method=pass_all
4934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4935 case $host_vendor in
4937 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]'
4938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4941 lt_cv_deplibs_check_method=pass_all
4944 lt_cv_file_magic_cmd='/bin/file'
4945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4948 lt_cv_file_magic_cmd='/bin/file'
4949 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4950 lt_cv_file_magic_test_file=/lib/libc.so
4953 lt_cv_deplibs_check_method=pass_all
4958 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4959 lt_cv_deplibs_check_method=pass_all
4964 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4965 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4966 file_magic_cmd=$lt_cv_file_magic_cmd
4967 deplibs_check_method=$lt_cv_deplibs_check_method
4968 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4973 # If no C compiler was specified, use CC.
4976 # Allow CC to be a program name with arguments.
4979 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4980 if test "${enable_libtool_lock+set}" = set; then
4981 enableval="$enable_libtool_lock"
4984 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4986 # Some flags need to be propagated to the compiler or linker for good
4990 # Find out which ABI we are using.
4991 echo 'int i;' > conftest.$ac_ext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; then
4997 case `/usr/bin/file conftest.$ac_objext` in
5009 # Find out which ABI we are using.
5010 echo '#line 5010 "configure"' > conftest.$ac_ext
5011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; then
5016 if test "$lt_cv_prog_gnu_ld" = yes; then
5017 case `/usr/bin/file conftest.$ac_objext` in
5019 LD="${LD-ld} -melf32bsmip"
5022 LD="${LD-ld} -melf32bmipn32"
5025 LD="${LD-ld} -melf64bmip"
5029 case `/usr/bin/file conftest.$ac_objext` in
5045 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5046 # Find out which ABI we are using.
5047 echo 'int i;' > conftest.$ac_ext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049 (eval $ac_compile) 2>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; then
5053 case "`/usr/bin/file conftest.o`" in
5057 LD="${LD-ld} -m elf_i386"
5059 ppc64-*linux*|powerpc64-*linux*)
5060 LD="${LD-ld} -m elf32ppclinux"
5063 LD="${LD-ld} -m elf_s390"
5066 LD="${LD-ld} -m elf32_sparc"
5073 LD="${LD-ld} -m elf_x86_64"
5075 ppc*-*linux*|powerpc*-*linux*)
5076 LD="${LD-ld} -m elf64ppc"
5079 LD="${LD-ld} -m elf64_s390"
5082 LD="${LD-ld} -m elf64_sparc"
5092 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5093 SAVE_CFLAGS="$CFLAGS"
5094 CFLAGS="$CFLAGS -belf"
5095 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5096 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5097 if test "${lt_cv_cc_needs_belf+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5114 rm -f conftest.$ac_objext conftest$ac_exeext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116 (eval $ac_link) 2>conftest.er1
5118 grep -v '^ *+' conftest.er1 >conftest.err
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -z "$ac_c_werror_flag"
5124 || test ! -s conftest.err'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; } &&
5130 { ac_try='test -s conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 lt_cv_cc_needs_belf=yes
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 lt_cv_cc_needs_belf=no
5143 rm -f conftest.err conftest.$ac_objext \
5144 conftest$ac_exeext conftest.$ac_ext
5146 ac_cpp='$CPP $CPPFLAGS'
5147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5152 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5153 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5154 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5155 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5156 CFLAGS="$SAVE_CFLAGS"
5162 need_locks="$enable_libtool_lock"
5166 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5167 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5168 if test "${ac_cv_header_stdc+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 cat >conftest.$ac_ext <<_ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5190 rm -f conftest.$ac_objext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192 (eval $ac_compile) 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } &&
5199 { ac_try='test -z "$ac_c_werror_flag"
5200 || test ! -s conftest.err'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest.$ac_objext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 ac_cv_header_stdc=yes
5214 echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5217 ac_cv_header_stdc=no
5219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5221 if test $ac_cv_header_stdc = yes; then
5222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5223 cat >conftest.$ac_ext <<_ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233 $EGREP "memchr" >/dev/null 2>&1; then
5236 ac_cv_header_stdc=no
5242 if test $ac_cv_header_stdc = yes; then
5243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5244 cat >conftest.$ac_ext <<_ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254 $EGREP "free" >/dev/null 2>&1; then
5257 ac_cv_header_stdc=no
5263 if test $ac_cv_header_stdc = yes; then
5264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5265 if test "$cross_compiling" = yes; then
5268 cat >conftest.$ac_ext <<_ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5275 #if ((' ' & 0x0FF) == 0x020)
5276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5279 # define ISLOWER(c) \
5280 (('a' <= (c) && (c) <= 'i') \
5281 || ('j' <= (c) && (c) <= 'r') \
5282 || ('s' <= (c) && (c) <= 'z'))
5283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5291 for (i = 0; i < 256; i++)
5292 if (XOR (islower (i), ISLOWER (i))
5293 || toupper (i) != TOUPPER (i))
5298 rm -f conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5311 echo "$as_me: program exited with status $ac_status" >&5
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5316 ac_cv_header_stdc=no
5318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5322 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5323 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5324 if test $ac_cv_header_stdc = yes; then
5326 cat >>confdefs.h <<\_ACEOF
5327 #define STDC_HEADERS 1
5332 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5342 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5343 inttypes.h stdint.h unistd.h
5345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 echo "$as_me:$LINENO: checking for $ac_header" >&5
5347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 cat >conftest.$ac_ext <<_ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 $ac_includes_default
5359 #include <$ac_header>
5361 rm -f conftest.$ac_objext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363 (eval $ac_compile) 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try='test -z "$ac_c_werror_flag"
5371 || test ! -s conftest.err'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; } &&
5377 { ac_try='test -s conftest.$ac_objext'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 eval "$as_ac_Header=yes"
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 eval "$as_ac_Header=no"
5390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5395 cat >>confdefs.h <<_ACEOF
5396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5405 for ac_header in dlfcn.h
5407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5409 echo "$as_me:$LINENO: checking for $ac_header" >&5
5410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5417 # Is the header compilable?
5418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5427 #include <$ac_header>
5429 rm -f conftest.$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -z "$ac_c_werror_flag"
5439 || test ! -s conftest.err'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; } &&
5445 { ac_try='test -s conftest.$ac_objext'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 ac_header_compiler=yes
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5456 ac_header_compiler=no
5458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5460 echo "${ECHO_T}$ac_header_compiler" >&6
5462 # Is the header present?
5463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5465 cat >conftest.$ac_ext <<_ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 #include <$ac_header>
5473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5476 grep -v '^ *+' conftest.er1 >conftest.err
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } >/dev/null; then
5481 if test -s conftest.err; then
5482 ac_cpp_err=$ac_c_preproc_warn_flag
5483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5490 if test -z "$ac_cpp_err"; then
5491 ac_header_preproc=yes
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_header_preproc=no
5498 rm -f conftest.err conftest.$ac_ext
5499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5500 echo "${ECHO_T}$ac_header_preproc" >&6
5502 # So? What about this header?
5503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5509 ac_header_preproc=yes
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5526 ## ----------------------------------- ##
5527 ## Report this to llvmbugs@cs.uiuc.edu ##
5528 ## ----------------------------------- ##
5531 sed "s/^/$as_me: WARNING: /" >&2
5534 echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 eval "$as_ac_Header=\$ac_header_preproc"
5541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5546 cat >>confdefs.h <<_ACEOF
5547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5556 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5557 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5558 (test "X$CXX" != "Xg++"))) ; then
5560 ac_cpp='$CXXCPP $CPPFLAGS'
5561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5564 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5565 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5566 if test -z "$CXXCPP"; then
5567 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 # Double quotes because CXXCPP needs to be expanded
5571 for CXXCPP in "$CXX -E" "/lib/cpp"
5574 for ac_cxx_preproc_warn_flag in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5589 # include <limits.h>
5591 # include <assert.h>
5595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } >/dev/null; then
5603 if test -s conftest.err; then
5604 ac_cpp_err=$ac_cxx_preproc_warn_flag
5605 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5612 if test -z "$ac_cpp_err"; then
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 # Broken: fails on valid input.
5621 rm -f conftest.err conftest.$ac_ext
5623 # OK, works on sane cases. Now check whether non-existent headers
5624 # can be detected and how.
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <ac_nonexistent.h>
5633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5636 grep -v '^ *+' conftest.er1 >conftest.err
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } >/dev/null; then
5641 if test -s conftest.err; then
5642 ac_cpp_err=$ac_cxx_preproc_warn_flag
5643 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5650 if test -z "$ac_cpp_err"; then
5651 # Broken: success on invalid input.
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5657 # Passes both tests.
5661 rm -f conftest.err conftest.$ac_ext
5664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5665 rm -f conftest.err conftest.$ac_ext
5666 if $ac_preproc_ok; then
5671 ac_cv_prog_CXXCPP=$CXXCPP
5674 CXXCPP=$ac_cv_prog_CXXCPP
5676 ac_cv_prog_CXXCPP=$CXXCPP
5678 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5679 echo "${ECHO_T}$CXXCPP" >&6
5681 for ac_cxx_preproc_warn_flag in '' yes
5683 # Use a header file that comes with gcc, so configuring glibc
5684 # with a fresh cross-compiler works.
5685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5686 # <limits.h> exists even on freestanding compilers.
5687 # On the NeXT, cc -E runs the code through the compiler's parser,
5688 # not just through cpp. "Syntax error" is here to catch this case.
5689 cat >conftest.$ac_ext <<_ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5696 # include <limits.h>
5698 # include <assert.h>
5702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } >/dev/null; then
5710 if test -s conftest.err; then
5711 ac_cpp_err=$ac_cxx_preproc_warn_flag
5712 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5719 if test -z "$ac_cpp_err"; then
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 # Broken: fails on valid input.
5728 rm -f conftest.err conftest.$ac_ext
5730 # OK, works on sane cases. Now check whether non-existent headers
5731 # can be detected and how.
5732 cat >conftest.$ac_ext <<_ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 #include <ac_nonexistent.h>
5740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5743 grep -v '^ *+' conftest.er1 >conftest.err
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } >/dev/null; then
5748 if test -s conftest.err; then
5749 ac_cpp_err=$ac_cxx_preproc_warn_flag
5750 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5757 if test -z "$ac_cpp_err"; then
5758 # Broken: success on invalid input.
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 # Passes both tests.
5768 rm -f conftest.err conftest.$ac_ext
5771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5772 rm -f conftest.err conftest.$ac_ext
5773 if $ac_preproc_ok; then
5776 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5777 See \`config.log' for more details." >&5
5778 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5779 See \`config.log' for more details." >&2;}
5780 { (exit 1); exit 1; }; }
5784 ac_cpp='$CXXCPP $CPPFLAGS'
5785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5793 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5794 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5796 if test -n "$ac_tool_prefix"; then
5797 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5801 echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5803 if test "${ac_cv_prog_F77+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 if test -n "$F77"; then
5807 ac_cv_prog_F77="$F77" # Let the user override the test.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 if test -n "$F77"; then
5827 echo "$as_me:$LINENO: result: $F77" >&5
5828 echo "${ECHO_T}$F77" >&6
5830 echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6
5834 test -n "$F77" && break
5837 if test -z "$F77"; then
5839 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy $ac_prog; ac_word=$2
5843 echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5845 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 if test -n "$ac_ct_F77"; then
5849 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_ac_ct_F77="$ac_prog"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5868 if test -n "$ac_ct_F77"; then
5869 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5870 echo "${ECHO_T}$ac_ct_F77" >&6
5872 echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6
5876 test -n "$ac_ct_F77" && break
5883 # Provide some information about the compiler.
5884 echo "$as_me:5884:" \
5885 "checking for Fortran 77 compiler version" >&5
5886 ac_compiler=`set X $ac_compile; echo $2`
5887 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5888 (eval $ac_compiler --version </dev/null >&5) 2>&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }
5892 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5893 (eval $ac_compiler -v </dev/null >&5) 2>&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }
5897 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5898 (eval $ac_compiler -V </dev/null >&5) 2>&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }
5904 # If we don't use `.F' as extension, the preprocessor is not run on the
5905 # input file. (Note that this only needs to work for GNU compilers.)
5908 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5909 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5910 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 cat >conftest.$ac_ext <<_ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_f77_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5954 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5955 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5957 ac_test_FFLAGS=${FFLAGS+set}
5958 ac_save_FFLAGS=$FFLAGS
5960 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5961 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5962 if test "${ac_cv_prog_f77_g+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.$ac_ext <<_ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5975 grep -v '^ *+' conftest.er1 >conftest.err
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_f77_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_cv_prog_f77_g=yes
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
6000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6003 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6004 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6005 if test "$ac_test_FFLAGS" = set; then
6006 FFLAGS=$ac_save_FFLAGS
6007 elif test $ac_cv_prog_f77_g = yes; then
6008 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6014 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6021 G77=`test $ac_compiler_gnu = yes && echo yes`
6023 ac_cpp='$CPP $CPPFLAGS'
6024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6032 # find the maximum length of command line arguments
6033 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6034 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6035 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 # On DJGPP, this test can blow up pretty badly due to problems in libc
6044 # (any single argument exceeding 2000 bytes causes a buffer overrun
6045 # during glob expansion). Even if it were fixed, the result of this
6046 # check would be larger than it should be.
6047 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6051 # Under GNU Hurd, this test is not required because there is
6052 # no limit to the length of command line arguments.
6053 # Libtool will interpret -1 as no limit whatsoever
6054 lt_cv_sys_max_cmd_len=-1;
6058 # On Win9x/ME, this test blows up -- it succeeds, but takes
6059 # about 5 minutes as the teststring grows exponentially.
6060 # Worse, since 9x/ME are not pre-emptively multitasking,
6061 # you end up with a "frozen" computer, even though with patience
6062 # the test eventually succeeds (with a max line length of 256k).
6063 # Instead, let's just punt: use the minimum linelength reported by
6064 # all of the supported platforms: 8192 (on NT/2K/XP).
6065 lt_cv_sys_max_cmd_len=8192;
6069 # On AmigaOS with pdksh, this test takes hours, literally.
6070 # So we just punt and use a minimum line length of 8192.
6071 lt_cv_sys_max_cmd_len=8192;
6074 netbsd* | freebsd* | openbsd* | darwin* )
6075 # This has been around since 386BSD, at least. Likely further.
6076 if test -x /sbin/sysctl; then
6077 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6078 elif test -x /usr/sbin/sysctl; then
6079 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6081 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6083 # And add a safety zone
6084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6088 # If test is not a shell built-in, we'll probably end up computing a
6089 # maximum length that is only half of the actual maximum length, but
6091 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6092 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6093 = "XX$teststring") >/dev/null 2>&1 &&
6094 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6095 lt_cv_sys_max_cmd_len=$new_result &&
6096 test $i != 17 # 1/2 MB should be enough
6099 teststring=$teststring$teststring
6102 # Add a significant safety factor because C++ compilers can tack on massive
6103 # amounts of additional arguments before passing them to the linker.
6104 # It appears as though 1/2 is a usable value.
6105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6111 if test -n $lt_cv_sys_max_cmd_len ; then
6112 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6113 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6115 echo "$as_me:$LINENO: result: none" >&5
6116 echo "${ECHO_T}none" >&6
6122 # Check for command to grab the raw symbol name followed by C symbol from nm.
6123 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6124 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6125 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 # These are sane defaults that work on at least a few old systems.
6130 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6132 # Character class describing NM global symbol codes.
6133 symcode='[BCDEGRST]'
6135 # Regexp to match symbols that can be accessed directly from C.
6136 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6138 # Transform the above into a raw symbol and a C symbol.
6139 symxfrm='\1 \2\3 \3'
6141 # Transform an extracted symbol line into a proper C declaration
6142 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6144 # Transform an extracted symbol line into symbol name and symbol address
6145 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'"
6147 # Define system-specific variables.
6152 cygwin* | mingw* | pw32*)
6153 symcode='[ABCDGISTW]'
6155 hpux*) # Its linker distinguishes data from code symbols
6156 if test "$host_cpu" = ia64; then
6157 symcode='[ABCDEGRST]'
6159 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6160 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'"
6163 if test "$host_cpu" = ia64; then
6164 symcode='[ABCDGIRSTW]'
6165 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6166 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'"
6170 symcode='[BCDEGRST]'
6173 symcode='[BCDEGQRST]'
6183 # Handle CRLF in mingw tool chain
6187 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6191 # If we're using GNU nm, then use its standard symbol codes.
6192 case `$NM -V 2>&1` in
6193 *GNU* | *'with BFD'*)
6194 symcode='[ABCDGIRSTW]' ;;
6197 # Try without a prefix undercore, then with it.
6198 for ac_symprfx in "" "_"; do
6200 # Write the raw and C identifiers.
6201 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6203 # Check to see that the pipe works correctly.
6207 cat > conftest.$ac_ext <<EOF
6212 void nm_test_func(){}
6216 int main(){nm_test_var='a';nm_test_func();return(0);}
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220 (eval $ac_compile) 2>&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; then
6224 # Now try to grab the symbols.
6226 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6227 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && test -s "$nlist"; then
6231 # Try sorting and uniquifying the output.
6232 if sort "$nlist" | uniq > "$nlist"T; then
6233 mv -f "$nlist"T "$nlist"
6238 # Make sure that we snagged all the symbols we need.
6239 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6240 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6241 cat <<EOF > conftest.$ac_ext
6247 # Now generate the symbol file.
6248 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6250 cat <<EOF >> conftest.$ac_ext
6251 #if defined (__STDC__) && __STDC__
6252 # define lt_ptr_t void *
6254 # define lt_ptr_t char *
6258 /* The mapping between symbol names and symbols. */
6263 lt_preloaded_symbols[] =
6266 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6267 cat <<\EOF >> conftest.$ac_ext
6275 # Now try linking the two files.
6276 mv conftest.$ac_objext conftstm.$ac_objext
6277 lt_save_LIBS="$LIBS"
6278 lt_save_CFLAGS="$CFLAGS"
6279 LIBS="conftstm.$ac_objext"
6280 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282 (eval $ac_link) 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6288 LIBS="$lt_save_LIBS"
6289 CFLAGS="$lt_save_CFLAGS"
6291 echo "cannot find nm_test_func in $nlist" >&5
6294 echo "cannot find nm_test_var in $nlist" >&5
6297 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6300 echo "$progname: failed program was:" >&5
6301 cat conftest.$ac_ext >&5
6303 rm -f conftest* conftst*
6305 # Do not use the global_symbol_pipe unless it works.
6306 if test "$pipe_works" = yes; then
6309 lt_cv_sys_global_symbol_pipe=
6315 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6316 lt_cv_sys_global_symbol_to_cdecl=
6318 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6319 echo "$as_me:$LINENO: result: failed" >&5
6320 echo "${ECHO_T}failed" >&6
6322 echo "$as_me:$LINENO: result: ok" >&5
6323 echo "${ECHO_T}ok" >&6
6326 echo "$as_me:$LINENO: checking for objdir" >&5
6327 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6328 if test "${lt_cv_objdir+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 rm -f .libs 2>/dev/null
6332 mkdir .libs 2>/dev/null
6333 if test -d .libs; then
6336 # MS-DOS does not allow filenames that begin with a dot.
6339 rmdir .libs 2>/dev/null
6341 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6342 echo "${ECHO_T}$lt_cv_objdir" >&6
6343 objdir=$lt_cv_objdir
6351 # AIX sometimes has problems with the GCC collect2 program. For some
6352 # reason, if we set the COLLECT_NAMES environment variable, the problems
6353 # vanish in a puff of smoke.
6354 if test "X${COLLECT_NAMES+set}" != Xset; then
6356 export COLLECT_NAMES
6361 # Sed substitution that helps us do robust quoting. It backslashifies
6362 # metacharacters that are still active within double-quoted strings.
6363 Xsed='sed -e s/^X//'
6364 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6366 # Same as above, but do not quote variable references.
6367 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6369 # Sed substitution to delay expansion of an escaped shell variable in a
6370 # double_quote_subst'ed string.
6371 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6373 # Sed substitution to avoid accidental globbing in evaled expressions
6374 no_glob_subst='s/\*/\\\*/g'
6381 can_build_shared=yes
6383 # All known linkers require a `.a' archive for static linking (except M$VC,
6384 # which needs '.lib').
6386 ltmain="$ac_aux_dir/ltmain.sh"
6387 ofile="$default_ofile"
6388 with_gnu_ld="$lt_cv_prog_gnu_ld"
6390 if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}ar; ac_word=$2
6393 echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6395 if test "${ac_cv_prog_AR+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 if test -n "$AR"; then
6399 ac_cv_prog_AR="$AR" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_AR="${ac_tool_prefix}ar"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 if test -n "$AR"; then
6419 echo "$as_me:$LINENO: result: $AR" >&5
6420 echo "${ECHO_T}$AR" >&6
6422 echo "$as_me:$LINENO: result: no" >&5
6423 echo "${ECHO_T}no" >&6
6427 if test -z "$ac_cv_prog_AR"; then
6429 # Extract the first word of "ar", so it can be a program name with args.
6430 set dummy ar; ac_word=$2
6431 echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6433 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 if test -n "$ac_ct_AR"; then
6437 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446 ac_cv_prog_ac_ct_AR="ar"
6447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6456 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6457 if test -n "$ac_ct_AR"; then
6458 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6459 echo "${ECHO_T}$ac_ct_AR" >&6
6461 echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6473 echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6475 if test "${ac_cv_prog_RANLIB+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 if test -n "$RANLIB"; then
6479 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 RANLIB=$ac_cv_prog_RANLIB
6498 if test -n "$RANLIB"; then
6499 echo "$as_me:$LINENO: result: $RANLIB" >&5
6500 echo "${ECHO_T}$RANLIB" >&6
6502 echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6
6507 if test -z "$ac_cv_prog_RANLIB"; then
6508 ac_ct_RANLIB=$RANLIB
6509 # Extract the first word of "ranlib", so it can be a program name with args.
6510 set dummy ranlib; ac_word=$2
6511 echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6513 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 if test -n "$ac_ct_RANLIB"; then
6517 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526 ac_cv_prog_ac_ct_RANLIB="ranlib"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6537 if test -n "$ac_ct_RANLIB"; then
6538 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6539 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6541 echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6
6545 RANLIB=$ac_ct_RANLIB
6547 RANLIB="$ac_cv_prog_RANLIB"
6550 if test -n "$ac_tool_prefix"; then
6551 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}strip; ac_word=$2
6553 echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6555 if test "${ac_cv_prog_STRIP+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 if test -n "$STRIP"; then
6559 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 STRIP=$ac_cv_prog_STRIP
6578 if test -n "$STRIP"; then
6579 echo "$as_me:$LINENO: result: $STRIP" >&5
6580 echo "${ECHO_T}$STRIP" >&6
6582 echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6
6587 if test -z "$ac_cv_prog_STRIP"; then
6589 # Extract the first word of "strip", so it can be a program name with args.
6590 set dummy strip; ac_word=$2
6591 echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 if test -n "$ac_ct_STRIP"; then
6597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_ac_ct_STRIP="strip"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6616 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6617 if test -n "$ac_ct_STRIP"; then
6618 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6619 echo "${ECHO_T}$ac_ct_STRIP" >&6
6621 echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6627 STRIP="$ac_cv_prog_STRIP"
6632 old_CFLAGS="$CFLAGS"
6634 # Set sane defaults for various variables
6635 test -z "$AR" && AR=ar
6636 test -z "$AR_FLAGS" && AR_FLAGS=cru
6637 test -z "$AS" && AS=as
6638 test -z "$CC" && CC=cc
6639 test -z "$LTCC" && LTCC=$CC
6640 test -z "$DLLTOOL" && DLLTOOL=dlltool
6641 test -z "$LD" && LD=ld
6642 test -z "$LN_S" && LN_S="ln -s"
6643 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6644 test -z "$NM" && NM=nm
6645 test -z "$SED" && SED=sed
6646 test -z "$OBJDUMP" && OBJDUMP=objdump
6647 test -z "$RANLIB" && RANLIB=:
6648 test -z "$STRIP" && STRIP=:
6649 test -z "$ac_objext" && ac_objext=o
6651 # Determine commands to create old-style static archives.
6652 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6653 old_postinstall_cmds='chmod 644 $oldlib'
6654 old_postuninstall_cmds=
6656 if test -n "$RANLIB"; then
6659 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6662 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6665 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6668 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6670 # Only perform the check for file, if the check method requires it
6671 case $deplibs_check_method in
6673 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6674 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6675 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6676 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6684 lt_save_MAGIC_CMD="$MAGIC_CMD"
6685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6687 for ac_dir in $ac_dummy; do
6689 test -z "$ac_dir" && ac_dir=.
6690 if test -f $ac_dir/${ac_tool_prefix}file; then
6691 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6692 if test -n "$file_magic_test_file"; then
6693 case $deplibs_check_method in
6695 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6698 $EGREP "$file_magic_regex" > /dev/null; then
6703 *** Warning: the command libtool uses to detect shared libraries,
6704 *** $file_magic_cmd, produces output that libtool cannot recognize.
6705 *** The result is that libtool may fail to recognize shared libraries
6706 *** as such. This will affect the creation of libtool libraries that
6707 *** depend on shared libraries, but programs linked with such libtool
6708 *** libraries will work regardless of this problem. Nevertheless, you
6709 *** may want to report the problem to your system manager and/or to
6710 *** bug-libtool@gnu.org
6720 MAGIC_CMD="$lt_save_MAGIC_CMD"
6725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6726 if test -n "$MAGIC_CMD"; then
6727 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6728 echo "${ECHO_T}$MAGIC_CMD" >&6
6730 echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6
6734 if test -z "$lt_cv_path_MAGIC_CMD"; then
6735 if test -n "$ac_tool_prefix"; then
6736 echo "$as_me:$LINENO: checking for file" >&5
6737 echo $ECHO_N "checking for file... $ECHO_C" >&6
6738 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6746 lt_save_MAGIC_CMD="$MAGIC_CMD"
6747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6748 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6749 for ac_dir in $ac_dummy; do
6751 test -z "$ac_dir" && ac_dir=.
6752 if test -f $ac_dir/file; then
6753 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6754 if test -n "$file_magic_test_file"; then
6755 case $deplibs_check_method in
6757 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6759 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6760 $EGREP "$file_magic_regex" > /dev/null; then
6765 *** Warning: the command libtool uses to detect shared libraries,
6766 *** $file_magic_cmd, produces output that libtool cannot recognize.
6767 *** The result is that libtool may fail to recognize shared libraries
6768 *** as such. This will affect the creation of libtool libraries that
6769 *** depend on shared libraries, but programs linked with such libtool
6770 *** libraries will work regardless of this problem. Nevertheless, you
6771 *** may want to report the problem to your system manager and/or to
6772 *** bug-libtool@gnu.org
6782 MAGIC_CMD="$lt_save_MAGIC_CMD"
6787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6788 if test -n "$MAGIC_CMD"; then
6789 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6790 echo "${ECHO_T}$MAGIC_CMD" >&6
6792 echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6
6808 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6809 if test "${enable_libtool_lock+set}" = set; then
6810 enableval="$enable_libtool_lock"
6813 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6816 # Check whether --with-pic or --without-pic was given.
6817 if test "${with_pic+set}" = set; then
6823 test -z "$pic_mode" && pic_mode=default
6825 # Use C for the default configuration in the libtool script
6829 ac_cpp='$CPP $CPPFLAGS'
6830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6835 # Source file extension for C test sources.
6838 # Object file extension for compiled C test sources.
6842 # Code to be used in simple compile tests
6843 lt_simple_compile_test_code="int some_variable = 0;\n"
6845 # Code to be used in simple link tests
6846 lt_simple_link_test_code='int main(){return(0);}\n'
6849 # If no C compiler was specified, use CC.
6852 # Allow CC to be a program name with arguments.
6857 # Check for any special shared library compilation flags.
6860 if test "$GCC" = no; then
6863 lt_prog_cc_shlib='-belf'
6867 if test -n "$lt_prog_cc_shlib"; then
6868 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6869 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6870 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6872 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6873 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6874 lt_cv_prog_cc_can_build_shared=no
6880 # Check to make sure the static flag actually works.
6882 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6883 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6884 if test "${lt_prog_compiler_static_works+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 lt_prog_compiler_static_works=no
6888 save_LDFLAGS="$LDFLAGS"
6889 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6890 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6892 # The compiler can only warn and ignore the option if not recognized
6893 # So say no if there are warnings
6894 if test -s conftest.err; then
6895 # Append any errors to the config.log.
6896 cat conftest.err 1>&5
6898 lt_prog_compiler_static_works=yes
6902 LDFLAGS="$save_LDFLAGS"
6905 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6906 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6908 if test x"$lt_prog_compiler_static_works" = xyes; then
6911 lt_prog_compiler_static=
6917 lt_prog_compiler_no_builtin_flag=
6919 if test "$GCC" = yes; then
6920 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6923 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6924 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6925 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 lt_cv_prog_compiler_rtti_exceptions=no
6929 ac_outfile=conftest.$ac_objext
6930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6931 lt_compiler_flag="-fno-rtti -fno-exceptions"
6932 # Insert the option either (1) after the last *FLAGS variable, or
6933 # (2) before a word containing "conftest.", or (3) at the end.
6934 # Note that $ac_compile itself does not contain backslashes and begins
6935 # with a dollar sign (not a hyphen), so the echo should work correctly.
6936 # The option is referenced via a variable to avoid confusing sed.
6937 lt_compile=`echo "$ac_compile" | $SED \
6938 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6940 -e 's:$: $lt_compiler_flag:'`
6941 (eval echo "\"\$as_me:6941: $lt_compile\"" >&5)
6942 (eval "$lt_compile" 2>conftest.err)
6944 cat conftest.err >&5
6945 echo "$as_me:6945: \$? = $ac_status" >&5
6946 if (exit $ac_status) && test -s "$ac_outfile"; then
6947 # The compiler can only warn and ignore the option if not recognized
6948 # So say no if there are warnings
6949 if test ! -s conftest.err; then
6950 lt_cv_prog_compiler_rtti_exceptions=yes
6956 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6957 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6959 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6960 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6967 lt_prog_compiler_wl=
6968 lt_prog_compiler_pic=
6969 lt_prog_compiler_static=
6971 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6972 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6974 if test "$GCC" = yes; then
6975 lt_prog_compiler_wl='-Wl,'
6976 lt_prog_compiler_static='-static'
6980 # All AIX code is PIC.
6981 if test "$host_cpu" = ia64; then
6982 # AIX 5 now supports IA64 processor
6983 lt_prog_compiler_static='-Bstatic'
6988 # FIXME: we need at least 68020 code to build shared libraries, but
6989 # adding the `-m68020' flag to GCC prevents building anything better,
6991 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6994 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6995 # PIC is the default for these OSes.
6998 mingw* | pw32* | os2*)
6999 # This hack is so that the source file can tell whether it is being
7000 # built for inclusion in a dll (and should export symbols for example).
7001 lt_prog_compiler_pic='-DDLL_EXPORT'
7004 darwin* | rhapsody*)
7005 # PIC is the default on this platform
7006 # Common symbols not allowed in MH_DYLIB files
7007 lt_prog_compiler_pic='-fno-common'
7011 # Just because we use GCC doesn't mean we suddenly get shared libraries
7012 # on systems that don't support them.
7013 lt_prog_compiler_can_build_shared=no
7018 if test -d /usr/nec; then
7019 lt_prog_compiler_pic=-Kconform_pic
7024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7031 lt_prog_compiler_pic='-fPIC'
7037 lt_prog_compiler_pic='-fPIC'
7041 # PORTME Check for flag to pass linker flags through the system compiler.
7044 lt_prog_compiler_wl='-Wl,'
7045 if test "$host_cpu" = ia64; then
7046 # AIX 5 now supports IA64 processor
7047 lt_prog_compiler_static='-Bstatic'
7049 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7053 # PIC is the default on this platform
7054 # Common symbols not allowed in MH_DYLIB files
7055 case "$cc_basename" in
7057 lt_prog_compiler_pic='-qnocommon'
7058 lt_prog_compiler_wl='-Wl,'
7063 mingw* | pw32* | os2*)
7064 # This hack is so that the source file can tell whether it is being
7065 # built for inclusion in a dll (and should export symbols for example).
7066 lt_prog_compiler_pic='-DDLL_EXPORT'
7069 hpux9* | hpux10* | hpux11*)
7070 lt_prog_compiler_wl='-Wl,'
7071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7078 lt_prog_compiler_pic='+Z'
7081 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7082 lt_prog_compiler_static='${wl}-a ${wl}archive'
7085 irix5* | irix6* | nonstopux*)
7086 lt_prog_compiler_wl='-Wl,'
7087 # PIC (with -KPIC) is the default.
7088 lt_prog_compiler_static='-non_shared'
7092 lt_prog_compiler_pic='-KPIC'
7093 lt_prog_compiler_static='-Bstatic'
7099 lt_prog_compiler_wl='-Wl,'
7100 lt_prog_compiler_pic='-KPIC'
7101 lt_prog_compiler_static='-static'
7104 lt_prog_compiler_wl='-Wl,'
7105 # All Alpha code is PIC.
7106 lt_prog_compiler_static='-non_shared'
7111 osf3* | osf4* | osf5*)
7112 lt_prog_compiler_wl='-Wl,'
7113 # All OSF/1 code is PIC.
7114 lt_prog_compiler_static='-non_shared'
7118 lt_prog_compiler_pic='-Kpic'
7119 lt_prog_compiler_static='-dn'
7123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_pic='-KPIC'
7125 lt_prog_compiler_static='-Bstatic'
7129 lt_prog_compiler_wl='-Qoption ld '
7130 lt_prog_compiler_pic='-PIC'
7131 lt_prog_compiler_static='-Bstatic'
7134 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7135 lt_prog_compiler_wl='-Wl,'
7136 lt_prog_compiler_pic='-KPIC'
7137 lt_prog_compiler_static='-Bstatic'
7141 if test -d /usr/nec ;then
7142 lt_prog_compiler_pic='-Kconform_pic'
7143 lt_prog_compiler_static='-Bstatic'
7148 lt_prog_compiler_pic='-pic'
7149 lt_prog_compiler_static='-Bstatic'
7153 lt_prog_compiler_can_build_shared=no
7158 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7159 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7162 # Check to make sure the PIC flag actually works.
7164 if test -n "$lt_prog_compiler_pic"; then
7166 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7167 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7168 if test "${lt_prog_compiler_pic_works+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 lt_prog_compiler_pic_works=no
7172 ac_outfile=conftest.$ac_objext
7173 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7174 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7175 # Insert the option either (1) after the last *FLAGS variable, or
7176 # (2) before a word containing "conftest.", or (3) at the end.
7177 # Note that $ac_compile itself does not contain backslashes and begins
7178 # with a dollar sign (not a hyphen), so the echo should work correctly.
7179 # The option is referenced via a variable to avoid confusing sed.
7180 lt_compile=`echo "$ac_compile" | $SED \
7181 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7183 -e 's:$: $lt_compiler_flag:'`
7184 (eval echo "\"\$as_me:7184: $lt_compile\"" >&5)
7185 (eval "$lt_compile" 2>conftest.err)
7187 cat conftest.err >&5
7188 echo "$as_me:7188: \$? = $ac_status" >&5
7189 if (exit $ac_status) && test -s "$ac_outfile"; then
7190 # The compiler can only warn and ignore the option if not recognized
7191 # So say no if there are warnings
7192 if test ! -s conftest.err; then
7193 lt_prog_compiler_pic_works=yes
7199 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7200 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7202 if test x"$lt_prog_compiler_pic_works" = xyes; then
7203 case $lt_prog_compiler_pic in
7205 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7208 lt_prog_compiler_pic=
7209 lt_prog_compiler_can_build_shared=no
7214 # For platforms which do not support PIC, -DPIC is meaningless:
7216 lt_prog_compiler_pic=
7219 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7223 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7224 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7225 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 lt_cv_prog_compiler_c_o=no
7229 $rm -r conftest 2>/dev/null
7233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7235 lt_compiler_flag="-o out/conftest2.$ac_objext"
7236 # Insert the option either (1) after the last *FLAGS variable, or
7237 # (2) before a word containing "conftest.", or (3) at the end.
7238 # Note that $ac_compile itself does not contain backslashes and begins
7239 # with a dollar sign (not a hyphen), so the echo should work correctly.
7240 lt_compile=`echo "$ac_compile" | $SED \
7241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7243 -e 's:$: $lt_compiler_flag:'`
7244 (eval echo "\"\$as_me:7244: $lt_compile\"" >&5)
7245 (eval "$lt_compile" 2>out/conftest.err)
7247 cat out/conftest.err >&5
7248 echo "$as_me:7248: \$? = $ac_status" >&5
7249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7251 # The compiler can only warn and ignore the option if not recognized
7252 # So say no if there are warnings
7253 if test ! -s out/conftest.err; then
7254 lt_cv_prog_compiler_c_o=yes
7259 # SGI C++ compiler will create directory out/ii_files/ for
7260 # template instantiation
7261 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7262 $rm out/* && rmdir out
7268 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7269 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7272 hard_links="nottested"
7273 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7274 # do not overwrite the value of need_locks provided by the user
7275 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7276 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7279 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7281 ln conftest.a conftest.b 2>&5 || hard_links=no
7282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7283 echo "$as_me:$LINENO: result: $hard_links" >&5
7284 echo "${ECHO_T}$hard_links" >&6
7285 if test "$hard_links" = no; then
7286 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7287 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7294 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7295 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7298 allow_undefined_flag=
7299 enable_shared_with_static_runtimes=no
7301 archive_expsym_cmds=
7302 old_archive_From_new_cmds=
7303 old_archive_from_expsyms_cmds=
7304 export_dynamic_flag_spec=
7305 whole_archive_flag_spec=
7306 thread_safe_flag_spec=
7307 hardcode_libdir_flag_spec=
7308 hardcode_libdir_flag_spec_ld=
7309 hardcode_libdir_separator=
7312 hardcode_shlibpath_var=unsupported
7313 link_all_deplibs=unknown
7314 hardcode_automatic=no
7317 always_export_symbols=no
7318 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7319 # include_expsyms should be a list of space-separated symbols to be *always*
7320 # included in the symbol list
7322 # exclude_expsyms can be an extended regexp of symbols to exclude
7323 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7324 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7325 # as well as any symbol that contains `d'.
7326 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7327 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7328 # platforms (ab)use it in PIC code, but their linkers get confused if
7329 # the symbol is explicitly referenced. Since portable code cannot
7330 # rely on this symbol name, it's probably fine to never include it in
7331 # preloaded symbol tables.
7332 extract_expsyms_cmds=
7335 cygwin* | mingw* | pw32*)
7336 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7337 # When not using gcc, we currently assume that we are using
7338 # Microsoft Visual C++.
7339 if test "$GCC" != yes; then
7349 if test "$with_gnu_ld" = yes; then
7350 # If archive_cmds runs LD, not CC, wlarc should be empty
7353 # See if GNU ld supports shared libraries.
7355 aix3* | aix4* | aix5*)
7356 # On AIX/PPC, the GNU linker is very broken
7357 if test "$host_cpu" != ia64; then
7361 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7362 *** to be unable to reliably create shared libraries on AIX.
7363 *** Therefore, libtool is disabling shared libraries support. If you
7364 *** really care for shared libraries, you may want to modify your PATH
7365 *** so that a non-GNU linker is found, and then restart.
7372 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)'
7373 hardcode_libdir_flag_spec='-L$libdir'
7374 hardcode_minus_L=yes
7376 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7377 # that the semantics of dynamic libraries on AmigaOS, at least up
7378 # to version 4, is to share data among multiple programs linked
7379 # with the same dynamic library. Since this doesn't match the
7380 # behavior of shared libraries on other platforms, we can't use
7386 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7387 allow_undefined_flag=unsupported
7388 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7389 # support --undefined. This deserves some investigation. FIXME
7390 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7396 cygwin* | mingw* | pw32*)
7397 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7398 # as there is no search path for DLLs.
7399 hardcode_libdir_flag_spec='-L$libdir'
7400 allow_undefined_flag=unsupported
7401 always_export_symbols=no
7402 enable_shared_with_static_runtimes=yes
7403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7405 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7407 # If the export-symbols file already is a .def file (1st line
7408 # is EXPORTS), use it as is; otherwise, prepend...
7409 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7410 cp $export_symbols $output_objdir/$soname.def;
7412 echo EXPORTS > $output_objdir/$soname.def;
7413 cat $export_symbols >> $output_objdir/$soname.def;
7415 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7422 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7423 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7432 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7436 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7437 *** create shared libraries on Solaris systems. Therefore, libtool
7438 *** is disabling shared libraries support. We urge you to upgrade GNU
7439 *** binutils to release 2.9.1 or newer. Another option is to modify
7440 *** your PATH or compiler configuration so that the native linker is
7441 *** used, and then restart.
7444 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7453 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7456 hardcode_shlibpath_var=no
7460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7461 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7462 archive_cmds="$tmp_archive_cmds"
7463 supports_anon_versioning=no
7464 case `$LD -v 2>/dev/null` in
7465 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7466 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7467 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7468 *\ 2.11.*) ;; # other 2.11 versions
7469 *) supports_anon_versioning=yes ;;
7471 if test $supports_anon_versioning = yes; then
7472 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7474 $echo "local: *; };" >> $output_objdir/$libname.ver~
7475 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7477 archive_expsym_cmds="$tmp_archive_cmds"
7485 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7494 if test "$ld_shlibs" = yes; then
7495 runpath_var=LD_RUN_PATH
7496 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7497 export_dynamic_flag_spec='${wl}--export-dynamic'
7498 # ancient GNU ld didn't support --whole-archive et. al.
7499 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7500 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7502 whole_archive_flag_spec=
7506 # PORTME fill in a description of your system's linker (not GNU ld)
7509 allow_undefined_flag=unsupported
7510 always_export_symbols=yes
7511 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'
7512 # Note: this linker hardcodes the directories in LIBPATH if there
7513 # are no directories specified by -L.
7514 hardcode_minus_L=yes
7515 if test "$GCC" = yes && test -z "$link_static_flag"; then
7516 # Neither direct hardcoding nor static linking is supported with a
7518 hardcode_direct=unsupported
7523 if test "$host_cpu" = ia64; then
7524 # On IA64, the linker does run time linking by default, so we don't
7525 # have to do anything special.
7526 aix_use_runtimelinking=no
7527 exp_sym_flag='-Bexport'
7530 # If we're using GNU nm, then we don't want the "-C" option.
7531 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7532 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7533 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'
7535 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'
7537 aix_use_runtimelinking=no
7539 # Test if we are trying to use run time linking or normal
7540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7541 # need to do runtime linking.
7542 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7543 for ld_flag in $LDFLAGS; do
7544 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7545 aix_use_runtimelinking=yes
7551 exp_sym_flag='-bexport'
7552 no_entry_flag='-bnoentry'
7555 # When large executables or shared objects are built, AIX ld can
7556 # have problems creating the table of contents. If linking a library
7557 # or program results in "error TOC overflow" add -mminimal-toc to
7558 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7559 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7563 hardcode_libdir_separator=':'
7564 link_all_deplibs=yes
7566 if test "$GCC" = yes; then
7567 case $host_os in aix4.012|aix4.012.*)
7568 # We only want to do this on AIX 4.2 and lower, the check
7569 # below for broken collect2 doesn't work under 4.3+
7570 collect2name=`${CC} -print-prog-name=collect2`
7571 if test -f "$collect2name" && \
7572 strings "$collect2name" | grep resolve_lib_name >/dev/null
7574 # We have reworked collect2
7577 # We have old collect2
7578 hardcode_direct=unsupported
7579 # It fails to find uninstalled libraries when the uninstalled
7580 # path is not listed in the libpath. Setting hardcode_minus_L
7581 # to unsupported forces relinking
7582 hardcode_minus_L=yes
7583 hardcode_libdir_flag_spec='-L$libdir'
7584 hardcode_libdir_separator=
7587 shared_flag='-shared'
7590 if test "$host_cpu" = ia64; then
7591 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7592 # chokes on -Wl,-G. The following line is correct:
7595 if test "$aix_use_runtimelinking" = yes; then
7596 shared_flag='${wl}-G'
7598 shared_flag='${wl}-bM:SRE'
7603 # It seems that -bexpall does not export symbols beginning with
7604 # underscore (_), so it is better to generate a list of symbols to export.
7605 always_export_symbols=yes
7606 if test "$aix_use_runtimelinking" = yes; then
7607 # Warning - without using the other runtime loading flags (-brtl),
7608 # -berok will link without error, but may produce a broken library.
7609 allow_undefined_flag='-berok'
7610 # Determine the default libpath from the value encoded in an empty executable.
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7626 rm -f conftest.$ac_objext conftest$ac_exeext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7628 (eval $ac_link) 2>conftest.er1
7630 grep -v '^ *+' conftest.er1 >conftest.err
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try='test -z "$ac_c_werror_flag"
7636 || test ! -s conftest.err'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; } &&
7642 { ac_try='test -s conftest$ac_exeext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7651 # Check for a 64-bit object if we didn't find anything.
7652 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; }
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7659 rm -f conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
7661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7664 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"
7666 if test "$host_cpu" = ia64; then
7667 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7668 allow_undefined_flag="-z nodefs"
7669 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"
7671 # Determine the default libpath from the value encoded in an empty executable.
7672 cat >conftest.$ac_ext <<_ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7712 # Check for a 64-bit object if we didn't find anything.
7713 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; }
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7720 rm -f conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
7722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7724 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7725 # Warning - without using the other run time loading flags,
7726 # -berok will link without error, but may produce a broken library.
7727 no_undefined_flag=' ${wl}-bernotok'
7728 allow_undefined_flag=' ${wl}-berok'
7729 # -bexpall does not export symbols beginning with underscore (_)
7730 always_export_symbols=yes
7731 # Exported symbols can be pulled into shared objects from archives
7732 whole_archive_flag_spec=' '
7733 archive_cmds_need_lc=yes
7734 # This is similar to how AIX traditionally builds it's shared libraries.
7735 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'
7741 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)'
7742 hardcode_libdir_flag_spec='-L$libdir'
7743 hardcode_minus_L=yes
7744 # see comment about different semantics on the GNU ld section
7749 export_dynamic_flag_spec=-rdynamic
7752 cygwin* | mingw* | pw32*)
7753 # When not using gcc, we currently assume that we are using
7754 # Microsoft Visual C++.
7755 # hardcode_libdir_flag_spec is actually meaningless, as there is
7756 # no search path for DLLs.
7757 hardcode_libdir_flag_spec=' '
7758 allow_undefined_flag=unsupported
7759 # Tell ltmain to make .lib files, not .a files.
7761 # Tell ltmain to make .dll files, not .so files.
7763 # FIXME: Setting linknames here is a bad hack.
7764 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7765 # The linker will automatically build a .lib file if we build a DLL.
7766 old_archive_From_new_cmds='true'
7767 # FIXME: Should let the user specify the lib program.
7768 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7769 fix_srcfile_path='`cygpath -w "$srcfile"`'
7770 enable_shared_with_static_runtimes=yes
7773 darwin* | rhapsody*)
7775 rhapsody* | darwin1.[012])
7776 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7779 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7780 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7782 case ${MACOSX_DEPLOYMENT_TARGET} in
7784 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7787 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7793 archive_cmds_need_lc=no
7795 hardcode_automatic=yes
7796 hardcode_shlibpath_var=unsupported
7797 whole_archive_flag_spec=''
7798 link_all_deplibs=yes
7799 if test "$GCC" = yes ; then
7800 output_verbose_link_cmd='echo'
7801 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7802 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7804 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}'
7805 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}'
7807 case "$cc_basename" in
7809 output_verbose_link_cmd='echo'
7810 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7811 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7812 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7813 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}'
7814 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}'
7824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7825 hardcode_libdir_flag_spec='-L$libdir'
7826 hardcode_shlibpath_var=no
7833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7834 # support. Future versions do this automatically, but an explicit c++rt0.o
7835 # does not break anything, and helps significantly (at the cost of a little
7838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7839 hardcode_libdir_flag_spec='-R$libdir'
7841 hardcode_shlibpath_var=no
7844 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7848 hardcode_minus_L=yes
7849 hardcode_shlibpath_var=no
7852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7853 freebsd* | kfreebsd*-gnu)
7854 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7855 hardcode_libdir_flag_spec='-R$libdir'
7857 hardcode_shlibpath_var=no
7861 if test "$GCC" = yes; then
7862 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'
7864 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'
7866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7867 hardcode_libdir_separator=:
7870 # hardcode_minus_L: Not really in the search PATH,
7871 # but as the default location of the library.
7872 hardcode_minus_L=yes
7873 export_dynamic_flag_spec='${wl}-E'
7877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7880 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7883 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7889 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7892 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7896 if test "$with_gnu_ld" = no; then
7899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7900 hardcode_libdir_flag_spec_ld='+b $libdir'
7901 hardcode_libdir_separator=:
7903 hardcode_shlibpath_var=no
7906 hardcode_libdir_flag_spec='-L$libdir'
7908 hardcode_shlibpath_var=no
7910 # hardcode_minus_L: Not really in the search PATH,
7911 # but as the default location of the library.
7912 hardcode_minus_L=yes
7915 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7916 hardcode_libdir_separator=:
7918 export_dynamic_flag_spec='${wl}-E'
7920 # hardcode_minus_L: Not really in the search PATH,
7921 # but as the default location of the library.
7922 hardcode_minus_L=yes
7928 irix5* | irix6* | nonstopux*)
7929 if test "$GCC" = yes; then
7930 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'
7932 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'
7933 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7936 hardcode_libdir_separator=:
7937 link_all_deplibs=yes
7941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7944 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7946 hardcode_libdir_flag_spec='-R$libdir'
7948 hardcode_shlibpath_var=no
7952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7955 hardcode_libdir_separator=:
7956 hardcode_shlibpath_var=no
7961 hardcode_shlibpath_var=no
7962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7963 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7964 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7965 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7966 export_dynamic_flag_spec='${wl}-E'
7969 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7971 hardcode_libdir_flag_spec='-R$libdir'
7974 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7982 hardcode_libdir_flag_spec='-L$libdir'
7983 hardcode_minus_L=yes
7984 allow_undefined_flag=unsupported
7985 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'
7986 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7990 if test "$GCC" = yes; then
7991 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7992 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'
7994 allow_undefined_flag=' -expect_unresolved \*'
7995 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'
7997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7998 hardcode_libdir_separator=:
8001 osf4* | osf5*) # as osf3* with the addition of -msym flag
8002 if test "$GCC" = yes; then
8003 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8004 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'
8005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8007 allow_undefined_flag=' -expect_unresolved \*'
8008 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'
8009 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8010 $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'
8012 # Both c and cxx compiler support -rpath directly
8013 hardcode_libdir_flag_spec='-rpath $libdir'
8015 hardcode_libdir_separator=:
8019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8020 hardcode_shlibpath_var=no
8021 export_dynamic_flag_spec='${wl}-Bexport'
8022 runpath_var=LD_RUN_PATH
8023 hardcode_runpath_var=yes
8027 no_undefined_flag=' -z text'
8028 if test "$GCC" = yes; then
8029 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8030 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8031 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8033 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8034 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8037 hardcode_libdir_flag_spec='-R$libdir'
8038 hardcode_shlibpath_var=no
8040 solaris2.[0-5] | solaris2.[0-5].*) ;;
8041 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8042 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8044 link_all_deplibs=yes
8048 if test "x$host_vendor" = xsequent; then
8049 # Use $CC to link under sequent, because it throws in some extra .o
8050 # files that make .init and .fini sections work.
8051 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8053 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8055 hardcode_libdir_flag_spec='-L$libdir'
8057 hardcode_minus_L=yes
8058 hardcode_shlibpath_var=no
8062 case $host_vendor in
8064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8065 hardcode_direct=yes # is this really true???
8068 ## LD is ld it makes a PLAMLIB
8069 ## CC just makes a GrossModule.
8070 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8071 reload_cmds='$CC -r -o $output$reload_objs'
8075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8079 runpath_var='LD_RUN_PATH'
8080 hardcode_shlibpath_var=no
8084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8085 hardcode_shlibpath_var=no
8086 export_dynamic_flag_spec='-Bexport'
8090 if test -d /usr/nec; then
8091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8092 hardcode_shlibpath_var=no
8093 runpath_var=LD_RUN_PATH
8094 hardcode_runpath_var=yes
8100 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8103 hardcode_shlibpath_var=no
8104 hardcode_runpath_var=yes
8105 runpath_var=LD_RUN_PATH
8108 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8109 no_undefined_flag='${wl}-z ${wl}text'
8110 if test "$GCC" = yes; then
8111 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8113 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8115 runpath_var='LD_RUN_PATH'
8116 hardcode_shlibpath_var=no
8120 no_undefined_flag=' -z text'
8121 # $CC -shared without GNU ld will not create a library from C++
8122 # object files and a static libstdc++, better avoid it by now
8123 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8124 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8125 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8126 hardcode_libdir_flag_spec=
8127 hardcode_shlibpath_var=no
8128 runpath_var='LD_RUN_PATH'
8132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8133 hardcode_libdir_flag_spec='-L$libdir'
8134 hardcode_shlibpath_var=no
8143 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8144 echo "${ECHO_T}$ld_shlibs" >&6
8145 test "$ld_shlibs" = no && can_build_shared=no
8147 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8148 if test "$GCC" = yes; then
8149 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8153 # Do we need to explicitly link libc?
8155 case "x$archive_cmds_need_lc" in
8157 # Assume -lc should be added
8158 archive_cmds_need_lc=yes
8160 if test "$enable_shared" = yes && test "$GCC" = yes; then
8161 case $archive_cmds in
8163 # FIXME: we may have to deal with multi-command sequences.
8166 # Test whether the compiler implicitly links with -lc since on some
8167 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8168 # to ld, don't add -lc before -lgcc.
8169 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8170 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8175 (eval $ac_compile) 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } 2>conftest.err; then
8181 libobjs=conftest.$ac_objext
8183 wl=$lt_prog_compiler_wl
8189 lt_save_allow_undefined_flag=$allow_undefined_flag
8190 allow_undefined_flag=
8191 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8192 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }
8197 archive_cmds_need_lc=no
8199 archive_cmds_need_lc=yes
8201 allow_undefined_flag=$lt_save_allow_undefined_flag
8203 cat conftest.err 1>&5
8206 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8207 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8214 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8217 libname_spec='lib$name'
8225 shlibpath_overrides_runpath=unknown
8227 dynamic_linker="$host_os ld.so"
8228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8229 if test "$GCC" = yes; then
8230 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8231 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8232 # if the path contains ";" then we assume it to be the separator
8233 # otherwise default to the standard path separator (i.e. ":") - it is
8234 # assumed that no part of a normal pathname contains ";" but that should
8235 # okay in the real world where ";" in dirpaths is itself problematic.
8236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8241 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8243 need_lib_prefix=unknown
8244 hardcode_into_libs=no
8246 # when you set need_version to no, make sure it does not cause -set_version
8247 # flags to be left without arguments
8248 need_version=unknown
8253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8254 shlibpath_var=LIBPATH
8256 # AIX 3 has no versioning support, so we append a major version to the name.
8257 soname_spec='${libname}${release}${shared_ext}$major'
8264 hardcode_into_libs=yes
8265 if test "$host_cpu" = ia64; then
8266 # AIX 5 supports IA64
8267 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8268 shlibpath_var=LD_LIBRARY_PATH
8270 # With GCC up to 2.95.x, collect2 would create an import file
8271 # for dependence libraries. The import file would start with
8272 # the line `#! .'. This would cause the generated library to
8273 # depend on `.', always an invalid library. This was fixed in
8274 # development snapshots of GCC prior to 3.0.
8276 aix4 | aix4.[01] | aix4.[01].*)
8277 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8279 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8286 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8287 # soname into executable. Probably we can add versioning support to
8288 # collect2, so additional links can be useful in future.
8289 if test "$aix_use_runtimelinking" = yes; then
8290 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8291 # instead of lib<name>.a to let people know that these are not
8292 # typical AIX shared libraries.
8293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295 # We preserve .a as extension for shared libraries through AIX4.2
8296 # and later when we are not doing run time linking.
8297 library_names_spec='${libname}${release}.a $libname.a'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8300 shlibpath_var=LIBPATH
8305 library_names_spec='$libname.ixlibrary $libname.a'
8306 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8307 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'
8311 library_names_spec='${libname}${shared_ext}'
8312 dynamic_linker="$host_os ld.so"
8313 shlibpath_var=LIBRARY_PATH
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8320 soname_spec='${libname}${release}${shared_ext}$major'
8321 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8322 shlibpath_var=LD_LIBRARY_PATH
8323 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8324 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8325 # the default ld.so.conf also contains /usr/contrib/lib and
8326 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8327 # libtool to hard-code these into programs
8330 cygwin* | mingw* | pw32*)
8331 version_type=windows
8336 case $GCC,$host_os in
8337 yes,cygwin* | yes,mingw* | yes,pw32*)
8338 library_names_spec='$libname.dll.a'
8339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8340 postinstall_cmds='base_file=`basename \${file}`~
8341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8342 dldir=$destdir/`dirname \$dlpath`~
8343 test -d \$dldir || mkdir -p \$dldir~
8344 $install_prog $dir/$dlname \$dldir/$dlname'
8345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8346 dlpath=$dir/\$dldll~
8348 shlibpath_overrides_runpath=yes
8352 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8353 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8354 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8357 # MinGW DLLs use traditional 'lib' prefix
8358 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8359 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8360 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8361 # It is most probably a Windows format PATH printed by
8362 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8363 # path with ; separators, and with drive letters. We can handle the
8364 # drive letters (cygwin fileutils understands them), so leave them,
8365 # especially as we might pass files found there to a mingw objdump,
8366 # which wouldn't understand a cygwinified path. Ahh.
8367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8373 # pw32 DLLs use 'pw' prefix rather than 'lib'
8374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8383 dynamic_linker='Win32 ld.exe'
8384 # FIXME: first we should search . and the directory the executable is in
8388 darwin* | rhapsody*)
8389 dynamic_linker="$host_os dyld"
8393 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8394 soname_spec='${libname}${release}${major}$shared_ext'
8395 shlibpath_overrides_runpath=yes
8396 shlibpath_var=DYLD_LIBRARY_PATH
8397 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8398 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8399 if test "$GCC" = yes; then
8400 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"`
8402 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8404 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8412 soname_spec='${libname}${release}${shared_ext}$major'
8413 shlibpath_var=LD_LIBRARY_PATH
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 shlibpath_var=LD_LIBRARY_PATH
8427 shlibpath_overrides_runpath=no
8428 hardcode_into_libs=yes
8429 dynamic_linker='GNU ld.so'
8433 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8434 version_type=freebsd-$objformat
8435 case $version_type in
8437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8446 shlibpath_var=LD_LIBRARY_PATH
8449 shlibpath_overrides_runpath=yes
8451 freebsd3.01* | freebsdelf3.01*)
8452 shlibpath_overrides_runpath=yes
8453 hardcode_into_libs=yes
8456 shlibpath_overrides_runpath=no
8457 hardcode_into_libs=yes
8466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8467 soname_spec='${libname}${release}${shared_ext}$major'
8468 shlibpath_var=LD_LIBRARY_PATH
8469 hardcode_into_libs=yes
8472 hpux9* | hpux10* | hpux11*)
8473 # Give a soname corresponding to the major version so that dld.sl refuses to
8474 # link against other versions.
8481 hardcode_into_libs=yes
8482 dynamic_linker="$host_os dld.so"
8483 shlibpath_var=LD_LIBRARY_PATH
8484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486 soname_spec='${libname}${release}${shared_ext}$major'
8487 if test "X$HPUX_IA64_MODE" = X32; then
8488 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8490 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8496 hardcode_into_libs=yes
8497 dynamic_linker="$host_os dld.sl"
8498 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8501 soname_spec='${libname}${release}${shared_ext}$major'
8502 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8507 dynamic_linker="$host_os dld.sl"
8508 shlibpath_var=SHLIB_PATH
8509 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8511 soname_spec='${libname}${release}${shared_ext}$major'
8514 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8515 postinstall_cmds='chmod 555 $lib'
8518 irix5* | irix6* | nonstopux*)
8520 nonstopux*) version_type=nonstopux ;;
8522 if test "$lt_cv_prog_gnu_ld" = yes; then
8530 soname_spec='${libname}${release}${shared_ext}$major'
8531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8533 irix5* | nonstopux*)
8537 case $LD in # libtool.m4 will add one of these switches to LD
8538 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8539 libsuff= shlibsuff= libmagic=32-bit;;
8540 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8541 libsuff=32 shlibsuff=N32 libmagic=N32;;
8542 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8543 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8544 *) libsuff= shlibsuff= libmagic=never-match;;
8548 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8549 shlibpath_overrides_runpath=no
8550 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8551 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8552 hardcode_into_libs=yes
8555 # No shared lib support for Linux oldld, aout, or coff.
8556 linux*oldld* | linux*aout* | linux*coff*)
8560 # This must be Linux ELF.
8565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566 soname_spec='${libname}${release}${shared_ext}$major'
8567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 shlibpath_overrides_runpath=no
8570 # This implies no fast_install, which is unacceptable.
8571 # Some rework will be needed to allow for fast_install
8572 # before this can be enabled.
8573 hardcode_into_libs=yes
8575 # Append ld.so.conf contents to the search path
8576 if test -f /etc/ld.so.conf; then
8577 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8578 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8581 # We used to test for /lib/ld.so.1 and disable shared libraries on
8582 # powerpc, because MkLinux only supported shared libraries with the
8583 # GNU dynamic linker. Since this was broken with cross compilers,
8584 # most powerpc-linux boxes support dynamic linking these days and
8585 # people can always --disable-shared, the test was removed, and we
8586 # assume the GNU/Linux dynamic linker is in use.
8587 dynamic_linker='GNU/Linux ld.so'
8594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8595 soname_spec='${libname}${release}${shared_ext}$major'
8596 shlibpath_var=LD_LIBRARY_PATH
8597 shlibpath_overrides_runpath=no
8598 hardcode_into_libs=yes
8599 dynamic_linker='GNU ld.so'
8606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8609 dynamic_linker='NetBSD (a.out) ld.so'
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8612 soname_spec='${libname}${release}${shared_ext}$major'
8613 dynamic_linker='NetBSD ld.elf_so'
8615 shlibpath_var=LD_LIBRARY_PATH
8616 shlibpath_overrides_runpath=yes
8617 hardcode_into_libs=yes
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 shlibpath_var=LD_LIBRARY_PATH
8624 shlibpath_overrides_runpath=yes
8631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8632 soname_spec='${libname}${release}${shared_ext}$major'
8633 shlibpath_var=LD_LIBRARY_PATH
8634 shlibpath_overrides_runpath=yes
8641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8643 shlibpath_var=LD_LIBRARY_PATH
8644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8646 openbsd2.[89] | openbsd2.[89].*)
8647 shlibpath_overrides_runpath=no
8650 shlibpath_overrides_runpath=yes
8654 shlibpath_overrides_runpath=yes
8659 libname_spec='$name'
8662 library_names_spec='$libname${shared_ext} $libname.a'
8663 dynamic_linker='OS/2 ld.exe'
8664 shlibpath_var=LIBPATH
8667 osf3* | osf4* | osf5*)
8671 soname_spec='${libname}${release}${shared_ext}$major'
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8673 shlibpath_var=LD_LIBRARY_PATH
8674 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8675 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8680 soname_spec='${libname}${release}${shared_ext}$major'
8681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8682 shlibpath_var=LD_LIBRARY_PATH
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 soname_spec='${libname}${release}${shared_ext}$major'
8691 shlibpath_var=LD_LIBRARY_PATH
8692 shlibpath_overrides_runpath=yes
8693 hardcode_into_libs=yes
8694 # ldd complains unless libraries are executable
8695 postinstall_cmds='chmod +x $lib'
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8701 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8702 shlibpath_var=LD_LIBRARY_PATH
8703 shlibpath_overrides_runpath=yes
8704 if test "$with_gnu_ld" = yes; then
8710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 case $host_vendor in
8717 shlibpath_overrides_runpath=no
8719 export_dynamic_flag_spec='${wl}-Blargedynsym'
8720 runpath_var=LD_RUN_PATH
8728 shlibpath_overrides_runpath=no
8729 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8735 if test -d /usr/nec ;then
8737 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8738 soname_spec='$libname${shared_ext}.$major'
8739 shlibpath_var=LD_LIBRARY_PATH
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 shlibpath_var=LD_LIBRARY_PATH
8754 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8755 echo "${ECHO_T}$dynamic_linker" >&6
8756 test "$dynamic_linker" = no && can_build_shared=no
8758 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8759 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8761 if test -n "$hardcode_libdir_flag_spec" || \
8762 test -n "$runpath_var" || \
8763 test "X$hardcode_automatic" = "Xyes" ; then
8765 # We can hardcode non-existant directories.
8766 if test "$hardcode_direct" != no &&
8767 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8768 # have to relink, otherwise we might link with an installed library
8769 # when we should be linking with a yet-to-be-installed one
8770 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8771 test "$hardcode_minus_L" != no; then
8772 # Linking always hardcodes the temporary library directory.
8773 hardcode_action=relink
8775 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8776 hardcode_action=immediate
8779 # We cannot hardcode anything, or else we can only hardcode existing
8781 hardcode_action=unsupported
8783 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8784 echo "${ECHO_T}$hardcode_action" >&6
8786 if test "$hardcode_action" = relink; then
8787 # Fast installation is not supported
8788 enable_fast_install=no
8789 elif test "$shlibpath_overrides_runpath" = yes ||
8790 test "$enable_shared" = no; then
8791 # Fast installation is not necessary
8792 enable_fast_install=needless
8797 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8798 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8799 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8800 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8801 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8802 echo "$as_me:$LINENO: result: yes" >&5
8803 echo "${ECHO_T}yes" >&6
8805 # FIXME - insert some real tests, host_os isn't really good enough
8808 if test -n "$STRIP" ; then
8809 striplib="$STRIP -x"
8810 echo "$as_me:$LINENO: result: yes" >&5
8811 echo "${ECHO_T}yes" >&6
8813 echo "$as_me:$LINENO: result: no" >&5
8814 echo "${ECHO_T}no" >&6
8818 echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6
8824 if test "x$enable_dlopen" != xyes; then
8825 enable_dlopen=unknown
8826 enable_dlopen_self=unknown
8827 enable_dlopen_self_static=unknown
8834 lt_cv_dlopen="load_add_on"
8836 lt_cv_dlopen_self=yes
8840 lt_cv_dlopen="LoadLibrary"
8845 lt_cv_dlopen="dlopen"
8850 # if libdl is installed we need to link against it
8851 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8852 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8853 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 ac_check_lib_save_LIBS=$LIBS
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8865 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882 (eval $ac_link) 2>conftest.er1
8884 grep -v '^ *+' conftest.er1 >conftest.err
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } &&
8889 { ac_try='test -z "$ac_c_werror_flag"
8890 || test ! -s conftest.err'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try='test -s conftest$ac_exeext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_lib_dl_dlopen=yes
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 ac_cv_lib_dl_dlopen=no
8909 rm -f conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext conftest.$ac_ext
8911 LIBS=$ac_check_lib_save_LIBS
8913 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8914 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8915 if test $ac_cv_lib_dl_dlopen = yes; then
8916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8921 lt_cv_dlopen_self=yes
8928 echo "$as_me:$LINENO: checking for shl_load" >&5
8929 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8930 if test "${ac_cv_func_shl_load+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 cat >conftest.$ac_ext <<_ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8939 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8941 #define shl_load innocuous_shl_load
8943 /* System header to define __stub macros and hopefully few prototypes,
8944 which can conflict with char shl_load (); below.
8945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8946 <limits.h> exists even on freestanding compilers. */
8949 # include <limits.h>
8951 # include <assert.h>
8956 /* Override any gcc2 internal prototype to avoid an error. */
8961 /* We use char because int might match the return type of a gcc2
8962 builtin and then its argument prototype would still apply. */
8964 /* The GNU C library defines this for functions which it implements
8965 to always fail with ENOSYS. Some functions are actually named
8966 something starting with __ and the normal name is an alias. */
8967 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8970 char (*f) () = shl_load;
8979 return f != shl_load;
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>conftest.er1
8988 grep -v '^ *+' conftest.er1 >conftest.err
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_func_shl_load=yes
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_cv_func_shl_load=no
9013 rm -f conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
9016 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9017 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9018 if test $ac_cv_func_shl_load = yes; then
9019 lt_cv_dlopen="shl_load"
9021 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9022 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9023 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 ac_check_lib_save_LIBS=$LIBS
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9035 /* Override any gcc2 internal prototype to avoid an error. */
9039 /* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9050 rm -f conftest.$ac_objext conftest$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>conftest.er1
9054 grep -v '^ *+' conftest.er1 >conftest.err
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_lib_dld_shl_load=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 ac_cv_lib_dld_shl_load=no
9079 rm -f conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9083 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9084 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9085 if test $ac_cv_lib_dld_shl_load = yes; then
9086 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9088 echo "$as_me:$LINENO: checking for dlopen" >&5
9089 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9090 if test "${ac_cv_func_dlopen+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9101 #define dlopen innocuous_dlopen
9103 /* System header to define __stub macros and hopefully few prototypes,
9104 which can conflict with char dlopen (); below.
9105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9106 <limits.h> exists even on freestanding compilers. */
9109 # include <limits.h>
9111 # include <assert.h>
9116 /* Override any gcc2 internal prototype to avoid an error. */
9121 /* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9124 /* The GNU C library defines this for functions which it implements
9125 to always fail with ENOSYS. Some functions are actually named
9126 something starting with __ and the normal name is an alias. */
9127 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9130 char (*f) () = dlopen;
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146 (eval $ac_link) 2>conftest.er1
9148 grep -v '^ *+' conftest.er1 >conftest.err
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag"
9154 || test ! -s conftest.err'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_func_dlopen=yes
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_cv_func_dlopen=no
9173 rm -f conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
9176 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9177 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9178 if test $ac_cv_func_dlopen = yes; then
9179 lt_cv_dlopen="dlopen"
9181 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9182 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9183 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 ac_check_lib_save_LIBS=$LIBS
9188 cat >conftest.$ac_ext <<_ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9195 /* Override any gcc2 internal prototype to avoid an error. */
9199 /* We use char because int might match the return type of a gcc2
9200 builtin and then its argument prototype would still apply. */
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9212 (eval $ac_link) 2>conftest.er1
9214 grep -v '^ *+' conftest.er1 >conftest.err
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -z "$ac_c_werror_flag"
9220 || test ! -s conftest.err'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest$ac_exeext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 ac_cv_lib_dl_dlopen=yes
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ac_cv_lib_dl_dlopen=no
9239 rm -f conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
9241 LIBS=$ac_check_lib_save_LIBS
9243 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9244 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9245 if test $ac_cv_lib_dl_dlopen = yes; then
9246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9248 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9249 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9250 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 ac_check_lib_save_LIBS=$LIBS
9255 cat >conftest.$ac_ext <<_ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9262 /* Override any gcc2 internal prototype to avoid an error. */
9266 /* We use char because int might match the return type of a gcc2
9267 builtin and then its argument prototype would still apply. */
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279 (eval $ac_link) 2>conftest.er1
9281 grep -v '^ *+' conftest.er1 >conftest.err
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -z "$ac_c_werror_flag"
9287 || test ! -s conftest.err'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; } &&
9293 { ac_try='test -s conftest$ac_exeext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_cv_lib_svld_dlopen=yes
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 ac_cv_lib_svld_dlopen=no
9306 rm -f conftest.err conftest.$ac_objext \
9307 conftest$ac_exeext conftest.$ac_ext
9308 LIBS=$ac_check_lib_save_LIBS
9310 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9311 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9312 if test $ac_cv_lib_svld_dlopen = yes; then
9313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9315 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9316 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9317 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 ac_check_lib_save_LIBS=$LIBS
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9329 /* Override any gcc2 internal prototype to avoid an error. */
9333 /* We use char because int might match the return type of a gcc2
9334 builtin and then its argument prototype would still apply. */
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346 (eval $ac_link) 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag"
9354 || test ! -s conftest.err'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; } &&
9360 { ac_try='test -s conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_lib_dld_dld_link=yes
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_cv_lib_dld_dld_link=no
9373 rm -f conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9378 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9379 if test $ac_cv_lib_dld_dld_link = yes; then
9380 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9401 if test "x$lt_cv_dlopen" != xno; then
9407 case $lt_cv_dlopen in
9409 save_CPPFLAGS="$CPPFLAGS"
9410 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9412 save_LDFLAGS="$LDFLAGS"
9413 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9416 LIBS="$lt_cv_dlopen_libs $LIBS"
9418 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9419 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9420 if test "${lt_cv_dlopen_self+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 if test "$cross_compiling" = yes; then :
9424 lt_cv_dlopen_self=cross
9426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9427 lt_status=$lt_dlunknown
9428 cat > conftest.$ac_ext <<EOF
9429 #line 9429 "configure"
9430 #include "confdefs.h"
9439 # define LT_DLGLOBAL RTLD_GLOBAL
9442 # define LT_DLGLOBAL DL_GLOBAL
9444 # define LT_DLGLOBAL 0
9448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9449 find out it does not work in some platform. */
9450 #ifndef LT_DLLAZY_OR_NOW
9452 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9455 # define LT_DLLAZY_OR_NOW DL_LAZY
9458 # define LT_DLLAZY_OR_NOW RTLD_NOW
9461 # define LT_DLLAZY_OR_NOW DL_NOW
9463 # define LT_DLLAZY_OR_NOW 0
9471 extern "C" void exit (int);
9474 void fnord() { int i=42;}
9477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9478 int status = $lt_dlunknown;
9482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9483 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9484 /* dlclose (self); */
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491 (eval $ac_link) 2>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9495 (./conftest; exit; ) 2>/dev/null
9498 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9499 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9500 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9503 # compilation failed
9504 lt_cv_dlopen_self=no
9511 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9512 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9514 if test "x$lt_cv_dlopen_self" = xyes; then
9515 LDFLAGS="$LDFLAGS $link_static_flag"
9516 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9517 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9518 if test "${lt_cv_dlopen_self_static+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 if test "$cross_compiling" = yes; then :
9522 lt_cv_dlopen_self_static=cross
9524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9525 lt_status=$lt_dlunknown
9526 cat > conftest.$ac_ext <<EOF
9527 #line 9527 "configure"
9528 #include "confdefs.h"
9537 # define LT_DLGLOBAL RTLD_GLOBAL
9540 # define LT_DLGLOBAL DL_GLOBAL
9542 # define LT_DLGLOBAL 0
9546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9547 find out it does not work in some platform. */
9548 #ifndef LT_DLLAZY_OR_NOW
9550 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9553 # define LT_DLLAZY_OR_NOW DL_LAZY
9556 # define LT_DLLAZY_OR_NOW RTLD_NOW
9559 # define LT_DLLAZY_OR_NOW DL_NOW
9561 # define LT_DLLAZY_OR_NOW 0
9569 extern "C" void exit (int);
9572 void fnord() { int i=42;}
9575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9576 int status = $lt_dlunknown;
9580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9581 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9582 /* dlclose (self); */
9588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9589 (eval $ac_link) 2>&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9593 (./conftest; exit; ) 2>/dev/null
9596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9598 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9601 # compilation failed
9602 lt_cv_dlopen_self_static=no
9609 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9610 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9613 CPPFLAGS="$save_CPPFLAGS"
9614 LDFLAGS="$save_LDFLAGS"
9619 case $lt_cv_dlopen_self in
9620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9621 *) enable_dlopen_self=unknown ;;
9624 case $lt_cv_dlopen_self_static in
9625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9626 *) enable_dlopen_self_static=unknown ;;
9631 # Report which librarie types wil actually be built
9632 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9633 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9634 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9635 echo "${ECHO_T}$can_build_shared" >&6
9637 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9638 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9639 test "$can_build_shared" = "no" && enable_shared=no
9641 # On AIX, shared libraries and static libraries use the same namespace, and
9642 # are all built from PIC.
9645 test "$enable_shared" = yes && enable_static=no
9646 if test -n "$RANLIB"; then
9647 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9648 postinstall_cmds='$RANLIB $lib'
9653 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9654 test "$enable_shared" = yes && enable_static=no
9658 echo "$as_me:$LINENO: result: $enable_shared" >&5
9659 echo "${ECHO_T}$enable_shared" >&6
9661 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9662 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9663 # Make sure either enable_shared or enable_static is yes.
9664 test "$enable_shared" = yes || enable_static=yes
9665 echo "$as_me:$LINENO: result: $enable_static" >&5
9666 echo "${ECHO_T}$enable_static" >&6
9668 # The else clause should only fire when bootstrapping the
9669 # libtool distribution, otherwise you forgot to ship ltmain.sh
9670 # with your package, and you will get complaints that there are
9671 # no rules to generate ltmain.sh.
9672 if test -f "$ltmain"; then
9673 # See if we are running on zsh, and set the options which allow our commands through
9674 # without removal of \ escapes.
9675 if test -n "${ZSH_VERSION+set}" ; then
9676 setopt NO_GLOB_SUBST
9678 # Now quote all the things that may contain metacharacters while being
9679 # careful not to overquote the AC_SUBSTed values. We take copies of the
9680 # variables and quote the copies for generation of the libtool script.
9681 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9683 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9684 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9685 deplibs_check_method reload_flag reload_cmds need_locks \
9686 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9687 lt_cv_sys_global_symbol_to_c_name_address \
9688 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9689 old_postinstall_cmds old_postuninstall_cmds \
9693 lt_prog_compiler_wl \
9694 lt_prog_compiler_pic \
9695 lt_prog_compiler_static \
9696 lt_prog_compiler_no_builtin_flag \
9697 export_dynamic_flag_spec \
9698 thread_safe_flag_spec \
9699 whole_archive_flag_spec \
9700 enable_shared_with_static_runtimes \
9702 old_archive_from_new_cmds \
9707 compiler_lib_search_path \
9709 archive_expsym_cmds \
9711 postuninstall_cmds \
9712 old_archive_from_expsyms_cmds \
9713 allow_undefined_flag \
9715 export_symbols_cmds \
9716 hardcode_libdir_flag_spec \
9717 hardcode_libdir_flag_spec_ld \
9718 hardcode_libdir_separator \
9719 hardcode_automatic \
9721 module_expsym_cmds \
9722 lt_cv_prog_compiler_c_o \
9727 old_archive_cmds | \
9728 old_archive_from_new_cmds | \
9730 archive_expsym_cmds | \
9732 module_expsym_cmds | \
9733 old_archive_from_expsyms_cmds | \
9734 export_symbols_cmds | \
9735 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9736 postinstall_cmds | postuninstall_cmds | \
9737 old_postinstall_cmds | old_postuninstall_cmds | \
9738 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9739 # Double-quote double-evaled strings.
9740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9749 *'\$0 --fallback-echo"')
9750 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9755 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9757 { echo "$as_me:$LINENO: creating $ofile" >&5
9758 echo "$as_me: creating $ofile" >&6;}
9760 cat <<__EOF__ >> "$cfgfile"
9763 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9764 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9765 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9767 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9768 # Free Software Foundation, Inc.
9770 # This file is part of GNU Libtool:
9771 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9773 # This program is free software; you can redistribute it and/or modify
9774 # it under the terms of the GNU General Public License as published by
9775 # the Free Software Foundation; either version 2 of the License, or
9776 # (at your option) any later version.
9778 # This program is distributed in the hope that it will be useful, but
9779 # WITHOUT ANY WARRANTY; without even the implied warranty of
9780 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9781 # General Public License for more details.
9783 # You should have received a copy of the GNU General Public License
9784 # along with this program; if not, write to the Free Software
9785 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9787 # As a special exception to the GNU General Public License, if you
9788 # distribute this file as part of a program that contains a
9789 # configuration script generated by Autoconf, you may include it under
9790 # the same distribution terms that you use for the rest of that program.
9792 # A sed program that does not truncate output.
9795 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9796 Xsed="$SED -e s/^X//"
9798 # The HP-UX ksh and POSIX shell print the target directory to stdout
9800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9802 # The names of the tagged configurations supported by this script.
9805 # ### BEGIN LIBTOOL CONFIG
9807 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9809 # Shell to use when invoking shell scripts.
9812 # Whether or not to build shared libraries.
9813 build_libtool_libs=$enable_shared
9815 # Whether or not to build static libraries.
9816 build_old_libs=$enable_static
9818 # Whether or not to add -lc for building shared libraries.
9819 build_libtool_need_lc=$archive_cmds_need_lc
9821 # Whether or not to disallow shared libs when runtime libs are static
9822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9824 # Whether or not to optimize for fast installation.
9825 fast_install=$enable_fast_install
9828 host_alias=$host_alias
9831 # An echo program that does not interpret backslashes.
9836 AR_FLAGS=$lt_AR_FLAGS
9841 # A language-specific compiler.
9844 # Is the compiler the GNU C compiler?
9850 # The linker used to build libraries.
9853 # Whether we need hard or soft links.
9856 # A BSD-compatible nm program.
9859 # A symbol stripping program
9862 # Used to examine libraries when file_magic_cmd begins "file"
9863 MAGIC_CMD=$MAGIC_CMD
9865 # Used on cygwin: DLL creation program.
9868 # Used on cygwin: object dumper.
9871 # Used on cygwin: assembler.
9874 # The name of the directory that contains temporary libtool files.
9877 # How to create reloadable object files.
9878 reload_flag=$lt_reload_flag
9879 reload_cmds=$lt_reload_cmds
9881 # How to pass a linker flag through the compiler.
9882 wl=$lt_lt_prog_compiler_wl
9884 # Object file suffix (normally "o").
9887 # Old archive suffix (normally "a").
9890 # Shared library suffix (normally ".so").
9891 shrext_cmds='$shrext_cmds'
9893 # Executable file suffix (normally "").
9896 # Additional compiler flags for building library objects.
9897 pic_flag=$lt_lt_prog_compiler_pic
9900 # What is the maximum length of a command?
9901 max_cmd_len=$lt_cv_sys_max_cmd_len
9903 # Does compiler simultaneously support -c and -o options?
9904 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9906 # Must we lock files when doing compilation ?
9907 need_locks=$lt_need_locks
9909 # Do we need the lib prefix for modules?
9910 need_lib_prefix=$need_lib_prefix
9912 # Do we need a version for libraries?
9913 need_version=$need_version
9915 # Whether dlopen is supported.
9916 dlopen_support=$enable_dlopen
9918 # Whether dlopen of programs is supported.
9919 dlopen_self=$enable_dlopen_self
9921 # Whether dlopen of statically linked programs is supported.
9922 dlopen_self_static=$enable_dlopen_self_static
9924 # Compiler flag to prevent dynamic linking.
9925 link_static_flag=$lt_lt_prog_compiler_static
9927 # Compiler flag to turn off builtin functions.
9928 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9930 # Compiler flag to allow reflexive dlopens.
9931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9933 # Compiler flag to generate shared objects directly from archives.
9934 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9936 # Compiler flag to generate thread-safe objects.
9937 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9939 # Library versioning type.
9940 version_type=$version_type
9942 # Format of library name prefix.
9943 libname_spec=$lt_libname_spec
9945 # List of archive names. First name is the real one, the rest are links.
9946 # The last name is the one that the linker finds with -lNAME.
9947 library_names_spec=$lt_library_names_spec
9949 # The coded name of the library, if different from the real name.
9950 soname_spec=$lt_soname_spec
9952 # Commands used to build and install an old-style archive.
9954 old_archive_cmds=$lt_old_archive_cmds
9955 old_postinstall_cmds=$lt_old_postinstall_cmds
9956 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9958 # Create an old-style archive from a shared archive.
9959 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9961 # Create a temporary old-style archive to link instead of a shared archive.
9962 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9964 # Commands used to build and install a shared archive.
9965 archive_cmds=$lt_archive_cmds
9966 archive_expsym_cmds=$lt_archive_expsym_cmds
9967 postinstall_cmds=$lt_postinstall_cmds
9968 postuninstall_cmds=$lt_postuninstall_cmds
9970 # Commands used to build a loadable module (assumed same as above if empty)
9971 module_cmds=$lt_module_cmds
9972 module_expsym_cmds=$lt_module_expsym_cmds
9974 # Commands to strip libraries.
9975 old_striplib=$lt_old_striplib
9976 striplib=$lt_striplib
9978 # Dependencies to place before the objects being linked to create a
9980 predep_objects=$lt_predep_objects
9982 # Dependencies to place after the objects being linked to create a
9984 postdep_objects=$lt_postdep_objects
9986 # Dependencies to place before the objects being linked to create a
9990 # Dependencies to place after the objects being linked to create a
9992 postdeps=$lt_postdeps
9994 # The library search path used internally by the compiler when linking
9996 compiler_lib_search_path=$lt_compiler_lib_search_path
9998 # Method to check whether dependent libraries are shared objects.
9999 deplibs_check_method=$lt_deplibs_check_method
10001 # Command to use when deplibs_check_method == file_magic.
10002 file_magic_cmd=$lt_file_magic_cmd
10004 # Flag that allows shared libraries with undefined symbols to be built.
10005 allow_undefined_flag=$lt_allow_undefined_flag
10007 # Flag that forces no undefined symbols.
10008 no_undefined_flag=$lt_no_undefined_flag
10010 # Commands used to finish a libtool library installation in a directory.
10011 finish_cmds=$lt_finish_cmds
10013 # Same as above, but a single script fragment to be evaled but not shown.
10014 finish_eval=$lt_finish_eval
10016 # Take the output of nm and produce a listing of raw symbols and C names.
10017 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10019 # Transform the output of nm in a proper C declaration
10020 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10022 # Transform the output of nm in a C name address pair
10023 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10025 # This is the shared library runtime path variable.
10026 runpath_var=$runpath_var
10028 # This is the shared library path variable.
10029 shlibpath_var=$shlibpath_var
10031 # Is shlibpath searched before the hard-coded library search path?
10032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10034 # How to hardcode a shared library path into an executable.
10035 hardcode_action=$hardcode_action
10037 # Whether we should hardcode library paths into libraries.
10038 hardcode_into_libs=$hardcode_into_libs
10040 # Flag to hardcode \$libdir into a binary during linking.
10041 # This must work even if \$libdir does not exist.
10042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10044 # If ld is used when linking, flag to hardcode \$libdir into
10045 # a binary during linking. This must work even if \$libdir does
10047 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10049 # Whether we need a single -rpath flag with a separated argument.
10050 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10052 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10053 # resulting binary.
10054 hardcode_direct=$hardcode_direct
10056 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10057 # resulting binary.
10058 hardcode_minus_L=$hardcode_minus_L
10060 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10061 # the resulting binary.
10062 hardcode_shlibpath_var=$hardcode_shlibpath_var
10064 # Set to yes if building a shared library automatically hardcodes DIR into the library
10065 # and all subsequent libraries and executables linked against it.
10066 hardcode_automatic=$hardcode_automatic
10068 # Variables whose values should be saved in libtool wrapper scripts and
10069 # restored at relink time.
10070 variables_saved_for_relink="$variables_saved_for_relink"
10072 # Whether libtool must link a program against all its dependency libraries.
10073 link_all_deplibs=$link_all_deplibs
10075 # Compile-time system search path for libraries
10076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10078 # Run-time system search path for libraries
10079 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10081 # Fix the shell variable \$srcfile for the compiler.
10082 fix_srcfile_path="$fix_srcfile_path"
10084 # Set to yes if exported symbols are required.
10085 always_export_symbols=$always_export_symbols
10087 # The commands to list exported symbols.
10088 export_symbols_cmds=$lt_export_symbols_cmds
10090 # The commands to extract the exported symbol list from a shared archive.
10091 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10093 # Symbols that should not be listed in the preloaded symbols.
10094 exclude_expsyms=$lt_exclude_expsyms
10096 # Symbols that must always be exported.
10097 include_expsyms=$lt_include_expsyms
10099 # ### END LIBTOOL CONFIG
10106 cat <<\EOF >> "$cfgfile"
10108 # AIX sometimes has problems with the GCC collect2 program. For some
10109 # reason, if we set the COLLECT_NAMES environment variable, the problems
10110 # vanish in a puff of smoke.
10111 if test "X${COLLECT_NAMES+set}" != Xset; then
10113 export COLLECT_NAMES
10119 # We use sed instead of cat because bash on DJGPP gets confused if
10120 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10121 # text mode, it properly converts lines to CR/LF. This bash problem
10122 # is reportedly fixed, but why not run on old versions too?
10123 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10125 mv -f "$cfgfile" "$ofile" || \
10126 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10130 # If there is no Makefile yet, we rely on a make rule to execute
10131 # `config.status --recheck' to rerun these tests and create the
10132 # libtool script then.
10133 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10134 if test -f "$ltmain_in"; then
10135 test -f Makefile && make "$ltmain"
10141 ac_cpp='$CPP $CPPFLAGS'
10142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10149 # Check whether --with-tags or --without-tags was given.
10150 if test "${with_tags+set}" = set; then
10151 withval="$with_tags"
10152 tagnames="$withval"
10155 if test -f "$ltmain" && test -n "$tagnames"; then
10156 if test ! -f "${ofile}"; then
10157 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10158 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10161 if test -z "$LTCC"; then
10162 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10163 if test -z "$LTCC"; then
10164 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10165 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10168 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10172 # Extract list of available tagged configurations in $ofile.
10173 # Note that this assumes the entire list is on one line.
10174 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10176 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10177 for tagname in $tagnames; do
10179 # Check whether tagname contains only valid characters
10180 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10182 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10183 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10184 { (exit 1); exit 1; }; }
10188 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10190 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10191 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10192 { (exit 1); exit 1; }; }
10195 # Update the list of available tags.
10196 if test -n "$tagname"; then
10197 echo appending configuration tag "$tagname" to $ofile
10201 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10202 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10203 (test "X$CXX" != "Xg++"))) ; then
10205 ac_cpp='$CXXCPP $CPPFLAGS'
10206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10213 archive_cmds_need_lc_CXX=no
10214 allow_undefined_flag_CXX=
10215 always_export_symbols_CXX=no
10216 archive_expsym_cmds_CXX=
10217 export_dynamic_flag_spec_CXX=
10218 hardcode_direct_CXX=no
10219 hardcode_libdir_flag_spec_CXX=
10220 hardcode_libdir_flag_spec_ld_CXX=
10221 hardcode_libdir_separator_CXX=
10222 hardcode_minus_L_CXX=no
10223 hardcode_automatic_CXX=no
10225 module_expsym_cmds_CXX=
10226 link_all_deplibs_CXX=unknown
10227 old_archive_cmds_CXX=$old_archive_cmds
10228 no_undefined_flag_CXX=
10229 whole_archive_flag_spec_CXX=
10230 enable_shared_with_static_runtimes_CXX=no
10232 # Dependencies to place before and after the object being linked:
10233 predep_objects_CXX=
10234 postdep_objects_CXX=
10237 compiler_lib_search_path_CXX=
10239 # Source file extension for C++ test sources.
10242 # Object file extension for compiled C++ test sources.
10246 # Code to be used in simple compile tests
10247 lt_simple_compile_test_code="int some_variable = 0;\n"
10249 # Code to be used in simple link tests
10250 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10252 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10254 # If no C compiler was specified, use CC.
10257 # Allow CC to be a program name with arguments.
10261 # Allow CC to be a program name with arguments.
10266 lt_save_with_gnu_ld=$with_gnu_ld
10267 lt_save_path_LD=$lt_cv_path_LD
10268 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10269 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10271 unset lt_cv_prog_gnu_ld
10273 if test -n "${lt_cv_path_LDCXX+set}"; then
10274 lt_cv_path_LD=$lt_cv_path_LDCXX
10276 unset lt_cv_path_LD
10278 test -z "${LDCXX+set}" || LD=$LDCXX
10282 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10284 # We don't want -fno-exception wen compiling C++ code, so set the
10285 # no_builtin_flag separately
10286 if test "$GXX" = yes; then
10287 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10289 lt_prog_compiler_no_builtin_flag_CXX=
10292 if test "$GXX" = yes; then
10293 # Set up default GNU C++ configuration
10296 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10297 if test "${with_gnu_ld+set}" = set; then
10298 withval="$with_gnu_ld"
10299 test "$withval" = no || with_gnu_ld=yes
10304 if test "$GCC" = yes; then
10305 # Check if gcc -print-prog-name=ld gives a path.
10306 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10307 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10310 # gcc leaves a trailing carriage return which upsets mingw
10311 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10313 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10316 # Accept absolute paths.
10318 re_direlt='/[^/][^/]*/\.\./'
10319 # Canonicalize the pathname of ld
10320 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10321 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10322 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10324 test -z "$LD" && LD="$ac_prog"
10327 # If it fails, then pretend we aren't using GCC.
10331 # If it is relative, then search for the first ld in PATH.
10332 with_gnu_ld=unknown
10335 elif test "$with_gnu_ld" = yes; then
10336 echo "$as_me:$LINENO: checking for GNU ld" >&5
10337 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10339 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10340 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10342 if test "${lt_cv_path_LD+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 if test -z "$LD"; then
10346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10347 for ac_dir in $PATH; do
10349 test -z "$ac_dir" && ac_dir=.
10350 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10351 lt_cv_path_LD="$ac_dir/$ac_prog"
10352 # Check to see if the program is GNU ld. I'd rather use --version,
10353 # but apparently some GNU ld's only accept -v.
10354 # Break only if it was the GNU/non-GNU ld that we prefer.
10355 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10356 *GNU* | *'with BFD'*)
10357 test "$with_gnu_ld" != no && break
10360 test "$with_gnu_ld" != yes && break
10367 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10371 LD="$lt_cv_path_LD"
10372 if test -n "$LD"; then
10373 echo "$as_me:$LINENO: result: $LD" >&5
10374 echo "${ECHO_T}$LD" >&6
10376 echo "$as_me:$LINENO: result: no" >&5
10377 echo "${ECHO_T}no" >&6
10379 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10380 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10381 { (exit 1); exit 1; }; }
10382 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10383 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10384 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10388 case `$LD -v 2>&1 </dev/null` in
10389 *GNU* | *'with BFD'*)
10390 lt_cv_prog_gnu_ld=yes
10393 lt_cv_prog_gnu_ld=no
10397 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10398 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10399 with_gnu_ld=$lt_cv_prog_gnu_ld
10403 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10404 # archiving commands below assume that GNU ld is being used.
10405 if test "$with_gnu_ld" = yes; then
10406 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10407 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'
10409 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10412 # If archive_cmds runs LD, not CC, wlarc should be empty
10413 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10414 # investigate it a little bit more. (MM)
10417 # ancient GNU ld didn't support --whole-archive et. al.
10418 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10419 grep 'no-whole-archive' > /dev/null; then
10420 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10422 whole_archive_flag_spec_CXX=
10428 # A generic and very simple default shared library creation
10429 # command for GNU C++ for the case where it uses the native
10430 # linker, instead of GNU ld. If possible, this setting should
10431 # overridden to take advantage of the native linker features on
10432 # the platform it is being used on.
10433 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10436 # Commands to make compiler produce verbose output that lists
10437 # what "hidden" libraries, object files and flags are used when
10438 # linking a shared library.
10439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10447 # PORTME: fill in a description of your system's C++ link characteristics
10448 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10449 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10453 # FIXME: insert proper C++ library support
10457 if test "$host_cpu" = ia64; then
10458 # On IA64, the linker does run time linking by default, so we don't
10459 # have to do anything special.
10460 aix_use_runtimelinking=no
10461 exp_sym_flag='-Bexport'
10464 aix_use_runtimelinking=no
10466 # Test if we are trying to use run time linking or normal
10467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10468 # need to do runtime linking.
10469 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10470 for ld_flag in $LDFLAGS; do
10473 aix_use_runtimelinking=yes
10480 exp_sym_flag='-bexport'
10481 no_entry_flag='-bnoentry'
10484 # When large executables or shared objects are built, AIX ld can
10485 # have problems creating the table of contents. If linking a library
10486 # or program results in "error TOC overflow" add -mminimal-toc to
10487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10490 archive_cmds_CXX=''
10491 hardcode_direct_CXX=yes
10492 hardcode_libdir_separator_CXX=':'
10493 link_all_deplibs_CXX=yes
10495 if test "$GXX" = yes; then
10496 case $host_os in aix4.012|aix4.012.*)
10497 # We only want to do this on AIX 4.2 and lower, the check
10498 # below for broken collect2 doesn't work under 4.3+
10499 collect2name=`${CC} -print-prog-name=collect2`
10500 if test -f "$collect2name" && \
10501 strings "$collect2name" | grep resolve_lib_name >/dev/null
10503 # We have reworked collect2
10504 hardcode_direct_CXX=yes
10506 # We have old collect2
10507 hardcode_direct_CXX=unsupported
10508 # It fails to find uninstalled libraries when the uninstalled
10509 # path is not listed in the libpath. Setting hardcode_minus_L
10510 # to unsupported forces relinking
10511 hardcode_minus_L_CXX=yes
10512 hardcode_libdir_flag_spec_CXX='-L$libdir'
10513 hardcode_libdir_separator_CXX=
10516 shared_flag='-shared'
10519 if test "$host_cpu" = ia64; then
10520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10521 # chokes on -Wl,-G. The following line is correct:
10524 if test "$aix_use_runtimelinking" = yes; then
10525 shared_flag='${wl}-G'
10527 shared_flag='${wl}-bM:SRE'
10532 # It seems that -bexpall does not export symbols beginning with
10533 # underscore (_), so it is better to generate a list of symbols to export.
10534 always_export_symbols_CXX=yes
10535 if test "$aix_use_runtimelinking" = yes; then
10536 # Warning - without using the other runtime loading flags (-brtl),
10537 # -berok will link without error, but may produce a broken library.
10538 allow_undefined_flag_CXX='-berok'
10539 # Determine the default libpath from the value encoded in an empty executable.
10540 cat >conftest.$ac_ext <<_ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>conftest.er1
10559 grep -v '^ *+' conftest.er1 >conftest.err
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_cxx_werror_flag"
10565 || test ! -s conftest.err'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest$ac_exeext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10580 # Check for a 64-bit object if we didn't find anything.
10581 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; }
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10588 rm -f conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10592 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10594 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"
10596 if test "$host_cpu" = ia64; then
10597 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10598 allow_undefined_flag_CXX="-z nodefs"
10599 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"
10601 # Determine the default libpath from the value encoded in an empty executable.
10602 cat >conftest.$ac_ext <<_ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10617 rm -f conftest.$ac_objext conftest$ac_exeext
10618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10619 (eval $ac_link) 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); } &&
10626 { ac_try='test -z "$ac_cxx_werror_flag"
10627 || test ! -s conftest.err'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest$ac_exeext'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10642 # Check for a 64-bit object if we didn't find anything.
10643 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; }
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10650 rm -f conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10655 # Warning - without using the other run time loading flags,
10656 # -berok will link without error, but may produce a broken library.
10657 no_undefined_flag_CXX=' ${wl}-bernotok'
10658 allow_undefined_flag_CXX=' ${wl}-berok'
10659 # -bexpall does not export symbols beginning with underscore (_)
10660 always_export_symbols_CXX=yes
10661 # Exported symbols can be pulled into shared objects from archives
10662 whole_archive_flag_spec_CXX=' '
10663 archive_cmds_need_lc_CXX=yes
10664 # This is similar to how AIX traditionally builds it's shared libraries.
10665 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'
10670 case $cc_basename in
10672 # FIXME: insert proper C++ library support
10679 cygwin* | mingw* | pw32*)
10680 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10681 # as there is no search path for DLLs.
10682 hardcode_libdir_flag_spec_CXX='-L$libdir'
10683 allow_undefined_flag_CXX=unsupported
10684 always_export_symbols_CXX=no
10685 enable_shared_with_static_runtimes_CXX=yes
10687 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10688 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'
10689 # If the export-symbols file already is a .def file (1st line
10690 # is EXPORTS), use it as is; otherwise, prepend...
10691 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10692 cp $export_symbols $output_objdir/$soname.def;
10694 echo EXPORTS > $output_objdir/$soname.def;
10695 cat $export_symbols >> $output_objdir/$soname.def;
10697 $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'
10702 darwin* | rhapsody*)
10704 rhapsody* | darwin1.[012])
10705 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10708 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10709 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10711 case ${MACOSX_DEPLOYMENT_TARGET} in
10713 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10716 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10722 archive_cmds_need_lc_CXX=no
10723 hardcode_direct_CXX=no
10724 hardcode_automatic_CXX=yes
10725 hardcode_shlibpath_var_CXX=unsupported
10726 whole_archive_flag_spec_CXX=''
10727 link_all_deplibs_CXX=yes
10729 if test "$GXX" = yes ; then
10730 lt_int_apple_cc_single_mod=no
10731 output_verbose_link_cmd='echo'
10732 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10733 lt_int_apple_cc_single_mod=yes
10735 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10736 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10738 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'
10740 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10741 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10742 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10743 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}'
10745 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}'
10747 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}'
10749 case "$cc_basename" in
10751 output_verbose_link_cmd='echo'
10752 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'
10753 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10754 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10755 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}'
10756 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}'
10766 case $cc_basename in
10768 # FIXME: insert proper C++ library support
10772 # Green Hills C++ Compiler
10773 # FIXME: insert proper C++ library support
10777 # FIXME: insert proper C++ library support
10783 # C++ shared libraries reported to be fairly broken before switch to ELF
10787 archive_cmds_need_lc_CXX=no
10789 freebsd* | kfreebsd*-gnu)
10790 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10797 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10798 hardcode_libdir_separator_CXX=:
10799 export_dynamic_flag_spec_CXX='${wl}-E'
10800 hardcode_direct_CXX=yes
10801 hardcode_minus_L_CXX=yes # Not in the search PATH,
10802 # but as the default
10803 # location of the library.
10805 case $cc_basename in
10807 # FIXME: insert proper C++ library support
10811 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'
10812 # Commands to make compiler produce verbose output that lists
10813 # what "hidden" libraries, object files and flags are used when
10814 # linking a shared library.
10816 # There doesn't appear to be a way to prevent this compiler from
10817 # explicitly linking system object files so we need to strip them
10818 # from the output so that they don't get included in the library
10820 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'
10823 if test "$GXX" = yes; then
10824 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'
10826 # FIXME: insert proper C++ library support
10833 if test $with_gnu_ld = no; then
10834 case "$host_cpu" in
10836 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10837 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10838 hardcode_libdir_separator_CXX=:
10841 hardcode_libdir_flag_spec_CXX='-L$libdir'
10844 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10845 hardcode_libdir_separator_CXX=:
10846 export_dynamic_flag_spec_CXX='${wl}-E'
10850 case "$host_cpu" in
10852 hardcode_direct_CXX=no
10853 hardcode_shlibpath_var_CXX=no
10856 hardcode_direct_CXX=no
10857 hardcode_shlibpath_var_CXX=no
10858 hardcode_minus_L_CXX=yes # Not in the search PATH,
10859 # but as the default
10860 # location of the library.
10863 hardcode_direct_CXX=yes
10864 hardcode_minus_L_CXX=yes # Not in the search PATH,
10865 # but as the default
10866 # location of the library.
10870 case $cc_basename in
10872 # FIXME: insert proper C++ library support
10876 case "$host_cpu" in
10878 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10881 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10884 # Commands to make compiler produce verbose output that lists
10885 # what "hidden" libraries, object files and flags are used when
10886 # linking a shared library.
10888 # There doesn't appear to be a way to prevent this compiler from
10889 # explicitly linking system object files so we need to strip them
10890 # from the output so that they don't get included in the library
10892 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'
10895 if test "$GXX" = yes; then
10896 if test $with_gnu_ld = no; then
10897 case "$host_cpu" in
10899 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10902 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'
10907 # FIXME: insert proper C++ library support
10914 case $cc_basename in
10917 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'
10919 # Archives containing C++ object files must be created using
10920 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10921 # necessary to make sure instantiated templates are included
10923 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10926 if test "$GXX" = yes; then
10927 if test "$with_gnu_ld" = no; then
10928 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'
10930 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'
10933 link_all_deplibs_CXX=yes
10936 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10937 hardcode_libdir_separator_CXX=:
10940 case $cc_basename in
10942 # Kuck and Associates, Inc. (KAI) C++ Compiler
10944 # KCC will only create a shared library if the output file
10945 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10946 # to its proper name (with version) after linking.
10947 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'
10948 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'
10949 # Commands to make compiler produce verbose output that lists
10950 # what "hidden" libraries, object files and flags are used when
10951 # linking a shared library.
10953 # There doesn't appear to be a way to prevent this compiler from
10954 # explicitly linking system object files so we need to strip them
10955 # from the output so that they don't get included in the library
10957 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'
10959 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10960 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10962 # Archives containing C++ object files must be created using
10963 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10964 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10969 # version 8.0 and above of icpc choke on multiply defined symbols
10970 # if we add $predep_objects and $postdep_objects, however 7.1 and
10971 # earlier do not add the objects themselves.
10972 case `$CC -V 2>&1` in
10974 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10975 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'
10977 *) # Version 8.0 or newer
10978 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10979 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10982 archive_cmds_need_lc_CXX=no
10983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10985 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10990 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'
10992 runpath_var=LD_RUN_PATH
10993 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10994 hardcode_libdir_separator_CXX=:
10996 # Commands to make compiler produce verbose output that lists
10997 # what "hidden" libraries, object files and flags are used when
10998 # linking a shared library.
11000 # There doesn't appear to be a way to prevent this compiler from
11001 # explicitly linking system object files so we need to strip them
11002 # from the output so that they don't get included in the library
11004 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'
11009 # FIXME: insert proper C++ library support
11013 # FIXME: insert proper C++ library support
11017 case $cc_basename in
11019 # FIXME: insert proper C++ library support
11023 # FIXME: insert proper C++ library support
11029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11030 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11032 hardcode_libdir_flag_spec_CXX='-R$libdir'
11033 hardcode_direct_CXX=yes
11034 hardcode_shlibpath_var_CXX=no
11036 # Workaround some broken pre-1.5 toolchains
11037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11040 # C++ shared libraries are fairly broken
11044 hardcode_direct_CXX=yes
11045 hardcode_shlibpath_var_CXX=no
11046 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11049 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11050 export_dynamic_flag_spec_CXX='${wl}-E'
11051 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11053 output_verbose_link_cmd='echo'
11056 case $cc_basename in
11058 # Kuck and Associates, Inc. (KAI) C++ Compiler
11060 # KCC will only create a shared library if the output file
11061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11062 # to its proper name (with version) after linking.
11063 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'
11065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11066 hardcode_libdir_separator_CXX=:
11068 # Archives containing C++ object files must be created using
11069 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11070 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11074 # Rational C++ 2.4.1
11075 # FIXME: insert proper C++ library support
11079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11080 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'
11082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11083 hardcode_libdir_separator_CXX=:
11085 # Commands to make compiler produce verbose output that lists
11086 # what "hidden" libraries, object files and flags are used when
11087 # linking a shared library.
11089 # There doesn't appear to be a way to prevent this compiler from
11090 # explicitly linking system object files so we need to strip them
11091 # from the output so that they don't get included in the library
11093 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'
11096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11098 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'
11100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11101 hardcode_libdir_separator_CXX=:
11103 # Commands to make compiler produce verbose output that lists
11104 # what "hidden" libraries, object files and flags are used when
11105 # linking a shared library.
11106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11109 # FIXME: insert proper C++ library support
11116 case $cc_basename in
11118 # Kuck and Associates, Inc. (KAI) C++ Compiler
11120 # KCC will only create a shared library if the output file
11121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11122 # to its proper name (with version) after linking.
11123 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'
11125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11126 hardcode_libdir_separator_CXX=:
11128 # Archives containing C++ object files must be created using
11129 # the KAI C++ compiler.
11130 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11133 # Rational C++ 2.4.1
11134 # FIXME: insert proper C++ library support
11138 allow_undefined_flag_CXX=' -expect_unresolved \*'
11139 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'
11140 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11141 echo "-hidden">> $lib.exp~
11142 $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~
11145 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11146 hardcode_libdir_separator_CXX=:
11148 # Commands to make compiler produce verbose output that lists
11149 # what "hidden" libraries, object files and flags are used when
11150 # linking a shared library.
11152 # There doesn't appear to be a way to prevent this compiler from
11153 # explicitly linking system object files so we need to strip them
11154 # from the output so that they don't get included in the library
11156 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'
11159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11161 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'
11163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11164 hardcode_libdir_separator_CXX=:
11166 # Commands to make compiler produce verbose output that lists
11167 # what "hidden" libraries, object files and flags are used when
11168 # linking a shared library.
11169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11172 # FIXME: insert proper C++ library support
11179 # FIXME: insert proper C++ library support
11183 archive_cmds_need_lc_CXX=no
11184 case $cc_basename in
11186 # FIXME: insert proper C++ library support
11190 # FIXME: insert proper C++ library support
11196 case $cc_basename in
11199 # FIXME: insert proper C++ library support
11204 # FIXME: insert proper C++ library support
11208 # FIXME: insert proper C++ library support
11214 case $cc_basename in
11216 # Sun C++ 4.2, 5.x and Centerline C++
11217 no_undefined_flag_CXX=' -zdefs'
11218 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11219 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11220 $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'
11222 hardcode_libdir_flag_spec_CXX='-R$libdir'
11223 hardcode_shlibpath_var_CXX=no
11225 solaris2.0-5 | solaris2.0-5.*) ;;
11227 # The C++ compiler is used as linker so we must use $wl
11228 # flag to pass the commands to the underlying system
11230 # Supported since Solaris 2.6 (maybe 2.5.1?)
11231 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11234 link_all_deplibs_CXX=yes
11236 # Commands to make compiler produce verbose output that lists
11237 # what "hidden" libraries, object files and flags are used when
11238 # linking a shared library.
11240 # There doesn't appear to be a way to prevent this compiler from
11241 # explicitly linking system object files so we need to strip them
11242 # from the output so that they don't get included in the library
11244 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'
11246 # Archives containing C++ object files must be created using
11247 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11248 # necessary to make sure instantiated templates are included
11250 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11253 # Green Hills C++ Compiler
11254 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11256 # The C++ compiler must be used to create the archive.
11257 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11260 # GNU C++ compiler with Solaris linker
11261 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11262 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11263 if $CC --version | grep -v '^2\.7' > /dev/null; then
11264 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11265 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11266 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11268 # Commands to make compiler produce verbose output that lists
11269 # what "hidden" libraries, object files and flags are used when
11270 # linking a shared library.
11271 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11273 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11275 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11276 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11277 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11279 # Commands to make compiler produce verbose output that lists
11280 # what "hidden" libraries, object files and flags are used when
11281 # linking a shared library.
11282 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11285 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11290 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11291 archive_cmds_need_lc_CXX=no
11294 case $cc_basename in
11296 # NonStop-UX NCC 3.20
11297 # FIXME: insert proper C++ library support
11301 # FIXME: insert proper C++ library support
11307 # FIXME: insert proper C++ library support
11311 # FIXME: insert proper C++ library support
11315 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11316 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11317 test "$ld_shlibs_CXX" = no && can_build_shared=no
11323 cat > conftest.$ac_ext <<EOF
11327 Foo (void) { a = 0; }
11333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11334 (eval $ac_compile) 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; then
11338 # Parse the compiler output and extract the necessary
11339 # objects, libraries and library flags.
11341 # Sentinel used to keep track of whether or not we are before
11342 # the conftest object file.
11343 pre_test_object_deps_done=no
11345 # The `*' in the case matches for architectures that use `case' in
11346 # $output_verbose_cmd can trigger glob expansion during the loop
11347 # eval without this substitution.
11348 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11350 for p in `eval $output_verbose_link_cmd`; do
11354 # Some compilers place space between "-{L,R}" and the path.
11355 # Remove the space.
11356 if test $p = "-L" \
11357 || test $p = "-R"; then
11364 if test "$pre_test_object_deps_done" = no; then
11367 # Internal compiler library paths should come after those
11368 # provided the user. The postdeps already come after the
11369 # user supplied libs so there is no need to process them.
11370 if test -z "$compiler_lib_search_path_CXX"; then
11371 compiler_lib_search_path_CXX="${prev}${p}"
11373 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11376 # The "-l" case would never come before the object being
11377 # linked, so don't bother handling this case.
11380 if test -z "$postdeps_CXX"; then
11381 postdeps_CXX="${prev}${p}"
11383 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11389 # This assumes that the test object file only shows up
11390 # once in the compiler output.
11391 if test "$p" = "conftest.$objext"; then
11392 pre_test_object_deps_done=yes
11396 if test "$pre_test_object_deps_done" = no; then
11397 if test -z "$predep_objects_CXX"; then
11398 predep_objects_CXX="$p"
11400 predep_objects_CXX="$predep_objects_CXX $p"
11403 if test -z "$postdep_objects_CXX"; then
11404 postdep_objects_CXX="$p"
11406 postdep_objects_CXX="$postdep_objects_CXX $p"
11411 *) ;; # Ignore the rest.
11419 echo "libtool.m4: error: problem compiling CXX test program"
11422 $rm -f confest.$objext
11424 case " $postdeps_CXX " in
11425 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11428 lt_prog_compiler_wl_CXX=
11429 lt_prog_compiler_pic_CXX=
11430 lt_prog_compiler_static_CXX=
11432 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11433 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11435 # C++ specific cases for pic, static, wl, etc.
11436 if test "$GXX" = yes; then
11437 lt_prog_compiler_wl_CXX='-Wl,'
11438 lt_prog_compiler_static_CXX='-static'
11442 # All AIX code is PIC.
11443 if test "$host_cpu" = ia64; then
11444 # AIX 5 now supports IA64 processor
11445 lt_prog_compiler_static_CXX='-Bstatic'
11449 # FIXME: we need at least 68020 code to build shared libraries, but
11450 # adding the `-m68020' flag to GCC prevents building anything better,
11452 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11454 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11455 # PIC is the default for these OSes.
11457 mingw* | os2* | pw32*)
11458 # This hack is so that the source file can tell whether it is being
11459 # built for inclusion in a dll (and should export symbols for example).
11460 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11462 darwin* | rhapsody*)
11463 # PIC is the default on this platform
11464 # Common symbols not allowed in MH_DYLIB files
11465 lt_prog_compiler_pic_CXX='-fno-common'
11468 # DJGPP does not support shared libraries at all
11469 lt_prog_compiler_pic_CXX=
11472 if test -d /usr/nec; then
11473 lt_prog_compiler_pic_CXX=-Kconform_pic
11477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11478 # not for PA HP-UX.
11479 case "$host_cpu" in
11483 lt_prog_compiler_pic_CXX='-fPIC'
11488 lt_prog_compiler_pic_CXX='-fPIC'
11494 # All AIX code is PIC.
11495 if test "$host_cpu" = ia64; then
11496 # AIX 5 now supports IA64 processor
11497 lt_prog_compiler_static_CXX='-Bstatic'
11499 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11503 case $cc_basename in
11505 # Green Hills C++ Compiler
11506 # _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"
11511 # PIC is the default on this platform
11512 # Common symbols not allowed in MH_DYLIB files
11513 case "$cc_basename" in
11515 lt_prog_compiler_pic_CXX='-qnocommon'
11516 lt_prog_compiler_wl_CXX='-Wl,'
11521 case $cc_basename in
11523 lt_prog_compiler_pic_CXX='-KPIC'
11526 # Green Hills C++ Compiler
11527 lt_prog_compiler_pic_CXX='-pic'
11533 freebsd* | kfreebsd*-gnu)
11534 # FreeBSD uses GNU C++
11536 hpux9* | hpux10* | hpux11*)
11537 case $cc_basename in
11539 lt_prog_compiler_wl_CXX='-Wl,'
11540 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11541 if test "$host_cpu" != ia64; then
11542 lt_prog_compiler_pic_CXX='+Z'
11546 lt_prog_compiler_wl_CXX='-Wl,'
11547 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11548 case "$host_cpu" in
11553 lt_prog_compiler_pic_CXX='+Z'
11561 irix5* | irix6* | nonstopux*)
11562 case $cc_basename in
11564 lt_prog_compiler_wl_CXX='-Wl,'
11565 lt_prog_compiler_static_CXX='-non_shared'
11566 # CC pic flag -KPIC is the default.
11573 case $cc_basename in
11576 lt_prog_compiler_wl_CXX='--backend -Wl,'
11577 lt_prog_compiler_pic_CXX='-fPIC'
11581 lt_prog_compiler_wl_CXX='-Wl,'
11582 lt_prog_compiler_pic_CXX='-KPIC'
11583 lt_prog_compiler_static_CXX='-static'
11587 # Make sure the PIC flag is empty. It appears that all Alpha
11588 # Linux and Compaq Tru64 Unix objects are PIC.
11589 lt_prog_compiler_pic_CXX=
11590 lt_prog_compiler_static_CXX='-non_shared'
11601 case $cc_basename in
11603 lt_prog_compiler_pic_CXX='-W c,exportall'
11611 osf3* | osf4* | osf5*)
11612 case $cc_basename in
11614 lt_prog_compiler_wl_CXX='--backend -Wl,'
11617 # Rational C++ 2.4.1
11618 lt_prog_compiler_pic_CXX='-pic'
11621 # Digital/Compaq C++
11622 lt_prog_compiler_wl_CXX='-Wl,'
11623 # Make sure the PIC flag is empty. It appears that all Alpha
11624 # Linux and Compaq Tru64 Unix objects are PIC.
11625 lt_prog_compiler_pic_CXX=
11626 lt_prog_compiler_static_CXX='-non_shared'
11635 case $cc_basename in
11637 lt_prog_compiler_pic_CXX='-fPIC'
11644 case $cc_basename in
11646 # Sun C++ 4.2, 5.x and Centerline C++
11647 lt_prog_compiler_pic_CXX='-KPIC'
11648 lt_prog_compiler_static_CXX='-Bstatic'
11649 lt_prog_compiler_wl_CXX='-Qoption ld '
11652 # Green Hills C++ Compiler
11653 lt_prog_compiler_pic_CXX='-PIC'
11660 case $cc_basename in
11663 lt_prog_compiler_pic_CXX='-pic'
11664 lt_prog_compiler_static_CXX='-Bstatic'
11668 lt_prog_compiler_pic_CXX='-pic'
11675 case $cc_basename in
11677 # NonStop-UX NCC 3.20
11678 lt_prog_compiler_pic_CXX='-KPIC'
11689 lt_prog_compiler_can_build_shared_CXX=no
11694 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11695 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11698 # Check to make sure the PIC flag actually works.
11700 if test -n "$lt_prog_compiler_pic_CXX"; then
11702 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11703 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11704 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 lt_prog_compiler_pic_works_CXX=no
11708 ac_outfile=conftest.$ac_objext
11709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11710 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11711 # Insert the option either (1) after the last *FLAGS variable, or
11712 # (2) before a word containing "conftest.", or (3) at the end.
11713 # Note that $ac_compile itself does not contain backslashes and begins
11714 # with a dollar sign (not a hyphen), so the echo should work correctly.
11715 # The option is referenced via a variable to avoid confusing sed.
11716 lt_compile=`echo "$ac_compile" | $SED \
11717 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11719 -e 's:$: $lt_compiler_flag:'`
11720 (eval echo "\"\$as_me:11720: $lt_compile\"" >&5)
11721 (eval "$lt_compile" 2>conftest.err)
11723 cat conftest.err >&5
11724 echo "$as_me:11724: \$? = $ac_status" >&5
11725 if (exit $ac_status) && test -s "$ac_outfile"; then
11726 # The compiler can only warn and ignore the option if not recognized
11727 # So say no if there are warnings
11728 if test ! -s conftest.err; then
11729 lt_prog_compiler_pic_works_CXX=yes
11735 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11736 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11738 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11739 case $lt_prog_compiler_pic_CXX in
11741 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11744 lt_prog_compiler_pic_CXX=
11745 lt_prog_compiler_can_build_shared_CXX=no
11750 # For platforms which do not support PIC, -DPIC is meaningless:
11752 lt_prog_compiler_pic_CXX=
11755 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11759 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11760 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11761 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 lt_cv_prog_compiler_c_o_CXX=no
11765 $rm -r conftest 2>/dev/null
11769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11771 lt_compiler_flag="-o out/conftest2.$ac_objext"
11772 # Insert the option either (1) after the last *FLAGS variable, or
11773 # (2) before a word containing "conftest.", or (3) at the end.
11774 # Note that $ac_compile itself does not contain backslashes and begins
11775 # with a dollar sign (not a hyphen), so the echo should work correctly.
11776 lt_compile=`echo "$ac_compile" | $SED \
11777 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11779 -e 's:$: $lt_compiler_flag:'`
11780 (eval echo "\"\$as_me:11780: $lt_compile\"" >&5)
11781 (eval "$lt_compile" 2>out/conftest.err)
11783 cat out/conftest.err >&5
11784 echo "$as_me:11784: \$? = $ac_status" >&5
11785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11787 # The compiler can only warn and ignore the option if not recognized
11788 # So say no if there are warnings
11789 if test ! -s out/conftest.err; then
11790 lt_cv_prog_compiler_c_o_CXX=yes
11795 # SGI C++ compiler will create directory out/ii_files/ for
11796 # template instantiation
11797 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11798 $rm out/* && rmdir out
11804 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11805 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11808 hard_links="nottested"
11809 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11810 # do not overwrite the value of need_locks provided by the user
11811 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11812 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11817 ln conftest.a conftest.b 2>&5 || hard_links=no
11818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11819 echo "$as_me:$LINENO: result: $hard_links" >&5
11820 echo "${ECHO_T}$hard_links" >&6
11821 if test "$hard_links" = no; then
11822 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11823 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11830 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11831 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11833 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11836 # If we're using GNU nm, then we don't want the "-C" option.
11837 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11838 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11839 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'
11841 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'
11845 export_symbols_cmds_CXX="$ltdll_cmds"
11848 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11851 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11855 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11856 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11857 test "$ld_shlibs_CXX" = no && can_build_shared=no
11859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11860 if test "$GCC" = yes; then
11861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11865 # Do we need to explicitly link libc?
11867 case "x$archive_cmds_need_lc_CXX" in
11869 # Assume -lc should be added
11870 archive_cmds_need_lc_CXX=yes
11872 if test "$enable_shared" = yes && test "$GCC" = yes; then
11873 case $archive_cmds_CXX in
11875 # FIXME: we may have to deal with multi-command sequences.
11878 # Test whether the compiler implicitly links with -lc since on some
11879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11880 # to ld, don't add -lc before -lgcc.
11881 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11882 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887 (eval $ac_compile) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } 2>conftest.err; then
11893 libobjs=conftest.$ac_objext
11895 wl=$lt_prog_compiler_wl_CXX
11901 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11902 allow_undefined_flag_CXX=
11903 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11904 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }
11909 archive_cmds_need_lc_CXX=no
11911 archive_cmds_need_lc_CXX=yes
11913 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11915 cat conftest.err 1>&5
11918 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11919 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11926 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11928 library_names_spec=
11929 libname_spec='lib$name'
11933 postuninstall_cmds=
11937 shlibpath_overrides_runpath=unknown
11939 dynamic_linker="$host_os ld.so"
11940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11941 if test "$GCC" = yes; then
11942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11943 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11944 # if the path contains ";" then we assume it to be the separator
11945 # otherwise default to the standard path separator (i.e. ":") - it is
11946 # assumed that no part of a normal pathname contains ";" but that should
11947 # okay in the real world where ";" in dirpaths is itself problematic.
11948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11955 need_lib_prefix=unknown
11956 hardcode_into_libs=no
11958 # when you set need_version to no, make sure it does not cause -set_version
11959 # flags to be left without arguments
11960 need_version=unknown
11965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11966 shlibpath_var=LIBPATH
11968 # AIX 3 has no versioning support, so we append a major version to the name.
11969 soname_spec='${libname}${release}${shared_ext}$major'
11976 hardcode_into_libs=yes
11977 if test "$host_cpu" = ia64; then
11978 # AIX 5 supports IA64
11979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11980 shlibpath_var=LD_LIBRARY_PATH
11982 # With GCC up to 2.95.x, collect2 would create an import file
11983 # for dependence libraries. The import file would start with
11984 # the line `#! .'. This would cause the generated library to
11985 # depend on `.', always an invalid library. This was fixed in
11986 # development snapshots of GCC prior to 3.0.
11988 aix4 | aix4.[01] | aix4.[01].*)
11989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11991 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11994 can_build_shared=no
11998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11999 # soname into executable. Probably we can add versioning support to
12000 # collect2, so additional links can be useful in future.
12001 if test "$aix_use_runtimelinking" = yes; then
12002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12003 # instead of lib<name>.a to let people know that these are not
12004 # typical AIX shared libraries.
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12007 # We preserve .a as extension for shared libraries through AIX4.2
12008 # and later when we are not doing run time linking.
12009 library_names_spec='${libname}${release}.a $libname.a'
12010 soname_spec='${libname}${release}${shared_ext}$major'
12012 shlibpath_var=LIBPATH
12017 library_names_spec='$libname.ixlibrary $libname.a'
12018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12019 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'
12023 library_names_spec='${libname}${shared_ext}'
12024 dynamic_linker="$host_os ld.so"
12025 shlibpath_var=LIBRARY_PATH
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032 soname_spec='${libname}${release}${shared_ext}$major'
12033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12037 # the default ld.so.conf also contains /usr/contrib/lib and
12038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12039 # libtool to hard-code these into programs
12042 cygwin* | mingw* | pw32*)
12043 version_type=windows
12048 case $GCC,$host_os in
12049 yes,cygwin* | yes,mingw* | yes,pw32*)
12050 library_names_spec='$libname.dll.a'
12051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12052 postinstall_cmds='base_file=`basename \${file}`~
12053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12054 dldir=$destdir/`dirname \$dlpath`~
12055 test -d \$dldir || mkdir -p \$dldir~
12056 $install_prog $dir/$dlname \$dldir/$dlname'
12057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12058 dlpath=$dir/\$dldll~
12060 shlibpath_overrides_runpath=yes
12064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12066 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12069 # MinGW DLLs use traditional 'lib' prefix
12070 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12072 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12073 # It is most probably a Windows format PATH printed by
12074 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12075 # path with ; separators, and with drive letters. We can handle the
12076 # drive letters (cygwin fileutils understands them), so leave them,
12077 # especially as we might pass files found there to a mingw objdump,
12078 # which wouldn't understand a cygwinified path. Ahh.
12079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12085 # pw32 DLLs use 'pw' prefix rather than 'lib'
12086 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12092 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12095 dynamic_linker='Win32 ld.exe'
12096 # FIXME: first we should search . and the directory the executable is in
12100 darwin* | rhapsody*)
12101 dynamic_linker="$host_os dyld"
12102 version_type=darwin
12105 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12106 soname_spec='${libname}${release}${major}$shared_ext'
12107 shlibpath_overrides_runpath=yes
12108 shlibpath_var=DYLD_LIBRARY_PATH
12109 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12110 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12111 if test "$GCC" = yes; then
12112 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"`
12114 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12124 soname_spec='${libname}${release}${shared_ext}$major'
12125 shlibpath_var=LD_LIBRARY_PATH
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12137 soname_spec='${libname}${release}${shared_ext}$major'
12138 shlibpath_var=LD_LIBRARY_PATH
12139 shlibpath_overrides_runpath=no
12140 hardcode_into_libs=yes
12141 dynamic_linker='GNU ld.so'
12145 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12146 version_type=freebsd-$objformat
12147 case $version_type in
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12158 shlibpath_var=LD_LIBRARY_PATH
12161 shlibpath_overrides_runpath=yes
12163 freebsd3.01* | freebsdelf3.01*)
12164 shlibpath_overrides_runpath=yes
12165 hardcode_into_libs=yes
12168 shlibpath_overrides_runpath=no
12169 hardcode_into_libs=yes
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12179 soname_spec='${libname}${release}${shared_ext}$major'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 hardcode_into_libs=yes
12184 hpux9* | hpux10* | hpux11*)
12185 # Give a soname corresponding to the major version so that dld.sl refuses to
12186 # link against other versions.
12190 case "$host_cpu" in
12193 hardcode_into_libs=yes
12194 dynamic_linker="$host_os dld.so"
12195 shlibpath_var=LD_LIBRARY_PATH
12196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12198 soname_spec='${libname}${release}${shared_ext}$major'
12199 if test "X$HPUX_IA64_MODE" = X32; then
12200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12202 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12208 hardcode_into_libs=yes
12209 dynamic_linker="$host_os dld.sl"
12210 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213 soname_spec='${libname}${release}${shared_ext}$major'
12214 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12219 dynamic_linker="$host_os dld.sl"
12220 shlibpath_var=SHLIB_PATH
12221 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12223 soname_spec='${libname}${release}${shared_ext}$major'
12226 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12227 postinstall_cmds='chmod 555 $lib'
12230 irix5* | irix6* | nonstopux*)
12232 nonstopux*) version_type=nonstopux ;;
12234 if test "$lt_cv_prog_gnu_ld" = yes; then
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12245 irix5* | nonstopux*)
12246 libsuff= shlibsuff=
12249 case $LD in # libtool.m4 will add one of these switches to LD
12250 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12251 libsuff= shlibsuff= libmagic=32-bit;;
12252 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12253 libsuff=32 shlibsuff=N32 libmagic=N32;;
12254 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12255 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12256 *) libsuff= shlibsuff= libmagic=never-match;;
12260 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12261 shlibpath_overrides_runpath=no
12262 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12263 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12264 hardcode_into_libs=yes
12267 # No shared lib support for Linux oldld, aout, or coff.
12268 linux*oldld* | linux*aout* | linux*coff*)
12272 # This must be Linux ELF.
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278 soname_spec='${libname}${release}${shared_ext}$major'
12279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 shlibpath_overrides_runpath=no
12282 # This implies no fast_install, which is unacceptable.
12283 # Some rework will be needed to allow for fast_install
12284 # before this can be enabled.
12285 hardcode_into_libs=yes
12287 # Append ld.so.conf contents to the search path
12288 if test -f /etc/ld.so.conf; then
12289 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12290 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12293 # We used to test for /lib/ld.so.1 and disable shared libraries on
12294 # powerpc, because MkLinux only supported shared libraries with the
12295 # GNU dynamic linker. Since this was broken with cross compilers,
12296 # most powerpc-linux boxes support dynamic linking these days and
12297 # people can always --disable-shared, the test was removed, and we
12298 # assume the GNU/Linux dynamic linker is in use.
12299 dynamic_linker='GNU/Linux ld.so'
12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12307 soname_spec='${libname}${release}${shared_ext}$major'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=no
12310 hardcode_into_libs=yes
12311 dynamic_linker='GNU ld.so'
12318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12321 dynamic_linker='NetBSD (a.out) ld.so'
12323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12324 soname_spec='${libname}${release}${shared_ext}$major'
12325 dynamic_linker='NetBSD ld.elf_so'
12327 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=yes
12329 hardcode_into_libs=yes
12334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12335 shlibpath_var=LD_LIBRARY_PATH
12336 shlibpath_overrides_runpath=yes
12343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12344 soname_spec='${libname}${release}${shared_ext}$major'
12345 shlibpath_var=LD_LIBRARY_PATH
12346 shlibpath_overrides_runpath=yes
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12355 shlibpath_var=LD_LIBRARY_PATH
12356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12358 openbsd2.[89] | openbsd2.[89].*)
12359 shlibpath_overrides_runpath=no
12362 shlibpath_overrides_runpath=yes
12366 shlibpath_overrides_runpath=yes
12371 libname_spec='$name'
12374 library_names_spec='$libname${shared_ext} $libname.a'
12375 dynamic_linker='OS/2 ld.exe'
12376 shlibpath_var=LIBPATH
12379 osf3* | osf4* | osf5*)
12383 soname_spec='${libname}${release}${shared_ext}$major'
12384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12385 shlibpath_var=LD_LIBRARY_PATH
12386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12387 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12392 soname_spec='${libname}${release}${shared_ext}$major'
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 shlibpath_var=LD_LIBRARY_PATH
12401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402 soname_spec='${libname}${release}${shared_ext}$major'
12403 shlibpath_var=LD_LIBRARY_PATH
12404 shlibpath_overrides_runpath=yes
12405 hardcode_into_libs=yes
12406 # ldd complains unless libraries are executable
12407 postinstall_cmds='chmod +x $lib'
12412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 shlibpath_overrides_runpath=yes
12416 if test "$with_gnu_ld" = yes; then
12422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12425 soname_spec='${libname}${release}${shared_ext}$major'
12426 shlibpath_var=LD_LIBRARY_PATH
12427 case $host_vendor in
12429 shlibpath_overrides_runpath=no
12431 export_dynamic_flag_spec='${wl}-Blargedynsym'
12432 runpath_var=LD_RUN_PATH
12440 shlibpath_overrides_runpath=no
12441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12447 if test -d /usr/nec ;then
12449 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12450 soname_spec='$libname${shared_ext}.$major'
12451 shlibpath_var=LD_LIBRARY_PATH
12457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12458 soname_spec='${libname}${release}${shared_ext}$major'
12459 shlibpath_var=LD_LIBRARY_PATH
12466 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12467 echo "${ECHO_T}$dynamic_linker" >&6
12468 test "$dynamic_linker" = no && can_build_shared=no
12470 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12471 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12472 hardcode_action_CXX=
12473 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12474 test -n "$runpath_var_CXX" || \
12475 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12477 # We can hardcode non-existant directories.
12478 if test "$hardcode_direct_CXX" != no &&
12479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12480 # have to relink, otherwise we might link with an installed library
12481 # when we should be linking with a yet-to-be-installed one
12482 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12483 test "$hardcode_minus_L_CXX" != no; then
12484 # Linking always hardcodes the temporary library directory.
12485 hardcode_action_CXX=relink
12487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12488 hardcode_action_CXX=immediate
12491 # We cannot hardcode anything, or else we can only hardcode existing
12493 hardcode_action_CXX=unsupported
12495 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12496 echo "${ECHO_T}$hardcode_action_CXX" >&6
12498 if test "$hardcode_action_CXX" = relink; then
12499 # Fast installation is not supported
12500 enable_fast_install=no
12501 elif test "$shlibpath_overrides_runpath" = yes ||
12502 test "$enable_shared" = no; then
12503 # Fast installation is not necessary
12504 enable_fast_install=needless
12509 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12510 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12511 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12512 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12513 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12514 echo "$as_me:$LINENO: result: yes" >&5
12515 echo "${ECHO_T}yes" >&6
12517 # FIXME - insert some real tests, host_os isn't really good enough
12520 if test -n "$STRIP" ; then
12521 striplib="$STRIP -x"
12522 echo "$as_me:$LINENO: result: yes" >&5
12523 echo "${ECHO_T}yes" >&6
12525 echo "$as_me:$LINENO: result: no" >&5
12526 echo "${ECHO_T}no" >&6
12530 echo "$as_me:$LINENO: result: no" >&5
12531 echo "${ECHO_T}no" >&6
12536 if test "x$enable_dlopen" != xyes; then
12537 enable_dlopen=unknown
12538 enable_dlopen_self=unknown
12539 enable_dlopen_self_static=unknown
12546 lt_cv_dlopen="load_add_on"
12548 lt_cv_dlopen_self=yes
12552 lt_cv_dlopen="LoadLibrary"
12557 lt_cv_dlopen="dlopen"
12562 # if libdl is installed we need to link against it
12563 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12564 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12565 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 ac_check_lib_save_LIBS=$LIBS
12570 cat >conftest.$ac_ext <<_ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12577 /* Override any gcc2 internal prototype to avoid an error. */
12581 /* We use char because int might match the return type of a gcc2
12582 builtin and then its argument prototype would still apply. */
12592 rm -f conftest.$ac_objext conftest$ac_exeext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12594 (eval $ac_link) 2>conftest.er1
12596 grep -v '^ *+' conftest.er1 >conftest.err
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_cxx_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_lib_dl_dlopen=yes
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 ac_cv_lib_dl_dlopen=no
12621 rm -f conftest.err conftest.$ac_objext \
12622 conftest$ac_exeext conftest.$ac_ext
12623 LIBS=$ac_check_lib_save_LIBS
12625 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12627 if test $ac_cv_lib_dl_dlopen = yes; then
12628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12631 lt_cv_dlopen="dyld"
12633 lt_cv_dlopen_self=yes
12640 echo "$as_me:$LINENO: checking for shl_load" >&5
12641 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12642 if test "${ac_cv_func_shl_load+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12653 #define shl_load innocuous_shl_load
12655 /* System header to define __stub macros and hopefully few prototypes,
12656 which can conflict with char shl_load (); below.
12657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12658 <limits.h> exists even on freestanding compilers. */
12661 # include <limits.h>
12663 # include <assert.h>
12668 /* Override any gcc2 internal prototype to avoid an error. */
12673 /* We use char because int might match the return type of a gcc2
12674 builtin and then its argument prototype would still apply. */
12676 /* The GNU C library defines this for functions which it implements
12677 to always fail with ENOSYS. Some functions are actually named
12678 something starting with __ and the normal name is an alias. */
12679 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12682 char (*f) () = shl_load;
12691 return f != shl_load;
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12698 (eval $ac_link) 2>conftest.er1
12700 grep -v '^ *+' conftest.er1 >conftest.err
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -z "$ac_cxx_werror_flag"
12706 || test ! -s conftest.err'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest$ac_exeext'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_cv_func_shl_load=yes
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12723 ac_cv_func_shl_load=no
12725 rm -f conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext conftest.$ac_ext
12728 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12729 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12730 if test $ac_cv_func_shl_load = yes; then
12731 lt_cv_dlopen="shl_load"
12733 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12734 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12735 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 ac_check_lib_save_LIBS=$LIBS
12740 cat >conftest.$ac_ext <<_ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12747 /* Override any gcc2 internal prototype to avoid an error. */
12751 /* We use char because int might match the return type of a gcc2
12752 builtin and then its argument prototype would still apply. */
12762 rm -f conftest.$ac_objext conftest$ac_exeext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12764 (eval $ac_link) 2>conftest.er1
12766 grep -v '^ *+' conftest.er1 >conftest.err
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -z "$ac_cxx_werror_flag"
12772 || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest$ac_exeext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_lib_dld_shl_load=yes
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_cv_lib_dld_shl_load=no
12791 rm -f conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12795 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12796 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12797 if test $ac_cv_lib_dld_shl_load = yes; then
12798 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12800 echo "$as_me:$LINENO: checking for dlopen" >&5
12801 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12802 if test "${ac_cv_func_dlopen+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 cat >conftest.$ac_ext <<_ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12813 #define dlopen innocuous_dlopen
12815 /* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char dlopen (); below.
12817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 <limits.h> exists even on freestanding compilers. */
12821 # include <limits.h>
12823 # include <assert.h>
12828 /* Override any gcc2 internal prototype to avoid an error. */
12833 /* We use char because int might match the return type of a gcc2
12834 builtin and then its argument prototype would still apply. */
12836 /* The GNU C library defines this for functions which it implements
12837 to always fail with ENOSYS. Some functions are actually named
12838 something starting with __ and the normal name is an alias. */
12839 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12842 char (*f) () = dlopen;
12851 return f != dlopen;
12856 rm -f conftest.$ac_objext conftest$ac_exeext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858 (eval $ac_link) 2>conftest.er1
12860 grep -v '^ *+' conftest.er1 >conftest.err
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_cxx_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest$ac_exeext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_cv_func_dlopen=yes
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12883 ac_cv_func_dlopen=no
12885 rm -f conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12888 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12889 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12890 if test $ac_cv_func_dlopen = yes; then
12891 lt_cv_dlopen="dlopen"
12893 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12894 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 ac_check_lib_save_LIBS=$LIBS
12900 cat >conftest.$ac_ext <<_ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12907 /* Override any gcc2 internal prototype to avoid an error. */
12911 /* We use char because int might match the return type of a gcc2
12912 builtin and then its argument prototype would still apply. */
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>conftest.er1
12926 grep -v '^ *+' conftest.er1 >conftest.err
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_cxx_werror_flag"
12932 || test ! -s conftest.err'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest$ac_exeext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_lib_dl_dlopen=yes
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 ac_cv_lib_dl_dlopen=no
12951 rm -f conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953 LIBS=$ac_check_lib_save_LIBS
12955 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12957 if test $ac_cv_lib_dl_dlopen = yes; then
12958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12960 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12961 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 ac_check_lib_save_LIBS=$LIBS
12966 LIBS="-lsvld $LIBS"
12967 cat >conftest.$ac_ext <<_ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12974 /* Override any gcc2 internal prototype to avoid an error. */
12978 /* We use char because int might match the return type of a gcc2
12979 builtin and then its argument prototype would still apply. */
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991 (eval $ac_link) 2>conftest.er1
12993 grep -v '^ *+' conftest.er1 >conftest.err
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -z "$ac_cxx_werror_flag"
12999 || test ! -s conftest.err'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; } &&
13005 { ac_try='test -s conftest$ac_exeext'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13011 ac_cv_lib_svld_dlopen=yes
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ac_cv_lib_svld_dlopen=no
13018 rm -f conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
13020 LIBS=$ac_check_lib_save_LIBS
13022 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13023 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13024 if test $ac_cv_lib_svld_dlopen = yes; then
13025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13027 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13028 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13029 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 ac_check_lib_save_LIBS=$LIBS
13034 cat >conftest.$ac_ext <<_ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13041 /* Override any gcc2 internal prototype to avoid an error. */
13045 /* We use char because int might match the return type of a gcc2
13046 builtin and then its argument prototype would still apply. */
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>conftest.er1
13060 grep -v '^ *+' conftest.er1 >conftest.err
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
13065 { ac_try='test -z "$ac_cxx_werror_flag"
13066 || test ! -s conftest.err'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; } &&
13072 { ac_try='test -s conftest$ac_exeext'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 ac_cv_lib_dld_dld_link=yes
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13083 ac_cv_lib_dld_dld_link=no
13085 rm -f conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
13087 LIBS=$ac_check_lib_save_LIBS
13089 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13090 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13091 if test $ac_cv_lib_dld_dld_link = yes; then
13092 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13113 if test "x$lt_cv_dlopen" != xno; then
13119 case $lt_cv_dlopen in
13121 save_CPPFLAGS="$CPPFLAGS"
13122 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13124 save_LDFLAGS="$LDFLAGS"
13125 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13128 LIBS="$lt_cv_dlopen_libs $LIBS"
13130 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13131 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13132 if test "${lt_cv_dlopen_self+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 if test "$cross_compiling" = yes; then :
13136 lt_cv_dlopen_self=cross
13138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13139 lt_status=$lt_dlunknown
13140 cat > conftest.$ac_ext <<EOF
13141 #line 13141 "configure"
13142 #include "confdefs.h"
13151 # define LT_DLGLOBAL RTLD_GLOBAL
13154 # define LT_DLGLOBAL DL_GLOBAL
13156 # define LT_DLGLOBAL 0
13160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13161 find out it does not work in some platform. */
13162 #ifndef LT_DLLAZY_OR_NOW
13164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13167 # define LT_DLLAZY_OR_NOW DL_LAZY
13170 # define LT_DLLAZY_OR_NOW RTLD_NOW
13173 # define LT_DLLAZY_OR_NOW DL_NOW
13175 # define LT_DLLAZY_OR_NOW 0
13183 extern "C" void exit (int);
13186 void fnord() { int i=42;}
13189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13190 int status = $lt_dlunknown;
13194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13196 /* dlclose (self); */
13202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13207 (./conftest; exit; ) 2>/dev/null
13209 case x$lt_status in
13210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13212 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13215 # compilation failed
13216 lt_cv_dlopen_self=no
13223 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13224 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13226 if test "x$lt_cv_dlopen_self" = xyes; then
13227 LDFLAGS="$LDFLAGS $link_static_flag"
13228 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13229 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13230 if test "${lt_cv_dlopen_self_static+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 if test "$cross_compiling" = yes; then :
13234 lt_cv_dlopen_self_static=cross
13236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13237 lt_status=$lt_dlunknown
13238 cat > conftest.$ac_ext <<EOF
13239 #line 13239 "configure"
13240 #include "confdefs.h"
13249 # define LT_DLGLOBAL RTLD_GLOBAL
13252 # define LT_DLGLOBAL DL_GLOBAL
13254 # define LT_DLGLOBAL 0
13258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13259 find out it does not work in some platform. */
13260 #ifndef LT_DLLAZY_OR_NOW
13262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13265 # define LT_DLLAZY_OR_NOW DL_LAZY
13268 # define LT_DLLAZY_OR_NOW RTLD_NOW
13271 # define LT_DLLAZY_OR_NOW DL_NOW
13273 # define LT_DLLAZY_OR_NOW 0
13281 extern "C" void exit (int);
13284 void fnord() { int i=42;}
13287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13288 int status = $lt_dlunknown;
13292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13294 /* dlclose (self); */
13300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13301 (eval $ac_link) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13305 (./conftest; exit; ) 2>/dev/null
13307 case x$lt_status in
13308 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13309 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13310 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13313 # compilation failed
13314 lt_cv_dlopen_self_static=no
13321 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13322 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13325 CPPFLAGS="$save_CPPFLAGS"
13326 LDFLAGS="$save_LDFLAGS"
13331 case $lt_cv_dlopen_self in
13332 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13333 *) enable_dlopen_self=unknown ;;
13336 case $lt_cv_dlopen_self_static in
13337 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13338 *) enable_dlopen_self_static=unknown ;;
13343 # The else clause should only fire when bootstrapping the
13344 # libtool distribution, otherwise you forgot to ship ltmain.sh
13345 # with your package, and you will get complaints that there are
13346 # no rules to generate ltmain.sh.
13347 if test -f "$ltmain"; then
13348 # See if we are running on zsh, and set the options which allow our commands through
13349 # without removal of \ escapes.
13350 if test -n "${ZSH_VERSION+set}" ; then
13351 setopt NO_GLOB_SUBST
13353 # Now quote all the things that may contain metacharacters while being
13354 # careful not to overquote the AC_SUBSTed values. We take copies of the
13355 # variables and quote the copies for generation of the libtool script.
13356 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13358 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13359 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13360 deplibs_check_method reload_flag reload_cmds need_locks \
13361 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13362 lt_cv_sys_global_symbol_to_c_name_address \
13363 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13364 old_postinstall_cmds old_postuninstall_cmds \
13368 lt_prog_compiler_wl_CXX \
13369 lt_prog_compiler_pic_CXX \
13370 lt_prog_compiler_static_CXX \
13371 lt_prog_compiler_no_builtin_flag_CXX \
13372 export_dynamic_flag_spec_CXX \
13373 thread_safe_flag_spec_CXX \
13374 whole_archive_flag_spec_CXX \
13375 enable_shared_with_static_runtimes_CXX \
13376 old_archive_cmds_CXX \
13377 old_archive_from_new_cmds_CXX \
13378 predep_objects_CXX \
13379 postdep_objects_CXX \
13382 compiler_lib_search_path_CXX \
13384 archive_expsym_cmds_CXX \
13385 postinstall_cmds_CXX \
13386 postuninstall_cmds_CXX \
13387 old_archive_from_expsyms_cmds_CXX \
13388 allow_undefined_flag_CXX \
13389 no_undefined_flag_CXX \
13390 export_symbols_cmds_CXX \
13391 hardcode_libdir_flag_spec_CXX \
13392 hardcode_libdir_flag_spec_ld_CXX \
13393 hardcode_libdir_separator_CXX \
13394 hardcode_automatic_CXX \
13396 module_expsym_cmds_CXX \
13397 lt_cv_prog_compiler_c_o_CXX \
13398 exclude_expsyms_CXX \
13399 include_expsyms_CXX; do
13402 old_archive_cmds_CXX | \
13403 old_archive_from_new_cmds_CXX | \
13404 archive_cmds_CXX | \
13405 archive_expsym_cmds_CXX | \
13406 module_cmds_CXX | \
13407 module_expsym_cmds_CXX | \
13408 old_archive_from_expsyms_cmds_CXX | \
13409 export_symbols_cmds_CXX | \
13410 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13411 postinstall_cmds | postuninstall_cmds | \
13412 old_postinstall_cmds | old_postuninstall_cmds | \
13413 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13414 # Double-quote double-evaled strings.
13415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13424 *'\$0 --fallback-echo"')
13425 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13431 cat <<__EOF__ >> "$cfgfile"
13432 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13436 # Shell to use when invoking shell scripts.
13439 # Whether or not to build shared libraries.
13440 build_libtool_libs=$enable_shared
13442 # Whether or not to build static libraries.
13443 build_old_libs=$enable_static
13445 # Whether or not to add -lc for building shared libraries.
13446 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13448 # Whether or not to disallow shared libs when runtime libs are static
13449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13451 # Whether or not to optimize for fast installation.
13452 fast_install=$enable_fast_install
13455 host_alias=$host_alias
13458 # An echo program that does not interpret backslashes.
13463 AR_FLAGS=$lt_AR_FLAGS
13468 # A language-specific compiler.
13469 CC=$lt_compiler_CXX
13471 # Is the compiler the GNU C compiler?
13477 # The linker used to build libraries.
13480 # Whether we need hard or soft links.
13483 # A BSD-compatible nm program.
13486 # A symbol stripping program
13489 # Used to examine libraries when file_magic_cmd begins "file"
13490 MAGIC_CMD=$MAGIC_CMD
13492 # Used on cygwin: DLL creation program.
13495 # Used on cygwin: object dumper.
13498 # Used on cygwin: assembler.
13501 # The name of the directory that contains temporary libtool files.
13504 # How to create reloadable object files.
13505 reload_flag=$lt_reload_flag
13506 reload_cmds=$lt_reload_cmds
13508 # How to pass a linker flag through the compiler.
13509 wl=$lt_lt_prog_compiler_wl_CXX
13511 # Object file suffix (normally "o").
13512 objext="$ac_objext"
13514 # Old archive suffix (normally "a").
13517 # Shared library suffix (normally ".so").
13518 shrext_cmds='$shrext_cmds'
13520 # Executable file suffix (normally "").
13523 # Additional compiler flags for building library objects.
13524 pic_flag=$lt_lt_prog_compiler_pic_CXX
13527 # What is the maximum length of a command?
13528 max_cmd_len=$lt_cv_sys_max_cmd_len
13530 # Does compiler simultaneously support -c and -o options?
13531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13533 # Must we lock files when doing compilation ?
13534 need_locks=$lt_need_locks
13536 # Do we need the lib prefix for modules?
13537 need_lib_prefix=$need_lib_prefix
13539 # Do we need a version for libraries?
13540 need_version=$need_version
13542 # Whether dlopen is supported.
13543 dlopen_support=$enable_dlopen
13545 # Whether dlopen of programs is supported.
13546 dlopen_self=$enable_dlopen_self
13548 # Whether dlopen of statically linked programs is supported.
13549 dlopen_self_static=$enable_dlopen_self_static
13551 # Compiler flag to prevent dynamic linking.
13552 link_static_flag=$lt_lt_prog_compiler_static_CXX
13554 # Compiler flag to turn off builtin functions.
13555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13557 # Compiler flag to allow reflexive dlopens.
13558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13560 # Compiler flag to generate shared objects directly from archives.
13561 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13563 # Compiler flag to generate thread-safe objects.
13564 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13566 # Library versioning type.
13567 version_type=$version_type
13569 # Format of library name prefix.
13570 libname_spec=$lt_libname_spec
13572 # List of archive names. First name is the real one, the rest are links.
13573 # The last name is the one that the linker finds with -lNAME.
13574 library_names_spec=$lt_library_names_spec
13576 # The coded name of the library, if different from the real name.
13577 soname_spec=$lt_soname_spec
13579 # Commands used to build and install an old-style archive.
13581 old_archive_cmds=$lt_old_archive_cmds_CXX
13582 old_postinstall_cmds=$lt_old_postinstall_cmds
13583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13585 # Create an old-style archive from a shared archive.
13586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13588 # Create a temporary old-style archive to link instead of a shared archive.
13589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13591 # Commands used to build and install a shared archive.
13592 archive_cmds=$lt_archive_cmds_CXX
13593 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13594 postinstall_cmds=$lt_postinstall_cmds
13595 postuninstall_cmds=$lt_postuninstall_cmds
13597 # Commands used to build a loadable module (assumed same as above if empty)
13598 module_cmds=$lt_module_cmds_CXX
13599 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13601 # Commands to strip libraries.
13602 old_striplib=$lt_old_striplib
13603 striplib=$lt_striplib
13605 # Dependencies to place before the objects being linked to create a
13607 predep_objects=$lt_predep_objects_CXX
13609 # Dependencies to place after the objects being linked to create a
13611 postdep_objects=$lt_postdep_objects_CXX
13613 # Dependencies to place before the objects being linked to create a
13615 predeps=$lt_predeps_CXX
13617 # Dependencies to place after the objects being linked to create a
13619 postdeps=$lt_postdeps_CXX
13621 # The library search path used internally by the compiler when linking
13622 # a shared library.
13623 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13625 # Method to check whether dependent libraries are shared objects.
13626 deplibs_check_method=$lt_deplibs_check_method
13628 # Command to use when deplibs_check_method == file_magic.
13629 file_magic_cmd=$lt_file_magic_cmd
13631 # Flag that allows shared libraries with undefined symbols to be built.
13632 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13634 # Flag that forces no undefined symbols.
13635 no_undefined_flag=$lt_no_undefined_flag_CXX
13637 # Commands used to finish a libtool library installation in a directory.
13638 finish_cmds=$lt_finish_cmds
13640 # Same as above, but a single script fragment to be evaled but not shown.
13641 finish_eval=$lt_finish_eval
13643 # Take the output of nm and produce a listing of raw symbols and C names.
13644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13646 # Transform the output of nm in a proper C declaration
13647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13649 # Transform the output of nm in a C name address pair
13650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13652 # This is the shared library runtime path variable.
13653 runpath_var=$runpath_var
13655 # This is the shared library path variable.
13656 shlibpath_var=$shlibpath_var
13658 # Is shlibpath searched before the hard-coded library search path?
13659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13661 # How to hardcode a shared library path into an executable.
13662 hardcode_action=$hardcode_action_CXX
13664 # Whether we should hardcode library paths into libraries.
13665 hardcode_into_libs=$hardcode_into_libs
13667 # Flag to hardcode \$libdir into a binary during linking.
13668 # This must work even if \$libdir does not exist.
13669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13671 # If ld is used when linking, flag to hardcode \$libdir into
13672 # a binary during linking. This must work even if \$libdir does
13674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13676 # Whether we need a single -rpath flag with a separated argument.
13677 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13679 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13680 # resulting binary.
13681 hardcode_direct=$hardcode_direct_CXX
13683 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13684 # resulting binary.
13685 hardcode_minus_L=$hardcode_minus_L_CXX
13687 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13688 # the resulting binary.
13689 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13691 # Set to yes if building a shared library automatically hardcodes DIR into the library
13692 # and all subsequent libraries and executables linked against it.
13693 hardcode_automatic=$hardcode_automatic_CXX
13695 # Variables whose values should be saved in libtool wrapper scripts and
13696 # restored at relink time.
13697 variables_saved_for_relink="$variables_saved_for_relink"
13699 # Whether libtool must link a program against all its dependency libraries.
13700 link_all_deplibs=$link_all_deplibs_CXX
13702 # Compile-time system search path for libraries
13703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13705 # Run-time system search path for libraries
13706 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13708 # Fix the shell variable \$srcfile for the compiler.
13709 fix_srcfile_path="$fix_srcfile_path_CXX"
13711 # Set to yes if exported symbols are required.
13712 always_export_symbols=$always_export_symbols_CXX
13714 # The commands to list exported symbols.
13715 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13717 # The commands to extract the exported symbol list from a shared archive.
13718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13720 # Symbols that should not be listed in the preloaded symbols.
13721 exclude_expsyms=$lt_exclude_expsyms_CXX
13723 # Symbols that must always be exported.
13724 include_expsyms=$lt_include_expsyms_CXX
13726 # ### END LIBTOOL TAG CONFIG: $tagname
13732 # If there is no Makefile yet, we rely on a make rule to execute
13733 # `config.status --recheck' to rerun these tests and create the
13734 # libtool script then.
13735 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13736 if test -f "$ltmain_in"; then
13737 test -f Makefile && make "$ltmain"
13743 ac_cpp='$CPP $CPPFLAGS'
13744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13752 with_gnu_ldcxx=$with_gnu_ld
13753 with_gnu_ld=$lt_save_with_gnu_ld
13754 lt_cv_path_LDCXX=$lt_cv_path_LD
13755 lt_cv_path_LD=$lt_save_path_LD
13756 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13757 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13765 if test -n "$F77" && test "X$F77" != "Xno"; then
13768 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13769 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13770 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13773 archive_cmds_need_lc_F77=no
13774 allow_undefined_flag_F77=
13775 always_export_symbols_F77=no
13776 archive_expsym_cmds_F77=
13777 export_dynamic_flag_spec_F77=
13778 hardcode_direct_F77=no
13779 hardcode_libdir_flag_spec_F77=
13780 hardcode_libdir_flag_spec_ld_F77=
13781 hardcode_libdir_separator_F77=
13782 hardcode_minus_L_F77=no
13783 hardcode_automatic_F77=no
13785 module_expsym_cmds_F77=
13786 link_all_deplibs_F77=unknown
13787 old_archive_cmds_F77=$old_archive_cmds
13788 no_undefined_flag_F77=
13789 whole_archive_flag_spec_F77=
13790 enable_shared_with_static_runtimes_F77=no
13792 # Source file extension for f77 test sources.
13795 # Object file extension for compiled f77 test sources.
13799 # Code to be used in simple compile tests
13800 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13802 # Code to be used in simple link tests
13803 lt_simple_link_test_code=" program t\n end\n"
13805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13807 # If no C compiler was specified, use CC.
13810 # Allow CC to be a program name with arguments.
13814 # Allow CC to be a program name with arguments.
13819 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13821 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13822 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13823 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13824 echo "${ECHO_T}$can_build_shared" >&6
13826 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13827 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13828 test "$can_build_shared" = "no" && enable_shared=no
13830 # On AIX, shared libraries and static libraries use the same namespace, and
13831 # are all built from PIC.
13834 test "$enable_shared" = yes && enable_static=no
13835 if test -n "$RANLIB"; then
13836 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13837 postinstall_cmds='$RANLIB $lib'
13841 test "$enable_shared" = yes && enable_static=no
13844 echo "$as_me:$LINENO: result: $enable_shared" >&5
13845 echo "${ECHO_T}$enable_shared" >&6
13847 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13848 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13849 # Make sure either enable_shared or enable_static is yes.
13850 test "$enable_shared" = yes || enable_static=yes
13851 echo "$as_me:$LINENO: result: $enable_static" >&5
13852 echo "${ECHO_T}$enable_static" >&6
13854 test "$ld_shlibs_F77" = no && can_build_shared=no
13859 lt_prog_compiler_wl_F77=
13860 lt_prog_compiler_pic_F77=
13861 lt_prog_compiler_static_F77=
13863 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13864 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13866 if test "$GCC" = yes; then
13867 lt_prog_compiler_wl_F77='-Wl,'
13868 lt_prog_compiler_static_F77='-static'
13872 # All AIX code is PIC.
13873 if test "$host_cpu" = ia64; then
13874 # AIX 5 now supports IA64 processor
13875 lt_prog_compiler_static_F77='-Bstatic'
13880 # FIXME: we need at least 68020 code to build shared libraries, but
13881 # adding the `-m68020' flag to GCC prevents building anything better,
13883 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13886 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13887 # PIC is the default for these OSes.
13890 mingw* | pw32* | os2*)
13891 # This hack is so that the source file can tell whether it is being
13892 # built for inclusion in a dll (and should export symbols for example).
13893 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13896 darwin* | rhapsody*)
13897 # PIC is the default on this platform
13898 # Common symbols not allowed in MH_DYLIB files
13899 lt_prog_compiler_pic_F77='-fno-common'
13903 # Just because we use GCC doesn't mean we suddenly get shared libraries
13904 # on systems that don't support them.
13905 lt_prog_compiler_can_build_shared_F77=no
13910 if test -d /usr/nec; then
13911 lt_prog_compiler_pic_F77=-Kconform_pic
13916 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13917 # not for PA HP-UX.
13918 case "$host_cpu" in
13923 lt_prog_compiler_pic_F77='-fPIC'
13929 lt_prog_compiler_pic_F77='-fPIC'
13933 # PORTME Check for flag to pass linker flags through the system compiler.
13936 lt_prog_compiler_wl_F77='-Wl,'
13937 if test "$host_cpu" = ia64; then
13938 # AIX 5 now supports IA64 processor
13939 lt_prog_compiler_static_F77='-Bstatic'
13941 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13945 # PIC is the default on this platform
13946 # Common symbols not allowed in MH_DYLIB files
13947 case "$cc_basename" in
13949 lt_prog_compiler_pic_F77='-qnocommon'
13950 lt_prog_compiler_wl_F77='-Wl,'
13955 mingw* | pw32* | os2*)
13956 # This hack is so that the source file can tell whether it is being
13957 # built for inclusion in a dll (and should export symbols for example).
13958 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13961 hpux9* | hpux10* | hpux11*)
13962 lt_prog_compiler_wl_F77='-Wl,'
13963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13964 # not for PA HP-UX.
13965 case "$host_cpu" in
13970 lt_prog_compiler_pic_F77='+Z'
13973 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13974 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13977 irix5* | irix6* | nonstopux*)
13978 lt_prog_compiler_wl_F77='-Wl,'
13979 # PIC (with -KPIC) is the default.
13980 lt_prog_compiler_static_F77='-non_shared'
13984 lt_prog_compiler_pic_F77='-KPIC'
13985 lt_prog_compiler_static_F77='-Bstatic'
13991 lt_prog_compiler_wl_F77='-Wl,'
13992 lt_prog_compiler_pic_F77='-KPIC'
13993 lt_prog_compiler_static_F77='-static'
13996 lt_prog_compiler_wl_F77='-Wl,'
13997 # All Alpha code is PIC.
13998 lt_prog_compiler_static_F77='-non_shared'
14003 osf3* | osf4* | osf5*)
14004 lt_prog_compiler_wl_F77='-Wl,'
14005 # All OSF/1 code is PIC.
14006 lt_prog_compiler_static_F77='-non_shared'
14010 lt_prog_compiler_pic_F77='-Kpic'
14011 lt_prog_compiler_static_F77='-dn'
14015 lt_prog_compiler_wl_F77='-Wl,'
14016 lt_prog_compiler_pic_F77='-KPIC'
14017 lt_prog_compiler_static_F77='-Bstatic'
14021 lt_prog_compiler_wl_F77='-Qoption ld '
14022 lt_prog_compiler_pic_F77='-PIC'
14023 lt_prog_compiler_static_F77='-Bstatic'
14026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14027 lt_prog_compiler_wl_F77='-Wl,'
14028 lt_prog_compiler_pic_F77='-KPIC'
14029 lt_prog_compiler_static_F77='-Bstatic'
14033 if test -d /usr/nec ;then
14034 lt_prog_compiler_pic_F77='-Kconform_pic'
14035 lt_prog_compiler_static_F77='-Bstatic'
14040 lt_prog_compiler_pic_F77='-pic'
14041 lt_prog_compiler_static_F77='-Bstatic'
14045 lt_prog_compiler_can_build_shared_F77=no
14050 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14051 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14054 # Check to make sure the PIC flag actually works.
14056 if test -n "$lt_prog_compiler_pic_F77"; then
14058 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14059 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14060 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 lt_prog_compiler_pic_works_F77=no
14064 ac_outfile=conftest.$ac_objext
14065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14066 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14067 # Insert the option either (1) after the last *FLAGS variable, or
14068 # (2) before a word containing "conftest.", or (3) at the end.
14069 # Note that $ac_compile itself does not contain backslashes and begins
14070 # with a dollar sign (not a hyphen), so the echo should work correctly.
14071 # The option is referenced via a variable to avoid confusing sed.
14072 lt_compile=`echo "$ac_compile" | $SED \
14073 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14075 -e 's:$: $lt_compiler_flag:'`
14076 (eval echo "\"\$as_me:14076: $lt_compile\"" >&5)
14077 (eval "$lt_compile" 2>conftest.err)
14079 cat conftest.err >&5
14080 echo "$as_me:14080: \$? = $ac_status" >&5
14081 if (exit $ac_status) && test -s "$ac_outfile"; then
14082 # The compiler can only warn and ignore the option if not recognized
14083 # So say no if there are warnings
14084 if test ! -s conftest.err; then
14085 lt_prog_compiler_pic_works_F77=yes
14091 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14092 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14094 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14095 case $lt_prog_compiler_pic_F77 in
14097 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14100 lt_prog_compiler_pic_F77=
14101 lt_prog_compiler_can_build_shared_F77=no
14106 # For platforms which do not support PIC, -DPIC is meaningless:
14108 lt_prog_compiler_pic_F77=
14111 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14115 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14116 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14117 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 lt_cv_prog_compiler_c_o_F77=no
14121 $rm -r conftest 2>/dev/null
14125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14127 lt_compiler_flag="-o out/conftest2.$ac_objext"
14128 # Insert the option either (1) after the last *FLAGS variable, or
14129 # (2) before a word containing "conftest.", or (3) at the end.
14130 # Note that $ac_compile itself does not contain backslashes and begins
14131 # with a dollar sign (not a hyphen), so the echo should work correctly.
14132 lt_compile=`echo "$ac_compile" | $SED \
14133 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14135 -e 's:$: $lt_compiler_flag:'`
14136 (eval echo "\"\$as_me:14136: $lt_compile\"" >&5)
14137 (eval "$lt_compile" 2>out/conftest.err)
14139 cat out/conftest.err >&5
14140 echo "$as_me:14140: \$? = $ac_status" >&5
14141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14143 # The compiler can only warn and ignore the option if not recognized
14144 # So say no if there are warnings
14145 if test ! -s out/conftest.err; then
14146 lt_cv_prog_compiler_c_o_F77=yes
14151 # SGI C++ compiler will create directory out/ii_files/ for
14152 # template instantiation
14153 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14154 $rm out/* && rmdir out
14160 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14161 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14164 hard_links="nottested"
14165 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14166 # do not overwrite the value of need_locks provided by the user
14167 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14168 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14173 ln conftest.a conftest.b 2>&5 || hard_links=no
14174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14175 echo "$as_me:$LINENO: result: $hard_links" >&5
14176 echo "${ECHO_T}$hard_links" >&6
14177 if test "$hard_links" = no; then
14178 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14179 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14186 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14187 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14190 allow_undefined_flag_F77=
14191 enable_shared_with_static_runtimes_F77=no
14193 archive_expsym_cmds_F77=
14194 old_archive_From_new_cmds_F77=
14195 old_archive_from_expsyms_cmds_F77=
14196 export_dynamic_flag_spec_F77=
14197 whole_archive_flag_spec_F77=
14198 thread_safe_flag_spec_F77=
14199 hardcode_libdir_flag_spec_F77=
14200 hardcode_libdir_flag_spec_ld_F77=
14201 hardcode_libdir_separator_F77=
14202 hardcode_direct_F77=no
14203 hardcode_minus_L_F77=no
14204 hardcode_shlibpath_var_F77=unsupported
14205 link_all_deplibs_F77=unknown
14206 hardcode_automatic_F77=no
14208 module_expsym_cmds_F77=
14209 always_export_symbols_F77=no
14210 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14211 # include_expsyms should be a list of space-separated symbols to be *always*
14212 # included in the symbol list
14213 include_expsyms_F77=
14214 # exclude_expsyms can be an extended regexp of symbols to exclude
14215 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14216 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14217 # as well as any symbol that contains `d'.
14218 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14219 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14220 # platforms (ab)use it in PIC code, but their linkers get confused if
14221 # the symbol is explicitly referenced. Since portable code cannot
14222 # rely on this symbol name, it's probably fine to never include it in
14223 # preloaded symbol tables.
14224 extract_expsyms_cmds=
14227 cygwin* | mingw* | pw32*)
14228 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14229 # When not using gcc, we currently assume that we are using
14230 # Microsoft Visual C++.
14231 if test "$GCC" != yes; then
14241 if test "$with_gnu_ld" = yes; then
14242 # If archive_cmds runs LD, not CC, wlarc should be empty
14245 # See if GNU ld supports shared libraries.
14247 aix3* | aix4* | aix5*)
14248 # On AIX/PPC, the GNU linker is very broken
14249 if test "$host_cpu" != ia64; then
14253 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14254 *** to be unable to reliably create shared libraries on AIX.
14255 *** Therefore, libtool is disabling shared libraries support. If you
14256 *** really care for shared libraries, you may want to modify your PATH
14257 *** so that a non-GNU linker is found, and then restart.
14264 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)'
14265 hardcode_libdir_flag_spec_F77='-L$libdir'
14266 hardcode_minus_L_F77=yes
14268 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14269 # that the semantics of dynamic libraries on AmigaOS, at least up
14270 # to version 4, is to share data among multiple programs linked
14271 # with the same dynamic library. Since this doesn't match the
14272 # behavior of shared libraries on other platforms, we can't use
14278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14279 allow_undefined_flag_F77=unsupported
14280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14281 # support --undefined. This deserves some investigation. FIXME
14282 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14288 cygwin* | mingw* | pw32*)
14289 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14290 # as there is no search path for DLLs.
14291 hardcode_libdir_flag_spec_F77='-L$libdir'
14292 allow_undefined_flag_F77=unsupported
14293 always_export_symbols_F77=no
14294 enable_shared_with_static_runtimes_F77=yes
14295 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14297 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14298 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14299 # If the export-symbols file already is a .def file (1st line
14300 # is EXPORTS), use it as is; otherwise, prepend...
14301 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14302 cp $export_symbols $output_objdir/$soname.def;
14304 echo EXPORTS > $output_objdir/$soname.def;
14305 cat $export_symbols >> $output_objdir/$soname.def;
14307 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14314 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14315 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14318 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14319 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14324 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14328 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14329 *** create shared libraries on Solaris systems. Therefore, libtool
14330 *** is disabling shared libraries support. We urge you to upgrade GNU
14331 *** binutils to release 2.9.1 or newer. Another option is to modify
14332 *** your PATH or compiler configuration so that the native linker is
14333 *** used, and then restart.
14336 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14337 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14345 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14347 hardcode_direct_F77=yes
14348 hardcode_shlibpath_var_F77=no
14352 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14353 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14354 archive_cmds_F77="$tmp_archive_cmds"
14355 supports_anon_versioning=no
14356 case `$LD -v 2>/dev/null` in
14357 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14358 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14359 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14360 *\ 2.11.*) ;; # other 2.11 versions
14361 *) supports_anon_versioning=yes ;;
14363 if test $supports_anon_versioning = yes; then
14364 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14366 $echo "local: *; };" >> $output_objdir/$libname.ver~
14367 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14369 archive_expsym_cmds_F77="$tmp_archive_cmds"
14377 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14386 if test "$ld_shlibs_F77" = yes; then
14387 runpath_var=LD_RUN_PATH
14388 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14389 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14390 # ancient GNU ld didn't support --whole-archive et. al.
14391 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14392 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14394 whole_archive_flag_spec_F77=
14398 # PORTME fill in a description of your system's linker (not GNU ld)
14401 allow_undefined_flag_F77=unsupported
14402 always_export_symbols_F77=yes
14403 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'
14404 # Note: this linker hardcodes the directories in LIBPATH if there
14405 # are no directories specified by -L.
14406 hardcode_minus_L_F77=yes
14407 if test "$GCC" = yes && test -z "$link_static_flag"; then
14408 # Neither direct hardcoding nor static linking is supported with a
14410 hardcode_direct_F77=unsupported
14415 if test "$host_cpu" = ia64; then
14416 # On IA64, the linker does run time linking by default, so we don't
14417 # have to do anything special.
14418 aix_use_runtimelinking=no
14419 exp_sym_flag='-Bexport'
14422 # If we're using GNU nm, then we don't want the "-C" option.
14423 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14424 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14425 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'
14427 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'
14429 aix_use_runtimelinking=no
14431 # Test if we are trying to use run time linking or normal
14432 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14433 # need to do runtime linking.
14434 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14435 for ld_flag in $LDFLAGS; do
14436 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14437 aix_use_runtimelinking=yes
14443 exp_sym_flag='-bexport'
14444 no_entry_flag='-bnoentry'
14447 # When large executables or shared objects are built, AIX ld can
14448 # have problems creating the table of contents. If linking a library
14449 # or program results in "error TOC overflow" add -mminimal-toc to
14450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14453 archive_cmds_F77=''
14454 hardcode_direct_F77=yes
14455 hardcode_libdir_separator_F77=':'
14456 link_all_deplibs_F77=yes
14458 if test "$GCC" = yes; then
14459 case $host_os in aix4.012|aix4.012.*)
14460 # We only want to do this on AIX 4.2 and lower, the check
14461 # below for broken collect2 doesn't work under 4.3+
14462 collect2name=`${CC} -print-prog-name=collect2`
14463 if test -f "$collect2name" && \
14464 strings "$collect2name" | grep resolve_lib_name >/dev/null
14466 # We have reworked collect2
14467 hardcode_direct_F77=yes
14469 # We have old collect2
14470 hardcode_direct_F77=unsupported
14471 # It fails to find uninstalled libraries when the uninstalled
14472 # path is not listed in the libpath. Setting hardcode_minus_L
14473 # to unsupported forces relinking
14474 hardcode_minus_L_F77=yes
14475 hardcode_libdir_flag_spec_F77='-L$libdir'
14476 hardcode_libdir_separator_F77=
14479 shared_flag='-shared'
14482 if test "$host_cpu" = ia64; then
14483 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14484 # chokes on -Wl,-G. The following line is correct:
14487 if test "$aix_use_runtimelinking" = yes; then
14488 shared_flag='${wl}-G'
14490 shared_flag='${wl}-bM:SRE'
14495 # It seems that -bexpall does not export symbols beginning with
14496 # underscore (_), so it is better to generate a list of symbols to export.
14497 always_export_symbols_F77=yes
14498 if test "$aix_use_runtimelinking" = yes; then
14499 # Warning - without using the other runtime loading flags (-brtl),
14500 # -berok will link without error, but may produce a broken library.
14501 allow_undefined_flag_F77='-berok'
14502 # Determine the default libpath from the value encoded in an empty executable.
14503 cat >conftest.$ac_ext <<_ACEOF
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14510 (eval $ac_link) 2>conftest.er1
14512 grep -v '^ *+' conftest.er1 >conftest.err
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_f77_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest$ac_exeext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14533 # Check for a 64-bit object if we didn't find anything.
14534 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; }
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14541 rm -f conftest.err conftest.$ac_objext \
14542 conftest$ac_exeext conftest.$ac_ext
14543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14545 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14546 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"
14548 if test "$host_cpu" = ia64; then
14549 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14550 allow_undefined_flag_F77="-z nodefs"
14551 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"
14553 # Determine the default libpath from the value encoded in an empty executable.
14554 cat >conftest.$ac_ext <<_ACEOF
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>conftest.er1
14563 grep -v '^ *+' conftest.er1 >conftest.err
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_f77_werror_flag"
14569 || test ! -s conftest.err'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest$ac_exeext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14584 # Check for a 64-bit object if we didn't find anything.
14585 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; }
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14592 rm -f conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
14594 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14596 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14597 # Warning - without using the other run time loading flags,
14598 # -berok will link without error, but may produce a broken library.
14599 no_undefined_flag_F77=' ${wl}-bernotok'
14600 allow_undefined_flag_F77=' ${wl}-berok'
14601 # -bexpall does not export symbols beginning with underscore (_)
14602 always_export_symbols_F77=yes
14603 # Exported symbols can be pulled into shared objects from archives
14604 whole_archive_flag_spec_F77=' '
14605 archive_cmds_need_lc_F77=yes
14606 # This is similar to how AIX traditionally builds it's shared libraries.
14607 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'
14613 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)'
14614 hardcode_libdir_flag_spec_F77='-L$libdir'
14615 hardcode_minus_L_F77=yes
14616 # see comment about different semantics on the GNU ld section
14621 export_dynamic_flag_spec_F77=-rdynamic
14624 cygwin* | mingw* | pw32*)
14625 # When not using gcc, we currently assume that we are using
14626 # Microsoft Visual C++.
14627 # hardcode_libdir_flag_spec is actually meaningless, as there is
14628 # no search path for DLLs.
14629 hardcode_libdir_flag_spec_F77=' '
14630 allow_undefined_flag_F77=unsupported
14631 # Tell ltmain to make .lib files, not .a files.
14633 # Tell ltmain to make .dll files, not .so files.
14635 # FIXME: Setting linknames here is a bad hack.
14636 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14637 # The linker will automatically build a .lib file if we build a DLL.
14638 old_archive_From_new_cmds_F77='true'
14639 # FIXME: Should let the user specify the lib program.
14640 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14641 fix_srcfile_path='`cygpath -w "$srcfile"`'
14642 enable_shared_with_static_runtimes_F77=yes
14645 darwin* | rhapsody*)
14647 rhapsody* | darwin1.[012])
14648 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14651 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14652 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14654 case ${MACOSX_DEPLOYMENT_TARGET} in
14656 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14659 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14665 archive_cmds_need_lc_F77=no
14666 hardcode_direct_F77=no
14667 hardcode_automatic_F77=yes
14668 hardcode_shlibpath_var_F77=unsupported
14669 whole_archive_flag_spec_F77=''
14670 link_all_deplibs_F77=yes
14671 if test "$GCC" = yes ; then
14672 output_verbose_link_cmd='echo'
14673 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14674 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14675 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14676 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}'
14677 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}'
14679 case "$cc_basename" in
14681 output_verbose_link_cmd='echo'
14682 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14683 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14684 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14685 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}'
14686 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}'
14696 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14697 hardcode_libdir_flag_spec_F77='-L$libdir'
14698 hardcode_shlibpath_var_F77=no
14705 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14706 # support. Future versions do this automatically, but an explicit c++rt0.o
14707 # does not break anything, and helps significantly (at the cost of a little
14710 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14711 hardcode_libdir_flag_spec_F77='-R$libdir'
14712 hardcode_direct_F77=yes
14713 hardcode_shlibpath_var_F77=no
14716 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14718 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14719 hardcode_direct_F77=yes
14720 hardcode_minus_L_F77=yes
14721 hardcode_shlibpath_var_F77=no
14724 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14725 freebsd* | kfreebsd*-gnu)
14726 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14727 hardcode_libdir_flag_spec_F77='-R$libdir'
14728 hardcode_direct_F77=yes
14729 hardcode_shlibpath_var_F77=no
14733 if test "$GCC" = yes; then
14734 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'
14736 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'
14738 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14739 hardcode_libdir_separator_F77=:
14740 hardcode_direct_F77=yes
14742 # hardcode_minus_L: Not really in the search PATH,
14743 # but as the default location of the library.
14744 hardcode_minus_L_F77=yes
14745 export_dynamic_flag_spec_F77='${wl}-E'
14749 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14750 case "$host_cpu" in
14752 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14755 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14759 case "$host_cpu" in
14761 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14764 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14768 if test "$with_gnu_ld" = no; then
14769 case "$host_cpu" in
14771 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14772 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14773 hardcode_libdir_separator_F77=:
14774 hardcode_direct_F77=no
14775 hardcode_shlibpath_var_F77=no
14778 hardcode_libdir_flag_spec_F77='-L$libdir'
14779 hardcode_direct_F77=no
14780 hardcode_shlibpath_var_F77=no
14782 # hardcode_minus_L: Not really in the search PATH,
14783 # but as the default location of the library.
14784 hardcode_minus_L_F77=yes
14787 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14788 hardcode_libdir_separator_F77=:
14789 hardcode_direct_F77=yes
14790 export_dynamic_flag_spec_F77='${wl}-E'
14792 # hardcode_minus_L: Not really in the search PATH,
14793 # but as the default location of the library.
14794 hardcode_minus_L_F77=yes
14800 irix5* | irix6* | nonstopux*)
14801 if test "$GCC" = yes; then
14802 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'
14804 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'
14805 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14807 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14808 hardcode_libdir_separator_F77=:
14809 link_all_deplibs_F77=yes
14813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14814 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14816 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14818 hardcode_libdir_flag_spec_F77='-R$libdir'
14819 hardcode_direct_F77=yes
14820 hardcode_shlibpath_var_F77=no
14824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14825 hardcode_direct_F77=yes
14826 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14827 hardcode_libdir_separator_F77=:
14828 hardcode_shlibpath_var_F77=no
14832 hardcode_direct_F77=yes
14833 hardcode_shlibpath_var_F77=no
14834 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14835 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14836 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14837 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14838 export_dynamic_flag_spec_F77='${wl}-E'
14841 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14842 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14843 hardcode_libdir_flag_spec_F77='-R$libdir'
14846 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14847 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14854 hardcode_libdir_flag_spec_F77='-L$libdir'
14855 hardcode_minus_L_F77=yes
14856 allow_undefined_flag_F77=unsupported
14857 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'
14858 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14862 if test "$GCC" = yes; then
14863 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14864 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'
14866 allow_undefined_flag_F77=' -expect_unresolved \*'
14867 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'
14869 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14870 hardcode_libdir_separator_F77=:
14873 osf4* | osf5*) # as osf3* with the addition of -msym flag
14874 if test "$GCC" = yes; then
14875 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14876 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'
14877 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14879 allow_undefined_flag_F77=' -expect_unresolved \*'
14880 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'
14881 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~
14882 $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'
14884 # Both c and cxx compiler support -rpath directly
14885 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14887 hardcode_libdir_separator_F77=:
14891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892 hardcode_shlibpath_var_F77=no
14893 export_dynamic_flag_spec_F77='${wl}-Bexport'
14894 runpath_var=LD_RUN_PATH
14895 hardcode_runpath_var=yes
14899 no_undefined_flag_F77=' -z text'
14900 if test "$GCC" = yes; then
14901 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14902 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14903 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14905 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14906 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14909 hardcode_libdir_flag_spec_F77='-R$libdir'
14910 hardcode_shlibpath_var_F77=no
14912 solaris2.[0-5] | solaris2.[0-5].*) ;;
14913 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14914 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14916 link_all_deplibs_F77=yes
14920 if test "x$host_vendor" = xsequent; then
14921 # Use $CC to link under sequent, because it throws in some extra .o
14922 # files that make .init and .fini sections work.
14923 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14925 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14927 hardcode_libdir_flag_spec_F77='-L$libdir'
14928 hardcode_direct_F77=yes
14929 hardcode_minus_L_F77=yes
14930 hardcode_shlibpath_var_F77=no
14934 case $host_vendor in
14936 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14937 hardcode_direct_F77=yes # is this really true???
14940 ## LD is ld it makes a PLAMLIB
14941 ## CC just makes a GrossModule.
14942 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14943 reload_cmds_F77='$CC -r -o $output$reload_objs'
14944 hardcode_direct_F77=no
14947 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14951 runpath_var='LD_RUN_PATH'
14952 hardcode_shlibpath_var_F77=no
14956 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957 hardcode_shlibpath_var_F77=no
14958 export_dynamic_flag_spec_F77='-Bexport'
14962 if test -d /usr/nec; then
14963 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14964 hardcode_shlibpath_var_F77=no
14965 runpath_var=LD_RUN_PATH
14966 hardcode_runpath_var=yes
14972 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14973 hardcode_direct_F77=yes
14974 hardcode_minus_L_F77=no
14975 hardcode_shlibpath_var_F77=no
14976 hardcode_runpath_var=yes
14977 runpath_var=LD_RUN_PATH
14980 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14981 no_undefined_flag_F77='${wl}-z ${wl}text'
14982 if test "$GCC" = yes; then
14983 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14985 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14987 runpath_var='LD_RUN_PATH'
14988 hardcode_shlibpath_var_F77=no
14992 no_undefined_flag_F77=' -z text'
14993 # $CC -shared without GNU ld will not create a library from C++
14994 # object files and a static libstdc++, better avoid it by now
14995 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14996 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14997 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14998 hardcode_libdir_flag_spec_F77=
14999 hardcode_shlibpath_var_F77=no
15000 runpath_var='LD_RUN_PATH'
15004 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005 hardcode_libdir_flag_spec_F77='-L$libdir'
15006 hardcode_shlibpath_var_F77=no
15015 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15016 echo "${ECHO_T}$ld_shlibs_F77" >&6
15017 test "$ld_shlibs_F77" = no && can_build_shared=no
15019 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15020 if test "$GCC" = yes; then
15021 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15025 # Do we need to explicitly link libc?
15027 case "x$archive_cmds_need_lc_F77" in
15029 # Assume -lc should be added
15030 archive_cmds_need_lc_F77=yes
15032 if test "$enable_shared" = yes && test "$GCC" = yes; then
15033 case $archive_cmds_F77 in
15035 # FIXME: we may have to deal with multi-command sequences.
15038 # Test whether the compiler implicitly links with -lc since on some
15039 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15040 # to ld, don't add -lc before -lgcc.
15041 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15042 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } 2>conftest.err; then
15053 libobjs=conftest.$ac_objext
15055 wl=$lt_prog_compiler_wl_F77
15061 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15062 allow_undefined_flag_F77=
15063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15064 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }
15069 archive_cmds_need_lc_F77=no
15071 archive_cmds_need_lc_F77=yes
15073 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15075 cat conftest.err 1>&5
15078 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15079 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15086 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15087 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15088 library_names_spec=
15089 libname_spec='lib$name'
15093 postuninstall_cmds=
15097 shlibpath_overrides_runpath=unknown
15099 dynamic_linker="$host_os ld.so"
15100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15101 if test "$GCC" = yes; then
15102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15103 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15104 # if the path contains ";" then we assume it to be the separator
15105 # otherwise default to the standard path separator (i.e. ":") - it is
15106 # assumed that no part of a normal pathname contains ";" but that should
15107 # okay in the real world where ";" in dirpaths is itself problematic.
15108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15115 need_lib_prefix=unknown
15116 hardcode_into_libs=no
15118 # when you set need_version to no, make sure it does not cause -set_version
15119 # flags to be left without arguments
15120 need_version=unknown
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15126 shlibpath_var=LIBPATH
15128 # AIX 3 has no versioning support, so we append a major version to the name.
15129 soname_spec='${libname}${release}${shared_ext}$major'
15136 hardcode_into_libs=yes
15137 if test "$host_cpu" = ia64; then
15138 # AIX 5 supports IA64
15139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15140 shlibpath_var=LD_LIBRARY_PATH
15142 # With GCC up to 2.95.x, collect2 would create an import file
15143 # for dependence libraries. The import file would start with
15144 # the line `#! .'. This would cause the generated library to
15145 # depend on `.', always an invalid library. This was fixed in
15146 # development snapshots of GCC prior to 3.0.
15148 aix4 | aix4.[01] | aix4.[01].*)
15149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15154 can_build_shared=no
15158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15159 # soname into executable. Probably we can add versioning support to
15160 # collect2, so additional links can be useful in future.
15161 if test "$aix_use_runtimelinking" = yes; then
15162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15163 # instead of lib<name>.a to let people know that these are not
15164 # typical AIX shared libraries.
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15167 # We preserve .a as extension for shared libraries through AIX4.2
15168 # and later when we are not doing run time linking.
15169 library_names_spec='${libname}${release}.a $libname.a'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15172 shlibpath_var=LIBPATH
15177 library_names_spec='$libname.ixlibrary $libname.a'
15178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15179 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'
15183 library_names_spec='${libname}${shared_ext}'
15184 dynamic_linker="$host_os ld.so"
15185 shlibpath_var=LIBRARY_PATH
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15197 # the default ld.so.conf also contains /usr/contrib/lib and
15198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15199 # libtool to hard-code these into programs
15202 cygwin* | mingw* | pw32*)
15203 version_type=windows
15208 case $GCC,$host_os in
15209 yes,cygwin* | yes,mingw* | yes,pw32*)
15210 library_names_spec='$libname.dll.a'
15211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15212 postinstall_cmds='base_file=`basename \${file}`~
15213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15214 dldir=$destdir/`dirname \$dlpath`~
15215 test -d \$dldir || mkdir -p \$dldir~
15216 $install_prog $dir/$dlname \$dldir/$dlname'
15217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15218 dlpath=$dir/\$dldll~
15220 shlibpath_overrides_runpath=yes
15224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15226 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15229 # MinGW DLLs use traditional 'lib' prefix
15230 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15231 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15232 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15233 # It is most probably a Windows format PATH printed by
15234 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15235 # path with ; separators, and with drive letters. We can handle the
15236 # drive letters (cygwin fileutils understands them), so leave them,
15237 # especially as we might pass files found there to a mingw objdump,
15238 # which wouldn't understand a cygwinified path. Ahh.
15239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15245 # pw32 DLLs use 'pw' prefix rather than 'lib'
15246 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15252 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15255 dynamic_linker='Win32 ld.exe'
15256 # FIXME: first we should search . and the directory the executable is in
15260 darwin* | rhapsody*)
15261 dynamic_linker="$host_os dyld"
15262 version_type=darwin
15265 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15266 soname_spec='${libname}${release}${major}$shared_ext'
15267 shlibpath_overrides_runpath=yes
15268 shlibpath_var=DYLD_LIBRARY_PATH
15269 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15270 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15271 if test "$GCC" = yes; then
15272 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"`
15274 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 shlibpath_var=LD_LIBRARY_PATH
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 shlibpath_overrides_runpath=no
15300 hardcode_into_libs=yes
15301 dynamic_linker='GNU ld.so'
15305 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15306 version_type=freebsd-$objformat
15307 case $version_type in
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15318 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=yes
15323 freebsd3.01* | freebsdelf3.01*)
15324 shlibpath_overrides_runpath=yes
15325 hardcode_into_libs=yes
15328 shlibpath_overrides_runpath=no
15329 hardcode_into_libs=yes
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 hardcode_into_libs=yes
15344 hpux9* | hpux10* | hpux11*)
15345 # Give a soname corresponding to the major version so that dld.sl refuses to
15346 # link against other versions.
15350 case "$host_cpu" in
15353 hardcode_into_libs=yes
15354 dynamic_linker="$host_os dld.so"
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 if test "X$HPUX_IA64_MODE" = X32; then
15360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15368 hardcode_into_libs=yes
15369 dynamic_linker="$host_os dld.sl"
15370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15379 dynamic_linker="$host_os dld.sl"
15380 shlibpath_var=SHLIB_PATH
15381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15386 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15387 postinstall_cmds='chmod 555 $lib'
15390 irix5* | irix6* | nonstopux*)
15392 nonstopux*) version_type=nonstopux ;;
15394 if test "$lt_cv_prog_gnu_ld" = yes; then
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15405 irix5* | nonstopux*)
15406 libsuff= shlibsuff=
15409 case $LD in # libtool.m4 will add one of these switches to LD
15410 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15411 libsuff= shlibsuff= libmagic=32-bit;;
15412 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15413 libsuff=32 shlibsuff=N32 libmagic=N32;;
15414 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15415 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15416 *) libsuff= shlibsuff= libmagic=never-match;;
15420 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15421 shlibpath_overrides_runpath=no
15422 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15423 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15424 hardcode_into_libs=yes
15427 # No shared lib support for Linux oldld, aout, or coff.
15428 linux*oldld* | linux*aout* | linux*coff*)
15432 # This must be Linux ELF.
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=no
15442 # This implies no fast_install, which is unacceptable.
15443 # Some rework will be needed to allow for fast_install
15444 # before this can be enabled.
15445 hardcode_into_libs=yes
15447 # Append ld.so.conf contents to the search path
15448 if test -f /etc/ld.so.conf; then
15449 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15450 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15453 # We used to test for /lib/ld.so.1 and disable shared libraries on
15454 # powerpc, because MkLinux only supported shared libraries with the
15455 # GNU dynamic linker. Since this was broken with cross compilers,
15456 # most powerpc-linux boxes support dynamic linking these days and
15457 # people can always --disable-shared, the test was removed, and we
15458 # assume the GNU/Linux dynamic linker is in use.
15459 dynamic_linker='GNU/Linux ld.so'
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15467 soname_spec='${libname}${release}${shared_ext}$major'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 shlibpath_overrides_runpath=no
15470 hardcode_into_libs=yes
15471 dynamic_linker='GNU ld.so'
15478 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15481 dynamic_linker='NetBSD (a.out) ld.so'
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 dynamic_linker='NetBSD ld.elf_so'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 shlibpath_overrides_runpath=yes
15489 hardcode_into_libs=yes
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=yes
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 shlibpath_overrides_runpath=yes
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15515 shlibpath_var=LD_LIBRARY_PATH
15516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15518 openbsd2.[89] | openbsd2.[89].*)
15519 shlibpath_overrides_runpath=no
15522 shlibpath_overrides_runpath=yes
15526 shlibpath_overrides_runpath=yes
15531 libname_spec='$name'
15534 library_names_spec='$libname${shared_ext} $libname.a'
15535 dynamic_linker='OS/2 ld.exe'
15536 shlibpath_var=LIBPATH
15539 osf3* | osf4* | osf5*)
15543 soname_spec='${libname}${release}${shared_ext}$major'
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545 shlibpath_var=LD_LIBRARY_PATH
15546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15552 soname_spec='${libname}${release}${shared_ext}$major'
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554 shlibpath_var=LD_LIBRARY_PATH
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 shlibpath_var=LD_LIBRARY_PATH
15564 shlibpath_overrides_runpath=yes
15565 hardcode_into_libs=yes
15566 # ldd complains unless libraries are executable
15567 postinstall_cmds='chmod +x $lib'
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15573 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15574 shlibpath_var=LD_LIBRARY_PATH
15575 shlibpath_overrides_runpath=yes
15576 if test "$with_gnu_ld" = yes; then
15582 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585 soname_spec='${libname}${release}${shared_ext}$major'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 case $host_vendor in
15589 shlibpath_overrides_runpath=no
15591 export_dynamic_flag_spec='${wl}-Blargedynsym'
15592 runpath_var=LD_RUN_PATH
15600 shlibpath_overrides_runpath=no
15601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15607 if test -d /usr/nec ;then
15609 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15610 soname_spec='$libname${shared_ext}.$major'
15611 shlibpath_var=LD_LIBRARY_PATH
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 shlibpath_var=LD_LIBRARY_PATH
15626 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15627 echo "${ECHO_T}$dynamic_linker" >&6
15628 test "$dynamic_linker" = no && can_build_shared=no
15630 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15631 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15632 hardcode_action_F77=
15633 if test -n "$hardcode_libdir_flag_spec_F77" || \
15634 test -n "$runpath_var_F77" || \
15635 test "X$hardcode_automatic_F77" = "Xyes" ; then
15637 # We can hardcode non-existant directories.
15638 if test "$hardcode_direct_F77" != no &&
15639 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15640 # have to relink, otherwise we might link with an installed library
15641 # when we should be linking with a yet-to-be-installed one
15642 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15643 test "$hardcode_minus_L_F77" != no; then
15644 # Linking always hardcodes the temporary library directory.
15645 hardcode_action_F77=relink
15647 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15648 hardcode_action_F77=immediate
15651 # We cannot hardcode anything, or else we can only hardcode existing
15653 hardcode_action_F77=unsupported
15655 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15656 echo "${ECHO_T}$hardcode_action_F77" >&6
15658 if test "$hardcode_action_F77" = relink; then
15659 # Fast installation is not supported
15660 enable_fast_install=no
15661 elif test "$shlibpath_overrides_runpath" = yes ||
15662 test "$enable_shared" = no; then
15663 # Fast installation is not necessary
15664 enable_fast_install=needless
15669 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15670 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15671 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15672 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15673 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15674 echo "$as_me:$LINENO: result: yes" >&5
15675 echo "${ECHO_T}yes" >&6
15677 # FIXME - insert some real tests, host_os isn't really good enough
15680 if test -n "$STRIP" ; then
15681 striplib="$STRIP -x"
15682 echo "$as_me:$LINENO: result: yes" >&5
15683 echo "${ECHO_T}yes" >&6
15685 echo "$as_me:$LINENO: result: no" >&5
15686 echo "${ECHO_T}no" >&6
15690 echo "$as_me:$LINENO: result: no" >&5
15691 echo "${ECHO_T}no" >&6
15698 # The else clause should only fire when bootstrapping the
15699 # libtool distribution, otherwise you forgot to ship ltmain.sh
15700 # with your package, and you will get complaints that there are
15701 # no rules to generate ltmain.sh.
15702 if test -f "$ltmain"; then
15703 # See if we are running on zsh, and set the options which allow our commands through
15704 # without removal of \ escapes.
15705 if test -n "${ZSH_VERSION+set}" ; then
15706 setopt NO_GLOB_SUBST
15708 # Now quote all the things that may contain metacharacters while being
15709 # careful not to overquote the AC_SUBSTed values. We take copies of the
15710 # variables and quote the copies for generation of the libtool script.
15711 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15713 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15714 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15715 deplibs_check_method reload_flag reload_cmds need_locks \
15716 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15717 lt_cv_sys_global_symbol_to_c_name_address \
15718 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15719 old_postinstall_cmds old_postuninstall_cmds \
15723 lt_prog_compiler_wl_F77 \
15724 lt_prog_compiler_pic_F77 \
15725 lt_prog_compiler_static_F77 \
15726 lt_prog_compiler_no_builtin_flag_F77 \
15727 export_dynamic_flag_spec_F77 \
15728 thread_safe_flag_spec_F77 \
15729 whole_archive_flag_spec_F77 \
15730 enable_shared_with_static_runtimes_F77 \
15731 old_archive_cmds_F77 \
15732 old_archive_from_new_cmds_F77 \
15733 predep_objects_F77 \
15734 postdep_objects_F77 \
15737 compiler_lib_search_path_F77 \
15739 archive_expsym_cmds_F77 \
15740 postinstall_cmds_F77 \
15741 postuninstall_cmds_F77 \
15742 old_archive_from_expsyms_cmds_F77 \
15743 allow_undefined_flag_F77 \
15744 no_undefined_flag_F77 \
15745 export_symbols_cmds_F77 \
15746 hardcode_libdir_flag_spec_F77 \
15747 hardcode_libdir_flag_spec_ld_F77 \
15748 hardcode_libdir_separator_F77 \
15749 hardcode_automatic_F77 \
15751 module_expsym_cmds_F77 \
15752 lt_cv_prog_compiler_c_o_F77 \
15753 exclude_expsyms_F77 \
15754 include_expsyms_F77; do
15757 old_archive_cmds_F77 | \
15758 old_archive_from_new_cmds_F77 | \
15759 archive_cmds_F77 | \
15760 archive_expsym_cmds_F77 | \
15761 module_cmds_F77 | \
15762 module_expsym_cmds_F77 | \
15763 old_archive_from_expsyms_cmds_F77 | \
15764 export_symbols_cmds_F77 | \
15765 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15766 postinstall_cmds | postuninstall_cmds | \
15767 old_postinstall_cmds | old_postuninstall_cmds | \
15768 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15769 # Double-quote double-evaled strings.
15770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15779 *'\$0 --fallback-echo"')
15780 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15786 cat <<__EOF__ >> "$cfgfile"
15787 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15789 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15791 # Shell to use when invoking shell scripts.
15794 # Whether or not to build shared libraries.
15795 build_libtool_libs=$enable_shared
15797 # Whether or not to build static libraries.
15798 build_old_libs=$enable_static
15800 # Whether or not to add -lc for building shared libraries.
15801 build_libtool_need_lc=$archive_cmds_need_lc_F77
15803 # Whether or not to disallow shared libs when runtime libs are static
15804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15806 # Whether or not to optimize for fast installation.
15807 fast_install=$enable_fast_install
15810 host_alias=$host_alias
15813 # An echo program that does not interpret backslashes.
15818 AR_FLAGS=$lt_AR_FLAGS
15823 # A language-specific compiler.
15824 CC=$lt_compiler_F77
15826 # Is the compiler the GNU C compiler?
15832 # The linker used to build libraries.
15835 # Whether we need hard or soft links.
15838 # A BSD-compatible nm program.
15841 # A symbol stripping program
15844 # Used to examine libraries when file_magic_cmd begins "file"
15845 MAGIC_CMD=$MAGIC_CMD
15847 # Used on cygwin: DLL creation program.
15850 # Used on cygwin: object dumper.
15853 # Used on cygwin: assembler.
15856 # The name of the directory that contains temporary libtool files.
15859 # How to create reloadable object files.
15860 reload_flag=$lt_reload_flag
15861 reload_cmds=$lt_reload_cmds
15863 # How to pass a linker flag through the compiler.
15864 wl=$lt_lt_prog_compiler_wl_F77
15866 # Object file suffix (normally "o").
15867 objext="$ac_objext"
15869 # Old archive suffix (normally "a").
15872 # Shared library suffix (normally ".so").
15873 shrext_cmds='$shrext_cmds'
15875 # Executable file suffix (normally "").
15878 # Additional compiler flags for building library objects.
15879 pic_flag=$lt_lt_prog_compiler_pic_F77
15882 # What is the maximum length of a command?
15883 max_cmd_len=$lt_cv_sys_max_cmd_len
15885 # Does compiler simultaneously support -c and -o options?
15886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15888 # Must we lock files when doing compilation ?
15889 need_locks=$lt_need_locks
15891 # Do we need the lib prefix for modules?
15892 need_lib_prefix=$need_lib_prefix
15894 # Do we need a version for libraries?
15895 need_version=$need_version
15897 # Whether dlopen is supported.
15898 dlopen_support=$enable_dlopen
15900 # Whether dlopen of programs is supported.
15901 dlopen_self=$enable_dlopen_self
15903 # Whether dlopen of statically linked programs is supported.
15904 dlopen_self_static=$enable_dlopen_self_static
15906 # Compiler flag to prevent dynamic linking.
15907 link_static_flag=$lt_lt_prog_compiler_static_F77
15909 # Compiler flag to turn off builtin functions.
15910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15912 # Compiler flag to allow reflexive dlopens.
15913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15915 # Compiler flag to generate shared objects directly from archives.
15916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15918 # Compiler flag to generate thread-safe objects.
15919 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15921 # Library versioning type.
15922 version_type=$version_type
15924 # Format of library name prefix.
15925 libname_spec=$lt_libname_spec
15927 # List of archive names. First name is the real one, the rest are links.
15928 # The last name is the one that the linker finds with -lNAME.
15929 library_names_spec=$lt_library_names_spec
15931 # The coded name of the library, if different from the real name.
15932 soname_spec=$lt_soname_spec
15934 # Commands used to build and install an old-style archive.
15936 old_archive_cmds=$lt_old_archive_cmds_F77
15937 old_postinstall_cmds=$lt_old_postinstall_cmds
15938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15940 # Create an old-style archive from a shared archive.
15941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15943 # Create a temporary old-style archive to link instead of a shared archive.
15944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15946 # Commands used to build and install a shared archive.
15947 archive_cmds=$lt_archive_cmds_F77
15948 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15949 postinstall_cmds=$lt_postinstall_cmds
15950 postuninstall_cmds=$lt_postuninstall_cmds
15952 # Commands used to build a loadable module (assumed same as above if empty)
15953 module_cmds=$lt_module_cmds_F77
15954 module_expsym_cmds=$lt_module_expsym_cmds_F77
15956 # Commands to strip libraries.
15957 old_striplib=$lt_old_striplib
15958 striplib=$lt_striplib
15960 # Dependencies to place before the objects being linked to create a
15962 predep_objects=$lt_predep_objects_F77
15964 # Dependencies to place after the objects being linked to create a
15966 postdep_objects=$lt_postdep_objects_F77
15968 # Dependencies to place before the objects being linked to create a
15970 predeps=$lt_predeps_F77
15972 # Dependencies to place after the objects being linked to create a
15974 postdeps=$lt_postdeps_F77
15976 # The library search path used internally by the compiler when linking
15977 # a shared library.
15978 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15980 # Method to check whether dependent libraries are shared objects.
15981 deplibs_check_method=$lt_deplibs_check_method
15983 # Command to use when deplibs_check_method == file_magic.
15984 file_magic_cmd=$lt_file_magic_cmd
15986 # Flag that allows shared libraries with undefined symbols to be built.
15987 allow_undefined_flag=$lt_allow_undefined_flag_F77
15989 # Flag that forces no undefined symbols.
15990 no_undefined_flag=$lt_no_undefined_flag_F77
15992 # Commands used to finish a libtool library installation in a directory.
15993 finish_cmds=$lt_finish_cmds
15995 # Same as above, but a single script fragment to be evaled but not shown.
15996 finish_eval=$lt_finish_eval
15998 # Take the output of nm and produce a listing of raw symbols and C names.
15999 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16001 # Transform the output of nm in a proper C declaration
16002 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16004 # Transform the output of nm in a C name address pair
16005 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16007 # This is the shared library runtime path variable.
16008 runpath_var=$runpath_var
16010 # This is the shared library path variable.
16011 shlibpath_var=$shlibpath_var
16013 # Is shlibpath searched before the hard-coded library search path?
16014 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16016 # How to hardcode a shared library path into an executable.
16017 hardcode_action=$hardcode_action_F77
16019 # Whether we should hardcode library paths into libraries.
16020 hardcode_into_libs=$hardcode_into_libs
16022 # Flag to hardcode \$libdir into a binary during linking.
16023 # This must work even if \$libdir does not exist.
16024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16026 # If ld is used when linking, flag to hardcode \$libdir into
16027 # a binary during linking. This must work even if \$libdir does
16029 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16031 # Whether we need a single -rpath flag with a separated argument.
16032 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16034 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16035 # resulting binary.
16036 hardcode_direct=$hardcode_direct_F77
16038 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16039 # resulting binary.
16040 hardcode_minus_L=$hardcode_minus_L_F77
16042 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16043 # the resulting binary.
16044 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16046 # Set to yes if building a shared library automatically hardcodes DIR into the library
16047 # and all subsequent libraries and executables linked against it.
16048 hardcode_automatic=$hardcode_automatic_F77
16050 # Variables whose values should be saved in libtool wrapper scripts and
16051 # restored at relink time.
16052 variables_saved_for_relink="$variables_saved_for_relink"
16054 # Whether libtool must link a program against all its dependency libraries.
16055 link_all_deplibs=$link_all_deplibs_F77
16057 # Compile-time system search path for libraries
16058 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16060 # Run-time system search path for libraries
16061 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16063 # Fix the shell variable \$srcfile for the compiler.
16064 fix_srcfile_path="$fix_srcfile_path_F77"
16066 # Set to yes if exported symbols are required.
16067 always_export_symbols=$always_export_symbols_F77
16069 # The commands to list exported symbols.
16070 export_symbols_cmds=$lt_export_symbols_cmds_F77
16072 # The commands to extract the exported symbol list from a shared archive.
16073 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16075 # Symbols that should not be listed in the preloaded symbols.
16076 exclude_expsyms=$lt_exclude_expsyms_F77
16078 # Symbols that must always be exported.
16079 include_expsyms=$lt_include_expsyms_F77
16081 # ### END LIBTOOL TAG CONFIG: $tagname
16087 # If there is no Makefile yet, we rely on a make rule to execute
16088 # `config.status --recheck' to rerun these tests and create the
16089 # libtool script then.
16090 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16091 if test -f "$ltmain_in"; then
16092 test -f Makefile && make "$ltmain"
16098 ac_cpp='$CPP $CPPFLAGS'
16099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16111 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16113 ac_cpp='$CPP $CPPFLAGS'
16114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16119 # Source file extension for Java test sources.
16122 # Object file extension for compiled Java test sources.
16126 # Code to be used in simple compile tests
16127 lt_simple_compile_test_code="class foo {}\n"
16129 # Code to be used in simple link tests
16130 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16132 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16134 # If no C compiler was specified, use CC.
16137 # Allow CC to be a program name with arguments.
16141 # Allow CC to be a program name with arguments.
16147 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16148 archive_cmds_need_lc_GCJ=no
16151 lt_prog_compiler_no_builtin_flag_GCJ=
16153 if test "$GCC" = yes; then
16154 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16157 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16158 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16159 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 lt_cv_prog_compiler_rtti_exceptions=no
16163 ac_outfile=conftest.$ac_objext
16164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16165 lt_compiler_flag="-fno-rtti -fno-exceptions"
16166 # Insert the option either (1) after the last *FLAGS variable, or
16167 # (2) before a word containing "conftest.", or (3) at the end.
16168 # Note that $ac_compile itself does not contain backslashes and begins
16169 # with a dollar sign (not a hyphen), so the echo should work correctly.
16170 # The option is referenced via a variable to avoid confusing sed.
16171 lt_compile=`echo "$ac_compile" | $SED \
16172 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16174 -e 's:$: $lt_compiler_flag:'`
16175 (eval echo "\"\$as_me:16175: $lt_compile\"" >&5)
16176 (eval "$lt_compile" 2>conftest.err)
16178 cat conftest.err >&5
16179 echo "$as_me:16179: \$? = $ac_status" >&5
16180 if (exit $ac_status) && test -s "$ac_outfile"; then
16181 # The compiler can only warn and ignore the option if not recognized
16182 # So say no if there are warnings
16183 if test ! -s conftest.err; then
16184 lt_cv_prog_compiler_rtti_exceptions=yes
16190 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16191 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16193 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16194 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16201 lt_prog_compiler_wl_GCJ=
16202 lt_prog_compiler_pic_GCJ=
16203 lt_prog_compiler_static_GCJ=
16205 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16206 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16208 if test "$GCC" = yes; then
16209 lt_prog_compiler_wl_GCJ='-Wl,'
16210 lt_prog_compiler_static_GCJ='-static'
16214 # All AIX code is PIC.
16215 if test "$host_cpu" = ia64; then
16216 # AIX 5 now supports IA64 processor
16217 lt_prog_compiler_static_GCJ='-Bstatic'
16222 # FIXME: we need at least 68020 code to build shared libraries, but
16223 # adding the `-m68020' flag to GCC prevents building anything better,
16225 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16228 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16229 # PIC is the default for these OSes.
16232 mingw* | pw32* | os2*)
16233 # This hack is so that the source file can tell whether it is being
16234 # built for inclusion in a dll (and should export symbols for example).
16235 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16238 darwin* | rhapsody*)
16239 # PIC is the default on this platform
16240 # Common symbols not allowed in MH_DYLIB files
16241 lt_prog_compiler_pic_GCJ='-fno-common'
16245 # Just because we use GCC doesn't mean we suddenly get shared libraries
16246 # on systems that don't support them.
16247 lt_prog_compiler_can_build_shared_GCJ=no
16252 if test -d /usr/nec; then
16253 lt_prog_compiler_pic_GCJ=-Kconform_pic
16258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16259 # not for PA HP-UX.
16260 case "$host_cpu" in
16265 lt_prog_compiler_pic_GCJ='-fPIC'
16271 lt_prog_compiler_pic_GCJ='-fPIC'
16275 # PORTME Check for flag to pass linker flags through the system compiler.
16278 lt_prog_compiler_wl_GCJ='-Wl,'
16279 if test "$host_cpu" = ia64; then
16280 # AIX 5 now supports IA64 processor
16281 lt_prog_compiler_static_GCJ='-Bstatic'
16283 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16287 # PIC is the default on this platform
16288 # Common symbols not allowed in MH_DYLIB files
16289 case "$cc_basename" in
16291 lt_prog_compiler_pic_GCJ='-qnocommon'
16292 lt_prog_compiler_wl_GCJ='-Wl,'
16297 mingw* | pw32* | os2*)
16298 # This hack is so that the source file can tell whether it is being
16299 # built for inclusion in a dll (and should export symbols for example).
16300 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16303 hpux9* | hpux10* | hpux11*)
16304 lt_prog_compiler_wl_GCJ='-Wl,'
16305 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16306 # not for PA HP-UX.
16307 case "$host_cpu" in
16312 lt_prog_compiler_pic_GCJ='+Z'
16315 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16316 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16319 irix5* | irix6* | nonstopux*)
16320 lt_prog_compiler_wl_GCJ='-Wl,'
16321 # PIC (with -KPIC) is the default.
16322 lt_prog_compiler_static_GCJ='-non_shared'
16326 lt_prog_compiler_pic_GCJ='-KPIC'
16327 lt_prog_compiler_static_GCJ='-Bstatic'
16333 lt_prog_compiler_wl_GCJ='-Wl,'
16334 lt_prog_compiler_pic_GCJ='-KPIC'
16335 lt_prog_compiler_static_GCJ='-static'
16338 lt_prog_compiler_wl_GCJ='-Wl,'
16339 # All Alpha code is PIC.
16340 lt_prog_compiler_static_GCJ='-non_shared'
16345 osf3* | osf4* | osf5*)
16346 lt_prog_compiler_wl_GCJ='-Wl,'
16347 # All OSF/1 code is PIC.
16348 lt_prog_compiler_static_GCJ='-non_shared'
16352 lt_prog_compiler_pic_GCJ='-Kpic'
16353 lt_prog_compiler_static_GCJ='-dn'
16357 lt_prog_compiler_wl_GCJ='-Wl,'
16358 lt_prog_compiler_pic_GCJ='-KPIC'
16359 lt_prog_compiler_static_GCJ='-Bstatic'
16363 lt_prog_compiler_wl_GCJ='-Qoption ld '
16364 lt_prog_compiler_pic_GCJ='-PIC'
16365 lt_prog_compiler_static_GCJ='-Bstatic'
16368 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16369 lt_prog_compiler_wl_GCJ='-Wl,'
16370 lt_prog_compiler_pic_GCJ='-KPIC'
16371 lt_prog_compiler_static_GCJ='-Bstatic'
16375 if test -d /usr/nec ;then
16376 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16377 lt_prog_compiler_static_GCJ='-Bstatic'
16382 lt_prog_compiler_pic_GCJ='-pic'
16383 lt_prog_compiler_static_GCJ='-Bstatic'
16387 lt_prog_compiler_can_build_shared_GCJ=no
16392 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16393 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16396 # Check to make sure the PIC flag actually works.
16398 if test -n "$lt_prog_compiler_pic_GCJ"; then
16400 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16401 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16402 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 lt_prog_compiler_pic_works_GCJ=no
16406 ac_outfile=conftest.$ac_objext
16407 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16408 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16409 # Insert the option either (1) after the last *FLAGS variable, or
16410 # (2) before a word containing "conftest.", or (3) at the end.
16411 # Note that $ac_compile itself does not contain backslashes and begins
16412 # with a dollar sign (not a hyphen), so the echo should work correctly.
16413 # The option is referenced via a variable to avoid confusing sed.
16414 lt_compile=`echo "$ac_compile" | $SED \
16415 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16417 -e 's:$: $lt_compiler_flag:'`
16418 (eval echo "\"\$as_me:16418: $lt_compile\"" >&5)
16419 (eval "$lt_compile" 2>conftest.err)
16421 cat conftest.err >&5
16422 echo "$as_me:16422: \$? = $ac_status" >&5
16423 if (exit $ac_status) && test -s "$ac_outfile"; then
16424 # The compiler can only warn and ignore the option if not recognized
16425 # So say no if there are warnings
16426 if test ! -s conftest.err; then
16427 lt_prog_compiler_pic_works_GCJ=yes
16433 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16434 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16436 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16437 case $lt_prog_compiler_pic_GCJ in
16439 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16442 lt_prog_compiler_pic_GCJ=
16443 lt_prog_compiler_can_build_shared_GCJ=no
16448 # For platforms which do not support PIC, -DPIC is meaningless:
16450 lt_prog_compiler_pic_GCJ=
16453 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16457 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16458 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16459 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 lt_cv_prog_compiler_c_o_GCJ=no
16463 $rm -r conftest 2>/dev/null
16467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16469 lt_compiler_flag="-o out/conftest2.$ac_objext"
16470 # Insert the option either (1) after the last *FLAGS variable, or
16471 # (2) before a word containing "conftest.", or (3) at the end.
16472 # Note that $ac_compile itself does not contain backslashes and begins
16473 # with a dollar sign (not a hyphen), so the echo should work correctly.
16474 lt_compile=`echo "$ac_compile" | $SED \
16475 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477 -e 's:$: $lt_compiler_flag:'`
16478 (eval echo "\"\$as_me:16478: $lt_compile\"" >&5)
16479 (eval "$lt_compile" 2>out/conftest.err)
16481 cat out/conftest.err >&5
16482 echo "$as_me:16482: \$? = $ac_status" >&5
16483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16485 # The compiler can only warn and ignore the option if not recognized
16486 # So say no if there are warnings
16487 if test ! -s out/conftest.err; then
16488 lt_cv_prog_compiler_c_o_GCJ=yes
16493 # SGI C++ compiler will create directory out/ii_files/ for
16494 # template instantiation
16495 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16496 $rm out/* && rmdir out
16502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16506 hard_links="nottested"
16507 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16508 # do not overwrite the value of need_locks provided by the user
16509 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16515 ln conftest.a conftest.b 2>&5 || hard_links=no
16516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16517 echo "$as_me:$LINENO: result: $hard_links" >&5
16518 echo "${ECHO_T}$hard_links" >&6
16519 if test "$hard_links" = no; then
16520 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16528 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16532 allow_undefined_flag_GCJ=
16533 enable_shared_with_static_runtimes_GCJ=no
16535 archive_expsym_cmds_GCJ=
16536 old_archive_From_new_cmds_GCJ=
16537 old_archive_from_expsyms_cmds_GCJ=
16538 export_dynamic_flag_spec_GCJ=
16539 whole_archive_flag_spec_GCJ=
16540 thread_safe_flag_spec_GCJ=
16541 hardcode_libdir_flag_spec_GCJ=
16542 hardcode_libdir_flag_spec_ld_GCJ=
16543 hardcode_libdir_separator_GCJ=
16544 hardcode_direct_GCJ=no
16545 hardcode_minus_L_GCJ=no
16546 hardcode_shlibpath_var_GCJ=unsupported
16547 link_all_deplibs_GCJ=unknown
16548 hardcode_automatic_GCJ=no
16550 module_expsym_cmds_GCJ=
16551 always_export_symbols_GCJ=no
16552 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16553 # include_expsyms should be a list of space-separated symbols to be *always*
16554 # included in the symbol list
16555 include_expsyms_GCJ=
16556 # exclude_expsyms can be an extended regexp of symbols to exclude
16557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16559 # as well as any symbol that contains `d'.
16560 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16562 # platforms (ab)use it in PIC code, but their linkers get confused if
16563 # the symbol is explicitly referenced. Since portable code cannot
16564 # rely on this symbol name, it's probably fine to never include it in
16565 # preloaded symbol tables.
16566 extract_expsyms_cmds=
16569 cygwin* | mingw* | pw32*)
16570 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16571 # When not using gcc, we currently assume that we are using
16572 # Microsoft Visual C++.
16573 if test "$GCC" != yes; then
16583 if test "$with_gnu_ld" = yes; then
16584 # If archive_cmds runs LD, not CC, wlarc should be empty
16587 # See if GNU ld supports shared libraries.
16589 aix3* | aix4* | aix5*)
16590 # On AIX/PPC, the GNU linker is very broken
16591 if test "$host_cpu" != ia64; then
16595 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16596 *** to be unable to reliably create shared libraries on AIX.
16597 *** Therefore, libtool is disabling shared libraries support. If you
16598 *** really care for shared libraries, you may want to modify your PATH
16599 *** so that a non-GNU linker is found, and then restart.
16606 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)'
16607 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16608 hardcode_minus_L_GCJ=yes
16610 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16611 # that the semantics of dynamic libraries on AmigaOS, at least up
16612 # to version 4, is to share data among multiple programs linked
16613 # with the same dynamic library. Since this doesn't match the
16614 # behavior of shared libraries on other platforms, we can't use
16620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16621 allow_undefined_flag_GCJ=unsupported
16622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16623 # support --undefined. This deserves some investigation. FIXME
16624 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16630 cygwin* | mingw* | pw32*)
16631 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16632 # as there is no search path for DLLs.
16633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16634 allow_undefined_flag_GCJ=unsupported
16635 always_export_symbols_GCJ=no
16636 enable_shared_with_static_runtimes_GCJ=yes
16637 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16639 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16640 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16641 # If the export-symbols file already is a .def file (1st line
16642 # is EXPORTS), use it as is; otherwise, prepend...
16643 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16644 cp $export_symbols $output_objdir/$soname.def;
16646 echo EXPORTS > $output_objdir/$soname.def;
16647 cat $export_symbols >> $output_objdir/$soname.def;
16649 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16657 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16660 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16661 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16666 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16671 *** create shared libraries on Solaris systems. Therefore, libtool
16672 *** is disabling shared libraries support. We urge you to upgrade GNU
16673 *** binutils to release 2.9.1 or newer. Another option is to modify
16674 *** your PATH or compiler configuration so that the native linker is
16675 *** used, and then restart.
16678 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16679 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16680 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16687 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16689 hardcode_direct_GCJ=yes
16690 hardcode_shlibpath_var_GCJ=no
16694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16695 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16696 archive_cmds_GCJ="$tmp_archive_cmds"
16697 supports_anon_versioning=no
16698 case `$LD -v 2>/dev/null` in
16699 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16700 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16701 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16702 *\ 2.11.*) ;; # other 2.11 versions
16703 *) supports_anon_versioning=yes ;;
16705 if test $supports_anon_versioning = yes; then
16706 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16707 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16708 $echo "local: *; };" >> $output_objdir/$libname.ver~
16709 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16711 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16721 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16728 if test "$ld_shlibs_GCJ" = yes; then
16729 runpath_var=LD_RUN_PATH
16730 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16731 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16732 # ancient GNU ld didn't support --whole-archive et. al.
16733 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16734 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16736 whole_archive_flag_spec_GCJ=
16740 # PORTME fill in a description of your system's linker (not GNU ld)
16743 allow_undefined_flag_GCJ=unsupported
16744 always_export_symbols_GCJ=yes
16745 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'
16746 # Note: this linker hardcodes the directories in LIBPATH if there
16747 # are no directories specified by -L.
16748 hardcode_minus_L_GCJ=yes
16749 if test "$GCC" = yes && test -z "$link_static_flag"; then
16750 # Neither direct hardcoding nor static linking is supported with a
16752 hardcode_direct_GCJ=unsupported
16757 if test "$host_cpu" = ia64; then
16758 # On IA64, the linker does run time linking by default, so we don't
16759 # have to do anything special.
16760 aix_use_runtimelinking=no
16761 exp_sym_flag='-Bexport'
16764 # If we're using GNU nm, then we don't want the "-C" option.
16765 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16766 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16767 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'
16769 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'
16771 aix_use_runtimelinking=no
16773 # Test if we are trying to use run time linking or normal
16774 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16775 # need to do runtime linking.
16776 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16777 for ld_flag in $LDFLAGS; do
16778 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16779 aix_use_runtimelinking=yes
16785 exp_sym_flag='-bexport'
16786 no_entry_flag='-bnoentry'
16789 # When large executables or shared objects are built, AIX ld can
16790 # have problems creating the table of contents. If linking a library
16791 # or program results in "error TOC overflow" add -mminimal-toc to
16792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16795 archive_cmds_GCJ=''
16796 hardcode_direct_GCJ=yes
16797 hardcode_libdir_separator_GCJ=':'
16798 link_all_deplibs_GCJ=yes
16800 if test "$GCC" = yes; then
16801 case $host_os in aix4.012|aix4.012.*)
16802 # We only want to do this on AIX 4.2 and lower, the check
16803 # below for broken collect2 doesn't work under 4.3+
16804 collect2name=`${CC} -print-prog-name=collect2`
16805 if test -f "$collect2name" && \
16806 strings "$collect2name" | grep resolve_lib_name >/dev/null
16808 # We have reworked collect2
16809 hardcode_direct_GCJ=yes
16811 # We have old collect2
16812 hardcode_direct_GCJ=unsupported
16813 # It fails to find uninstalled libraries when the uninstalled
16814 # path is not listed in the libpath. Setting hardcode_minus_L
16815 # to unsupported forces relinking
16816 hardcode_minus_L_GCJ=yes
16817 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16818 hardcode_libdir_separator_GCJ=
16821 shared_flag='-shared'
16824 if test "$host_cpu" = ia64; then
16825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16826 # chokes on -Wl,-G. The following line is correct:
16829 if test "$aix_use_runtimelinking" = yes; then
16830 shared_flag='${wl}-G'
16832 shared_flag='${wl}-bM:SRE'
16837 # It seems that -bexpall does not export symbols beginning with
16838 # underscore (_), so it is better to generate a list of symbols to export.
16839 always_export_symbols_GCJ=yes
16840 if test "$aix_use_runtimelinking" = yes; then
16841 # Warning - without using the other runtime loading flags (-brtl),
16842 # -berok will link without error, but may produce a broken library.
16843 allow_undefined_flag_GCJ='-berok'
16844 # Determine the default libpath from the value encoded in an empty executable.
16845 cat >conftest.$ac_ext <<_ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h. */
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862 (eval $ac_link) 2>conftest.er1
16864 grep -v '^ *+' conftest.er1 >conftest.err
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -z "$ac_c_werror_flag"
16870 || test ! -s conftest.err'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest$ac_exeext'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16885 # Check for a 64-bit object if we didn't find anything.
16886 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; }
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16893 rm -f conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
16895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16897 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16898 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"
16900 if test "$host_cpu" = ia64; then
16901 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16902 allow_undefined_flag_GCJ="-z nodefs"
16903 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"
16905 # Determine the default libpath from the value encoded in an empty executable.
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16923 (eval $ac_link) 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest$ac_exeext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16946 # Check for a 64-bit object if we didn't find anything.
16947 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; }
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16954 rm -f conftest.err conftest.$ac_objext \
16955 conftest$ac_exeext conftest.$ac_ext
16956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16958 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16959 # Warning - without using the other run time loading flags,
16960 # -berok will link without error, but may produce a broken library.
16961 no_undefined_flag_GCJ=' ${wl}-bernotok'
16962 allow_undefined_flag_GCJ=' ${wl}-berok'
16963 # -bexpall does not export symbols beginning with underscore (_)
16964 always_export_symbols_GCJ=yes
16965 # Exported symbols can be pulled into shared objects from archives
16966 whole_archive_flag_spec_GCJ=' '
16967 archive_cmds_need_lc_GCJ=yes
16968 # This is similar to how AIX traditionally builds it's shared libraries.
16969 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'
16975 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)'
16976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16977 hardcode_minus_L_GCJ=yes
16978 # see comment about different semantics on the GNU ld section
16983 export_dynamic_flag_spec_GCJ=-rdynamic
16986 cygwin* | mingw* | pw32*)
16987 # When not using gcc, we currently assume that we are using
16988 # Microsoft Visual C++.
16989 # hardcode_libdir_flag_spec is actually meaningless, as there is
16990 # no search path for DLLs.
16991 hardcode_libdir_flag_spec_GCJ=' '
16992 allow_undefined_flag_GCJ=unsupported
16993 # Tell ltmain to make .lib files, not .a files.
16995 # Tell ltmain to make .dll files, not .so files.
16997 # FIXME: Setting linknames here is a bad hack.
16998 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16999 # The linker will automatically build a .lib file if we build a DLL.
17000 old_archive_From_new_cmds_GCJ='true'
17001 # FIXME: Should let the user specify the lib program.
17002 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17003 fix_srcfile_path='`cygpath -w "$srcfile"`'
17004 enable_shared_with_static_runtimes_GCJ=yes
17007 darwin* | rhapsody*)
17009 rhapsody* | darwin1.[012])
17010 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17013 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17014 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17016 case ${MACOSX_DEPLOYMENT_TARGET} in
17018 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17021 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17027 archive_cmds_need_lc_GCJ=no
17028 hardcode_direct_GCJ=no
17029 hardcode_automatic_GCJ=yes
17030 hardcode_shlibpath_var_GCJ=unsupported
17031 whole_archive_flag_spec_GCJ=''
17032 link_all_deplibs_GCJ=yes
17033 if test "$GCC" = yes ; then
17034 output_verbose_link_cmd='echo'
17035 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17036 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17037 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17038 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}'
17039 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}'
17041 case "$cc_basename" in
17043 output_verbose_link_cmd='echo'
17044 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17045 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17047 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}'
17048 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}'
17058 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17060 hardcode_shlibpath_var_GCJ=no
17067 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17068 # support. Future versions do this automatically, but an explicit c++rt0.o
17069 # does not break anything, and helps significantly (at the cost of a little
17072 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17073 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17074 hardcode_direct_GCJ=yes
17075 hardcode_shlibpath_var_GCJ=no
17078 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17080 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17081 hardcode_direct_GCJ=yes
17082 hardcode_minus_L_GCJ=yes
17083 hardcode_shlibpath_var_GCJ=no
17086 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17087 freebsd* | kfreebsd*-gnu)
17088 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17089 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17090 hardcode_direct_GCJ=yes
17091 hardcode_shlibpath_var_GCJ=no
17095 if test "$GCC" = yes; then
17096 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'
17098 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'
17100 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17101 hardcode_libdir_separator_GCJ=:
17102 hardcode_direct_GCJ=yes
17104 # hardcode_minus_L: Not really in the search PATH,
17105 # but as the default location of the library.
17106 hardcode_minus_L_GCJ=yes
17107 export_dynamic_flag_spec_GCJ='${wl}-E'
17111 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17112 case "$host_cpu" in
17114 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17117 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17121 case "$host_cpu" in
17123 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17126 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17130 if test "$with_gnu_ld" = no; then
17131 case "$host_cpu" in
17133 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17134 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17135 hardcode_libdir_separator_GCJ=:
17136 hardcode_direct_GCJ=no
17137 hardcode_shlibpath_var_GCJ=no
17140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17141 hardcode_direct_GCJ=no
17142 hardcode_shlibpath_var_GCJ=no
17144 # hardcode_minus_L: Not really in the search PATH,
17145 # but as the default location of the library.
17146 hardcode_minus_L_GCJ=yes
17149 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17150 hardcode_libdir_separator_GCJ=:
17151 hardcode_direct_GCJ=yes
17152 export_dynamic_flag_spec_GCJ='${wl}-E'
17154 # hardcode_minus_L: Not really in the search PATH,
17155 # but as the default location of the library.
17156 hardcode_minus_L_GCJ=yes
17162 irix5* | irix6* | nonstopux*)
17163 if test "$GCC" = yes; then
17164 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'
17166 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'
17167 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17169 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17170 hardcode_libdir_separator_GCJ=:
17171 link_all_deplibs_GCJ=yes
17175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17176 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17178 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17180 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17181 hardcode_direct_GCJ=yes
17182 hardcode_shlibpath_var_GCJ=no
17186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17187 hardcode_direct_GCJ=yes
17188 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17189 hardcode_libdir_separator_GCJ=:
17190 hardcode_shlibpath_var_GCJ=no
17194 hardcode_direct_GCJ=yes
17195 hardcode_shlibpath_var_GCJ=no
17196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17197 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17198 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17199 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17200 export_dynamic_flag_spec_GCJ='${wl}-E'
17203 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17204 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17205 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17208 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17209 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17216 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17217 hardcode_minus_L_GCJ=yes
17218 allow_undefined_flag_GCJ=unsupported
17219 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'
17220 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17224 if test "$GCC" = yes; then
17225 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17226 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'
17228 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17229 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'
17231 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17232 hardcode_libdir_separator_GCJ=:
17235 osf4* | osf5*) # as osf3* with the addition of -msym flag
17236 if test "$GCC" = yes; then
17237 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17238 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'
17239 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17241 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17242 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'
17243 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~
17244 $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'
17246 # Both c and cxx compiler support -rpath directly
17247 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17249 hardcode_libdir_separator_GCJ=:
17253 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17254 hardcode_shlibpath_var_GCJ=no
17255 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17256 runpath_var=LD_RUN_PATH
17257 hardcode_runpath_var=yes
17261 no_undefined_flag_GCJ=' -z text'
17262 if test "$GCC" = yes; then
17263 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17264 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17265 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17267 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17268 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17269 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17271 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17272 hardcode_shlibpath_var_GCJ=no
17274 solaris2.[0-5] | solaris2.[0-5].*) ;;
17275 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17276 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17278 link_all_deplibs_GCJ=yes
17282 if test "x$host_vendor" = xsequent; then
17283 # Use $CC to link under sequent, because it throws in some extra .o
17284 # files that make .init and .fini sections work.
17285 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17287 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290 hardcode_direct_GCJ=yes
17291 hardcode_minus_L_GCJ=yes
17292 hardcode_shlibpath_var_GCJ=no
17296 case $host_vendor in
17298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299 hardcode_direct_GCJ=yes # is this really true???
17302 ## LD is ld it makes a PLAMLIB
17303 ## CC just makes a GrossModule.
17304 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17305 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17306 hardcode_direct_GCJ=no
17309 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17310 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17313 runpath_var='LD_RUN_PATH'
17314 hardcode_shlibpath_var_GCJ=no
17318 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17319 hardcode_shlibpath_var_GCJ=no
17320 export_dynamic_flag_spec_GCJ='-Bexport'
17324 if test -d /usr/nec; then
17325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17326 hardcode_shlibpath_var_GCJ=no
17327 runpath_var=LD_RUN_PATH
17328 hardcode_runpath_var=yes
17334 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17335 hardcode_direct_GCJ=yes
17336 hardcode_minus_L_GCJ=no
17337 hardcode_shlibpath_var_GCJ=no
17338 hardcode_runpath_var=yes
17339 runpath_var=LD_RUN_PATH
17342 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17343 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17344 if test "$GCC" = yes; then
17345 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17347 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17349 runpath_var='LD_RUN_PATH'
17350 hardcode_shlibpath_var_GCJ=no
17354 no_undefined_flag_GCJ=' -z text'
17355 # $CC -shared without GNU ld will not create a library from C++
17356 # object files and a static libstdc++, better avoid it by now
17357 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17358 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17359 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17360 hardcode_libdir_flag_spec_GCJ=
17361 hardcode_shlibpath_var_GCJ=no
17362 runpath_var='LD_RUN_PATH'
17366 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17368 hardcode_shlibpath_var_GCJ=no
17377 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17378 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17379 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17382 if test "$GCC" = yes; then
17383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17387 # Do we need to explicitly link libc?
17389 case "x$archive_cmds_need_lc_GCJ" in
17391 # Assume -lc should be added
17392 archive_cmds_need_lc_GCJ=yes
17394 if test "$enable_shared" = yes && test "$GCC" = yes; then
17395 case $archive_cmds_GCJ in
17397 # FIXME: we may have to deal with multi-command sequences.
17400 # Test whether the compiler implicitly links with -lc since on some
17401 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17402 # to ld, don't add -lc before -lgcc.
17403 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17404 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17409 (eval $ac_compile) 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } 2>conftest.err; then
17415 libobjs=conftest.$ac_objext
17417 wl=$lt_prog_compiler_wl_GCJ
17423 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17424 allow_undefined_flag_GCJ=
17425 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17426 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }
17431 archive_cmds_need_lc_GCJ=no
17433 archive_cmds_need_lc_GCJ=yes
17435 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17437 cat conftest.err 1>&5
17440 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17441 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17448 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17449 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17450 library_names_spec=
17451 libname_spec='lib$name'
17455 postuninstall_cmds=
17459 shlibpath_overrides_runpath=unknown
17461 dynamic_linker="$host_os ld.so"
17462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17463 if test "$GCC" = yes; then
17464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17465 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17466 # if the path contains ";" then we assume it to be the separator
17467 # otherwise default to the standard path separator (i.e. ":") - it is
17468 # assumed that no part of a normal pathname contains ";" but that should
17469 # okay in the real world where ";" in dirpaths is itself problematic.
17470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17475 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17477 need_lib_prefix=unknown
17478 hardcode_into_libs=no
17480 # when you set need_version to no, make sure it does not cause -set_version
17481 # flags to be left without arguments
17482 need_version=unknown
17487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17488 shlibpath_var=LIBPATH
17490 # AIX 3 has no versioning support, so we append a major version to the name.
17491 soname_spec='${libname}${release}${shared_ext}$major'
17498 hardcode_into_libs=yes
17499 if test "$host_cpu" = ia64; then
17500 # AIX 5 supports IA64
17501 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17502 shlibpath_var=LD_LIBRARY_PATH
17504 # With GCC up to 2.95.x, collect2 would create an import file
17505 # for dependence libraries. The import file would start with
17506 # the line `#! .'. This would cause the generated library to
17507 # depend on `.', always an invalid library. This was fixed in
17508 # development snapshots of GCC prior to 3.0.
17510 aix4 | aix4.[01] | aix4.[01].*)
17511 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17513 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17516 can_build_shared=no
17520 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17521 # soname into executable. Probably we can add versioning support to
17522 # collect2, so additional links can be useful in future.
17523 if test "$aix_use_runtimelinking" = yes; then
17524 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17525 # instead of lib<name>.a to let people know that these are not
17526 # typical AIX shared libraries.
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529 # We preserve .a as extension for shared libraries through AIX4.2
17530 # and later when we are not doing run time linking.
17531 library_names_spec='${libname}${release}.a $libname.a'
17532 soname_spec='${libname}${release}${shared_ext}$major'
17534 shlibpath_var=LIBPATH
17539 library_names_spec='$libname.ixlibrary $libname.a'
17540 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17541 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'
17545 library_names_spec='${libname}${shared_ext}'
17546 dynamic_linker="$host_os ld.so"
17547 shlibpath_var=LIBRARY_PATH
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17558 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17559 # the default ld.so.conf also contains /usr/contrib/lib and
17560 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17561 # libtool to hard-code these into programs
17564 cygwin* | mingw* | pw32*)
17565 version_type=windows
17570 case $GCC,$host_os in
17571 yes,cygwin* | yes,mingw* | yes,pw32*)
17572 library_names_spec='$libname.dll.a'
17573 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17574 postinstall_cmds='base_file=`basename \${file}`~
17575 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17576 dldir=$destdir/`dirname \$dlpath`~
17577 test -d \$dldir || mkdir -p \$dldir~
17578 $install_prog $dir/$dlname \$dldir/$dlname'
17579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17580 dlpath=$dir/\$dldll~
17582 shlibpath_overrides_runpath=yes
17586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17587 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17588 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17591 # MinGW DLLs use traditional 'lib' prefix
17592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17593 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17594 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17595 # It is most probably a Windows format PATH printed by
17596 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17597 # path with ; separators, and with drive letters. We can handle the
17598 # drive letters (cygwin fileutils understands them), so leave them,
17599 # especially as we might pass files found there to a mingw objdump,
17600 # which wouldn't understand a cygwinified path. Ahh.
17601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17603 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17607 # pw32 DLLs use 'pw' prefix rather than 'lib'
17608 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17617 dynamic_linker='Win32 ld.exe'
17618 # FIXME: first we should search . and the directory the executable is in
17622 darwin* | rhapsody*)
17623 dynamic_linker="$host_os dyld"
17624 version_type=darwin
17627 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17628 soname_spec='${libname}${release}${major}$shared_ext'
17629 shlibpath_overrides_runpath=yes
17630 shlibpath_var=DYLD_LIBRARY_PATH
17631 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17632 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17633 if test "$GCC" = yes; then
17634 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"`
17636 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 shlibpath_var=LD_LIBRARY_PATH
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17659 soname_spec='${libname}${release}${shared_ext}$major'
17660 shlibpath_var=LD_LIBRARY_PATH
17661 shlibpath_overrides_runpath=no
17662 hardcode_into_libs=yes
17663 dynamic_linker='GNU ld.so'
17667 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17668 version_type=freebsd-$objformat
17669 case $version_type in
17671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17680 shlibpath_var=LD_LIBRARY_PATH
17683 shlibpath_overrides_runpath=yes
17685 freebsd3.01* | freebsdelf3.01*)
17686 shlibpath_overrides_runpath=yes
17687 hardcode_into_libs=yes
17690 shlibpath_overrides_runpath=no
17691 hardcode_into_libs=yes
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 shlibpath_var=LD_LIBRARY_PATH
17703 hardcode_into_libs=yes
17706 hpux9* | hpux10* | hpux11*)
17707 # Give a soname corresponding to the major version so that dld.sl refuses to
17708 # link against other versions.
17712 case "$host_cpu" in
17715 hardcode_into_libs=yes
17716 dynamic_linker="$host_os dld.so"
17717 shlibpath_var=LD_LIBRARY_PATH
17718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720 soname_spec='${libname}${release}${shared_ext}$major'
17721 if test "X$HPUX_IA64_MODE" = X32; then
17722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17730 hardcode_into_libs=yes
17731 dynamic_linker="$host_os dld.sl"
17732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17735 soname_spec='${libname}${release}${shared_ext}$major'
17736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17741 dynamic_linker="$host_os dld.sl"
17742 shlibpath_var=SHLIB_PATH
17743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17745 soname_spec='${libname}${release}${shared_ext}$major'
17748 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17749 postinstall_cmds='chmod 555 $lib'
17752 irix5* | irix6* | nonstopux*)
17754 nonstopux*) version_type=nonstopux ;;
17756 if test "$lt_cv_prog_gnu_ld" = yes; then
17764 soname_spec='${libname}${release}${shared_ext}$major'
17765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17767 irix5* | nonstopux*)
17768 libsuff= shlibsuff=
17771 case $LD in # libtool.m4 will add one of these switches to LD
17772 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17773 libsuff= shlibsuff= libmagic=32-bit;;
17774 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17775 libsuff=32 shlibsuff=N32 libmagic=N32;;
17776 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17777 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17778 *) libsuff= shlibsuff= libmagic=never-match;;
17782 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17783 shlibpath_overrides_runpath=no
17784 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17785 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17786 hardcode_into_libs=yes
17789 # No shared lib support for Linux oldld, aout, or coff.
17790 linux*oldld* | linux*aout* | linux*coff*)
17794 # This must be Linux ELF.
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 soname_spec='${libname}${release}${shared_ext}$major'
17801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17802 shlibpath_var=LD_LIBRARY_PATH
17803 shlibpath_overrides_runpath=no
17804 # This implies no fast_install, which is unacceptable.
17805 # Some rework will be needed to allow for fast_install
17806 # before this can be enabled.
17807 hardcode_into_libs=yes
17809 # Append ld.so.conf contents to the search path
17810 if test -f /etc/ld.so.conf; then
17811 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17812 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17815 # We used to test for /lib/ld.so.1 and disable shared libraries on
17816 # powerpc, because MkLinux only supported shared libraries with the
17817 # GNU dynamic linker. Since this was broken with cross compilers,
17818 # most powerpc-linux boxes support dynamic linking these days and
17819 # people can always --disable-shared, the test was removed, and we
17820 # assume the GNU/Linux dynamic linker is in use.
17821 dynamic_linker='GNU/Linux ld.so'
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17829 soname_spec='${libname}${release}${shared_ext}$major'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=no
17832 hardcode_into_libs=yes
17833 dynamic_linker='GNU ld.so'
17840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17843 dynamic_linker='NetBSD (a.out) ld.so'
17845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17846 soname_spec='${libname}${release}${shared_ext}$major'
17847 dynamic_linker='NetBSD ld.elf_so'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 shlibpath_overrides_runpath=yes
17851 hardcode_into_libs=yes
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 shlibpath_overrides_runpath=yes
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath=yes
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17880 openbsd2.[89] | openbsd2.[89].*)
17881 shlibpath_overrides_runpath=no
17884 shlibpath_overrides_runpath=yes
17888 shlibpath_overrides_runpath=yes
17893 libname_spec='$name'
17896 library_names_spec='$libname${shared_ext} $libname.a'
17897 dynamic_linker='OS/2 ld.exe'
17898 shlibpath_var=LIBPATH
17901 osf3* | osf4* | osf5*)
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907 shlibpath_var=LD_LIBRARY_PATH
17908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17909 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17914 soname_spec='${libname}${release}${shared_ext}$major'
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 shlibpath_var=LD_LIBRARY_PATH
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924 soname_spec='${libname}${release}${shared_ext}$major'
17925 shlibpath_var=LD_LIBRARY_PATH
17926 shlibpath_overrides_runpath=yes
17927 hardcode_into_libs=yes
17928 # ldd complains unless libraries are executable
17929 postinstall_cmds='chmod +x $lib'
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17936 shlibpath_var=LD_LIBRARY_PATH
17937 shlibpath_overrides_runpath=yes
17938 if test "$with_gnu_ld" = yes; then
17944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17947 soname_spec='${libname}${release}${shared_ext}$major'
17948 shlibpath_var=LD_LIBRARY_PATH
17949 case $host_vendor in
17951 shlibpath_overrides_runpath=no
17953 export_dynamic_flag_spec='${wl}-Blargedynsym'
17954 runpath_var=LD_RUN_PATH
17962 shlibpath_overrides_runpath=no
17963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17969 if test -d /usr/nec ;then
17971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17972 soname_spec='$libname${shared_ext}.$major'
17973 shlibpath_var=LD_LIBRARY_PATH
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 shlibpath_var=LD_LIBRARY_PATH
17988 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17989 echo "${ECHO_T}$dynamic_linker" >&6
17990 test "$dynamic_linker" = no && can_build_shared=no
17992 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17993 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17994 hardcode_action_GCJ=
17995 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17996 test -n "$runpath_var_GCJ" || \
17997 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17999 # We can hardcode non-existant directories.
18000 if test "$hardcode_direct_GCJ" != no &&
18001 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18002 # have to relink, otherwise we might link with an installed library
18003 # when we should be linking with a yet-to-be-installed one
18004 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18005 test "$hardcode_minus_L_GCJ" != no; then
18006 # Linking always hardcodes the temporary library directory.
18007 hardcode_action_GCJ=relink
18009 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18010 hardcode_action_GCJ=immediate
18013 # We cannot hardcode anything, or else we can only hardcode existing
18015 hardcode_action_GCJ=unsupported
18017 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18018 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18020 if test "$hardcode_action_GCJ" = relink; then
18021 # Fast installation is not supported
18022 enable_fast_install=no
18023 elif test "$shlibpath_overrides_runpath" = yes ||
18024 test "$enable_shared" = no; then
18025 # Fast installation is not necessary
18026 enable_fast_install=needless
18031 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18032 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18033 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18034 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18035 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18036 echo "$as_me:$LINENO: result: yes" >&5
18037 echo "${ECHO_T}yes" >&6
18039 # FIXME - insert some real tests, host_os isn't really good enough
18042 if test -n "$STRIP" ; then
18043 striplib="$STRIP -x"
18044 echo "$as_me:$LINENO: result: yes" >&5
18045 echo "${ECHO_T}yes" >&6
18047 echo "$as_me:$LINENO: result: no" >&5
18048 echo "${ECHO_T}no" >&6
18052 echo "$as_me:$LINENO: result: no" >&5
18053 echo "${ECHO_T}no" >&6
18058 if test "x$enable_dlopen" != xyes; then
18059 enable_dlopen=unknown
18060 enable_dlopen_self=unknown
18061 enable_dlopen_self_static=unknown
18068 lt_cv_dlopen="load_add_on"
18070 lt_cv_dlopen_self=yes
18074 lt_cv_dlopen="LoadLibrary"
18079 lt_cv_dlopen="dlopen"
18084 # if libdl is installed we need to link against it
18085 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 ac_check_lib_save_LIBS=$LIBS
18092 cat >conftest.$ac_ext <<_ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18099 /* Override any gcc2 internal prototype to avoid an error. */
18103 /* We use char because int might match the return type of a gcc2
18104 builtin and then its argument prototype would still apply. */
18114 rm -f conftest.$ac_objext conftest$ac_exeext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18116 (eval $ac_link) 2>conftest.er1
18118 grep -v '^ *+' conftest.er1 >conftest.err
18120 cat conftest.err >&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
18123 { ac_try='test -z "$ac_c_werror_flag"
18124 || test ! -s conftest.err'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try='test -s conftest$ac_exeext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_cv_lib_dl_dlopen=yes
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 ac_cv_lib_dl_dlopen=no
18143 rm -f conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18145 LIBS=$ac_check_lib_save_LIBS
18147 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18149 if test $ac_cv_lib_dl_dlopen = yes; then
18150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18153 lt_cv_dlopen="dyld"
18155 lt_cv_dlopen_self=yes
18162 echo "$as_me:$LINENO: checking for shl_load" >&5
18163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18164 if test "${ac_cv_func_shl_load+set}" = set; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18167 cat >conftest.$ac_ext <<_ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175 #define shl_load innocuous_shl_load
18177 /* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char shl_load (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18183 # include <limits.h>
18185 # include <assert.h>
18190 /* Override any gcc2 internal prototype to avoid an error. */
18195 /* We use char because int might match the return type of a gcc2
18196 builtin and then its argument prototype would still apply. */
18198 /* The GNU C library defines this for functions which it implements
18199 to always fail with ENOSYS. Some functions are actually named
18200 something starting with __ and the normal name is an alias. */
18201 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18204 char (*f) () = shl_load;
18213 return f != shl_load;
18218 rm -f conftest.$ac_objext conftest$ac_exeext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18220 (eval $ac_link) 2>conftest.er1
18222 grep -v '^ *+' conftest.er1 >conftest.err
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag"
18228 || test ! -s conftest.err'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest$ac_exeext'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 ac_cv_func_shl_load=yes
18242 echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18245 ac_cv_func_shl_load=no
18247 rm -f conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
18250 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18251 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18252 if test $ac_cv_func_shl_load = yes; then
18253 lt_cv_dlopen="shl_load"
18255 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18256 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18257 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 ac_check_lib_save_LIBS=$LIBS
18262 cat >conftest.$ac_ext <<_ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18269 /* Override any gcc2 internal prototype to avoid an error. */
18273 /* We use char because int might match the return type of a gcc2
18274 builtin and then its argument prototype would still apply. */
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18286 (eval $ac_link) 2>conftest.er1
18288 grep -v '^ *+' conftest.er1 >conftest.err
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -z "$ac_c_werror_flag"
18294 || test ! -s conftest.err'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest$ac_exeext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_dld_shl_load=yes
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 ac_cv_lib_dld_shl_load=no
18313 rm -f conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
18315 LIBS=$ac_check_lib_save_LIBS
18317 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18318 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18319 if test $ac_cv_lib_dld_shl_load = yes; then
18320 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18322 echo "$as_me:$LINENO: checking for dlopen" >&5
18323 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18324 if test "${ac_cv_func_dlopen+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18327 cat >conftest.$ac_ext <<_ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18333 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18335 #define dlopen innocuous_dlopen
18337 /* System header to define __stub macros and hopefully few prototypes,
18338 which can conflict with char dlopen (); below.
18339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18340 <limits.h> exists even on freestanding compilers. */
18343 # include <limits.h>
18345 # include <assert.h>
18350 /* Override any gcc2 internal prototype to avoid an error. */
18355 /* We use char because int might match the return type of a gcc2
18356 builtin and then its argument prototype would still apply. */
18358 /* The GNU C library defines this for functions which it implements
18359 to always fail with ENOSYS. Some functions are actually named
18360 something starting with __ and the normal name is an alias. */
18361 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18364 char (*f) () = dlopen;
18373 return f != dlopen;
18378 rm -f conftest.$ac_objext conftest$ac_exeext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18380 (eval $ac_link) 2>conftest.er1
18382 grep -v '^ *+' conftest.er1 >conftest.err
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
18387 { ac_try='test -z "$ac_c_werror_flag"
18388 || test ! -s conftest.err'
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; } &&
18394 { ac_try='test -s conftest$ac_exeext'
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18400 ac_cv_func_dlopen=yes
18402 echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 ac_cv_func_dlopen=no
18407 rm -f conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
18410 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18411 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18412 if test $ac_cv_func_dlopen = yes; then
18413 lt_cv_dlopen="dlopen"
18415 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 ac_check_lib_save_LIBS=$LIBS
18422 cat >conftest.$ac_ext <<_ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18429 /* Override any gcc2 internal prototype to avoid an error. */
18433 /* We use char because int might match the return type of a gcc2
18434 builtin and then its argument prototype would still apply. */
18444 rm -f conftest.$ac_objext conftest$ac_exeext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18446 (eval $ac_link) 2>conftest.er1
18448 grep -v '^ *+' conftest.er1 >conftest.err
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -z "$ac_c_werror_flag"
18454 || test ! -s conftest.err'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest$ac_exeext'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 ac_cv_lib_dl_dlopen=yes
18468 echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 ac_cv_lib_dl_dlopen=no
18473 rm -f conftest.err conftest.$ac_objext \
18474 conftest$ac_exeext conftest.$ac_ext
18475 LIBS=$ac_check_lib_save_LIBS
18477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18479 if test $ac_cv_lib_dl_dlopen = yes; then
18480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18482 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18483 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18484 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18487 ac_check_lib_save_LIBS=$LIBS
18488 LIBS="-lsvld $LIBS"
18489 cat >conftest.$ac_ext <<_ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18496 /* Override any gcc2 internal prototype to avoid an error. */
18500 /* We use char because int might match the return type of a gcc2
18501 builtin and then its argument prototype would still apply. */
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18513 (eval $ac_link) 2>conftest.er1
18515 grep -v '^ *+' conftest.er1 >conftest.err
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -z "$ac_c_werror_flag"
18521 || test ! -s conftest.err'
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest$ac_exeext'
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_cv_lib_svld_dlopen=yes
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18538 ac_cv_lib_svld_dlopen=no
18540 rm -f conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18544 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18545 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18546 if test $ac_cv_lib_svld_dlopen = yes; then
18547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18549 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18550 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18551 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18554 ac_check_lib_save_LIBS=$LIBS
18556 cat >conftest.$ac_ext <<_ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18563 /* Override any gcc2 internal prototype to avoid an error. */
18567 /* We use char because int might match the return type of a gcc2
18568 builtin and then its argument prototype would still apply. */
18578 rm -f conftest.$ac_objext conftest$ac_exeext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18580 (eval $ac_link) 2>conftest.er1
18582 grep -v '^ *+' conftest.er1 >conftest.err
18584 cat conftest.err >&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
18587 { ac_try='test -z "$ac_c_werror_flag"
18588 || test ! -s conftest.err'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest$ac_exeext'
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_cv_lib_dld_dld_link=yes
18602 echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18605 ac_cv_lib_dld_dld_link=no
18607 rm -f conftest.err conftest.$ac_objext \
18608 conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18611 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18612 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18613 if test $ac_cv_lib_dld_dld_link = yes; then
18614 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18635 if test "x$lt_cv_dlopen" != xno; then
18641 case $lt_cv_dlopen in
18643 save_CPPFLAGS="$CPPFLAGS"
18644 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18646 save_LDFLAGS="$LDFLAGS"
18647 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18650 LIBS="$lt_cv_dlopen_libs $LIBS"
18652 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18653 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18654 if test "${lt_cv_dlopen_self+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 if test "$cross_compiling" = yes; then :
18658 lt_cv_dlopen_self=cross
18660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18661 lt_status=$lt_dlunknown
18662 cat > conftest.$ac_ext <<EOF
18663 #line 18663 "configure"
18664 #include "confdefs.h"
18673 # define LT_DLGLOBAL RTLD_GLOBAL
18676 # define LT_DLGLOBAL DL_GLOBAL
18678 # define LT_DLGLOBAL 0
18682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18683 find out it does not work in some platform. */
18684 #ifndef LT_DLLAZY_OR_NOW
18686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18689 # define LT_DLLAZY_OR_NOW DL_LAZY
18692 # define LT_DLLAZY_OR_NOW RTLD_NOW
18695 # define LT_DLLAZY_OR_NOW DL_NOW
18697 # define LT_DLLAZY_OR_NOW 0
18705 extern "C" void exit (int);
18708 void fnord() { int i=42;}
18711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18712 int status = $lt_dlunknown;
18716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18718 /* dlclose (self); */
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18729 (./conftest; exit; ) 2>/dev/null
18731 case x$lt_status in
18732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18734 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18737 # compilation failed
18738 lt_cv_dlopen_self=no
18745 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18746 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18748 if test "x$lt_cv_dlopen_self" = xyes; then
18749 LDFLAGS="$LDFLAGS $link_static_flag"
18750 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18751 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18752 if test "${lt_cv_dlopen_self_static+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18755 if test "$cross_compiling" = yes; then :
18756 lt_cv_dlopen_self_static=cross
18758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18759 lt_status=$lt_dlunknown
18760 cat > conftest.$ac_ext <<EOF
18761 #line 18761 "configure"
18762 #include "confdefs.h"
18771 # define LT_DLGLOBAL RTLD_GLOBAL
18774 # define LT_DLGLOBAL DL_GLOBAL
18776 # define LT_DLGLOBAL 0
18780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18781 find out it does not work in some platform. */
18782 #ifndef LT_DLLAZY_OR_NOW
18784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18787 # define LT_DLLAZY_OR_NOW DL_LAZY
18790 # define LT_DLLAZY_OR_NOW RTLD_NOW
18793 # define LT_DLLAZY_OR_NOW DL_NOW
18795 # define LT_DLLAZY_OR_NOW 0
18803 extern "C" void exit (int);
18806 void fnord() { int i=42;}
18809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18810 int status = $lt_dlunknown;
18814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18815 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18816 /* dlclose (self); */
18822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18823 (eval $ac_link) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18827 (./conftest; exit; ) 2>/dev/null
18829 case x$lt_status in
18830 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18831 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18832 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18835 # compilation failed
18836 lt_cv_dlopen_self_static=no
18843 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18844 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18847 CPPFLAGS="$save_CPPFLAGS"
18848 LDFLAGS="$save_LDFLAGS"
18853 case $lt_cv_dlopen_self in
18854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18855 *) enable_dlopen_self=unknown ;;
18858 case $lt_cv_dlopen_self_static in
18859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18860 *) enable_dlopen_self_static=unknown ;;
18865 # The else clause should only fire when bootstrapping the
18866 # libtool distribution, otherwise you forgot to ship ltmain.sh
18867 # with your package, and you will get complaints that there are
18868 # no rules to generate ltmain.sh.
18869 if test -f "$ltmain"; then
18870 # See if we are running on zsh, and set the options which allow our commands through
18871 # without removal of \ escapes.
18872 if test -n "${ZSH_VERSION+set}" ; then
18873 setopt NO_GLOB_SUBST
18875 # Now quote all the things that may contain metacharacters while being
18876 # careful not to overquote the AC_SUBSTed values. We take copies of the
18877 # variables and quote the copies for generation of the libtool script.
18878 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18880 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18881 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18882 deplibs_check_method reload_flag reload_cmds need_locks \
18883 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18884 lt_cv_sys_global_symbol_to_c_name_address \
18885 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18886 old_postinstall_cmds old_postuninstall_cmds \
18890 lt_prog_compiler_wl_GCJ \
18891 lt_prog_compiler_pic_GCJ \
18892 lt_prog_compiler_static_GCJ \
18893 lt_prog_compiler_no_builtin_flag_GCJ \
18894 export_dynamic_flag_spec_GCJ \
18895 thread_safe_flag_spec_GCJ \
18896 whole_archive_flag_spec_GCJ \
18897 enable_shared_with_static_runtimes_GCJ \
18898 old_archive_cmds_GCJ \
18899 old_archive_from_new_cmds_GCJ \
18900 predep_objects_GCJ \
18901 postdep_objects_GCJ \
18904 compiler_lib_search_path_GCJ \
18906 archive_expsym_cmds_GCJ \
18907 postinstall_cmds_GCJ \
18908 postuninstall_cmds_GCJ \
18909 old_archive_from_expsyms_cmds_GCJ \
18910 allow_undefined_flag_GCJ \
18911 no_undefined_flag_GCJ \
18912 export_symbols_cmds_GCJ \
18913 hardcode_libdir_flag_spec_GCJ \
18914 hardcode_libdir_flag_spec_ld_GCJ \
18915 hardcode_libdir_separator_GCJ \
18916 hardcode_automatic_GCJ \
18918 module_expsym_cmds_GCJ \
18919 lt_cv_prog_compiler_c_o_GCJ \
18920 exclude_expsyms_GCJ \
18921 include_expsyms_GCJ; do
18924 old_archive_cmds_GCJ | \
18925 old_archive_from_new_cmds_GCJ | \
18926 archive_cmds_GCJ | \
18927 archive_expsym_cmds_GCJ | \
18928 module_cmds_GCJ | \
18929 module_expsym_cmds_GCJ | \
18930 old_archive_from_expsyms_cmds_GCJ | \
18931 export_symbols_cmds_GCJ | \
18932 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18933 postinstall_cmds | postuninstall_cmds | \
18934 old_postinstall_cmds | old_postuninstall_cmds | \
18935 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18936 # Double-quote double-evaled strings.
18937 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18940 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18946 *'\$0 --fallback-echo"')
18947 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18953 cat <<__EOF__ >> "$cfgfile"
18954 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18956 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18958 # Shell to use when invoking shell scripts.
18961 # Whether or not to build shared libraries.
18962 build_libtool_libs=$enable_shared
18964 # Whether or not to build static libraries.
18965 build_old_libs=$enable_static
18967 # Whether or not to add -lc for building shared libraries.
18968 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18970 # Whether or not to disallow shared libs when runtime libs are static
18971 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18973 # Whether or not to optimize for fast installation.
18974 fast_install=$enable_fast_install
18977 host_alias=$host_alias
18980 # An echo program that does not interpret backslashes.
18985 AR_FLAGS=$lt_AR_FLAGS
18990 # A language-specific compiler.
18991 CC=$lt_compiler_GCJ
18993 # Is the compiler the GNU C compiler?
18999 # The linker used to build libraries.
19002 # Whether we need hard or soft links.
19005 # A BSD-compatible nm program.
19008 # A symbol stripping program
19011 # Used to examine libraries when file_magic_cmd begins "file"
19012 MAGIC_CMD=$MAGIC_CMD
19014 # Used on cygwin: DLL creation program.
19017 # Used on cygwin: object dumper.
19020 # Used on cygwin: assembler.
19023 # The name of the directory that contains temporary libtool files.
19026 # How to create reloadable object files.
19027 reload_flag=$lt_reload_flag
19028 reload_cmds=$lt_reload_cmds
19030 # How to pass a linker flag through the compiler.
19031 wl=$lt_lt_prog_compiler_wl_GCJ
19033 # Object file suffix (normally "o").
19034 objext="$ac_objext"
19036 # Old archive suffix (normally "a").
19039 # Shared library suffix (normally ".so").
19040 shrext_cmds='$shrext_cmds'
19042 # Executable file suffix (normally "").
19045 # Additional compiler flags for building library objects.
19046 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19049 # What is the maximum length of a command?
19050 max_cmd_len=$lt_cv_sys_max_cmd_len
19052 # Does compiler simultaneously support -c and -o options?
19053 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19055 # Must we lock files when doing compilation ?
19056 need_locks=$lt_need_locks
19058 # Do we need the lib prefix for modules?
19059 need_lib_prefix=$need_lib_prefix
19061 # Do we need a version for libraries?
19062 need_version=$need_version
19064 # Whether dlopen is supported.
19065 dlopen_support=$enable_dlopen
19067 # Whether dlopen of programs is supported.
19068 dlopen_self=$enable_dlopen_self
19070 # Whether dlopen of statically linked programs is supported.
19071 dlopen_self_static=$enable_dlopen_self_static
19073 # Compiler flag to prevent dynamic linking.
19074 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19076 # Compiler flag to turn off builtin functions.
19077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19079 # Compiler flag to allow reflexive dlopens.
19080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19082 # Compiler flag to generate shared objects directly from archives.
19083 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19085 # Compiler flag to generate thread-safe objects.
19086 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19088 # Library versioning type.
19089 version_type=$version_type
19091 # Format of library name prefix.
19092 libname_spec=$lt_libname_spec
19094 # List of archive names. First name is the real one, the rest are links.
19095 # The last name is the one that the linker finds with -lNAME.
19096 library_names_spec=$lt_library_names_spec
19098 # The coded name of the library, if different from the real name.
19099 soname_spec=$lt_soname_spec
19101 # Commands used to build and install an old-style archive.
19103 old_archive_cmds=$lt_old_archive_cmds_GCJ
19104 old_postinstall_cmds=$lt_old_postinstall_cmds
19105 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19107 # Create an old-style archive from a shared archive.
19108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19110 # Create a temporary old-style archive to link instead of a shared archive.
19111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19113 # Commands used to build and install a shared archive.
19114 archive_cmds=$lt_archive_cmds_GCJ
19115 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19116 postinstall_cmds=$lt_postinstall_cmds
19117 postuninstall_cmds=$lt_postuninstall_cmds
19119 # Commands used to build a loadable module (assumed same as above if empty)
19120 module_cmds=$lt_module_cmds_GCJ
19121 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19123 # Commands to strip libraries.
19124 old_striplib=$lt_old_striplib
19125 striplib=$lt_striplib
19127 # Dependencies to place before the objects being linked to create a
19129 predep_objects=$lt_predep_objects_GCJ
19131 # Dependencies to place after the objects being linked to create a
19133 postdep_objects=$lt_postdep_objects_GCJ
19135 # Dependencies to place before the objects being linked to create a
19137 predeps=$lt_predeps_GCJ
19139 # Dependencies to place after the objects being linked to create a
19141 postdeps=$lt_postdeps_GCJ
19143 # The library search path used internally by the compiler when linking
19144 # a shared library.
19145 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19147 # Method to check whether dependent libraries are shared objects.
19148 deplibs_check_method=$lt_deplibs_check_method
19150 # Command to use when deplibs_check_method == file_magic.
19151 file_magic_cmd=$lt_file_magic_cmd
19153 # Flag that allows shared libraries with undefined symbols to be built.
19154 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19156 # Flag that forces no undefined symbols.
19157 no_undefined_flag=$lt_no_undefined_flag_GCJ
19159 # Commands used to finish a libtool library installation in a directory.
19160 finish_cmds=$lt_finish_cmds
19162 # Same as above, but a single script fragment to be evaled but not shown.
19163 finish_eval=$lt_finish_eval
19165 # Take the output of nm and produce a listing of raw symbols and C names.
19166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19168 # Transform the output of nm in a proper C declaration
19169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19171 # Transform the output of nm in a C name address pair
19172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19174 # This is the shared library runtime path variable.
19175 runpath_var=$runpath_var
19177 # This is the shared library path variable.
19178 shlibpath_var=$shlibpath_var
19180 # Is shlibpath searched before the hard-coded library search path?
19181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19183 # How to hardcode a shared library path into an executable.
19184 hardcode_action=$hardcode_action_GCJ
19186 # Whether we should hardcode library paths into libraries.
19187 hardcode_into_libs=$hardcode_into_libs
19189 # Flag to hardcode \$libdir into a binary during linking.
19190 # This must work even if \$libdir does not exist.
19191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19193 # If ld is used when linking, flag to hardcode \$libdir into
19194 # a binary during linking. This must work even if \$libdir does
19196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19198 # Whether we need a single -rpath flag with a separated argument.
19199 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19201 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19202 # resulting binary.
19203 hardcode_direct=$hardcode_direct_GCJ
19205 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19206 # resulting binary.
19207 hardcode_minus_L=$hardcode_minus_L_GCJ
19209 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19210 # the resulting binary.
19211 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19213 # Set to yes if building a shared library automatically hardcodes DIR into the library
19214 # and all subsequent libraries and executables linked against it.
19215 hardcode_automatic=$hardcode_automatic_GCJ
19217 # Variables whose values should be saved in libtool wrapper scripts and
19218 # restored at relink time.
19219 variables_saved_for_relink="$variables_saved_for_relink"
19221 # Whether libtool must link a program against all its dependency libraries.
19222 link_all_deplibs=$link_all_deplibs_GCJ
19224 # Compile-time system search path for libraries
19225 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19227 # Run-time system search path for libraries
19228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19230 # Fix the shell variable \$srcfile for the compiler.
19231 fix_srcfile_path="$fix_srcfile_path_GCJ"
19233 # Set to yes if exported symbols are required.
19234 always_export_symbols=$always_export_symbols_GCJ
19236 # The commands to list exported symbols.
19237 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19239 # The commands to extract the exported symbol list from a shared archive.
19240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19242 # Symbols that should not be listed in the preloaded symbols.
19243 exclude_expsyms=$lt_exclude_expsyms_GCJ
19245 # Symbols that must always be exported.
19246 include_expsyms=$lt_include_expsyms_GCJ
19248 # ### END LIBTOOL TAG CONFIG: $tagname
19254 # If there is no Makefile yet, we rely on a make rule to execute
19255 # `config.status --recheck' to rerun these tests and create the
19256 # libtool script then.
19257 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19258 if test -f "$ltmain_in"; then
19259 test -f Makefile && make "$ltmain"
19265 ac_cpp='$CPP $CPPFLAGS'
19266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19279 ac_cpp='$CPP $CPPFLAGS'
19280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19285 # Source file extension for RC test sources.
19288 # Object file extension for compiled RC test sources.
19292 # Code to be used in simple compile tests
19293 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19295 # Code to be used in simple link tests
19296 lt_simple_link_test_code="$lt_simple_compile_test_code"
19298 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19300 # If no C compiler was specified, use CC.
19303 # Allow CC to be a program name with arguments.
19307 # Allow CC to be a program name with arguments.
19312 lt_cv_prog_compiler_c_o_RC=yes
19314 # The else clause should only fire when bootstrapping the
19315 # libtool distribution, otherwise you forgot to ship ltmain.sh
19316 # with your package, and you will get complaints that there are
19317 # no rules to generate ltmain.sh.
19318 if test -f "$ltmain"; then
19319 # See if we are running on zsh, and set the options which allow our commands through
19320 # without removal of \ escapes.
19321 if test -n "${ZSH_VERSION+set}" ; then
19322 setopt NO_GLOB_SUBST
19324 # Now quote all the things that may contain metacharacters while being
19325 # careful not to overquote the AC_SUBSTed values. We take copies of the
19326 # variables and quote the copies for generation of the libtool script.
19327 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19329 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19330 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19331 deplibs_check_method reload_flag reload_cmds need_locks \
19332 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19333 lt_cv_sys_global_symbol_to_c_name_address \
19334 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19335 old_postinstall_cmds old_postuninstall_cmds \
19339 lt_prog_compiler_wl_RC \
19340 lt_prog_compiler_pic_RC \
19341 lt_prog_compiler_static_RC \
19342 lt_prog_compiler_no_builtin_flag_RC \
19343 export_dynamic_flag_spec_RC \
19344 thread_safe_flag_spec_RC \
19345 whole_archive_flag_spec_RC \
19346 enable_shared_with_static_runtimes_RC \
19347 old_archive_cmds_RC \
19348 old_archive_from_new_cmds_RC \
19349 predep_objects_RC \
19350 postdep_objects_RC \
19353 compiler_lib_search_path_RC \
19355 archive_expsym_cmds_RC \
19356 postinstall_cmds_RC \
19357 postuninstall_cmds_RC \
19358 old_archive_from_expsyms_cmds_RC \
19359 allow_undefined_flag_RC \
19360 no_undefined_flag_RC \
19361 export_symbols_cmds_RC \
19362 hardcode_libdir_flag_spec_RC \
19363 hardcode_libdir_flag_spec_ld_RC \
19364 hardcode_libdir_separator_RC \
19365 hardcode_automatic_RC \
19367 module_expsym_cmds_RC \
19368 lt_cv_prog_compiler_c_o_RC \
19369 exclude_expsyms_RC \
19370 include_expsyms_RC; do
19373 old_archive_cmds_RC | \
19374 old_archive_from_new_cmds_RC | \
19375 archive_cmds_RC | \
19376 archive_expsym_cmds_RC | \
19378 module_expsym_cmds_RC | \
19379 old_archive_from_expsyms_cmds_RC | \
19380 export_symbols_cmds_RC | \
19381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19382 postinstall_cmds | postuninstall_cmds | \
19383 old_postinstall_cmds | old_postuninstall_cmds | \
19384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19385 # Double-quote double-evaled strings.
19386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19395 *'\$0 --fallback-echo"')
19396 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19402 cat <<__EOF__ >> "$cfgfile"
19403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19407 # Shell to use when invoking shell scripts.
19410 # Whether or not to build shared libraries.
19411 build_libtool_libs=$enable_shared
19413 # Whether or not to build static libraries.
19414 build_old_libs=$enable_static
19416 # Whether or not to add -lc for building shared libraries.
19417 build_libtool_need_lc=$archive_cmds_need_lc_RC
19419 # Whether or not to disallow shared libs when runtime libs are static
19420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19422 # Whether or not to optimize for fast installation.
19423 fast_install=$enable_fast_install
19426 host_alias=$host_alias
19429 # An echo program that does not interpret backslashes.
19434 AR_FLAGS=$lt_AR_FLAGS
19439 # A language-specific compiler.
19442 # Is the compiler the GNU C compiler?
19448 # The linker used to build libraries.
19451 # Whether we need hard or soft links.
19454 # A BSD-compatible nm program.
19457 # A symbol stripping program
19460 # Used to examine libraries when file_magic_cmd begins "file"
19461 MAGIC_CMD=$MAGIC_CMD
19463 # Used on cygwin: DLL creation program.
19466 # Used on cygwin: object dumper.
19469 # Used on cygwin: assembler.
19472 # The name of the directory that contains temporary libtool files.
19475 # How to create reloadable object files.
19476 reload_flag=$lt_reload_flag
19477 reload_cmds=$lt_reload_cmds
19479 # How to pass a linker flag through the compiler.
19480 wl=$lt_lt_prog_compiler_wl_RC
19482 # Object file suffix (normally "o").
19483 objext="$ac_objext"
19485 # Old archive suffix (normally "a").
19488 # Shared library suffix (normally ".so").
19489 shrext_cmds='$shrext_cmds'
19491 # Executable file suffix (normally "").
19494 # Additional compiler flags for building library objects.
19495 pic_flag=$lt_lt_prog_compiler_pic_RC
19498 # What is the maximum length of a command?
19499 max_cmd_len=$lt_cv_sys_max_cmd_len
19501 # Does compiler simultaneously support -c and -o options?
19502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19504 # Must we lock files when doing compilation ?
19505 need_locks=$lt_need_locks
19507 # Do we need the lib prefix for modules?
19508 need_lib_prefix=$need_lib_prefix
19510 # Do we need a version for libraries?
19511 need_version=$need_version
19513 # Whether dlopen is supported.
19514 dlopen_support=$enable_dlopen
19516 # Whether dlopen of programs is supported.
19517 dlopen_self=$enable_dlopen_self
19519 # Whether dlopen of statically linked programs is supported.
19520 dlopen_self_static=$enable_dlopen_self_static
19522 # Compiler flag to prevent dynamic linking.
19523 link_static_flag=$lt_lt_prog_compiler_static_RC
19525 # Compiler flag to turn off builtin functions.
19526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19528 # Compiler flag to allow reflexive dlopens.
19529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19531 # Compiler flag to generate shared objects directly from archives.
19532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19534 # Compiler flag to generate thread-safe objects.
19535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19537 # Library versioning type.
19538 version_type=$version_type
19540 # Format of library name prefix.
19541 libname_spec=$lt_libname_spec
19543 # List of archive names. First name is the real one, the rest are links.
19544 # The last name is the one that the linker finds with -lNAME.
19545 library_names_spec=$lt_library_names_spec
19547 # The coded name of the library, if different from the real name.
19548 soname_spec=$lt_soname_spec
19550 # Commands used to build and install an old-style archive.
19552 old_archive_cmds=$lt_old_archive_cmds_RC
19553 old_postinstall_cmds=$lt_old_postinstall_cmds
19554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19556 # Create an old-style archive from a shared archive.
19557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19559 # Create a temporary old-style archive to link instead of a shared archive.
19560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19562 # Commands used to build and install a shared archive.
19563 archive_cmds=$lt_archive_cmds_RC
19564 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19565 postinstall_cmds=$lt_postinstall_cmds
19566 postuninstall_cmds=$lt_postuninstall_cmds
19568 # Commands used to build a loadable module (assumed same as above if empty)
19569 module_cmds=$lt_module_cmds_RC
19570 module_expsym_cmds=$lt_module_expsym_cmds_RC
19572 # Commands to strip libraries.
19573 old_striplib=$lt_old_striplib
19574 striplib=$lt_striplib
19576 # Dependencies to place before the objects being linked to create a
19578 predep_objects=$lt_predep_objects_RC
19580 # Dependencies to place after the objects being linked to create a
19582 postdep_objects=$lt_postdep_objects_RC
19584 # Dependencies to place before the objects being linked to create a
19586 predeps=$lt_predeps_RC
19588 # Dependencies to place after the objects being linked to create a
19590 postdeps=$lt_postdeps_RC
19592 # The library search path used internally by the compiler when linking
19593 # a shared library.
19594 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19596 # Method to check whether dependent libraries are shared objects.
19597 deplibs_check_method=$lt_deplibs_check_method
19599 # Command to use when deplibs_check_method == file_magic.
19600 file_magic_cmd=$lt_file_magic_cmd
19602 # Flag that allows shared libraries with undefined symbols to be built.
19603 allow_undefined_flag=$lt_allow_undefined_flag_RC
19605 # Flag that forces no undefined symbols.
19606 no_undefined_flag=$lt_no_undefined_flag_RC
19608 # Commands used to finish a libtool library installation in a directory.
19609 finish_cmds=$lt_finish_cmds
19611 # Same as above, but a single script fragment to be evaled but not shown.
19612 finish_eval=$lt_finish_eval
19614 # Take the output of nm and produce a listing of raw symbols and C names.
19615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19617 # Transform the output of nm in a proper C declaration
19618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19620 # Transform the output of nm in a C name address pair
19621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19623 # This is the shared library runtime path variable.
19624 runpath_var=$runpath_var
19626 # This is the shared library path variable.
19627 shlibpath_var=$shlibpath_var
19629 # Is shlibpath searched before the hard-coded library search path?
19630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19632 # How to hardcode a shared library path into an executable.
19633 hardcode_action=$hardcode_action_RC
19635 # Whether we should hardcode library paths into libraries.
19636 hardcode_into_libs=$hardcode_into_libs
19638 # Flag to hardcode \$libdir into a binary during linking.
19639 # This must work even if \$libdir does not exist.
19640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19642 # If ld is used when linking, flag to hardcode \$libdir into
19643 # a binary during linking. This must work even if \$libdir does
19645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19647 # Whether we need a single -rpath flag with a separated argument.
19648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19651 # resulting binary.
19652 hardcode_direct=$hardcode_direct_RC
19654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19655 # resulting binary.
19656 hardcode_minus_L=$hardcode_minus_L_RC
19658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19659 # the resulting binary.
19660 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19662 # Set to yes if building a shared library automatically hardcodes DIR into the library
19663 # and all subsequent libraries and executables linked against it.
19664 hardcode_automatic=$hardcode_automatic_RC
19666 # Variables whose values should be saved in libtool wrapper scripts and
19667 # restored at relink time.
19668 variables_saved_for_relink="$variables_saved_for_relink"
19670 # Whether libtool must link a program against all its dependency libraries.
19671 link_all_deplibs=$link_all_deplibs_RC
19673 # Compile-time system search path for libraries
19674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19676 # Run-time system search path for libraries
19677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19679 # Fix the shell variable \$srcfile for the compiler.
19680 fix_srcfile_path="$fix_srcfile_path_RC"
19682 # Set to yes if exported symbols are required.
19683 always_export_symbols=$always_export_symbols_RC
19685 # The commands to list exported symbols.
19686 export_symbols_cmds=$lt_export_symbols_cmds_RC
19688 # The commands to extract the exported symbol list from a shared archive.
19689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19691 # Symbols that should not be listed in the preloaded symbols.
19692 exclude_expsyms=$lt_exclude_expsyms_RC
19694 # Symbols that must always be exported.
19695 include_expsyms=$lt_include_expsyms_RC
19697 # ### END LIBTOOL TAG CONFIG: $tagname
19703 # If there is no Makefile yet, we rely on a make rule to execute
19704 # `config.status --recheck' to rerun these tests and create the
19705 # libtool script then.
19706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19707 if test -f "$ltmain_in"; then
19708 test -f Makefile && make "$ltmain"
19714 ac_cpp='$CPP $CPPFLAGS'
19715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19724 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19725 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19726 { (exit 1); exit 1; }; }
19730 # Append the new tag name to the list of available tags.
19731 if test -n "$tagname" ; then
19732 available_tags="$available_tags $tagname"
19738 # Now substitute the updated list of available tags.
19739 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19740 mv "${ofile}T" "$ofile"
19744 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19745 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19746 { (exit 1); exit 1; }; }
19752 # This can be used to rebuild libtool when needed
19753 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19755 # Always use our own libtool.
19756 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
19758 # Prevent multiple expansion
19780 echo "$as_me:$LINENO: checking for GNU make" >&5
19781 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
19782 if test "${llvm_cv_gnu_make_command+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 llvm_cv_gnu_make_command=''
19786 for a in "$MAKE" make gmake gnumake ; do
19787 if test -z "$a" ; then continue ; fi ;
19788 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
19790 llvm_cv_gnu_make_command=$a ;
19795 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
19796 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
19797 if test "x$llvm_cv_gnu_make_command" != "x" ; then
19801 echo "$as_me:$LINENO: result: \"Not found\"" >&5
19802 echo "${ECHO_T}\"Not found\"" >&6;
19806 echo "$as_me:$LINENO: checking whether ln -s works" >&5
19807 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
19809 if test "$LN_S" = "ln -s"; then
19810 echo "$as_me:$LINENO: result: yes" >&5
19811 echo "${ECHO_T}yes" >&6
19813 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19814 echo "${ECHO_T}no, using $LN_S" >&6
19817 # Extract the first word of "date", so it can be a program name with args.
19818 set dummy date; ac_word=$2
19819 echo "$as_me:$LINENO: checking for $ac_word" >&5
19820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19821 if test "${ac_cv_path_DATE+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
19829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19830 for as_dir in $PATH
19833 test -z "$as_dir" && as_dir=.
19834 for ac_exec_ext in '' $ac_executable_extensions; do
19835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19836 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
19837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19843 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
19847 DATE=$ac_cv_path_DATE
19849 if test -n "$DATE"; then
19850 echo "$as_me:$LINENO: result: $DATE" >&5
19851 echo "${ECHO_T}$DATE" >&6
19853 echo "$as_me:$LINENO: result: no" >&5
19854 echo "${ECHO_T}no" >&6
19857 # Extract the first word of "find", so it can be a program name with args.
19858 set dummy find; ac_word=$2
19859 echo "$as_me:$LINENO: checking for $ac_word" >&5
19860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19861 if test "${ac_cv_path_FIND+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19866 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
19869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19870 for as_dir in $PATH
19873 test -z "$as_dir" && as_dir=.
19874 for ac_exec_ext in '' $ac_executable_extensions; do
19875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19876 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
19877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19883 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
19887 FIND=$ac_cv_path_FIND
19889 if test -n "$FIND"; then
19890 echo "$as_me:$LINENO: result: $FIND" >&5
19891 echo "${ECHO_T}$FIND" >&6
19893 echo "$as_me:$LINENO: result: no" >&5
19894 echo "${ECHO_T}no" >&6
19897 # Extract the first word of "grep", so it can be a program name with args.
19898 set dummy grep; ac_word=$2
19899 echo "$as_me:$LINENO: checking for $ac_word" >&5
19900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19901 if test "${ac_cv_path_GREP+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19906 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19910 for as_dir in $PATH
19913 test -z "$as_dir" && as_dir=.
19914 for ac_exec_ext in '' $ac_executable_extensions; do
19915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19916 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19923 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
19927 GREP=$ac_cv_path_GREP
19929 if test -n "$GREP"; then
19930 echo "$as_me:$LINENO: result: $GREP" >&5
19931 echo "${ECHO_T}$GREP" >&6
19933 echo "$as_me:$LINENO: result: no" >&5
19934 echo "${ECHO_T}no" >&6
19937 # Extract the first word of "mkdir", so it can be a program name with args.
19938 set dummy mkdir; ac_word=$2
19939 echo "$as_me:$LINENO: checking for $ac_word" >&5
19940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19941 if test "${ac_cv_path_MKDIR+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
19949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19950 for as_dir in $PATH
19953 test -z "$as_dir" && as_dir=.
19954 for ac_exec_ext in '' $ac_executable_extensions; do
19955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19956 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
19957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19963 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
19967 MKDIR=$ac_cv_path_MKDIR
19969 if test -n "$MKDIR"; then
19970 echo "$as_me:$LINENO: result: $MKDIR" >&5
19971 echo "${ECHO_T}$MKDIR" >&6
19973 echo "$as_me:$LINENO: result: no" >&5
19974 echo "${ECHO_T}no" >&6
19977 # Extract the first word of "mv", so it can be a program name with args.
19978 set dummy mv; ac_word=$2
19979 echo "$as_me:$LINENO: checking for $ac_word" >&5
19980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19981 if test "${ac_cv_path_MV+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
19989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19990 for as_dir in $PATH
19993 test -z "$as_dir" && as_dir=.
19994 for ac_exec_ext in '' $ac_executable_extensions; do
19995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19996 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
19997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20003 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
20009 if test -n "$MV"; then
20010 echo "$as_me:$LINENO: result: $MV" >&5
20011 echo "${ECHO_T}$MV" >&6
20013 echo "$as_me:$LINENO: result: no" >&5
20014 echo "${ECHO_T}no" >&6
20017 # Extract the first word of "pax", so it can be a program name with args.
20018 set dummy pax; ac_word=$2
20019 echo "$as_me:$LINENO: checking for $ac_word" >&5
20020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20021 if test "${ac_cv_path_PAX+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
20029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20030 for as_dir in $PATH
20033 test -z "$as_dir" && as_dir=.
20034 for ac_exec_ext in '' $ac_executable_extensions; do
20035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20036 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
20037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20043 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
20047 PAX=$ac_cv_path_PAX
20049 if test -n "$PAX"; then
20050 echo "$as_me:$LINENO: result: $PAX" >&5
20051 echo "${ECHO_T}$PAX" >&6
20053 echo "$as_me:$LINENO: result: no" >&5
20054 echo "${ECHO_T}no" >&6
20057 if test -n "$ac_tool_prefix"; then
20058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20060 echo "$as_me:$LINENO: checking for $ac_word" >&5
20061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20062 if test "${ac_cv_prog_RANLIB+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 if test -n "$RANLIB"; then
20066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20069 for as_dir in $PATH
20072 test -z "$as_dir" && as_dir=.
20073 for ac_exec_ext in '' $ac_executable_extensions; do
20074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20084 RANLIB=$ac_cv_prog_RANLIB
20085 if test -n "$RANLIB"; then
20086 echo "$as_me:$LINENO: result: $RANLIB" >&5
20087 echo "${ECHO_T}$RANLIB" >&6
20089 echo "$as_me:$LINENO: result: no" >&5
20090 echo "${ECHO_T}no" >&6
20094 if test -z "$ac_cv_prog_RANLIB"; then
20095 ac_ct_RANLIB=$RANLIB
20096 # Extract the first word of "ranlib", so it can be a program name with args.
20097 set dummy ranlib; ac_word=$2
20098 echo "$as_me:$LINENO: checking for $ac_word" >&5
20099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20100 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 if test -n "$ac_ct_RANLIB"; then
20104 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20107 for as_dir in $PATH
20110 test -z "$as_dir" && as_dir=.
20111 for ac_exec_ext in '' $ac_executable_extensions; do
20112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20113 ac_cv_prog_ac_ct_RANLIB="ranlib"
20114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20120 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
20123 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20124 if test -n "$ac_ct_RANLIB"; then
20125 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20126 echo "${ECHO_T}$ac_ct_RANLIB" >&6
20128 echo "$as_me:$LINENO: result: no" >&5
20129 echo "${ECHO_T}no" >&6
20132 RANLIB=$ac_ct_RANLIB
20134 RANLIB="$ac_cv_prog_RANLIB"
20137 # Extract the first word of "rm", so it can be a program name with args.
20138 set dummy rm; ac_word=$2
20139 echo "$as_me:$LINENO: checking for $ac_word" >&5
20140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20141 if test "${ac_cv_path_RM+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 ac_cv_path_RM="$RM" # Let the user override the test with a path.
20149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20150 for as_dir in $PATH
20153 test -z "$as_dir" && as_dir=.
20154 for ac_exec_ext in '' $ac_executable_extensions; do
20155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20156 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
20157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20163 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
20169 if test -n "$RM"; then
20170 echo "$as_me:$LINENO: result: $RM" >&5
20171 echo "${ECHO_T}$RM" >&6
20173 echo "$as_me:$LINENO: result: no" >&5
20174 echo "${ECHO_T}no" >&6
20177 # Extract the first word of "sed", so it can be a program name with args.
20178 set dummy sed; ac_word=$2
20179 echo "$as_me:$LINENO: checking for $ac_word" >&5
20180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20181 if test "${ac_cv_path_SED+set}" = set; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 ac_cv_path_SED="$SED" # Let the user override the test with a path.
20189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20190 for as_dir in $PATH
20193 test -z "$as_dir" && as_dir=.
20194 for ac_exec_ext in '' $ac_executable_extensions; do
20195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20196 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
20197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20203 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
20207 SED=$ac_cv_path_SED
20209 if test -n "$SED"; then
20210 echo "$as_me:$LINENO: result: $SED" >&5
20211 echo "${ECHO_T}$SED" >&6
20213 echo "$as_me:$LINENO: result: no" >&5
20214 echo "${ECHO_T}no" >&6
20217 # Extract the first word of "tar", so it can be a program name with args.
20218 set dummy tar; ac_word=$2
20219 echo "$as_me:$LINENO: checking for $ac_word" >&5
20220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20221 if test "${ac_cv_path_TAR+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
20229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20230 for as_dir in $PATH
20233 test -z "$as_dir" && as_dir=.
20234 for ac_exec_ext in '' $ac_executable_extensions; do
20235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20236 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
20237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20243 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
20247 TAR=$ac_cv_path_TAR
20249 if test -n "$TAR"; then
20250 echo "$as_me:$LINENO: result: $TAR" >&5
20251 echo "${ECHO_T}$TAR" >&6
20253 echo "$as_me:$LINENO: result: no" >&5
20254 echo "${ECHO_T}no" >&6
20258 # Find a good install program. We prefer a C program (faster),
20259 # so one script is as good as another. But avoid the broken or
20260 # incompatible versions:
20261 # SysV /etc/install, /usr/sbin/install
20262 # SunOS /usr/etc/install
20263 # IRIX /sbin/install
20265 # AmigaOS /C/install, which installs bootblocks on floppy discs
20266 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20269 # OS/2's system install, which has a completely different semantic
20270 # ./install, which can be erroneously created by make from ./install.sh.
20271 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20272 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20273 if test -z "$INSTALL"; then
20274 if test "${ac_cv_path_install+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20278 for as_dir in $PATH
20281 test -z "$as_dir" && as_dir=.
20282 # Account for people who put trailing slashes in PATH elements.
20284 ./ | .// | /cC/* | \
20285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20286 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20289 # OSF1 and SCO ODT 3.0 have their own names for install.
20290 # Don't use installbsd from OSF since it installs stuff as root
20292 for ac_prog in ginstall scoinst install; do
20293 for ac_exec_ext in '' $ac_executable_extensions; do
20294 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20295 if test $ac_prog = install &&
20296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20297 # AIX install. It has an incompatible calling convention.
20299 elif test $ac_prog = install &&
20300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20301 # program-specific install script used by HP pwplus--don't use.
20304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20316 if test "${ac_cv_path_install+set}" = set; then
20317 INSTALL=$ac_cv_path_install
20319 # As a last resort, use the slow shell script. We don't cache a
20320 # path for INSTALL within a source directory, because that will
20321 # break other packages using the cache if that directory is
20322 # removed, or if the path is relative.
20323 INSTALL=$ac_install_sh
20326 echo "$as_me:$LINENO: result: $INSTALL" >&5
20327 echo "${ECHO_T}$INSTALL" >&6
20329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20330 # It thinks the first close brace ends the variable substitution.
20331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20338 # Extract the first word of "bzip2", so it can be a program name with args.
20339 set dummy bzip2; ac_word=$2
20340 echo "$as_me:$LINENO: checking for $ac_word" >&5
20341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20342 if test "${ac_cv_path_BZIP2+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
20350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20351 for as_dir in $PATH
20354 test -z "$as_dir" && as_dir=.
20355 for ac_exec_ext in '' $ac_executable_extensions; do
20356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20357 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
20358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20364 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
20368 BZIP2=$ac_cv_path_BZIP2
20370 if test -n "$BZIP2"; then
20371 echo "$as_me:$LINENO: result: $BZIP2" >&5
20372 echo "${ECHO_T}$BZIP2" >&6
20374 echo "$as_me:$LINENO: result: no" >&5
20375 echo "${ECHO_T}no" >&6
20378 # Extract the first word of "dot", so it can be a program name with args.
20379 set dummy dot; ac_word=$2
20380 echo "$as_me:$LINENO: checking for $ac_word" >&5
20381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20382 if test "${ac_cv_path_DOT+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20387 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20391 for as_dir in $PATH
20394 test -z "$as_dir" && as_dir=.
20395 for ac_exec_ext in '' $ac_executable_extensions; do
20396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20397 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20404 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
20408 DOT=$ac_cv_path_DOT
20410 if test -n "$DOT"; then
20411 echo "$as_me:$LINENO: result: $DOT" >&5
20412 echo "${ECHO_T}$DOT" >&6
20414 echo "$as_me:$LINENO: result: no" >&5
20415 echo "${ECHO_T}no" >&6
20418 # Extract the first word of "doxygen", so it can be a program name with args.
20419 set dummy doxygen; ac_word=$2
20420 echo "$as_me:$LINENO: checking for $ac_word" >&5
20421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20422 if test "${ac_cv_path_DOXYGEN+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20431 for as_dir in $PATH
20434 test -z "$as_dir" && as_dir=.
20435 for ac_exec_ext in '' $ac_executable_extensions; do
20436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20437 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
20438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20444 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
20448 DOXYGEN=$ac_cv_path_DOXYGEN
20450 if test -n "$DOXYGEN"; then
20451 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
20452 echo "${ECHO_T}$DOXYGEN" >&6
20454 echo "$as_me:$LINENO: result: no" >&5
20455 echo "${ECHO_T}no" >&6
20458 # Extract the first word of "etags", so it can be a program name with args.
20459 set dummy etags; ac_word=$2
20460 echo "$as_me:$LINENO: checking for $ac_word" >&5
20461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20462 if test "${ac_cv_path_ETAGS+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20471 for as_dir in $PATH
20474 test -z "$as_dir" && as_dir=.
20475 for ac_exec_ext in '' $ac_executable_extensions; do
20476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20477 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20484 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
20488 ETAGS=$ac_cv_path_ETAGS
20490 if test -n "$ETAGS"; then
20491 echo "$as_me:$LINENO: result: $ETAGS" >&5
20492 echo "${ECHO_T}$ETAGS" >&6
20494 echo "$as_me:$LINENO: result: no" >&5
20495 echo "${ECHO_T}no" >&6
20498 # Extract the first word of "groff", so it can be a program name with args.
20499 set dummy groff; ac_word=$2
20500 echo "$as_me:$LINENO: checking for $ac_word" >&5
20501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20502 if test "${ac_cv_path_GROFF+set}" = set; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
20510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20511 for as_dir in $PATH
20514 test -z "$as_dir" && as_dir=.
20515 for ac_exec_ext in '' $ac_executable_extensions; do
20516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20517 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
20518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20524 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
20528 GROFF=$ac_cv_path_GROFF
20530 if test -n "$GROFF"; then
20531 echo "$as_me:$LINENO: result: $GROFF" >&5
20532 echo "${ECHO_T}$GROFF" >&6
20534 echo "$as_me:$LINENO: result: no" >&5
20535 echo "${ECHO_T}no" >&6
20538 # Extract the first word of "gzip", so it can be a program name with args.
20539 set dummy gzip; ac_word=$2
20540 echo "$as_me:$LINENO: checking for $ac_word" >&5
20541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20542 if test "${ac_cv_path_GZIP+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
20550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20551 for as_dir in $PATH
20554 test -z "$as_dir" && as_dir=.
20555 for ac_exec_ext in '' $ac_executable_extensions; do
20556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20557 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
20558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20564 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
20568 GZIP=$ac_cv_path_GZIP
20570 if test -n "$GZIP"; then
20571 echo "$as_me:$LINENO: result: $GZIP" >&5
20572 echo "${ECHO_T}$GZIP" >&6
20574 echo "$as_me:$LINENO: result: no" >&5
20575 echo "${ECHO_T}no" >&6
20578 # Extract the first word of "pod2html", so it can be a program name with args.
20579 set dummy pod2html; ac_word=$2
20580 echo "$as_me:$LINENO: checking for $ac_word" >&5
20581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20582 if test "${ac_cv_path_POD2HTML+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
20590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20591 for as_dir in $PATH
20594 test -z "$as_dir" && as_dir=.
20595 for ac_exec_ext in '' $ac_executable_extensions; do
20596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20597 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
20598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20604 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
20608 POD2HTML=$ac_cv_path_POD2HTML
20610 if test -n "$POD2HTML"; then
20611 echo "$as_me:$LINENO: result: $POD2HTML" >&5
20612 echo "${ECHO_T}$POD2HTML" >&6
20614 echo "$as_me:$LINENO: result: no" >&5
20615 echo "${ECHO_T}no" >&6
20618 # Extract the first word of "pod2man", so it can be a program name with args.
20619 set dummy pod2man; ac_word=$2
20620 echo "$as_me:$LINENO: checking for $ac_word" >&5
20621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20622 if test "${ac_cv_path_POD2MAN+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
20630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20631 for as_dir in $PATH
20634 test -z "$as_dir" && as_dir=.
20635 for ac_exec_ext in '' $ac_executable_extensions; do
20636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20637 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
20638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20644 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
20648 POD2MAN=$ac_cv_path_POD2MAN
20650 if test -n "$POD2MAN"; then
20651 echo "$as_me:$LINENO: result: $POD2MAN" >&5
20652 echo "${ECHO_T}$POD2MAN" >&6
20654 echo "$as_me:$LINENO: result: no" >&5
20655 echo "${ECHO_T}no" >&6
20658 # Extract the first word of "python", so it can be a program name with args.
20659 set dummy python; ac_word=$2
20660 echo "$as_me:$LINENO: checking for $ac_word" >&5
20661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20662 if test "${ac_cv_path_PYTHON+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20671 for as_dir in $PATH
20674 test -z "$as_dir" && as_dir=.
20675 for ac_exec_ext in '' $ac_executable_extensions; do
20676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20677 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20684 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
20688 PYTHON=$ac_cv_path_PYTHON
20690 if test -n "$PYTHON"; then
20691 echo "$as_me:$LINENO: result: $PYTHON" >&5
20692 echo "${ECHO_T}$PYTHON" >&6
20694 echo "$as_me:$LINENO: result: no" >&5
20695 echo "${ECHO_T}no" >&6
20698 # Extract the first word of "qmtest", so it can be a program name with args.
20699 set dummy qmtest; ac_word=$2
20700 echo "$as_me:$LINENO: checking for $ac_word" >&5
20701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20702 if test "${ac_cv_path_QMTEST+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20711 for as_dir in $PATH
20714 test -z "$as_dir" && as_dir=.
20715 for ac_exec_ext in '' $ac_executable_extensions; do
20716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20717 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20724 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
20728 QMTEST=$ac_cv_path_QMTEST
20730 if test -n "$QMTEST"; then
20731 echo "$as_me:$LINENO: result: $QMTEST" >&5
20732 echo "${ECHO_T}$QMTEST" >&6
20734 echo "$as_me:$LINENO: result: no" >&5
20735 echo "${ECHO_T}no" >&6
20738 # Extract the first word of "runtest", so it can be a program name with args.
20739 set dummy runtest; ac_word=$2
20740 echo "$as_me:$LINENO: checking for $ac_word" >&5
20741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20742 if test "${ac_cv_path_RUNTEST+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
20750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20751 for as_dir in $PATH
20754 test -z "$as_dir" && as_dir=.
20755 for ac_exec_ext in '' $ac_executable_extensions; do
20756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20757 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
20758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20764 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
20768 RUNTEST=$ac_cv_path_RUNTEST
20770 if test -n "$RUNTEST"; then
20771 echo "$as_me:$LINENO: result: $RUNTEST" >&5
20772 echo "${ECHO_T}$RUNTEST" >&6
20774 echo "$as_me:$LINENO: result: no" >&5
20775 echo "${ECHO_T}no" >&6
20778 # Extract the first word of "zip", so it can be a program name with args.
20779 set dummy zip; ac_word=$2
20780 echo "$as_me:$LINENO: checking for $ac_word" >&5
20781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20782 if test "${ac_cv_path_ZIP+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20791 for as_dir in $PATH
20794 test -z "$as_dir" && as_dir=.
20795 for ac_exec_ext in '' $ac_executable_extensions; do
20796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20797 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20804 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
20808 ZIP=$ac_cv_path_ZIP
20810 if test -n "$ZIP"; then
20811 echo "$as_me:$LINENO: result: $ZIP" >&5
20812 echo "${ECHO_T}$ZIP" >&6
20814 echo "$as_me:$LINENO: result: no" >&5
20815 echo "${ECHO_T}no" >&6
20819 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
20820 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
20821 if test "${llvm_cv_link_use_r+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 ac_cpp='$CPP $CPPFLAGS'
20826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20830 oldcflags="$CFLAGS"
20831 CFLAGS="$CFLAGS -Wl,-R."
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20842 int main() { return 0; }
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849 (eval $ac_link) 2>conftest.er1
20851 grep -v '^ *+' conftest.er1 >conftest.err
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -z "$ac_c_werror_flag"
20857 || test ! -s conftest.err'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; } &&
20863 { ac_try='test -s conftest$ac_exeext'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
20869 llvm_cv_link_use_r=yes
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 llvm_cv_link_use_r=no
20876 rm -f conftest.err conftest.$ac_objext \
20877 conftest$ac_exeext conftest.$ac_ext
20878 CFLAGS="$oldcflags"
20880 ac_cpp='$CPP $CPPFLAGS'
20881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
20888 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
20889 if test "$llvm_cv_link_use_r" = yes ; then
20891 cat >>confdefs.h <<\_ACEOF
20892 #define HAVE_LINK_R 1
20898 etags_version=`$ETAGS --version 2>&1`
20899 case "$etags_version" in
20900 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
20901 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
20902 *) ETAGSFLAGS="" ;;
20904 ETAGSFLAGS=$ETAGSFLAGS
20907 echo "$as_me:$LINENO: checking tool compatibility" >&5
20908 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
20910 if test "$GCC" != "yes"
20912 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
20913 echo "$as_me: error: gcc required but not found" >&2;}
20914 { (exit 1); exit 1; }; }
20916 if test "$GXX" != "yes"
20918 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
20919 echo "$as_me: error: g++ required but not found" >&2;}
20920 { (exit 1); exit 1; }; }
20923 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
20924 if test "$gccmajor" -lt "3"
20926 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
20927 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
20928 { (exit 1); exit 1; }; }
20931 if test -z "$llvm_cv_gnu_make_command"
20933 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
20934 echo "$as_me: error: GNU Make required but not found" >&2;}
20935 { (exit 1); exit 1; }; }
20938 echo "$as_me:$LINENO: result: ok" >&5
20939 echo "${ECHO_T}ok" >&6
20941 if test "$PYTHON" = "false" ; then
20942 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
20943 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
20945 if test "$QMTEST" = "false" ; then
20946 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
20947 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
20949 if test "$RUNTEST" = "false" ; then
20950 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
20951 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
20953 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
20954 pymajor=`echo $pyversion | cut -d. -f1`
20955 pyminor=`echo $pyversion | cut -d. -f2`
20956 if test "$pymajor" -ge "2" ; then
20957 if test "$pymajor" -eq "2" ; then
20958 if test "$pyminor" -lt "2" ; then
20959 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20960 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20964 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20965 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20968 echo "$as_me:$LINENO: result: " >&5
20969 echo "${ECHO_T}" >&6
20973 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
20974 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
20975 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 ac_check_lib_save_LIBS=$LIBS
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20987 /* Override any gcc2 internal prototype to avoid an error. */
20991 /* We use char because int might match the return type of a gcc2
20992 builtin and then its argument prototype would still apply. */
21002 rm -f conftest.$ac_objext conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try='test -s conftest$ac_exeext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_lib_elf_elf_begin=yes
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ac_cv_lib_elf_elf_begin=no
21031 rm -f conftest.err conftest.$ac_objext \
21032 conftest$ac_exeext conftest.$ac_ext
21033 LIBS=$ac_check_lib_save_LIBS
21035 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
21036 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
21037 if test $ac_cv_lib_elf_elf_begin = yes; then
21038 cat >>confdefs.h <<_ACEOF
21039 #define HAVE_LIBELF 1
21047 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
21048 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
21049 if test "${ac_cv_search_lt_dlopen+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21052 ac_func_search_save_LIBS=$LIBS
21053 ac_cv_search_lt_dlopen=no
21054 cat >conftest.$ac_ext <<_ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21061 /* Override any gcc2 internal prototype to avoid an error. */
21065 /* We use char because int might match the return type of a gcc2
21066 builtin and then its argument prototype would still apply. */
21076 rm -f conftest.$ac_objext conftest$ac_exeext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21078 (eval $ac_link) 2>conftest.er1
21080 grep -v '^ *+' conftest.er1 >conftest.err
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try='test -z "$ac_c_werror_flag"
21086 || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest$ac_exeext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_search_lt_dlopen="none required"
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21104 rm -f conftest.err conftest.$ac_objext \
21105 conftest$ac_exeext conftest.$ac_ext
21106 if test "$ac_cv_search_lt_dlopen" = no; then
21107 for ac_lib in ltdl; do
21108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21116 /* Override any gcc2 internal prototype to avoid an error. */
21120 /* We use char because int might match the return type of a gcc2
21121 builtin and then its argument prototype would still apply. */
21131 rm -f conftest.$ac_objext conftest$ac_exeext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21133 (eval $ac_link) 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_c_werror_flag"
21141 || test ! -s conftest.err'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest$ac_exeext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_cv_search_lt_dlopen="-l$ac_lib"
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21160 rm -f conftest.err conftest.$ac_objext \
21161 conftest$ac_exeext conftest.$ac_ext
21164 LIBS=$ac_func_search_save_LIBS
21166 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
21167 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
21168 if test "$ac_cv_search_lt_dlopen" != no; then
21169 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
21171 cat >>confdefs.h <<\_ACEOF
21172 #define HAVE_LT_DLOPEN 1
21176 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
21177 not be available" >&5
21178 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
21179 not be available" >&2;}
21183 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21184 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
21185 if test "${ac_cv_search_dlopen+set}" = set; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 ac_func_search_save_LIBS=$LIBS
21189 ac_cv_search_dlopen=no
21190 cat >conftest.$ac_ext <<_ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h. */
21197 /* Override any gcc2 internal prototype to avoid an error. */
21201 /* We use char because int might match the return type of a gcc2
21202 builtin and then its argument prototype would still apply. */
21212 rm -f conftest.$ac_objext conftest$ac_exeext
21213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21214 (eval $ac_link) 2>conftest.er1
21216 grep -v '^ *+' conftest.er1 >conftest.err
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
21221 { ac_try='test -z "$ac_c_werror_flag"
21222 || test ! -s conftest.err'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest$ac_exeext'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 ac_cv_search_dlopen="none required"
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21240 rm -f conftest.err conftest.$ac_objext \
21241 conftest$ac_exeext conftest.$ac_ext
21242 if test "$ac_cv_search_dlopen" = no; then
21243 for ac_lib in dl; do
21244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21252 /* Override any gcc2 internal prototype to avoid an error. */
21256 /* We use char because int might match the return type of a gcc2
21257 builtin and then its argument prototype would still apply. */
21267 rm -f conftest.$ac_objext conftest$ac_exeext
21268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21269 (eval $ac_link) 2>conftest.er1
21271 grep -v '^ *+' conftest.er1 >conftest.err
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
21276 { ac_try='test -z "$ac_c_werror_flag"
21277 || test ! -s conftest.err'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; } &&
21283 { ac_try='test -s conftest$ac_exeext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_search_dlopen="-l$ac_lib"
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21296 rm -f conftest.err conftest.$ac_objext \
21297 conftest$ac_exeext conftest.$ac_ext
21300 LIBS=$ac_func_search_save_LIBS
21302 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21303 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
21304 if test "$ac_cv_search_dlopen" != no; then
21305 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
21307 cat >>confdefs.h <<\_ACEOF
21308 #define HAVE_DLOPEN 1
21312 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
21313 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
21317 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
21318 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
21319 if test "${ac_cv_search_mallinfo+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21322 ac_func_search_save_LIBS=$LIBS
21323 ac_cv_search_mallinfo=no
21324 cat >conftest.$ac_ext <<_ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h. */
21331 /* Override any gcc2 internal prototype to avoid an error. */
21335 /* We use char because int might match the return type of a gcc2
21336 builtin and then its argument prototype would still apply. */
21346 rm -f conftest.$ac_objext conftest$ac_exeext
21347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21348 (eval $ac_link) 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
21355 { ac_try='test -z "$ac_c_werror_flag"
21356 || test ! -s conftest.err'
21357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358 (eval $ac_try) 2>&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; } &&
21362 { ac_try='test -s conftest$ac_exeext'
21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21368 ac_cv_search_mallinfo="none required"
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21374 rm -f conftest.err conftest.$ac_objext \
21375 conftest$ac_exeext conftest.$ac_ext
21376 if test "$ac_cv_search_mallinfo" = no; then
21377 for ac_lib in malloc; do
21378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21379 cat >conftest.$ac_ext <<_ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21386 /* Override any gcc2 internal prototype to avoid an error. */
21390 /* We use char because int might match the return type of a gcc2
21391 builtin and then its argument prototype would still apply. */
21401 rm -f conftest.$ac_objext conftest$ac_exeext
21402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21403 (eval $ac_link) 2>conftest.er1
21405 grep -v '^ *+' conftest.er1 >conftest.err
21407 cat conftest.err >&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } &&
21410 { ac_try='test -z "$ac_c_werror_flag"
21411 || test ! -s conftest.err'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; } &&
21417 { ac_try='test -s conftest$ac_exeext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_search_mallinfo="-l$ac_lib"
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21430 rm -f conftest.err conftest.$ac_objext \
21431 conftest$ac_exeext conftest.$ac_ext
21434 LIBS=$ac_func_search_save_LIBS
21436 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21437 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21438 if test "$ac_cv_search_mallinfo" != no; then
21439 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
21441 cat >>confdefs.h <<\_ACEOF
21442 #define HAVE_MALLINFO 1
21448 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21449 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21450 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 ac_func_search_save_LIBS=$LIBS
21454 ac_cv_search_pthread_mutex_lock=no
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21462 /* Override any gcc2 internal prototype to avoid an error. */
21466 /* We use char because int might match the return type of a gcc2
21467 builtin and then its argument prototype would still apply. */
21468 char pthread_mutex_lock ();
21472 pthread_mutex_lock ();
21477 rm -f conftest.$ac_objext conftest$ac_exeext
21478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21479 (eval $ac_link) 2>conftest.er1
21481 grep -v '^ *+' conftest.er1 >conftest.err
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } &&
21486 { ac_try='test -z "$ac_c_werror_flag"
21487 || test ! -s conftest.err'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; } &&
21493 { ac_try='test -s conftest$ac_exeext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 ac_cv_search_pthread_mutex_lock="none required"
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21505 rm -f conftest.err conftest.$ac_objext \
21506 conftest$ac_exeext conftest.$ac_ext
21507 if test "$ac_cv_search_pthread_mutex_lock" = no; then
21508 for ac_lib in pthread; do
21509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21510 cat >conftest.$ac_ext <<_ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21517 /* Override any gcc2 internal prototype to avoid an error. */
21521 /* We use char because int might match the return type of a gcc2
21522 builtin and then its argument prototype would still apply. */
21523 char pthread_mutex_lock ();
21527 pthread_mutex_lock ();
21532 rm -f conftest.$ac_objext conftest$ac_exeext
21533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21534 (eval $ac_link) 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
21541 { ac_try='test -z "$ac_c_werror_flag"
21542 || test ! -s conftest.err'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try='test -s conftest$ac_exeext'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21561 rm -f conftest.err conftest.$ac_objext \
21562 conftest$ac_exeext conftest.$ac_ext
21565 LIBS=$ac_func_search_save_LIBS
21567 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21568 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21569 if test "$ac_cv_search_pthread_mutex_lock" != no; then
21570 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
21572 cat >>confdefs.h <<\_ACEOF
21573 #define HAVE_PTHREAD_MUTEX_LOCK 1
21580 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21581 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21582 if test "${ac_cv_header_stdc+set}" = set; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 #include <stdlib.h>
21592 #include <stdarg.h>
21593 #include <string.h>
21604 rm -f conftest.$ac_objext
21605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21606 (eval $ac_compile) 2>conftest.er1
21608 grep -v '^ *+' conftest.er1 >conftest.err
21610 cat conftest.err >&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } &&
21613 { ac_try='test -z "$ac_c_werror_flag"
21614 || test ! -s conftest.err'
21615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616 (eval $ac_try) 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; } &&
21620 { ac_try='test -s conftest.$ac_objext'
21621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622 (eval $ac_try) 2>&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); }; }; then
21626 ac_cv_header_stdc=yes
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21631 ac_cv_header_stdc=no
21633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21635 if test $ac_cv_header_stdc = yes; then
21636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21637 cat >conftest.$ac_ext <<_ACEOF
21640 cat confdefs.h >>conftest.$ac_ext
21641 cat >>conftest.$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21643 #include <string.h>
21646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21647 $EGREP "memchr" >/dev/null 2>&1; then
21650 ac_cv_header_stdc=no
21656 if test $ac_cv_header_stdc = yes; then
21657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21658 cat >conftest.$ac_ext <<_ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 #include <stdlib.h>
21667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21668 $EGREP "free" >/dev/null 2>&1; then
21671 ac_cv_header_stdc=no
21677 if test $ac_cv_header_stdc = yes; then
21678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21679 if test "$cross_compiling" = yes; then
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21689 #if ((' ' & 0x0FF) == 0x020)
21690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21693 # define ISLOWER(c) \
21694 (('a' <= (c) && (c) <= 'i') \
21695 || ('j' <= (c) && (c) <= 'r') \
21696 || ('s' <= (c) && (c) <= 'z'))
21697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21705 for (i = 0; i < 256; i++)
21706 if (XOR (islower (i), ISLOWER (i))
21707 || toupper (i) != TOUPPER (i))
21712 rm -f conftest$ac_exeext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21714 (eval $ac_link) 2>&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21725 echo "$as_me: program exited with status $ac_status" >&5
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21729 ( exit $ac_status )
21730 ac_cv_header_stdc=no
21732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21736 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21737 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21738 if test $ac_cv_header_stdc = yes; then
21740 cat >>confdefs.h <<\_ACEOF
21741 #define STDC_HEADERS 1
21747 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21748 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21749 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 cat >conftest.$ac_ext <<_ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 #include <sys/types.h>
21759 #include <sys/wait.h>
21760 #ifndef WEXITSTATUS
21761 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21764 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21772 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21777 rm -f conftest.$ac_objext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21779 (eval $ac_compile) 2>conftest.er1
21781 grep -v '^ *+' conftest.er1 >conftest.err
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } &&
21786 { ac_try='test -z "$ac_c_werror_flag"
21787 || test ! -s conftest.err'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; } &&
21793 { ac_try='test -s conftest.$ac_objext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_header_sys_wait_h=yes
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21804 ac_cv_header_sys_wait_h=no
21806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21808 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21809 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21810 if test $ac_cv_header_sys_wait_h = yes; then
21812 cat >>confdefs.h <<\_ACEOF
21813 #define HAVE_SYS_WAIT_H 1
21823 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
21825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21827 echo "$as_me:$LINENO: checking for $ac_header" >&5
21828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21835 # Is the header compilable?
21836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21838 cat >conftest.$ac_ext <<_ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21844 $ac_includes_default
21845 #include <$ac_header>
21847 rm -f conftest.$ac_objext
21848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21849 (eval $ac_compile) 2>conftest.er1
21851 grep -v '^ *+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } &&
21856 { ac_try='test -z "$ac_c_werror_flag"
21857 || test ! -s conftest.err'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; } &&
21863 { ac_try='test -s conftest.$ac_objext'
21864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865 (eval $ac_try) 2>&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); }; }; then
21869 ac_header_compiler=yes
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21874 ac_header_compiler=no
21876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21878 echo "${ECHO_T}$ac_header_compiler" >&6
21880 # Is the header present?
21881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21883 cat >conftest.$ac_ext <<_ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 #include <$ac_header>
21891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21894 grep -v '^ *+' conftest.er1 >conftest.err
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } >/dev/null; then
21899 if test -s conftest.err; then
21900 ac_cpp_err=$ac_c_preproc_warn_flag
21901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21908 if test -z "$ac_cpp_err"; then
21909 ac_header_preproc=yes
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21914 ac_header_preproc=no
21916 rm -f conftest.err conftest.$ac_ext
21917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21918 echo "${ECHO_T}$ac_header_preproc" >&6
21920 # So? What about this header?
21921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21927 ac_header_preproc=yes
21930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21944 ## ----------------------------------- ##
21945 ## Report this to llvmbugs@cs.uiuc.edu ##
21946 ## ----------------------------------- ##
21949 sed "s/^/$as_me: WARNING: /" >&2
21952 echo "$as_me:$LINENO: checking for $ac_header" >&5
21953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21957 eval "$as_ac_Header=\$ac_header_preproc"
21959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21964 cat >>confdefs.h <<_ACEOF
21965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21979 for ac_header in bzlib.h dlfcn.h execinfo.h fcntl.h limits.h link.h ltdl.h
21981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21983 echo "$as_me:$LINENO: checking for $ac_header" >&5
21984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21991 # Is the header compilable?
21992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21994 cat >conftest.$ac_ext <<_ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h. */
22000 $ac_includes_default
22001 #include <$ac_header>
22003 rm -f conftest.$ac_objext
22004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22005 (eval $ac_compile) 2>conftest.er1
22007 grep -v '^ *+' conftest.er1 >conftest.err
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } &&
22012 { ac_try='test -z "$ac_c_werror_flag"
22013 || test ! -s conftest.err'
22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015 (eval $ac_try) 2>&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); }; } &&
22019 { ac_try='test -s conftest.$ac_objext'
22020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021 (eval $ac_try) 2>&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; }; then
22025 ac_header_compiler=yes
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_header_compiler=no
22032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22034 echo "${ECHO_T}$ac_header_compiler" >&6
22036 # Is the header present?
22037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22039 cat >conftest.$ac_ext <<_ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 #include <$ac_header>
22047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22050 grep -v '^ *+' conftest.er1 >conftest.err
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } >/dev/null; then
22055 if test -s conftest.err; then
22056 ac_cpp_err=$ac_c_preproc_warn_flag
22057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22064 if test -z "$ac_cpp_err"; then
22065 ac_header_preproc=yes
22067 echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22070 ac_header_preproc=no
22072 rm -f conftest.err conftest.$ac_ext
22073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22074 echo "${ECHO_T}$ac_header_preproc" >&6
22076 # So? What about this header?
22077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22083 ac_header_preproc=yes
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22100 ## ----------------------------------- ##
22101 ## Report this to llvmbugs@cs.uiuc.edu ##
22102 ## ----------------------------------- ##
22105 sed "s/^/$as_me: WARNING: /" >&2
22108 echo "$as_me:$LINENO: checking for $ac_header" >&5
22109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22111 echo $ECHO_N "(cached) $ECHO_C" >&6
22113 eval "$as_ac_Header=\$ac_header_preproc"
22115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22120 cat >>confdefs.h <<_ACEOF
22121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22132 for ac_header in malloc.h unistd.h windows.h zlib.h
22134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22136 echo "$as_me:$LINENO: checking for $ac_header" >&5
22137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22144 # Is the header compilable?
22145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22147 cat >conftest.$ac_ext <<_ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 $ac_includes_default
22154 #include <$ac_header>
22156 rm -f conftest.$ac_objext
22157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22158 (eval $ac_compile) 2>conftest.er1
22160 grep -v '^ *+' conftest.er1 >conftest.err
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
22165 { ac_try='test -z "$ac_c_werror_flag"
22166 || test ! -s conftest.err'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; } &&
22172 { ac_try='test -s conftest.$ac_objext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ac_header_compiler=yes
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 ac_header_compiler=no
22185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22187 echo "${ECHO_T}$ac_header_compiler" >&6
22189 # Is the header present?
22190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22192 cat >conftest.$ac_ext <<_ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 #include <$ac_header>
22200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22203 grep -v '^ *+' conftest.er1 >conftest.err
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } >/dev/null; then
22208 if test -s conftest.err; then
22209 ac_cpp_err=$ac_c_preproc_warn_flag
22210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22217 if test -z "$ac_cpp_err"; then
22218 ac_header_preproc=yes
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 ac_header_preproc=no
22225 rm -f conftest.err conftest.$ac_ext
22226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22227 echo "${ECHO_T}$ac_header_preproc" >&6
22229 # So? What about this header?
22230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22236 ac_header_preproc=yes
22239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22253 ## ----------------------------------- ##
22254 ## Report this to llvmbugs@cs.uiuc.edu ##
22255 ## ----------------------------------- ##
22258 sed "s/^/$as_me: WARNING: /" >&2
22261 echo "$as_me:$LINENO: checking for $ac_header" >&5
22262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 eval "$as_ac_Header=\$ac_header_preproc"
22268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22273 cat >>confdefs.h <<_ACEOF
22274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22281 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22282 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22283 if test "${ac_cv_header_time+set}" = set; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 cat >conftest.$ac_ext <<_ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22292 #include <sys/types.h>
22293 #include <sys/time.h>
22299 if ((struct tm *) 0)
22305 rm -f conftest.$ac_objext
22306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22307 (eval $ac_compile) 2>conftest.er1
22309 grep -v '^ *+' conftest.er1 >conftest.err
22311 cat conftest.err >&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } &&
22314 { ac_try='test -z "$ac_c_werror_flag"
22315 || test ! -s conftest.err'
22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317 (eval $ac_try) 2>&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; } &&
22321 { ac_try='test -s conftest.$ac_objext'
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; }; then
22327 ac_cv_header_time=yes
22329 echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22332 ac_cv_header_time=no
22334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22336 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22337 echo "${ECHO_T}$ac_cv_header_time" >&6
22338 if test $ac_cv_header_time = yes; then
22340 cat >>confdefs.h <<\_ACEOF
22341 #define TIME_WITH_SYS_TIME 1
22346 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22347 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22348 if test "${ac_cv_header_mmap_anon+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22352 ac_cpp='$CPP $CPPFLAGS'
22353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22357 cat >conftest.$ac_ext <<_ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22363 #include <sys/mman.h>
22364 #include <unistd.h>
22369 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22374 rm -f conftest.$ac_objext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22376 (eval $ac_compile) 2>conftest.er1
22378 grep -v '^ *+' conftest.er1 >conftest.err
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } &&
22383 { ac_try='test -z "$ac_c_werror_flag"
22384 || test ! -s conftest.err'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; } &&
22390 { ac_try='test -s conftest.$ac_objext'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; }; then
22396 ac_cv_header_mmap_anon=yes
22398 echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22401 ac_cv_header_mmap_anon=no
22403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22405 ac_cpp='$CPP $CPPFLAGS'
22406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22412 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22413 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22414 if test "$ac_cv_header_mmap_anon" = yes; then
22416 cat >>confdefs.h <<\_ACEOF
22417 #define HAVE_MMAP_ANONYMOUS
22425 for ac_header in inttypes.h stdint.h
22427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22429 echo "$as_me:$LINENO: checking for $ac_header" >&5
22430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22437 # Is the header compilable?
22438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22440 cat >conftest.$ac_ext <<_ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22446 $ac_includes_default
22447 #include <$ac_header>
22449 rm -f conftest.$ac_objext
22450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22451 (eval $ac_compile) 2>conftest.er1
22453 grep -v '^ *+' conftest.er1 >conftest.err
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } &&
22458 { ac_try='test -z "$ac_c_werror_flag"
22459 || test ! -s conftest.err'
22460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461 (eval $ac_try) 2>&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); }; } &&
22465 { ac_try='test -s conftest.$ac_objext'
22466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467 (eval $ac_try) 2>&5
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; }; then
22471 ac_header_compiler=yes
22473 echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22476 ac_header_compiler=no
22478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22480 echo "${ECHO_T}$ac_header_compiler" >&6
22482 # Is the header present?
22483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22485 cat >conftest.$ac_ext <<_ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22491 #include <$ac_header>
22493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22496 grep -v '^ *+' conftest.er1 >conftest.err
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } >/dev/null; then
22501 if test -s conftest.err; then
22502 ac_cpp_err=$ac_c_preproc_warn_flag
22503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22510 if test -z "$ac_cpp_err"; then
22511 ac_header_preproc=yes
22513 echo "$as_me: failed program was:" >&5
22514 sed 's/^/| /' conftest.$ac_ext >&5
22516 ac_header_preproc=no
22518 rm -f conftest.err conftest.$ac_ext
22519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22520 echo "${ECHO_T}$ac_header_preproc" >&6
22522 # So? What about this header?
22523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22529 ac_header_preproc=yes
22532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22546 ## ----------------------------------- ##
22547 ## Report this to llvmbugs@cs.uiuc.edu ##
22548 ## ----------------------------------- ##
22551 sed "s/^/$as_me: WARNING: /" >&2
22554 echo "$as_me:$LINENO: checking for $ac_header" >&5
22555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22559 eval "$as_ac_Header=\$ac_header_preproc"
22561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22566 cat >>confdefs.h <<_ACEOF
22567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22576 echo "$as_me:$LINENO: checking for pid_t" >&5
22577 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22578 if test "${ac_cv_type_pid_t+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22581 cat >conftest.$ac_ext <<_ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h. */
22587 $ac_includes_default
22593 if (sizeof (pid_t))
22599 rm -f conftest.$ac_objext
22600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22601 (eval $ac_compile) 2>conftest.er1
22603 grep -v '^ *+' conftest.er1 >conftest.err
22605 cat conftest.err >&5
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); } &&
22608 { ac_try='test -z "$ac_c_werror_flag"
22609 || test ! -s conftest.err'
22610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; } &&
22615 { ac_try='test -s conftest.$ac_objext'
22616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617 (eval $ac_try) 2>&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); }; }; then
22621 ac_cv_type_pid_t=yes
22623 echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22626 ac_cv_type_pid_t=no
22628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22630 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22631 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22632 if test $ac_cv_type_pid_t = yes; then
22636 cat >>confdefs.h <<_ACEOF
22642 echo "$as_me:$LINENO: checking for size_t" >&5
22643 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22644 if test "${ac_cv_type_size_t+set}" = set; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 cat >conftest.$ac_ext <<_ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h. */
22653 $ac_includes_default
22659 if (sizeof (size_t))
22665 rm -f conftest.$ac_objext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667 (eval $ac_compile) 2>conftest.er1
22669 grep -v '^ *+' conftest.er1 >conftest.err
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
22674 { ac_try='test -z "$ac_c_werror_flag"
22675 || test ! -s conftest.err'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; } &&
22681 { ac_try='test -s conftest.$ac_objext'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 ac_cv_type_size_t=yes
22689 echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 ac_cv_type_size_t=no
22694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22696 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22697 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22698 if test $ac_cv_type_size_t = yes; then
22702 cat >>confdefs.h <<_ACEOF
22703 #define size_t unsigned
22708 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22709 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22710 if test "${ac_cv_type_signal+set}" = set; then
22711 echo $ECHO_N "(cached) $ECHO_C" >&6
22713 cat >conftest.$ac_ext <<_ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 #include <sys/types.h>
22720 #include <signal.h>
22725 extern "C" void (*signal (int, void (*)(int)))(int);
22727 void (*signal ()) ();
22738 rm -f conftest.$ac_objext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22740 (eval $ac_compile) 2>conftest.er1
22742 grep -v '^ *+' conftest.er1 >conftest.err
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
22747 { ac_try='test -z "$ac_c_werror_flag"
22748 || test ! -s conftest.err'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; } &&
22754 { ac_try='test -s conftest.$ac_objext'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 ac_cv_type_signal=void
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 ac_cv_type_signal=int
22767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22769 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22770 echo "${ECHO_T}$ac_cv_type_signal" >&6
22772 cat >>confdefs.h <<_ACEOF
22773 #define RETSIGTYPE $ac_cv_type_signal
22777 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22778 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22779 if test "${ac_cv_struct_tm+set}" = set; then
22780 echo $ECHO_N "(cached) $ECHO_C" >&6
22782 cat >conftest.$ac_ext <<_ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22788 #include <sys/types.h>
22794 struct tm *tp; tp->tm_sec;
22799 rm -f conftest.$ac_objext
22800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22801 (eval $ac_compile) 2>conftest.er1
22803 grep -v '^ *+' conftest.er1 >conftest.err
22805 cat conftest.err >&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } &&
22808 { ac_try='test -z "$ac_c_werror_flag"
22809 || test ! -s conftest.err'
22810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811 (eval $ac_try) 2>&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); }; } &&
22815 { ac_try='test -s conftest.$ac_objext'
22816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817 (eval $ac_try) 2>&5
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; }; then
22821 ac_cv_struct_tm=time.h
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22826 ac_cv_struct_tm=sys/time.h
22828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22830 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22831 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22832 if test $ac_cv_struct_tm = sys/time.h; then
22834 cat >>confdefs.h <<\_ACEOF
22835 #define TM_IN_SYS_TIME 1
22840 echo "$as_me:$LINENO: checking for int64_t" >&5
22841 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
22842 if test "${ac_cv_type_int64_t+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 cat >conftest.$ac_ext <<_ACEOF
22848 cat confdefs.h >>conftest.$ac_ext
22849 cat >>conftest.$ac_ext <<_ACEOF
22850 /* end confdefs.h. */
22851 $ac_includes_default
22857 if (sizeof (int64_t))
22863 rm -f conftest.$ac_objext
22864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22865 (eval $ac_compile) 2>conftest.er1
22867 grep -v '^ *+' conftest.er1 >conftest.err
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } &&
22872 { ac_try='test -z "$ac_c_werror_flag"
22873 || test ! -s conftest.err'
22874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875 (eval $ac_try) 2>&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; } &&
22879 { ac_try='test -s conftest.$ac_objext'
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; }; then
22885 ac_cv_type_int64_t=yes
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22890 ac_cv_type_int64_t=no
22892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22894 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
22895 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
22896 if test $ac_cv_type_int64_t = yes; then
22898 cat >>confdefs.h <<_ACEOF
22899 #define HAVE_INT64_T 1
22904 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
22905 echo "$as_me: error: Type int64_t required but not found" >&2;}
22906 { (exit 1); exit 1; }; }
22909 echo "$as_me:$LINENO: checking for uint64_t" >&5
22910 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
22911 if test "${ac_cv_type_uint64_t+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 $ac_includes_default
22924 if ((uint64_t *) 0)
22926 if (sizeof (uint64_t))
22932 rm -f conftest.$ac_objext
22933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22934 (eval $ac_compile) 2>conftest.er1
22936 grep -v '^ *+' conftest.er1 >conftest.err
22938 cat conftest.err >&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } &&
22941 { ac_try='test -z "$ac_c_werror_flag"
22942 || test ! -s conftest.err'
22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; } &&
22948 { ac_try='test -s conftest.$ac_objext'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; }; then
22954 ac_cv_type_uint64_t=yes
22956 echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22959 ac_cv_type_uint64_t=no
22961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22963 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
22964 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
22965 if test $ac_cv_type_uint64_t = yes; then
22967 cat >>confdefs.h <<_ACEOF
22968 #define HAVE_UINT64_T 1
22973 echo "$as_me:$LINENO: checking for u_int64_t" >&5
22974 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
22975 if test "${ac_cv_type_u_int64_t+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 $ac_includes_default
22988 if ((u_int64_t *) 0)
22990 if (sizeof (u_int64_t))
22996 rm -f conftest.$ac_objext
22997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22998 (eval $ac_compile) 2>conftest.er1
23000 grep -v '^ *+' conftest.er1 >conftest.err
23002 cat conftest.err >&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } &&
23005 { ac_try='test -z "$ac_c_werror_flag"
23006 || test ! -s conftest.err'
23007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008 (eval $ac_try) 2>&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); }; } &&
23012 { ac_try='test -s conftest.$ac_objext'
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; }; then
23018 ac_cv_type_u_int64_t=yes
23020 echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23023 ac_cv_type_u_int64_t=no
23025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23027 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
23028 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
23029 if test $ac_cv_type_u_int64_t = yes; then
23031 cat >>confdefs.h <<_ACEOF
23032 #define HAVE_U_INT64_T 1
23037 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
23038 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
23039 { (exit 1); exit 1; }; }
23052 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
23054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23055 echo "$as_me:$LINENO: checking for $ac_func" >&5
23056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23057 if eval "test \"\${$as_ac_var+set}\" = set"; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 cat >conftest.$ac_ext <<_ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23068 #define $ac_func innocuous_$ac_func
23070 /* System header to define __stub macros and hopefully few prototypes,
23071 which can conflict with char $ac_func (); below.
23072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23073 <limits.h> exists even on freestanding compilers. */
23076 # include <limits.h>
23078 # include <assert.h>
23083 /* Override any gcc2 internal prototype to avoid an error. */
23088 /* We use char because int might match the return type of a gcc2
23089 builtin and then its argument prototype would still apply. */
23091 /* The GNU C library defines this for functions which it implements
23092 to always fail with ENOSYS. Some functions are actually named
23093 something starting with __ and the normal name is an alias. */
23094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23097 char (*f) () = $ac_func;
23106 return f != $ac_func;
23111 rm -f conftest.$ac_objext conftest$ac_exeext
23112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23113 (eval $ac_link) 2>conftest.er1
23115 grep -v '^ *+' conftest.er1 >conftest.err
23117 cat conftest.err >&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } &&
23120 { ac_try='test -z "$ac_c_werror_flag"
23121 || test ! -s conftest.err'
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; } &&
23127 { ac_try='test -s conftest$ac_exeext'
23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; }; then
23133 eval "$as_ac_var=yes"
23135 echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23138 eval "$as_ac_var=no"
23140 rm -f conftest.err conftest.$ac_objext \
23141 conftest$ac_exeext conftest.$ac_ext
23143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23145 if test `eval echo '${'$as_ac_var'}'` = yes; then
23146 cat >>confdefs.h <<_ACEOF
23147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23156 for ac_func in strdup strtoq strtoll
23158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23159 echo "$as_me:$LINENO: checking for $ac_func" >&5
23160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23161 if eval "test \"\${$as_ac_var+set}\" = set"; then
23162 echo $ECHO_N "(cached) $ECHO_C" >&6
23164 cat >conftest.$ac_ext <<_ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h. */
23170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23172 #define $ac_func innocuous_$ac_func
23174 /* System header to define __stub macros and hopefully few prototypes,
23175 which can conflict with char $ac_func (); below.
23176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23177 <limits.h> exists even on freestanding compilers. */
23180 # include <limits.h>
23182 # include <assert.h>
23187 /* Override any gcc2 internal prototype to avoid an error. */
23192 /* We use char because int might match the return type of a gcc2
23193 builtin and then its argument prototype would still apply. */
23195 /* The GNU C library defines this for functions which it implements
23196 to always fail with ENOSYS. Some functions are actually named
23197 something starting with __ and the normal name is an alias. */
23198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23201 char (*f) () = $ac_func;
23210 return f != $ac_func;
23215 rm -f conftest.$ac_objext conftest$ac_exeext
23216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23217 (eval $ac_link) 2>conftest.er1
23219 grep -v '^ *+' conftest.er1 >conftest.err
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
23224 { ac_try='test -z "$ac_c_werror_flag"
23225 || test ! -s conftest.err'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } &&
23231 { ac_try='test -s conftest$ac_exeext'
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 eval "$as_ac_var=yes"
23239 echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23242 eval "$as_ac_var=no"
23244 rm -f conftest.err conftest.$ac_objext \
23245 conftest$ac_exeext conftest.$ac_ext
23247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23249 if test `eval echo '${'$as_ac_var'}'` = yes; then
23250 cat >>confdefs.h <<_ACEOF
23251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23257 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
23258 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
23259 if test "${llvm_cv_c_printf_a+set}" = set; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23263 ac_cpp='$CPP $CPPFLAGS'
23264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23268 if test "$cross_compiling" = yes; then
23269 llvmac_cv_c_printf_a=no
23271 cat >conftest.$ac_ext <<_ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h. */
23280 #include <stdlib.h>
23286 volatile double A, B;
23290 sprintf(Buffer, "%a", A);
23294 if (A != 0x1.999999999999ap-4)
23301 rm -f conftest$ac_exeext
23302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23303 (eval $ac_link) 2>&5
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; }; then
23312 llvm_cv_c_printf_a=yes
23314 echo "$as_me: program exited with status $ac_status" >&5
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23318 ( exit $ac_status )
23319 llvmac_cv_c_printf_a=no
23321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23324 ac_cpp='$CPP $CPPFLAGS'
23325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23330 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
23331 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
23332 if test "$llvm_cv_c_printf_a" = "yes"; then
23334 cat >>confdefs.h <<\_ACEOF
23335 #define HAVE_PRINTF_A 1
23340 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23341 # for constant arguments. Useless!
23342 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23343 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23344 if test "${ac_cv_working_alloca_h+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23347 cat >conftest.$ac_ext <<_ACEOF
23350 cat confdefs.h >>conftest.$ac_ext
23351 cat >>conftest.$ac_ext <<_ACEOF
23352 /* end confdefs.h. */
23353 #include <alloca.h>
23357 char *p = (char *) alloca (2 * sizeof (int));
23362 rm -f conftest.$ac_objext conftest$ac_exeext
23363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23364 (eval $ac_link) 2>conftest.er1
23366 grep -v '^ *+' conftest.er1 >conftest.err
23368 cat conftest.err >&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } &&
23371 { ac_try='test -z "$ac_c_werror_flag"
23372 || test ! -s conftest.err'
23373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374 (eval $ac_try) 2>&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); }; } &&
23378 { ac_try='test -s conftest$ac_exeext'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; }; then
23384 ac_cv_working_alloca_h=yes
23386 echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23389 ac_cv_working_alloca_h=no
23391 rm -f conftest.err conftest.$ac_objext \
23392 conftest$ac_exeext conftest.$ac_ext
23394 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23395 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23396 if test $ac_cv_working_alloca_h = yes; then
23398 cat >>confdefs.h <<\_ACEOF
23399 #define HAVE_ALLOCA_H 1
23404 echo "$as_me:$LINENO: checking for alloca" >&5
23405 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23406 if test "${ac_cv_func_alloca_works+set}" = set; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23409 cat >conftest.$ac_ext <<_ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h. */
23416 # define alloca __builtin_alloca
23419 # include <malloc.h>
23420 # define alloca _alloca
23423 # include <alloca.h>
23428 # ifndef alloca /* predefined by HP cc +Olibcalls */
23439 char *p = (char *) alloca (1);
23444 rm -f conftest.$ac_objext conftest$ac_exeext
23445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23446 (eval $ac_link) 2>conftest.er1
23448 grep -v '^ *+' conftest.er1 >conftest.err
23450 cat conftest.err >&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } &&
23453 { ac_try='test -z "$ac_c_werror_flag"
23454 || test ! -s conftest.err'
23455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; } &&
23460 { ac_try='test -s conftest$ac_exeext'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; }; then
23466 ac_cv_func_alloca_works=yes
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23471 ac_cv_func_alloca_works=no
23473 rm -f conftest.err conftest.$ac_objext \
23474 conftest$ac_exeext conftest.$ac_ext
23476 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23477 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23479 if test $ac_cv_func_alloca_works = yes; then
23481 cat >>confdefs.h <<\_ACEOF
23482 #define HAVE_ALLOCA 1
23486 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23487 # that cause trouble. Some versions do not even contain alloca or
23488 # contain a buggy version. If you still want to use their alloca,
23489 # use ar to extract alloca.o from them instead of compiling alloca.c.
23491 ALLOCA=alloca.$ac_objext
23493 cat >>confdefs.h <<\_ACEOF
23498 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23499 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23500 if test "${ac_cv_os_cray+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23503 cat >conftest.$ac_ext <<_ACEOF
23506 cat confdefs.h >>conftest.$ac_ext
23507 cat >>conftest.$ac_ext <<_ACEOF
23508 /* end confdefs.h. */
23509 #if defined(CRAY) && ! defined(CRAY2)
23516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23517 $EGREP "webecray" >/dev/null 2>&1; then
23525 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23526 echo "${ECHO_T}$ac_cv_os_cray" >&6
23527 if test $ac_cv_os_cray = yes; then
23528 for ac_func in _getb67 GETB67 getb67; do
23529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23530 echo "$as_me:$LINENO: checking for $ac_func" >&5
23531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23532 if eval "test \"\${$as_ac_var+set}\" = set"; then
23533 echo $ECHO_N "(cached) $ECHO_C" >&6
23535 cat >conftest.$ac_ext <<_ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h. */
23541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23543 #define $ac_func innocuous_$ac_func
23545 /* System header to define __stub macros and hopefully few prototypes,
23546 which can conflict with char $ac_func (); below.
23547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23548 <limits.h> exists even on freestanding compilers. */
23551 # include <limits.h>
23553 # include <assert.h>
23558 /* Override any gcc2 internal prototype to avoid an error. */
23563 /* We use char because int might match the return type of a gcc2
23564 builtin and then its argument prototype would still apply. */
23566 /* The GNU C library defines this for functions which it implements
23567 to always fail with ENOSYS. Some functions are actually named
23568 something starting with __ and the normal name is an alias. */
23569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23572 char (*f) () = $ac_func;
23581 return f != $ac_func;
23586 rm -f conftest.$ac_objext conftest$ac_exeext
23587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23588 (eval $ac_link) 2>conftest.er1
23590 grep -v '^ *+' conftest.er1 >conftest.err
23592 cat conftest.err >&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } &&
23595 { ac_try='test -z "$ac_c_werror_flag"
23596 || test ! -s conftest.err'
23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; } &&
23602 { ac_try='test -s conftest$ac_exeext'
23603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604 (eval $ac_try) 2>&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); }; }; then
23608 eval "$as_ac_var=yes"
23610 echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23613 eval "$as_ac_var=no"
23615 rm -f conftest.err conftest.$ac_objext \
23616 conftest$ac_exeext conftest.$ac_ext
23618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23620 if test `eval echo '${'$as_ac_var'}'` = yes; then
23622 cat >>confdefs.h <<_ACEOF
23623 #define CRAY_STACKSEG_END $ac_func
23632 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23633 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23634 if test "${ac_cv_c_stack_direction+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 if test "$cross_compiling" = yes; then
23638 ac_cv_c_stack_direction=0
23640 cat >conftest.$ac_ext <<_ACEOF
23643 cat confdefs.h >>conftest.$ac_ext
23644 cat >>conftest.$ac_ext <<_ACEOF
23645 /* end confdefs.h. */
23647 find_stack_direction ()
23649 static char *addr = 0;
23654 return find_stack_direction ();
23657 return (&dummy > addr) ? 1 : -1;
23663 exit (find_stack_direction () < 0);
23666 rm -f conftest$ac_exeext
23667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23668 (eval $ac_link) 2>&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673 (eval $ac_try) 2>&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); }; }; then
23677 ac_cv_c_stack_direction=1
23679 echo "$as_me: program exited with status $ac_status" >&5
23680 echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23683 ( exit $ac_status )
23684 ac_cv_c_stack_direction=-1
23686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23689 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23690 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23692 cat >>confdefs.h <<_ACEOF
23693 #define STACK_DIRECTION $ac_cv_c_stack_direction
23700 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
23701 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
23702 if test "${ac_cv_func_rand48+set}" = set; then
23703 echo $ECHO_N "(cached) $ECHO_C" >&6
23706 ac_cpp='$CXXCPP $CPPFLAGS'
23707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23711 cat >conftest.$ac_ext <<_ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h. */
23717 #include <stdlib.h>
23721 srand48(0);lrand48();drand48();
23726 rm -f conftest.$ac_objext
23727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23728 (eval $ac_compile) 2>conftest.er1
23730 grep -v '^ *+' conftest.er1 >conftest.err
23732 cat conftest.err >&5
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); } &&
23735 { ac_try='test -z "$ac_cxx_werror_flag"
23736 || test ! -s conftest.err'
23737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738 (eval $ac_try) 2>&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); }; } &&
23742 { ac_try='test -s conftest.$ac_objext'
23743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744 (eval $ac_try) 2>&5
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); }; }; then
23748 ac_cv_func_rand48=yes
23750 echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 ac_cv_func_rand48=no
23755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23757 ac_cpp='$CPP $CPPFLAGS'
23758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23763 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23764 echo "${ECHO_T}$ac_cv_func_rand48" >&6
23766 if test "$ac_cv_func_rand48" = "yes" ; then
23768 cat >>confdefs.h <<\_ACEOF
23769 #define HAVE_RAND48 1
23775 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
23776 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
23777 if test "${ac_cv_cxx_namespaces+set}" = set; then
23778 echo $ECHO_N "(cached) $ECHO_C" >&6
23781 ac_cpp='$CXXCPP $CPPFLAGS'
23782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23786 cat >conftest.$ac_ext <<_ACEOF
23789 cat confdefs.h >>conftest.$ac_ext
23790 cat >>conftest.$ac_ext <<_ACEOF
23791 /* end confdefs.h. */
23792 namespace Outer { namespace Inner { int i = 0; }}
23796 using namespace Outer::Inner; return i;
23801 rm -f conftest.$ac_objext
23802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23803 (eval $ac_compile) 2>conftest.er1
23805 grep -v '^ *+' conftest.er1 >conftest.err
23807 cat conftest.err >&5
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } &&
23810 { ac_try='test -z "$ac_cxx_werror_flag"
23811 || test ! -s conftest.err'
23812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813 (eval $ac_try) 2>&5
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); }; } &&
23817 { ac_try='test -s conftest.$ac_objext'
23818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; }; then
23823 ac_cv_cxx_namespaces=yes
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23828 ac_cv_cxx_namespaces=no
23830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23832 ac_cpp='$CPP $CPPFLAGS'
23833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23839 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
23840 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
23841 if test "$ac_cv_cxx_namespaces" = yes; then
23843 cat >>confdefs.h <<\_ACEOF
23844 #define HAVE_NAMESPACES
23849 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
23850 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
23851 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
23852 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 ac_cpp='$CXXCPP $CPPFLAGS'
23857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23861 cat >conftest.$ac_ext <<_ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h. */
23867 #include <ext/hash_map>
23868 #ifdef HAVE_NAMESPACES
23869 using namespace std;
23874 hash_map<int, int> t;
23879 rm -f conftest.$ac_objext
23880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23881 (eval $ac_compile) 2>conftest.er1
23883 grep -v '^ *+' conftest.er1 >conftest.err
23885 cat conftest.err >&5
23886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } &&
23888 { ac_try='test -z "$ac_cxx_werror_flag"
23889 || test ! -s conftest.err'
23890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891 (eval $ac_try) 2>&5
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); }; } &&
23895 { ac_try='test -s conftest.$ac_objext'
23896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23897 (eval $ac_try) 2>&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); }; }; then
23901 ac_cv_cxx_have_std_ext_hash_map=yes
23903 echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23906 ac_cv_cxx_have_std_ext_hash_map=no
23908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23910 ac_cpp='$CPP $CPPFLAGS'
23911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23916 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
23917 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
23918 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
23921 cat >>confdefs.h <<\_ACEOF
23922 #define HAVE_STD_EXT_HASH_MAP 1
23927 cat >>confdefs.h <<\_ACEOF
23928 #define HAVE_STD_EXT_HASH_MAP 0
23933 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
23934 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
23935 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23940 ac_cpp='$CXXCPP $CPPFLAGS'
23941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23945 cat >conftest.$ac_ext <<_ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23951 #include <ext/hash_map>
23952 #ifdef HAVE_NAMESPACES
23953 using namespace __gnu_cxx;
23958 hash_map<int,int> t;
23963 rm -f conftest.$ac_objext
23964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23965 (eval $ac_compile) 2>conftest.er1
23967 grep -v '^ *+' conftest.er1 >conftest.err
23969 cat conftest.err >&5
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); } &&
23972 { ac_try='test -z "$ac_cxx_werror_flag"
23973 || test ! -s conftest.err'
23974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975 (eval $ac_try) 2>&5
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); }; } &&
23979 { ac_try='test -s conftest.$ac_objext'
23980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981 (eval $ac_try) 2>&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; }; then
23985 ac_cv_cxx_have_gnu_ext_hash_map=yes
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 ac_cv_cxx_have_gnu_ext_hash_map=no
23992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23994 ac_cpp='$CPP $CPPFLAGS'
23995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24000 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
24001 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
24002 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
24005 cat >>confdefs.h <<\_ACEOF
24006 #define HAVE_GNU_EXT_HASH_MAP 1
24011 cat >>confdefs.h <<\_ACEOF
24012 #define HAVE_GNU_EXT_HASH_MAP 0
24017 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
24018 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
24019 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
24020 echo $ECHO_N "(cached) $ECHO_C" >&6
24024 ac_cpp='$CXXCPP $CPPFLAGS'
24025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24029 cat >conftest.$ac_ext <<_ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 #include <hash_map>
24039 hash_map<int,int> t;
24044 rm -f conftest.$ac_objext
24045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24046 (eval $ac_compile) 2>conftest.er1
24048 grep -v '^ *+' conftest.er1 >conftest.err
24050 cat conftest.err >&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } &&
24053 { ac_try='test -z "$ac_cxx_werror_flag"
24054 || test ! -s conftest.err'
24055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056 (eval $ac_try) 2>&5
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); }; } &&
24060 { ac_try='test -s conftest.$ac_objext'
24061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062 (eval $ac_try) 2>&5
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); }; }; then
24066 ac_cv_cxx_have_global_hash_map=yes
24068 echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.$ac_ext >&5
24071 ac_cv_cxx_have_global_hash_map=no
24073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24075 ac_cpp='$CPP $CPPFLAGS'
24076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24081 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
24082 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
24083 if test "$ac_cv_cxx_have_global_hash_map" = yes
24086 cat >>confdefs.h <<\_ACEOF
24087 #define HAVE_GLOBAL_HASH_MAP 1
24092 cat >>confdefs.h <<\_ACEOF
24093 #define HAVE_GLOBAL_HASH_MAP 0
24098 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
24099 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
24100 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 ac_cpp='$CXXCPP $CPPFLAGS'
24106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24110 cat >conftest.$ac_ext <<_ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h. */
24116 #include <ext/hash_set>
24117 #ifdef HAVE_NAMESPACES
24118 using namespace std;
24128 rm -f conftest.$ac_objext
24129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24130 (eval $ac_compile) 2>conftest.er1
24132 grep -v '^ *+' conftest.er1 >conftest.err
24134 cat conftest.err >&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } &&
24137 { ac_try='test -z "$ac_cxx_werror_flag"
24138 || test ! -s conftest.err'
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; } &&
24144 { ac_try='test -s conftest.$ac_objext'
24145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); }; }; then
24150 ac_cv_cxx_have_std_ext_hash_set=yes
24152 echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24155 ac_cv_cxx_have_std_ext_hash_set=no
24157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24159 ac_cpp='$CPP $CPPFLAGS'
24160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24165 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
24166 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
24167 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
24170 cat >>confdefs.h <<\_ACEOF
24171 #define HAVE_STD_EXT_HASH_SET 1
24176 cat >>confdefs.h <<\_ACEOF
24177 #define HAVE_STD_EXT_HASH_SET 0
24182 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
24183 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
24184 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
24185 echo $ECHO_N "(cached) $ECHO_C" >&6
24189 ac_cpp='$CXXCPP $CPPFLAGS'
24190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24194 cat >conftest.$ac_ext <<_ACEOF
24197 cat confdefs.h >>conftest.$ac_ext
24198 cat >>conftest.$ac_ext <<_ACEOF
24199 /* end confdefs.h. */
24200 #include <ext/hash_set>
24201 #ifdef HAVE_NAMESPACES
24202 using namespace __gnu_cxx;
24212 rm -f conftest.$ac_objext
24213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24214 (eval $ac_compile) 2>conftest.er1
24216 grep -v '^ *+' conftest.er1 >conftest.err
24218 cat conftest.err >&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); } &&
24221 { ac_try='test -z "$ac_cxx_werror_flag"
24222 || test ! -s conftest.err'
24223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224 (eval $ac_try) 2>&5
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); }; } &&
24228 { ac_try='test -s conftest.$ac_objext'
24229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24230 (eval $ac_try) 2>&5
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); }; }; then
24234 ac_cv_cxx_have_gnu_ext_hash_set=yes
24236 echo "$as_me: failed program was:" >&5
24237 sed 's/^/| /' conftest.$ac_ext >&5
24239 ac_cv_cxx_have_gnu_ext_hash_set=no
24241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24243 ac_cpp='$CPP $CPPFLAGS'
24244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24249 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
24250 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
24251 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
24254 cat >>confdefs.h <<\_ACEOF
24255 #define HAVE_GNU_EXT_HASH_SET 1
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_GNU_EXT_HASH_SET 0
24266 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
24267 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
24268 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
24269 echo $ECHO_N "(cached) $ECHO_C" >&6
24273 ac_cpp='$CXXCPP $CPPFLAGS'
24274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24278 cat >conftest.$ac_ext <<_ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h. */
24284 #include <hash_set>
24288 hash_set<int> t; return 0;
24293 rm -f conftest.$ac_objext
24294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24295 (eval $ac_compile) 2>conftest.er1
24297 grep -v '^ *+' conftest.er1 >conftest.err
24299 cat conftest.err >&5
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); } &&
24302 { ac_try='test -z "$ac_cxx_werror_flag"
24303 || test ! -s conftest.err'
24304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305 (eval $ac_try) 2>&5
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; } &&
24309 { ac_try='test -s conftest.$ac_objext'
24310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311 (eval $ac_try) 2>&5
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); }; }; then
24315 ac_cv_cxx_have_global_hash_set=yes
24317 echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24320 ac_cv_cxx_have_global_hash_set=no
24322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24324 ac_cpp='$CPP $CPPFLAGS'
24325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24330 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
24331 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
24332 if test "$ac_cv_cxx_have_global_hash_set" = yes
24335 cat >>confdefs.h <<\_ACEOF
24336 #define HAVE_GLOBAL_HASH_SET 1
24341 cat >>confdefs.h <<\_ACEOF
24342 #define HAVE_GLOBAL_HASH_SET 0
24347 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
24348 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
24349 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
24350 echo $ECHO_N "(cached) $ECHO_C" >&6
24354 ac_cpp='$CXXCPP $CPPFLAGS'
24355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24359 cat >conftest.$ac_ext <<_ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h. */
24365 #include <iterator>
24366 #ifdef HAVE_NAMESPACES
24367 using namespace std;
24372 iterator<int,int,int> t; return 0;
24377 rm -f conftest.$ac_objext
24378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24379 (eval $ac_compile) 2>conftest.er1
24381 grep -v '^ *+' conftest.er1 >conftest.err
24383 cat conftest.err >&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); } &&
24386 { ac_try='test -z "$ac_cxx_werror_flag"
24387 || test ! -s conftest.err'
24388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24389 (eval $ac_try) 2>&5
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); }; } &&
24393 { ac_try='test -s conftest.$ac_objext'
24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; }; then
24399 ac_cv_cxx_have_std_iterator=yes
24401 echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24404 ac_cv_cxx_have_std_iterator=no
24406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24408 ac_cpp='$CPP $CPPFLAGS'
24409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24415 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
24416 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
24417 if test "$ac_cv_cxx_have_std_iterator" = yes
24420 cat >>confdefs.h <<\_ACEOF
24421 #define HAVE_STD_ITERATOR 1
24426 cat >>confdefs.h <<\_ACEOF
24427 #define HAVE_STD_ITERATOR 0
24432 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
24433 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
24434 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
24435 echo $ECHO_N "(cached) $ECHO_C" >&6
24439 ac_cpp='$CXXCPP $CPPFLAGS'
24440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24444 cat >conftest.$ac_ext <<_ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h. */
24450 #include <iterator>
24451 #ifdef HAVE_NAMESPACES
24452 using namespace std;
24457 bidirectional_iterator<int,int> t; return 0;
24462 rm -f conftest.$ac_objext
24463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24464 (eval $ac_compile) 2>conftest.er1
24466 grep -v '^ *+' conftest.er1 >conftest.err
24468 cat conftest.err >&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } &&
24471 { ac_try='test -z "$ac_cxx_werror_flag"
24472 || test ! -s conftest.err'
24473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24474 (eval $ac_try) 2>&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); }; } &&
24478 { ac_try='test -s conftest.$ac_objext'
24479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480 (eval $ac_try) 2>&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; }; then
24484 ac_cv_cxx_have_bi_iterator=yes
24486 echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24489 ac_cv_cxx_have_bi_iterator=no
24491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24493 ac_cpp='$CPP $CPPFLAGS'
24494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24500 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
24501 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
24502 if test "$ac_cv_cxx_have_bi_iterator" = yes
24505 cat >>confdefs.h <<\_ACEOF
24506 #define HAVE_BI_ITERATOR 1
24511 cat >>confdefs.h <<\_ACEOF
24512 #define HAVE_BI_ITERATOR 0
24517 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
24518 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
24519 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
24520 echo $ECHO_N "(cached) $ECHO_C" >&6
24524 ac_cpp='$CXXCPP $CPPFLAGS'
24525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24529 cat >conftest.$ac_ext <<_ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h. */
24535 #include <iterator>
24536 #ifdef HAVE_NAMESPACES
24537 using namespace std;
24542 forward_iterator<int,int> t; return 0;
24547 rm -f conftest.$ac_objext
24548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24549 (eval $ac_compile) 2>conftest.er1
24551 grep -v '^ *+' conftest.er1 >conftest.err
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } &&
24556 { ac_try='test -z "$ac_cxx_werror_flag"
24557 || test ! -s conftest.err'
24558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559 (eval $ac_try) 2>&5
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); }; } &&
24563 { ac_try='test -s conftest.$ac_objext'
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
24569 ac_cv_cxx_have_fwd_iterator=yes
24571 echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24574 ac_cv_cxx_have_fwd_iterator=no
24576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24578 ac_cpp='$CPP $CPPFLAGS'
24579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24585 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
24586 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
24587 if test "$ac_cv_cxx_have_fwd_iterator" = yes
24590 cat >>confdefs.h <<\_ACEOF
24591 #define HAVE_FWD_ITERATOR 1
24596 cat >>confdefs.h <<\_ACEOF
24597 #define HAVE_FWD_ITERATOR 0
24603 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
24604 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
24605 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24609 ac_cpp='$CXXCPP $CPPFLAGS'
24610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24614 cat >conftest.$ac_ext <<_ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h. */
24629 rm -f conftest.$ac_objext
24630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24631 (eval $ac_compile) 2>conftest.er1
24633 grep -v '^ *+' conftest.er1 >conftest.err
24635 cat conftest.err >&5
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); } &&
24638 { ac_try='test -z "$ac_cxx_werror_flag"
24639 || test ! -s conftest.err'
24640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24641 (eval $ac_try) 2>&5
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); }; } &&
24645 { ac_try='test -s conftest.$ac_objext'
24646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647 (eval $ac_try) 2>&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); }; }; then
24651 ac_cv_func_isnan_in_math_h=yes
24653 echo "$as_me: failed program was:" >&5
24654 sed 's/^/| /' conftest.$ac_ext >&5
24656 ac_cv_func_isnan_in_math_h=no
24658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24660 ac_cpp='$CPP $CPPFLAGS'
24661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24666 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
24667 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
24670 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
24672 cat >>confdefs.h <<\_ACEOF
24673 #define HAVE_ISNAN_IN_MATH_H 1
24678 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
24679 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
24680 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
24681 echo $ECHO_N "(cached) $ECHO_C" >&6
24684 ac_cpp='$CXXCPP $CPPFLAGS'
24685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24689 cat >conftest.$ac_ext <<_ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24704 rm -f conftest.$ac_objext
24705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24706 (eval $ac_compile) 2>conftest.er1
24708 grep -v '^ *+' conftest.er1 >conftest.err
24710 cat conftest.err >&5
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } &&
24713 { ac_try='test -z "$ac_cxx_werror_flag"
24714 || test ! -s conftest.err'
24715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; } &&
24720 { ac_try='test -s conftest.$ac_objext'
24721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722 (eval $ac_try) 2>&5
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); }; }; then
24726 ac_cv_func_isnan_in_cmath=yes
24728 echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24731 ac_cv_func_isnan_in_cmath=no
24733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24735 ac_cpp='$CPP $CPPFLAGS'
24736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24741 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
24742 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
24744 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
24746 cat >>confdefs.h <<\_ACEOF
24747 #define HAVE_ISNAN_IN_CMATH 1
24752 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
24753 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
24754 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24758 ac_cpp='$CXXCPP $CPPFLAGS'
24759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24763 cat >conftest.$ac_ext <<_ACEOF
24766 cat confdefs.h >>conftest.$ac_ext
24767 cat >>conftest.$ac_ext <<_ACEOF
24768 /* end confdefs.h. */
24773 float f; std::isnan(f);
24778 rm -f conftest.$ac_objext
24779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24780 (eval $ac_compile) 2>conftest.er1
24782 grep -v '^ *+' conftest.er1 >conftest.err
24784 cat conftest.err >&5
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } &&
24787 { ac_try='test -z "$ac_cxx_werror_flag"
24788 || test ! -s conftest.err'
24789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790 (eval $ac_try) 2>&5
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); }; } &&
24794 { ac_try='test -s conftest.$ac_objext'
24795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24796 (eval $ac_try) 2>&5
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); }; }; then
24800 ac_cv_func_std_isnan_in_cmath=yes
24802 echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24805 ac_cv_func_std_isnan_in_cmath=no
24807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24809 ac_cpp='$CPP $CPPFLAGS'
24810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24815 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
24816 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
24818 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
24820 cat >>confdefs.h <<\_ACEOF
24821 #define HAVE_STD_ISNAN_IN_CMATH 1
24827 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
24828 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
24829 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24833 ac_cpp='$CXXCPP $CPPFLAGS'
24834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24838 cat >conftest.$ac_ext <<_ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24853 rm -f conftest.$ac_objext
24854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24855 (eval $ac_compile) 2>conftest.er1
24857 grep -v '^ *+' conftest.er1 >conftest.err
24859 cat conftest.err >&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } &&
24862 { ac_try='test -z "$ac_cxx_werror_flag"
24863 || test ! -s conftest.err'
24864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865 (eval $ac_try) 2>&5
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; } &&
24869 { ac_try='test -s conftest.$ac_objext'
24870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871 (eval $ac_try) 2>&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24875 ac_cv_func_isinf_in_math_h=yes
24877 echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24880 ac_cv_func_isinf_in_math_h=no
24882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24884 ac_cpp='$CPP $CPPFLAGS'
24885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24890 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
24891 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
24893 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
24895 cat >>confdefs.h <<\_ACEOF
24896 #define HAVE_ISINF_IN_MATH_H 1
24901 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
24902 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
24903 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24907 ac_cpp='$CXXCPP $CPPFLAGS'
24908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24912 cat >conftest.$ac_ext <<_ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h. */
24927 rm -f conftest.$ac_objext
24928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24929 (eval $ac_compile) 2>conftest.er1
24931 grep -v '^ *+' conftest.er1 >conftest.err
24933 cat conftest.err >&5
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); } &&
24936 { ac_try='test -z "$ac_cxx_werror_flag"
24937 || test ! -s conftest.err'
24938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939 (eval $ac_try) 2>&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); }; } &&
24943 { ac_try='test -s conftest.$ac_objext'
24944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945 (eval $ac_try) 2>&5
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); }; }; then
24949 ac_cv_func_isinf_in_cmath=yes
24951 echo "$as_me: failed program was:" >&5
24952 sed 's/^/| /' conftest.$ac_ext >&5
24954 ac_cv_func_isinf_in_cmath=no
24956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24958 ac_cpp='$CPP $CPPFLAGS'
24959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24964 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
24965 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
24967 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
24969 cat >>confdefs.h <<\_ACEOF
24970 #define HAVE_ISINF_IN_CMATH 1
24975 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
24976 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
24977 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
24978 echo $ECHO_N "(cached) $ECHO_C" >&6
24981 ac_cpp='$CXXCPP $CPPFLAGS'
24982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24986 cat >conftest.$ac_ext <<_ACEOF
24989 cat confdefs.h >>conftest.$ac_ext
24990 cat >>conftest.$ac_ext <<_ACEOF
24991 /* end confdefs.h. */
24996 float f; std::isinf(f)}
25001 rm -f conftest.$ac_objext
25002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25003 (eval $ac_compile) 2>conftest.er1
25005 grep -v '^ *+' conftest.er1 >conftest.err
25007 cat conftest.err >&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); } &&
25010 { ac_try='test -z "$ac_cxx_werror_flag"
25011 || test ! -s conftest.err'
25012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013 (eval $ac_try) 2>&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; } &&
25017 { ac_try='test -s conftest.$ac_objext'
25018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; }; then
25023 ac_cv_func_std_isinf_in_cmath=yes
25025 echo "$as_me: failed program was:" >&5
25026 sed 's/^/| /' conftest.$ac_ext >&5
25028 ac_cv_func_std_isinf_in_cmath=no
25030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25032 ac_cpp='$CPP $CPPFLAGS'
25033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25038 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
25039 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
25041 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
25043 cat >>confdefs.h <<\_ACEOF
25044 #define HAVE_STD_ISINF_IN_CMATH 1
25049 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
25050 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
25051 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25055 ac_cpp='$CXXCPP $CPPFLAGS'
25056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25060 cat >conftest.$ac_ext <<_ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h. */
25066 #include <ieeefp.h>
25070 float f; finite(f);
25075 rm -f conftest.$ac_objext
25076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25077 (eval $ac_compile) 2>conftest.er1
25079 grep -v '^ *+' conftest.er1 >conftest.err
25081 cat conftest.err >&5
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); } &&
25084 { ac_try='test -z "$ac_cxx_werror_flag"
25085 || test ! -s conftest.err'
25086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087 (eval $ac_try) 2>&5
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); }; } &&
25091 { ac_try='test -s conftest.$ac_objext'
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; }; then
25097 ac_cv_func_finite_in_ieeefp_h=yes
25099 echo "$as_me: failed program was:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25102 ac_cv_func_finite_in_ieeefp_h=no
25104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25106 ac_cpp='$CPP $CPPFLAGS'
25107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25112 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
25113 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
25115 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
25117 cat >>confdefs.h <<\_ACEOF
25118 #define HAVE_FINITE_IN_IEEEFP_H 1
25127 for ac_header in stdlib.h unistd.h
25129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25131 echo "$as_me:$LINENO: checking for $ac_header" >&5
25132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25134 echo $ECHO_N "(cached) $ECHO_C" >&6
25136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25139 # Is the header compilable?
25140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25142 cat >conftest.$ac_ext <<_ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h. */
25148 $ac_includes_default
25149 #include <$ac_header>
25151 rm -f conftest.$ac_objext
25152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25153 (eval $ac_compile) 2>conftest.er1
25155 grep -v '^ *+' conftest.er1 >conftest.err
25157 cat conftest.err >&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } &&
25160 { ac_try='test -z "$ac_c_werror_flag"
25161 || test ! -s conftest.err'
25162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163 (eval $ac_try) 2>&5
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); }; } &&
25167 { ac_try='test -s conftest.$ac_objext'
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; }; then
25173 ac_header_compiler=yes
25175 echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25178 ac_header_compiler=no
25180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25182 echo "${ECHO_T}$ac_header_compiler" >&6
25184 # Is the header present?
25185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25187 cat >conftest.$ac_ext <<_ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h. */
25193 #include <$ac_header>
25195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25198 grep -v '^ *+' conftest.er1 >conftest.err
25200 cat conftest.err >&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); } >/dev/null; then
25203 if test -s conftest.err; then
25204 ac_cpp_err=$ac_c_preproc_warn_flag
25205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25212 if test -z "$ac_cpp_err"; then
25213 ac_header_preproc=yes
25215 echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25218 ac_header_preproc=no
25220 rm -f conftest.err conftest.$ac_ext
25221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25222 echo "${ECHO_T}$ac_header_preproc" >&6
25224 # So? What about this header?
25225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25231 ac_header_preproc=yes
25234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25248 ## ----------------------------------- ##
25249 ## Report this to llvmbugs@cs.uiuc.edu ##
25250 ## ----------------------------------- ##
25253 sed "s/^/$as_me: WARNING: /" >&2
25256 echo "$as_me:$LINENO: checking for $ac_header" >&5
25257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25259 echo $ECHO_N "(cached) $ECHO_C" >&6
25261 eval "$as_ac_Header=\$ac_header_preproc"
25263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25268 cat >>confdefs.h <<_ACEOF
25269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25277 for ac_func in getpagesize
25279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25280 echo "$as_me:$LINENO: checking for $ac_func" >&5
25281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25282 if eval "test \"\${$as_ac_var+set}\" = set"; then
25283 echo $ECHO_N "(cached) $ECHO_C" >&6
25285 cat >conftest.$ac_ext <<_ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h. */
25291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25293 #define $ac_func innocuous_$ac_func
25295 /* System header to define __stub macros and hopefully few prototypes,
25296 which can conflict with char $ac_func (); below.
25297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25298 <limits.h> exists even on freestanding compilers. */
25301 # include <limits.h>
25303 # include <assert.h>
25308 /* Override any gcc2 internal prototype to avoid an error. */
25313 /* We use char because int might match the return type of a gcc2
25314 builtin and then its argument prototype would still apply. */
25316 /* The GNU C library defines this for functions which it implements
25317 to always fail with ENOSYS. Some functions are actually named
25318 something starting with __ and the normal name is an alias. */
25319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25322 char (*f) () = $ac_func;
25331 return f != $ac_func;
25336 rm -f conftest.$ac_objext conftest$ac_exeext
25337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25338 (eval $ac_link) 2>conftest.er1
25340 grep -v '^ *+' conftest.er1 >conftest.err
25342 cat conftest.err >&5
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); } &&
25345 { ac_try='test -z "$ac_c_werror_flag"
25346 || test ! -s conftest.err'
25347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25348 (eval $ac_try) 2>&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); }; } &&
25352 { ac_try='test -s conftest$ac_exeext'
25353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354 (eval $ac_try) 2>&5
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; }; then
25358 eval "$as_ac_var=yes"
25360 echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 eval "$as_ac_var=no"
25365 rm -f conftest.err conftest.$ac_objext \
25366 conftest$ac_exeext conftest.$ac_ext
25368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25370 if test `eval echo '${'$as_ac_var'}'` = yes; then
25371 cat >>confdefs.h <<_ACEOF
25372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25378 echo "$as_me:$LINENO: checking for working mmap" >&5
25379 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25380 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
25383 if test "$cross_compiling" = yes; then
25384 ac_cv_func_mmap_fixed_mapped=no
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25392 $ac_includes_default
25393 /* malloc might have been renamed as rpl_malloc. */
25396 /* Thanks to Mike Haertel and Jim Avera for this test.
25397 Here is a matrix of mmap possibilities:
25398 mmap private not fixed
25399 mmap private fixed at somewhere currently unmapped
25400 mmap private fixed at somewhere already mapped
25401 mmap shared not fixed
25402 mmap shared fixed at somewhere currently unmapped
25403 mmap shared fixed at somewhere already mapped
25404 For private mappings, we should verify that changes cannot be read()
25405 back from the file, nor mmap's back from the file at a different
25406 address. (There have been systems where private was not correctly
25407 implemented like the infamous i386 svr4.0, and systems where the
25408 VM page cache was not coherent with the file system buffer cache
25409 like early versions of FreeBSD and possibly contemporary NetBSD.)
25410 For shared mappings, we should conversely verify that changes get
25411 propagated back to all the places they're supposed to be.
25413 Grep wants private fixed already mapped.
25414 The main things grep needs to know about mmap are:
25415 * does it exist and is it safe to write into the mmap'd area
25416 * how to use it (BSD variants) */
25419 #include <sys/mman.h>
25421 #if !STDC_HEADERS && !HAVE_STDLIB_H
25425 /* This mess was copied from the GNU getpagesize.h. */
25426 #if !HAVE_GETPAGESIZE
25427 /* Assume that all systems that can run configure have sys/param.h. */
25428 # if !HAVE_SYS_PARAM_H
25429 # define HAVE_SYS_PARAM_H 1
25432 # ifdef _SC_PAGESIZE
25433 # define getpagesize() sysconf(_SC_PAGESIZE)
25434 # else /* no _SC_PAGESIZE */
25435 # if HAVE_SYS_PARAM_H
25436 # include <sys/param.h>
25437 # ifdef EXEC_PAGESIZE
25438 # define getpagesize() EXEC_PAGESIZE
25439 # else /* no EXEC_PAGESIZE */
25441 # define getpagesize() NBPG * CLSIZE
25444 # endif /* no CLSIZE */
25445 # else /* no NBPG */
25447 # define getpagesize() NBPC
25448 # else /* no NBPC */
25450 # define getpagesize() PAGESIZE
25451 # endif /* PAGESIZE */
25452 # endif /* no NBPC */
25453 # endif /* no NBPG */
25454 # endif /* no EXEC_PAGESIZE */
25455 # else /* no HAVE_SYS_PARAM_H */
25456 # define getpagesize() 8192 /* punt totally */
25457 # endif /* no HAVE_SYS_PARAM_H */
25458 # endif /* no _SC_PAGESIZE */
25460 #endif /* no HAVE_GETPAGESIZE */
25465 char *data, *data2, *data3;
25469 pagesize = getpagesize ();
25471 /* First, make a file with some known garbage in it. */
25472 data = (char *) malloc (pagesize);
25475 for (i = 0; i < pagesize; ++i)
25476 *(data + i) = rand ();
25478 fd = creat ("conftest.mmap", 0600);
25481 if (write (fd, data, pagesize) != pagesize)
25485 /* Next, try to mmap the file at a fixed address which already has
25486 something else allocated at it. If we can, also make sure that
25487 we see the same garbage. */
25488 fd = open ("conftest.mmap", O_RDWR);
25491 data2 = (char *) malloc (2 * pagesize);
25494 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
25495 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25496 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25498 for (i = 0; i < pagesize; ++i)
25499 if (*(data + i) != *(data2 + i))
25502 /* Finally, make sure that changes to the mapped area do not
25503 percolate back to the file as seen by read(). (This is a bug on
25504 some variants of i386 svr4.0.) */
25505 for (i = 0; i < pagesize; ++i)
25506 *(data2 + i) = *(data2 + i) + 1;
25507 data3 = (char *) malloc (pagesize);
25510 if (read (fd, data3, pagesize) != pagesize)
25512 for (i = 0; i < pagesize; ++i)
25513 if (*(data + i) != *(data3 + i))
25519 rm -f conftest$ac_exeext
25520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25521 (eval $ac_link) 2>&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; }; then
25530 ac_cv_func_mmap_fixed_mapped=yes
25532 echo "$as_me: program exited with status $ac_status" >&5
25533 echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25536 ( exit $ac_status )
25537 ac_cv_func_mmap_fixed_mapped=no
25539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25542 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25543 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25544 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25546 cat >>confdefs.h <<\_ACEOF
25547 #define HAVE_MMAP 1
25551 rm -f conftest.mmap
25553 echo "$as_me:$LINENO: checking for mmap of files" >&5
25554 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
25555 if test "${ac_cv_func_mmap_file+set}" = set; then
25556 echo $ECHO_N "(cached) $ECHO_C" >&6
25559 ac_cpp='$CPP $CPPFLAGS'
25560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25564 if test "$cross_compiling" = yes; then
25565 ac_cv_func_mmap_file=no
25567 cat >conftest.$ac_ext <<_ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25575 #include <sys/types.h>
25576 #include <sys/mman.h>
25584 fd = creat ("foo",0777);
25585 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
25587 return (fd != (int) MAP_FAILED);
25592 rm -f conftest$ac_exeext
25593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25594 (eval $ac_link) 2>&5
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25599 (eval $ac_try) 2>&5
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); }; }; then
25603 ac_cv_func_mmap_file=yes
25605 echo "$as_me: program exited with status $ac_status" >&5
25606 echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.$ac_ext >&5
25609 ( exit $ac_status )
25610 ac_cv_func_mmap_file=no
25612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25615 ac_cpp='$CPP $CPPFLAGS'
25616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25622 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
25623 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
25624 if test "$ac_cv_func_mmap_file" = yes; then
25626 cat >>confdefs.h <<\_ACEOF
25627 #define HAVE_MMAP_FILE
25634 echo "$as_me:$LINENO: checking for mprotect" >&5
25635 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25636 if test "${ac_cv_func_mprotect+set}" = set; then
25637 echo $ECHO_N "(cached) $ECHO_C" >&6
25639 cat >conftest.$ac_ext <<_ACEOF
25642 cat confdefs.h >>conftest.$ac_ext
25643 cat >>conftest.$ac_ext <<_ACEOF
25644 /* end confdefs.h. */
25645 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25647 #define mprotect innocuous_mprotect
25649 /* System header to define __stub macros and hopefully few prototypes,
25650 which can conflict with char mprotect (); below.
25651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25652 <limits.h> exists even on freestanding compilers. */
25655 # include <limits.h>
25657 # include <assert.h>
25662 /* Override any gcc2 internal prototype to avoid an error. */
25667 /* We use char because int might match the return type of a gcc2
25668 builtin and then its argument prototype would still apply. */
25670 /* The GNU C library defines this for functions which it implements
25671 to always fail with ENOSYS. Some functions are actually named
25672 something starting with __ and the normal name is an alias. */
25673 #if defined (__stub_mprotect) || defined (__stub___mprotect)
25676 char (*f) () = mprotect;
25685 return f != mprotect;
25690 rm -f conftest.$ac_objext conftest$ac_exeext
25691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25692 (eval $ac_link) 2>conftest.er1
25694 grep -v '^ *+' conftest.er1 >conftest.err
25696 cat conftest.err >&5
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); } &&
25699 { ac_try='test -z "$ac_c_werror_flag"
25700 || test ! -s conftest.err'
25701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702 (eval $ac_try) 2>&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); }; } &&
25706 { ac_try='test -s conftest$ac_exeext'
25707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; }; then
25712 ac_cv_func_mprotect=yes
25714 echo "$as_me: failed program was:" >&5
25715 sed 's/^/| /' conftest.$ac_ext >&5
25717 ac_cv_func_mprotect=no
25719 rm -f conftest.err conftest.$ac_objext \
25720 conftest$ac_exeext conftest.$ac_ext
25722 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25723 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25724 if test $ac_cv_func_mprotect = yes; then
25727 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25728 echo "$as_me: error: Function mprotect() required but not found" >&2;}
25729 { (exit 1); exit 1; }; }
25733 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
25735 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
25736 echo "$as_me: WARNING: mmap() required but not found" >&2;}
25738 if test "$ac_cv_func_mmap_file" = "no"
25740 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
25741 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
25745 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
25746 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
25747 if test "${llvm_cv_llvmgcc+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25750 llvm_cv_llvmgcc='llvmgcc_not_found'
25751 if test -d "$LLVMGCCDIR" ; then
25752 if test -x "$LLVMGCCDIR/bin/gcc" ; then
25753 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
25757 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
25758 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
25760 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
25761 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
25762 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
25763 echo $ECHO_N "(cached) $ECHO_C" >&6
25765 llvm_cv_llvmgcc_sanity="no"
25766 if test -x "$llvm_cv_llvmgcc" ; then
25767 cp /dev/null conftest.c
25768 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
25769 if test $? -eq 0 ; then
25770 llvm_cv_llvmgcc_sanity="yes"
25775 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
25776 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
25778 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
25779 LLVMGCC="$llvm_cv_llvmgcc"
25781 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
25782 LLVMCC1=$llvmcc1path
25784 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
25785 LLVMCC1PLUS=$llvmcc1pluspath
25789 echo "$as_me:$LINENO: checking for shared library suffix" >&5
25790 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
25791 eval "SHLIBEXT=$shrext_cmds"
25792 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
25793 echo "${ECHO_T}$SHLIBEXT" >&6
25797 cat >>confdefs.h <<_ACEOF
25798 #define SHLIBEXT "$SHLIBEXT"
25802 # Translate the various configuration directories and other basic
25803 # information into substitutions that will end up in Makefile.config.in
25804 # that these configured values can be used by the makefiles
25805 eval LLVM_PREFIX="${prefix}";
25806 eval LLVM_BINDIR="${prefix}/bin";
25807 eval LLVM_LIBDIR="${prefix}/lib";
25808 eval LLVM_DATADIR="${prefix}/share/llvm";
25809 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
25810 eval LLVM_ETCDIR="${prefix}/etc/llvm";
25811 eval LLVM_INCLUDEDIR="${prefix}/include";
25812 eval LLVM_INFODIR="${prefix}/info";
25813 eval LLVM_MANDIR="${prefix}/man";
25814 LLVM_CONFIGTIME=`date`
25826 # Place the various directores into the config.h file as #defines so that we
25827 # can know about the installation paths within LLVM.
25829 cat >>confdefs.h <<_ACEOF
25830 #define LLVM_PREFIX "$LLVM_PREFIX"
25834 cat >>confdefs.h <<_ACEOF
25835 #define LLVM_BINDIR "$LLVM_BINDIR"
25839 cat >>confdefs.h <<_ACEOF
25840 #define LLVM_LIBDIR "$LLVM_LIBDIR"
25844 cat >>confdefs.h <<_ACEOF
25845 #define LLVM_DATADIR "$LLVM_DATADIR"
25849 cat >>confdefs.h <<_ACEOF
25850 #define LLVM_DATADIR "$LLVM_DOCSDIR"
25854 cat >>confdefs.h <<_ACEOF
25855 #define LLVM_ETCDIR "$LLVM_ETCDIR"
25859 cat >>confdefs.h <<_ACEOF
25860 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
25864 cat >>confdefs.h <<_ACEOF
25865 #define LLVM_INFODIR "$LLVM_INFODIR"
25869 cat >>confdefs.h <<_ACEOF
25870 #define LLVM_MANDIR "$LLVM_MANDIR"
25874 cat >>confdefs.h <<_ACEOF
25875 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
25880 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
25883 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
25885 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
25887 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
25889 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
25891 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
25894 ac_config_files="$ac_config_files Makefile.config"
25897 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
25900 ac_config_files="$ac_config_files docs/doxygen.cfg"
25903 ac_config_commands="$ac_config_commands Makefile"
25906 ac_config_commands="$ac_config_commands Makefile.common"
25909 ac_config_commands="$ac_config_commands examples/Makefile"
25912 ac_config_commands="$ac_config_commands lib/Makefile"
25915 ac_config_commands="$ac_config_commands runtime/Makefile"
25918 ac_config_commands="$ac_config_commands test/Makefile"
25921 ac_config_commands="$ac_config_commands test/Makefile.tests"
25924 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
25927 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
25930 ac_config_commands="$ac_config_commands tools/Makefile"
25933 ac_config_commands="$ac_config_commands tools/Makefile.JIT"
25936 ac_config_commands="$ac_config_commands utils/Makefile"
25939 ac_config_commands="$ac_config_commands projects/Makefile"
25943 cat >confcache <<\_ACEOF
25944 # This file is a shell script that caches the results of configure
25945 # tests run on this system so they can be shared between configure
25946 # scripts and configure runs, see configure's option --config-cache.
25947 # It is not useful on other systems. If it contains results you don't
25948 # want to keep, you may remove or edit it.
25950 # config.status only pays attention to the cache file if you give it
25951 # the --recheck option to rerun configure.
25953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25955 # following values.
25959 # The following way of writing the cache mishandles newlines in values,
25960 # but we know of no workaround that is simple, portable, and efficient.
25961 # So, don't put newlines in cache variables' values.
25962 # Ultrix sh set writes to stderr and can't be redirected directly,
25963 # and sets the high bit in the cache file unless we assign to the vars.
25966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25968 # `set' does not quote correctly, so add quotes (double-quote
25969 # substitution turns \\\\ into \\, and sed turns \\ into \).
25972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25975 # `set' quotes correctly as required by POSIX, so do not add quotes.
25977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25988 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25989 if test -w $cache_file; then
25990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25991 cat confcache >$cache_file
25993 echo "not updating unwritable cache $cache_file"
25998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25999 # Let make expand exec_prefix.
26000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26004 # trailing colons and then remove the whole line if VPATH becomes empty
26005 # (actually we leave an empty line to preserve line numbers).
26006 if test "x$srcdir" = x.; then
26007 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26008 s/:*\$(srcdir):*/:/;
26009 s/:*\${srcdir}:*/:/;
26011 s/^\([^=]*=[ ]*\):*/\1/;
26017 DEFS=-DHAVE_CONFIG_H
26021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26022 # 1. Remove the extension, and $U if already installed.
26023 ac_i=`echo "$ac_i" |
26024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26026 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26027 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26029 LIBOBJS=$ac_libobjs
26031 LTLIBOBJS=$ac_ltlibobjs
26035 : ${CONFIG_STATUS=./config.status}
26036 ac_clean_files_save=$ac_clean_files
26037 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26038 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26040 cat >$CONFIG_STATUS <<_ACEOF
26042 # Generated by $as_me.
26043 # Run this file to recreate the current configuration.
26044 # Compiler output produced by configure, useful for debugging
26045 # configure, is in config.log if it exists.
26048 ac_cs_recheck=false
26050 SHELL=\${CONFIG_SHELL-$SHELL}
26053 cat >>$CONFIG_STATUS <<\_ACEOF
26054 ## --------------------- ##
26055 ## M4sh Initialization. ##
26056 ## --------------------- ##
26058 # Be Bourne compatible
26059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26063 # is contrary to our usage. Disable this feature.
26064 alias -g '${1+"$@"}'='"$@"'
26065 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26068 DUALCASE=1; export DUALCASE # for MKS sh
26070 # Support unset when possible.
26071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26078 # Work around bugs in pre-3.0 UWIN ksh.
26079 $as_unset ENV MAIL MAILPATH
26086 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26087 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26088 LC_TELEPHONE LC_TIME
26090 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26091 eval $as_var=C; export $as_var
26097 # Required to use basename.
26098 if expr a : '\(a\)' >/dev/null 2>&1; then
26104 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26105 as_basename=basename
26111 # Name of the executable.
26112 as_me=`$as_basename "$0" ||
26113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26114 X"$0" : 'X\(//\)$' \| \
26115 X"$0" : 'X\(/\)$' \| \
26116 . : '\(.\)' 2>/dev/null ||
26118 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26119 /^X\/\(\/\/\)$/{ s//\1/; q; }
26120 /^X\/\(\/\).*/{ s//\1/; q; }
26124 # PATH needs CR, and LINENO needs CR and PATH.
26125 # Avoid depending upon Character Ranges.
26126 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26127 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26128 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26129 as_cr_digits='0123456789'
26130 as_cr_alnum=$as_cr_Letters$as_cr_digits
26132 # The user is always right.
26133 if test "${PATH_SEPARATOR+set}" != set; then
26134 echo "#! /bin/sh" >conf$$.sh
26135 echo "exit 0" >>conf$$.sh
26137 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26146 as_lineno_1=$LINENO
26147 as_lineno_2=$LINENO
26148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26149 test "x$as_lineno_1" != "x$as_lineno_2" &&
26150 test "x$as_lineno_3" = "x$as_lineno_2" || {
26151 # Find who we are. Look in the path if we contain no path at all
26154 *[\\/]* ) as_myself=$0 ;;
26155 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26156 for as_dir in $PATH
26159 test -z "$as_dir" && as_dir=.
26160 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26165 # We did not find ourselves, most probably we were run as `sh COMMAND'
26166 # in which case we are not to be found in the path.
26167 if test "x$as_myself" = x; then
26170 if test ! -f "$as_myself"; then
26171 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26172 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26173 { (exit 1); exit 1; }; }
26175 case $CONFIG_SHELL in
26177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26178 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26181 test -z "$as_dir" && as_dir=.
26182 for as_base in sh bash ksh sh5; do
26185 if ("$as_dir/$as_base" -c '
26186 as_lineno_1=$LINENO
26187 as_lineno_2=$LINENO
26188 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26189 test "x$as_lineno_1" != "x$as_lineno_2" &&
26190 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26191 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26192 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26193 CONFIG_SHELL=$as_dir/$as_base
26194 export CONFIG_SHELL
26195 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26204 # uniformly replaced by the line number. The first 'sed' inserts a
26205 # line-number line before each line; the second 'sed' does the real
26206 # work. The second script uses 'N' to pair each line-number line
26207 # with the numbered line, and appends trailing '-' during
26208 # substitution so that $LINENO is not a special case at line end.
26209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26210 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26211 sed '=' <$as_myself |
26216 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26219 s,^['$as_cr_digits']*\n,,
26220 ' >$as_me.lineno &&
26221 chmod +x $as_me.lineno ||
26222 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26223 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26224 { (exit 1); exit 1; }; }
26226 # Don't try to exec as it changes $[0], causing all sort of problems
26227 # (the dirname of $[0] is not the place where we might find the
26228 # original and so on. Autoconf is especially sensible to this).
26230 # Exit status is that of the last command.
26235 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26236 *c*,-n*) ECHO_N= ECHO_C='
26238 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26239 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26242 if expr a : '\(a\)' >/dev/null 2>&1; then
26248 rm -f conf$$ conf$$.exe conf$$.file
26250 if ln -s conf$$.file conf$$ 2>/dev/null; then
26251 # We could just check for DJGPP; but this test a) works b) is more generic
26252 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26253 if test -f conf$$.exe; then
26254 # Don't use ln at all; we don't have any links
26259 elif ln conf$$.file conf$$ 2>/dev/null; then
26264 rm -f conf$$ conf$$.exe conf$$.file
26266 if mkdir -p . 2>/dev/null; then
26269 test -d ./-p && rmdir ./-p
26273 as_executable_p="test -f"
26275 # Sed expression to map a string onto a valid CPP name.
26276 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26278 # Sed expression to map a string onto a valid variable name.
26279 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26283 # We need space, tab and new line, in precisely that order.
26293 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26294 # report actual input values of CONFIG_FILES etc. instead of their
26295 # values after options handling. Logging --version etc. is OK.
26299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26300 ## Running $as_me. ##
26305 This file was extended by llvm $as_me 1.4, which was
26306 generated by GNU Autoconf 2.59. Invocation command line was
26308 CONFIG_FILES = $CONFIG_FILES
26309 CONFIG_HEADERS = $CONFIG_HEADERS
26310 CONFIG_LINKS = $CONFIG_LINKS
26311 CONFIG_COMMANDS = $CONFIG_COMMANDS
26315 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26319 # Files that config.status was made for.
26320 if test -n "$ac_config_files"; then
26321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26324 if test -n "$ac_config_headers"; then
26325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26328 if test -n "$ac_config_links"; then
26329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26332 if test -n "$ac_config_commands"; then
26333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26336 cat >>$CONFIG_STATUS <<\_ACEOF
26339 \`$as_me' instantiates files from templates according to the
26340 current configuration.
26342 Usage: $0 [OPTIONS] [FILE]...
26344 -h, --help print this help, then exit
26345 -V, --version print version number, then exit
26346 -q, --quiet do not print progress messages
26347 -d, --debug don't remove temporary files
26348 --recheck update $as_me by reconfiguring in the same conditions
26349 --file=FILE[:TEMPLATE]
26350 instantiate the configuration file FILE
26351 --header=FILE[:TEMPLATE]
26352 instantiate the configuration header FILE
26354 Configuration files:
26357 Configuration headers:
26360 Configuration links:
26363 Configuration commands:
26366 Report bugs to <bug-autoconf@gnu.org>."
26369 cat >>$CONFIG_STATUS <<_ACEOF
26371 llvm config.status 1.4
26372 configured by $0, generated by GNU Autoconf 2.59,
26373 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26375 Copyright (C) 2003 Free Software Foundation, Inc.
26376 This config.status script is free software; the Free Software Foundation
26377 gives unlimited permission to copy, distribute and modify it."
26382 cat >>$CONFIG_STATUS <<\_ACEOF
26383 # If no file are specified by the user, then we need to provide default
26384 # value. By we need to know if files were specified by the user.
26390 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26391 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26399 *) # This is not an option, so the user has probably given explicit
26402 ac_need_defaults=false;;
26406 # Handling of the options.
26408 cat >>$CONFIG_STATUS <<\_ACEOF
26409 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26411 --version | --vers* | -V )
26412 echo "$ac_cs_version"; exit 0 ;;
26414 # Conflict between --help and --header
26415 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26416 Try \`$0 --help' for more information." >&5
26417 echo "$as_me: error: ambiguous option: $1
26418 Try \`$0 --help' for more information." >&2;}
26419 { (exit 1); exit 1; }; };;
26420 --help | --hel | -h )
26421 echo "$ac_cs_usage"; exit 0 ;;
26422 --debug | --d* | -d )
26424 --file | --fil | --fi | --f )
26426 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26427 ac_need_defaults=false;;
26428 --header | --heade | --head | --hea )
26430 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26431 ac_need_defaults=false;;
26432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26433 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26436 # This is an error.
26437 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26438 Try \`$0 --help' for more information." >&5
26439 echo "$as_me: error: unrecognized option: $1
26440 Try \`$0 --help' for more information." >&2;}
26441 { (exit 1); exit 1; }; } ;;
26443 *) ac_config_targets="$ac_config_targets $1" ;;
26449 ac_configure_extra_args=
26451 if $ac_cs_silent; then
26453 ac_configure_extra_args="$ac_configure_extra_args --silent"
26457 cat >>$CONFIG_STATUS <<_ACEOF
26458 if \$ac_cs_recheck; then
26459 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26460 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26465 cat >>$CONFIG_STATUS <<_ACEOF
26467 # INIT-COMMANDS section.
26470 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
26471 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
26472 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
26473 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
26474 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
26475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
26476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
26477 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
26478 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
26479 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
26480 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
26481 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
26482 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
26488 cat >>$CONFIG_STATUS <<\_ACEOF
26489 for ac_config_target in $ac_config_targets
26491 case "$ac_config_target" in
26492 # Handling of arguments.
26493 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
26494 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
26495 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
26496 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
26497 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
26498 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
26499 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
26500 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
26501 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
26502 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
26503 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
26504 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
26505 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
26506 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
26507 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
26508 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
26509 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
26510 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
26511 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
26512 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
26513 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
26514 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
26515 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
26516 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
26517 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
26518 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
26519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26520 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26521 { (exit 1); exit 1; }; };;
26525 # If the user did not use the arguments to specify the items to instantiate,
26526 # then the envvar interface is used. Set only those that are not.
26527 # We use the long form for the default assignment because of an extremely
26528 # bizarre bug on SunOS 4.1.3.
26529 if $ac_need_defaults; then
26530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26532 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26536 # Have a temporary directory for convenience. Make it in the build tree
26537 # simply because there is no reason to put it here, and in addition,
26538 # creating and moving files from /tmp can sometimes cause problems.
26539 # Create a temporary directory, and hook for its removal unless debugging.
26542 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26543 trap '{ (exit 1); exit 1; }' 1 2 13 15
26546 # Create a (secure) tmp directory for tmp files.
26549 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26550 test -n "$tmp" && test -d "$tmp"
26553 tmp=./confstat$$-$RANDOM
26554 (umask 077 && mkdir $tmp)
26557 echo "$me: cannot create a temporary directory in ." >&2
26558 { (exit 1); exit 1; }
26563 cat >>$CONFIG_STATUS <<_ACEOF
26566 # CONFIG_FILES section.
26569 # No need to generate the scripts if there are no CONFIG_FILES.
26570 # This happens for instance when ./config.status config.h
26571 if test -n "\$CONFIG_FILES"; then
26572 # Protect against being on the right side of a sed subst in config.status.
26573 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26574 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26575 s,@SHELL@,$SHELL,;t t
26576 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26577 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26578 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26579 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26580 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26581 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26582 s,@exec_prefix@,$exec_prefix,;t t
26583 s,@prefix@,$prefix,;t t
26584 s,@program_transform_name@,$program_transform_name,;t t
26585 s,@bindir@,$bindir,;t t
26586 s,@sbindir@,$sbindir,;t t
26587 s,@libexecdir@,$libexecdir,;t t
26588 s,@datadir@,$datadir,;t t
26589 s,@sysconfdir@,$sysconfdir,;t t
26590 s,@sharedstatedir@,$sharedstatedir,;t t
26591 s,@localstatedir@,$localstatedir,;t t
26592 s,@libdir@,$libdir,;t t
26593 s,@includedir@,$includedir,;t t
26594 s,@oldincludedir@,$oldincludedir,;t t
26595 s,@infodir@,$infodir,;t t
26596 s,@mandir@,$mandir,;t t
26597 s,@build_alias@,$build_alias,;t t
26598 s,@host_alias@,$host_alias,;t t
26599 s,@target_alias@,$target_alias,;t t
26600 s,@DEFS@,$DEFS,;t t
26601 s,@ECHO_C@,$ECHO_C,;t t
26602 s,@ECHO_N@,$ECHO_N,;t t
26603 s,@ECHO_T@,$ECHO_T,;t t
26604 s,@LIBS@,$LIBS,;t t
26605 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
26606 s,@subdirs@,$subdirs,;t t
26607 s,@build@,$build,;t t
26608 s,@build_cpu@,$build_cpu,;t t
26609 s,@build_vendor@,$build_vendor,;t t
26610 s,@build_os@,$build_os,;t t
26611 s,@host@,$host,;t t
26612 s,@host_cpu@,$host_cpu,;t t
26613 s,@host_vendor@,$host_vendor,;t t
26614 s,@host_os@,$host_os,;t t
26615 s,@target@,$target,;t t
26616 s,@target_cpu@,$target_cpu,;t t
26617 s,@target_vendor@,$target_vendor,;t t
26618 s,@target_os@,$target_os,;t t
26620 s,@ARCH@,$ARCH,;t t
26621 s,@ENDIAN@,$ENDIAN,;t t
26623 s,@CFLAGS@,$CFLAGS,;t t
26624 s,@LDFLAGS@,$LDFLAGS,;t t
26625 s,@CPPFLAGS@,$CPPFLAGS,;t t
26626 s,@ac_ct_CC@,$ac_ct_CC,;t t
26627 s,@EXEEXT@,$EXEEXT,;t t
26628 s,@OBJEXT@,$OBJEXT,;t t
26629 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
26631 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
26632 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
26635 s,@CXXFLAGS@,$CXXFLAGS,;t t
26636 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26638 s,@LEXLIB@,$LEXLIB,;t t
26639 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26640 s,@FLEX@,$FLEX,;t t
26641 s,@YACC@,$YACC,;t t
26642 s,@BISON@,$BISON,;t t
26643 s,@EGREP@,$EGREP,;t t
26644 s,@LN_S@,$LN_S,;t t
26645 s,@ECHO@,$ECHO,;t t
26647 s,@ac_ct_AR@,$ac_ct_AR,;t t
26648 s,@RANLIB@,$RANLIB,;t t
26649 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26650 s,@STRIP@,$STRIP,;t t
26651 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26652 s,@CXXCPP@,$CXXCPP,;t t
26654 s,@FFLAGS@,$FFLAGS,;t t
26655 s,@ac_ct_F77@,$ac_ct_F77,;t t
26656 s,@LIBTOOL@,$LIBTOOL,;t t
26657 s,@ifGNUmake@,$ifGNUmake,;t t
26658 s,@DATE@,$DATE,;t t
26659 s,@FIND@,$FIND,;t t
26660 s,@GREP@,$GREP,;t t
26661 s,@MKDIR@,$MKDIR,;t t
26667 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26668 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26669 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26670 s,@BZIP2@,$BZIP2,;t t
26672 s,@DOXYGEN@,$DOXYGEN,;t t
26673 s,@ETAGS@,$ETAGS,;t t
26674 s,@GROFF@,$GROFF,;t t
26675 s,@GZIP@,$GZIP,;t t
26676 s,@POD2HTML@,$POD2HTML,;t t
26677 s,@POD2MAN@,$POD2MAN,;t t
26678 s,@PYTHON@,$PYTHON,;t t
26679 s,@QMTEST@,$QMTEST,;t t
26680 s,@RUNTEST@,$RUNTEST,;t t
26682 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
26683 s,@ALLOCA@,$ALLOCA,;t t
26684 s,@MMAP_FILE@,$MMAP_FILE,;t t
26685 s,@LLVMGCC@,$LLVMGCC,;t t
26686 s,@LLVMCC1@,$LLVMCC1,;t t
26687 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
26688 s,@SHLIBEXT@,$SHLIBEXT,;t t
26689 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
26690 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
26691 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
26692 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
26693 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
26694 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
26695 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
26696 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
26697 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
26698 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
26699 s,@LIBOBJS@,$LIBOBJS,;t t
26700 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26705 cat >>$CONFIG_STATUS <<\_ACEOF
26706 # Split the substitutions into bite-sized pieces for seds with
26707 # small command number limits, like on Digital OSF/1 and HP-UX.
26708 ac_max_sed_lines=48
26709 ac_sed_frag=1 # Number of current file.
26710 ac_beg=1 # First line for current file.
26711 ac_end=$ac_max_sed_lines # Line after last line for current file.
26714 while $ac_more_lines; do
26715 if test $ac_beg -gt 1; then
26716 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26718 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26720 if test ! -s $tmp/subs.frag; then
26721 ac_more_lines=false
26723 # The purpose of the label and of the branching condition is to
26724 # speed up the sed processing (if there are no `@' at all, there
26725 # is no need to browse any of the substitutions).
26726 # These are the two extra sed commands mentioned above.
26728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26729 if test -z "$ac_sed_cmds"; then
26730 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26732 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26734 ac_sed_frag=`expr $ac_sed_frag + 1`
26736 ac_end=`expr $ac_end + $ac_max_sed_lines`
26739 if test -z "$ac_sed_cmds"; then
26742 fi # test -n "$CONFIG_FILES"
26745 cat >>$CONFIG_STATUS <<\_ACEOF
26746 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26747 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26749 - | *:- | *:-:* ) # input from stdin
26751 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26752 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26753 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26754 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26755 * ) ac_file_in=$ac_file.in ;;
26758 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26759 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26760 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26761 X"$ac_file" : 'X\(//\)[^/]' \| \
26762 X"$ac_file" : 'X\(//\)$' \| \
26763 X"$ac_file" : 'X\(/\)' \| \
26764 . : '\(.\)' 2>/dev/null ||
26766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26768 /^X\(\/\/\)$/{ s//\1/; q; }
26769 /^X\(\/\).*/{ s//\1/; q; }
26771 { if $as_mkdir_p; then
26776 while test ! -d "$as_dir"; do
26777 as_dirs="$as_dir $as_dirs"
26778 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26780 X"$as_dir" : 'X\(//\)[^/]' \| \
26781 X"$as_dir" : 'X\(//\)$' \| \
26782 X"$as_dir" : 'X\(/\)' \| \
26783 . : '\(.\)' 2>/dev/null ||
26785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26787 /^X\(\/\/\)$/{ s//\1/; q; }
26788 /^X\(\/\).*/{ s//\1/; q; }
26791 test ! -n "$as_dirs" || mkdir $as_dirs
26792 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26793 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26794 { (exit 1); exit 1; }; }; }
26798 if test "$ac_dir" != .; then
26799 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26800 # A "../" for each directory in $ac_dir_suffix.
26801 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26803 ac_dir_suffix= ac_top_builddir=
26807 .) # No --srcdir option. We are building in place.
26809 if test -z "$ac_top_builddir"; then
26812 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26814 [\\/]* | ?:[\\/]* ) # Absolute path.
26815 ac_srcdir=$srcdir$ac_dir_suffix;
26816 ac_top_srcdir=$srcdir ;;
26817 *) # Relative path.
26818 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26819 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26822 # Do not use `cd foo && pwd` to compute absolute paths, because
26823 # the directories may not exist.
26825 .) ac_abs_builddir="$ac_dir";;
26828 .) ac_abs_builddir=`pwd`;;
26829 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26830 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26833 case $ac_abs_builddir in
26834 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26836 case ${ac_top_builddir}. in
26837 .) ac_abs_top_builddir=$ac_abs_builddir;;
26838 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26839 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26842 case $ac_abs_builddir in
26843 .) ac_abs_srcdir=$ac_srcdir;;
26846 .) ac_abs_srcdir=$ac_abs_builddir;;
26847 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26848 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26851 case $ac_abs_builddir in
26852 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26854 case $ac_top_srcdir in
26855 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26856 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26857 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26864 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26867 if test x"$ac_file" != x-; then
26868 { echo "$as_me:$LINENO: creating $ac_file" >&5
26869 echo "$as_me: creating $ac_file" >&6;}
26872 # Let's still pretend it is `configure' which instantiates (i.e., don't
26873 # use $as_me), people would be surprised to read:
26874 # /* config.h. Generated by config.status. */
26875 if test x"$ac_file" = x-; then
26878 configure_input="$ac_file. "
26880 configure_input=$configure_input"Generated from `echo $ac_file_in |
26881 sed 's,.*/,,'` by configure."
26883 # First look for the input files in the build tree, otherwise in the
26885 ac_file_inputs=`IFS=:
26886 for f in $ac_file_in; do
26888 -) echo $tmp/stdin ;;
26890 # Absolute (can't be DOS-style, as IFS=:)
26891 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26892 echo "$as_me: error: cannot find input file: $f" >&2;}
26893 { (exit 1); exit 1; }; }
26896 if test -f "$f"; then
26899 elif test -f "$srcdir/$f"; then
26904 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26905 echo "$as_me: error: cannot find input file: $f" >&2;}
26906 { (exit 1); exit 1; }; }
26909 done` || { (exit 1); exit 1; }
26911 cat >>$CONFIG_STATUS <<_ACEOF
26915 cat >>$CONFIG_STATUS <<\_ACEOF
26917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26918 s,@configure_input@,$configure_input,;t t
26919 s,@srcdir@,$ac_srcdir,;t t
26920 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26921 s,@top_srcdir@,$ac_top_srcdir,;t t
26922 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26923 s,@builddir@,$ac_builddir,;t t
26924 s,@abs_builddir@,$ac_abs_builddir,;t t
26925 s,@top_builddir@,$ac_top_builddir,;t t
26926 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26927 s,@INSTALL@,$ac_INSTALL,;t t
26928 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26930 if test x"$ac_file" != x-; then
26931 mv $tmp/out $ac_file
26939 cat >>$CONFIG_STATUS <<\_ACEOF
26942 # CONFIG_HEADER section.
26945 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26946 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26948 # ac_d sets the value in "#define NAME VALUE" lines.
26949 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26950 ac_dB='[ ].*$,\1#\2'
26953 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26954 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26955 ac_uB='$,\1#\2define\3'
26959 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26962 - | *:- | *:-:* ) # input from stdin
26964 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26966 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26967 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26968 * ) ac_file_in=$ac_file.in ;;
26971 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26972 echo "$as_me: creating $ac_file" >&6;}
26974 # First look for the input files in the build tree, otherwise in the
26976 ac_file_inputs=`IFS=:
26977 for f in $ac_file_in; do
26979 -) echo $tmp/stdin ;;
26981 # Absolute (can't be DOS-style, as IFS=:)
26982 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26983 echo "$as_me: error: cannot find input file: $f" >&2;}
26984 { (exit 1); exit 1; }; }
26985 # Do quote $f, to prevent DOS paths from being IFS'd.
26988 if test -f "$f"; then
26991 elif test -f "$srcdir/$f"; then
26996 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26997 echo "$as_me: error: cannot find input file: $f" >&2;}
26998 { (exit 1); exit 1; }; }
27001 done` || { (exit 1); exit 1; }
27002 # Remove the trailing spaces.
27003 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27007 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27008 # `conftest.undefs', that substitutes the proper values into
27009 # config.h.in to produce config.h. The first handles `#define'
27010 # templates, and the second `#undef' templates.
27011 # And first: Protect against being on the right side of a sed subst in
27012 # config.status. Protect against being in an unquoted here document
27013 # in config.status.
27014 rm -f conftest.defines conftest.undefs
27015 # Using a here document instead of a string reduces the quoting nightmare.
27016 # Putting comments in sed scripts is not portable.
27018 # `end' is used to avoid that the second main sed command (meant for
27019 # 0-ary CPP macros) applies to n-ary macro definitions.
27020 # See the Autoconf documentation for `clear'.
27021 cat >confdef2sed.sed <<\_ACEOF
27026 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27028 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27031 # If some macros were called several times there might be several times
27032 # the same #defines, which is useless. Nevertheless, we may not want to
27033 # sort them, since we want the *last* AC-DEFINE to be honored.
27034 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27035 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27036 rm -f confdef2sed.sed
27038 # This sed command replaces #undef with comments. This is necessary, for
27039 # example, in the case of _POSIX_SOURCE, which is predefined and required
27040 # on some systems where configure will not decide to define it.
27041 cat >>conftest.undefs <<\_ACEOF
27042 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27045 # Break up conftest.defines because some shells have a limit on the size
27046 # of here documents, and old seds have small limits too (100 cmds).
27047 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27048 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27049 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27050 echo ' :' >>$CONFIG_STATUS
27051 rm -f conftest.tail
27052 while grep . conftest.defines >/dev/null
27054 # Write a limited-size here document to $tmp/defines.sed.
27055 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27056 # Speed up: don't consider the non `#define' lines.
27057 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27058 # Work around the forget-to-reset-the-flag bug.
27059 echo 't clr' >>$CONFIG_STATUS
27060 echo ': clr' >>$CONFIG_STATUS
27061 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27063 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27065 mv $tmp/out $tmp/in
27067 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27068 rm -f conftest.defines
27069 mv conftest.tail conftest.defines
27071 rm -f conftest.defines
27072 echo ' fi # grep' >>$CONFIG_STATUS
27073 echo >>$CONFIG_STATUS
27075 # Break up conftest.undefs because some shells have a limit on the size
27076 # of here documents, and old seds have small limits too (100 cmds).
27077 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27078 rm -f conftest.tail
27079 while grep . conftest.undefs >/dev/null
27081 # Write a limited-size here document to $tmp/undefs.sed.
27082 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27083 # Speed up: don't consider the non `#undef'
27084 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27085 # Work around the forget-to-reset-the-flag bug.
27086 echo 't clr' >>$CONFIG_STATUS
27087 echo ': clr' >>$CONFIG_STATUS
27088 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27090 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27092 mv $tmp/out $tmp/in
27094 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27095 rm -f conftest.undefs
27096 mv conftest.tail conftest.undefs
27098 rm -f conftest.undefs
27100 cat >>$CONFIG_STATUS <<\_ACEOF
27101 # Let's still pretend it is `configure' which instantiates (i.e., don't
27102 # use $as_me), people would be surprised to read:
27103 # /* config.h. Generated by config.status. */
27104 if test x"$ac_file" = x-; then
27105 echo "/* Generated by configure. */" >$tmp/config.h
27107 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27109 cat $tmp/in >>$tmp/config.h
27111 if test x"$ac_file" != x-; then
27112 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27113 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27114 echo "$as_me: $ac_file is unchanged" >&6;}
27116 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27118 X"$ac_file" : 'X\(//\)[^/]' \| \
27119 X"$ac_file" : 'X\(//\)$' \| \
27120 X"$ac_file" : 'X\(/\)' \| \
27121 . : '\(.\)' 2>/dev/null ||
27123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27125 /^X\(\/\/\)$/{ s//\1/; q; }
27126 /^X\(\/\).*/{ s//\1/; q; }
27128 { if $as_mkdir_p; then
27133 while test ! -d "$as_dir"; do
27134 as_dirs="$as_dir $as_dirs"
27135 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27137 X"$as_dir" : 'X\(//\)[^/]' \| \
27138 X"$as_dir" : 'X\(//\)$' \| \
27139 X"$as_dir" : 'X\(/\)' \| \
27140 . : '\(.\)' 2>/dev/null ||
27142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27144 /^X\(\/\/\)$/{ s//\1/; q; }
27145 /^X\(\/\).*/{ s//\1/; q; }
27148 test ! -n "$as_dirs" || mkdir $as_dirs
27149 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27151 { (exit 1); exit 1; }; }; }
27154 mv $tmp/config.h $ac_file
27158 rm -f $tmp/config.h
27162 cat >>$CONFIG_STATUS <<\_ACEOF
27165 # CONFIG_LINKS section.
27168 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27169 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27170 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27172 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27173 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27175 if test ! -r $srcdir/$ac_source; then
27176 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27177 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27178 { (exit 1); exit 1; }; }
27182 # Make relative symlinks.
27183 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27184 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27185 X"$ac_dest" : 'X\(//\)[^/]' \| \
27186 X"$ac_dest" : 'X\(//\)$' \| \
27187 X"$ac_dest" : 'X\(/\)' \| \
27188 . : '\(.\)' 2>/dev/null ||
27190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27192 /^X\(\/\/\)$/{ s//\1/; q; }
27193 /^X\(\/\).*/{ s//\1/; q; }
27195 { if $as_mkdir_p; then
27196 mkdir -p "$ac_dest_dir"
27198 as_dir="$ac_dest_dir"
27200 while test ! -d "$as_dir"; do
27201 as_dirs="$as_dir $as_dirs"
27202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27204 X"$as_dir" : 'X\(//\)[^/]' \| \
27205 X"$as_dir" : 'X\(//\)$' \| \
27206 X"$as_dir" : 'X\(/\)' \| \
27207 . : '\(.\)' 2>/dev/null ||
27209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27211 /^X\(\/\/\)$/{ s//\1/; q; }
27212 /^X\(\/\).*/{ s//\1/; q; }
27215 test ! -n "$as_dirs" || mkdir $as_dirs
27216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27217 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27218 { (exit 1); exit 1; }; }; }
27222 if test "$ac_dest_dir" != .; then
27223 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27224 # A "../" for each directory in $ac_dir_suffix.
27225 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27227 ac_dir_suffix= ac_top_builddir=
27231 .) # No --srcdir option. We are building in place.
27233 if test -z "$ac_top_builddir"; then
27236 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27238 [\\/]* | ?:[\\/]* ) # Absolute path.
27239 ac_srcdir=$srcdir$ac_dir_suffix;
27240 ac_top_srcdir=$srcdir ;;
27241 *) # Relative path.
27242 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27243 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27246 # Do not use `cd foo && pwd` to compute absolute paths, because
27247 # the directories may not exist.
27249 .) ac_abs_builddir="$ac_dest_dir";;
27251 case "$ac_dest_dir" in
27252 .) ac_abs_builddir=`pwd`;;
27253 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27254 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27257 case $ac_abs_builddir in
27258 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27260 case ${ac_top_builddir}. in
27261 .) ac_abs_top_builddir=$ac_abs_builddir;;
27262 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27263 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27266 case $ac_abs_builddir in
27267 .) ac_abs_srcdir=$ac_srcdir;;
27270 .) ac_abs_srcdir=$ac_abs_builddir;;
27271 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27272 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27275 case $ac_abs_builddir in
27276 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27278 case $ac_top_srcdir in
27279 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27280 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27281 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27287 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27288 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27291 # Try a symlink, then a hard link, then a copy.
27292 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27293 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27294 cp -p $srcdir/$ac_source $ac_dest ||
27295 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27296 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27297 { (exit 1); exit 1; }; }
27300 cat >>$CONFIG_STATUS <<\_ACEOF
27303 # CONFIG_COMMANDS section.
27305 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27306 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27307 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27308 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27309 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27310 X"$ac_dest" : 'X\(//\)[^/]' \| \
27311 X"$ac_dest" : 'X\(//\)$' \| \
27312 X"$ac_dest" : 'X\(/\)' \| \
27313 . : '\(.\)' 2>/dev/null ||
27315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27317 /^X\(\/\/\)$/{ s//\1/; q; }
27318 /^X\(\/\).*/{ s//\1/; q; }
27320 { if $as_mkdir_p; then
27325 while test ! -d "$as_dir"; do
27326 as_dirs="$as_dir $as_dirs"
27327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27329 X"$as_dir" : 'X\(//\)[^/]' \| \
27330 X"$as_dir" : 'X\(//\)$' \| \
27331 X"$as_dir" : 'X\(/\)' \| \
27332 . : '\(.\)' 2>/dev/null ||
27334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27336 /^X\(\/\/\)$/{ s//\1/; q; }
27337 /^X\(\/\).*/{ s//\1/; q; }
27340 test ! -n "$as_dirs" || mkdir $as_dirs
27341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27343 { (exit 1); exit 1; }; }; }
27347 if test "$ac_dir" != .; then
27348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27349 # A "../" for each directory in $ac_dir_suffix.
27350 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27352 ac_dir_suffix= ac_top_builddir=
27356 .) # No --srcdir option. We are building in place.
27358 if test -z "$ac_top_builddir"; then
27361 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27363 [\\/]* | ?:[\\/]* ) # Absolute path.
27364 ac_srcdir=$srcdir$ac_dir_suffix;
27365 ac_top_srcdir=$srcdir ;;
27366 *) # Relative path.
27367 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27368 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27371 # Do not use `cd foo && pwd` to compute absolute paths, because
27372 # the directories may not exist.
27374 .) ac_abs_builddir="$ac_dir";;
27377 .) ac_abs_builddir=`pwd`;;
27378 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27379 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27382 case $ac_abs_builddir in
27383 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27385 case ${ac_top_builddir}. in
27386 .) ac_abs_top_builddir=$ac_abs_builddir;;
27387 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27388 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27391 case $ac_abs_builddir in
27392 .) ac_abs_srcdir=$ac_srcdir;;
27395 .) ac_abs_srcdir=$ac_abs_builddir;;
27396 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27397 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27400 case $ac_abs_builddir in
27401 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27403 case $ac_top_srcdir in
27404 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27405 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27406 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27411 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27412 echo "$as_me: executing $ac_dest commands" >&6;}
27414 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
27415 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
27416 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
27417 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
27418 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
27419 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
27420 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
27421 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
27422 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
27423 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
27424 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
27425 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
27426 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
27431 cat >>$CONFIG_STATUS <<\_ACEOF
27433 { (exit 0); exit 0; }
27435 chmod +x $CONFIG_STATUS
27436 ac_clean_files=$ac_clean_files_save
27439 # configure is writing to config.log, and then calls config.status.
27440 # config.status does its own redirection, appending to config.log.
27441 # Unfortunately, on DOS this fails, as config.log is still kept open
27442 # by configure, so config.status won't be able to write to it; its
27443 # output is simply discarded. So we exec the FD to /dev/null,
27444 # effectively closing config.log, so it can be properly (re)opened and
27445 # appended to by config.status. When coming back to configure, we
27446 # need to make the FD available again.
27447 if test "$no_create" != yes; then
27449 ac_config_status_args=
27450 test "$silent" = yes &&
27451 ac_config_status_args="$ac_config_status_args --quiet"
27453 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27455 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27456 # would make configure fail if this is the last instruction.
27457 $ac_cs_success || { (exit 1); exit 1; }
27461 # CONFIG_SUBDIRS section.
27463 if test "$no_recursion" != yes; then
27465 # Remove --cache-file and --srcdir arguments so they do not pile up.
27466 ac_sub_configure_args=
27468 for ac_arg in $ac_configure_args; do
27469 if test -n "$ac_prev"; then
27474 -cache-file | --cache-file | --cache-fil | --cache-fi \
27475 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27476 ac_prev=cache_file ;;
27477 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27478 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27481 --config-cache | -C)
27483 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27485 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27491 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
27495 # Always prepend --prefix to ensure using the same prefix
27496 # in subdir configurations.
27497 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
27500 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27502 # Do not complain, so a configure script can configure whichever
27503 # parts of a large source tree are present.
27504 test -d $srcdir/$ac_dir || continue
27506 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27507 echo "$as_me: configuring in $ac_dir" >&6;}
27508 { if $as_mkdir_p; then
27513 while test ! -d "$as_dir"; do
27514 as_dirs="$as_dir $as_dirs"
27515 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27517 X"$as_dir" : 'X\(//\)[^/]' \| \
27518 X"$as_dir" : 'X\(//\)$' \| \
27519 X"$as_dir" : 'X\(/\)' \| \
27520 . : '\(.\)' 2>/dev/null ||
27522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27524 /^X\(\/\/\)$/{ s//\1/; q; }
27525 /^X\(\/\).*/{ s//\1/; q; }
27528 test ! -n "$as_dirs" || mkdir $as_dirs
27529 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27530 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27531 { (exit 1); exit 1; }; }; }
27535 if test "$ac_dir" != .; then
27536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27537 # A "../" for each directory in $ac_dir_suffix.
27538 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27540 ac_dir_suffix= ac_top_builddir=
27544 .) # No --srcdir option. We are building in place.
27546 if test -z "$ac_top_builddir"; then
27549 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27551 [\\/]* | ?:[\\/]* ) # Absolute path.
27552 ac_srcdir=$srcdir$ac_dir_suffix;
27553 ac_top_srcdir=$srcdir ;;
27554 *) # Relative path.
27555 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27556 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27559 # Do not use `cd foo && pwd` to compute absolute paths, because
27560 # the directories may not exist.
27562 .) ac_abs_builddir="$ac_dir";;
27565 .) ac_abs_builddir=`pwd`;;
27566 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27567 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27570 case $ac_abs_builddir in
27571 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27573 case ${ac_top_builddir}. in
27574 .) ac_abs_top_builddir=$ac_abs_builddir;;
27575 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27576 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27579 case $ac_abs_builddir in
27580 .) ac_abs_srcdir=$ac_srcdir;;
27583 .) ac_abs_srcdir=$ac_abs_builddir;;
27584 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27585 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27588 case $ac_abs_builddir in
27589 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27591 case $ac_top_srcdir in
27592 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27593 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27594 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27601 # Check for guested configure; otherwise get Cygnus style configure.
27602 if test -f $ac_srcdir/configure.gnu; then
27603 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
27604 elif test -f $ac_srcdir/configure; then
27605 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
27606 elif test -f $ac_srcdir/configure.in; then
27607 ac_sub_configure=$ac_configure
27609 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27610 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27614 # The recursion is here.
27615 if test -n "$ac_sub_configure"; then
27616 # Make the cache file name correct relative to the subdirectory.
27617 case $cache_file in
27618 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27619 *) # Relative path.
27620 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27623 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27624 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27625 # The eval makes quoting arguments work.
27626 eval $ac_sub_configure $ac_sub_configure_args \
27627 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
27628 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27629 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27630 { (exit 1); exit 1; }; }
27638 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
27639 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
27640 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
27641 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
27642 echo "$as_me: WARNING: ***** appear to be working." >&2;}
27643 { echo "$as_me:$LINENO: WARNING: ***** " >&5
27644 echo "$as_me: WARNING: ***** " >&2;}
27645 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
27646 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
27647 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
27648 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
27649 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
27650 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}