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.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
430 ac_subdirs_all="$ac_subdirs_all projects/${i}"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_unique_file=""Makefile.config.in""
469 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT 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 DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CC_set=${CC+set}
928 ac_cv_env_CC_set=${CC+set}
929 ac_cv_env_CC_value=$CC
930 ac_env_CFLAGS_set=${CFLAGS+set}
931 ac_env_CFLAGS_value=$CFLAGS
932 ac_cv_env_CFLAGS_set=${CFLAGS+set}
933 ac_cv_env_CFLAGS_value=$CFLAGS
934 ac_env_CPP_set=${CPP+set}
935 ac_env_CPP_value=$CPP
936 ac_cv_env_CPP_set=${CPP+set}
937 ac_cv_env_CPP_value=$CPP
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
958 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1018 if test -n "$ac_init_help"; then
1019 case $ac_init_help in
1020 short | recursive ) echo "Configuration of LLVM 1.4:";;
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
1033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --enable-optimized Compile with optimizations enabled (default is NO)
1035 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1036 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1037 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
1038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
1040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1041 --enable-jit Enable Just In Time Compiling (default is YES)
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
1055 Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1110 .) ac_abs_builddir="$ac_dir";;
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1157 $ac_configure --help
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1169 generated by GNU Autoconf 2.59
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by LLVM $as_me 1.4, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520 for ac_dir in autoconf $srcdir/autoconf; do
1521 if test -f $ac_dir/install-sh; then
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 elif test -f $ac_dir/install.sh; then
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 elif test -f $ac_dir/shtool; then
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 if test ${srcdir} != "."
1547 if test -f ${srcdir}/include/Config/config.h
1549 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1550 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551 { (exit 1); exit 1; }; }
1555 for i in `ls ${srcdir}/projects`
1557 if test ${i} != "CVS"
1559 if test -f ${srcdir}/projects/${i}/configure
1563 subdirs="$subdirs projects/${i}"
1569 ac_config_headers="$ac_config_headers include/Config/config.h"
1572 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
1575 ac_config_commands="$ac_config_commands Makefile"
1578 ac_config_commands="$ac_config_commands Makefile.common"
1581 ac_config_commands="$ac_config_commands examples/Makefile"
1584 ac_config_commands="$ac_config_commands lib/Makefile"
1587 ac_config_commands="$ac_config_commands runtime/Makefile"
1590 ac_config_commands="$ac_config_commands test/Makefile"
1593 ac_config_commands="$ac_config_commands test/Makefile.tests"
1596 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1599 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1602 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1605 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1608 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1611 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1614 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1617 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1620 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1623 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1626 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1629 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1632 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1635 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1638 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1641 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1644 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1647 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1650 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1653 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1656 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1659 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1662 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1665 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1668 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1671 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1674 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1677 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1680 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1683 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1686 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1689 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1692 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1695 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1698 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1701 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1704 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1707 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1710 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1713 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1716 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1719 ac_config_commands="$ac_config_commands tools/Makefile"
1722 ac_config_commands="$ac_config_commands utils/Makefile"
1725 ac_config_commands="$ac_config_commands projects/Makefile"
1729 # Find a good install program. We prefer a C program (faster),
1730 # so one script is as good as another. But avoid the broken or
1731 # incompatible versions:
1732 # SysV /etc/install, /usr/sbin/install
1733 # SunOS /usr/etc/install
1734 # IRIX /sbin/install
1736 # AmigaOS /C/install, which installs bootblocks on floppy discs
1737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1740 # OS/2's system install, which has a completely different semantic
1741 # ./install, which can be erroneously created by make from ./install.sh.
1742 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1743 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1744 if test -z "$INSTALL"; then
1745 if test "${ac_cv_path_install+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir=.
1753 # Account for people who put trailing slashes in PATH elements.
1755 ./ | .// | /cC/* | \
1756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1757 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1760 # OSF1 and SCO ODT 3.0 have their own names for install.
1761 # Don't use installbsd from OSF since it installs stuff as root
1763 for ac_prog in ginstall scoinst install; do
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1766 if test $ac_prog = install &&
1767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1768 # AIX install. It has an incompatible calling convention.
1770 elif test $ac_prog = install &&
1771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1772 # program-specific install script used by HP pwplus--don't use.
1775 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1787 if test "${ac_cv_path_install+set}" = set; then
1788 INSTALL=$ac_cv_path_install
1790 # As a last resort, use the slow shell script. We don't cache a
1791 # path for INSTALL within a source directory, because that will
1792 # break other packages using the cache if that directory is
1793 # removed, or if the path is relative.
1794 INSTALL=$ac_install_sh
1797 echo "$as_me:$LINENO: result: $INSTALL" >&5
1798 echo "${ECHO_T}$INSTALL" >&6
1800 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1801 # It thinks the first close brace ends the variable substitution.
1802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1809 # Make sure we can run config.sub.
1810 $ac_config_sub sun4 >/dev/null 2>&1 ||
1811 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1812 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1813 { (exit 1); exit 1; }; }
1815 echo "$as_me:$LINENO: checking build system type" >&5
1816 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1817 if test "${ac_cv_build+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 ac_cv_build_alias=$build_alias
1821 test -z "$ac_cv_build_alias" &&
1822 ac_cv_build_alias=`$ac_config_guess`
1823 test -z "$ac_cv_build_alias" &&
1824 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1825 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1826 { (exit 1); exit 1; }; }
1827 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1828 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1829 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1830 { (exit 1); exit 1; }; }
1833 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1834 echo "${ECHO_T}$ac_cv_build" >&6
1836 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1837 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1838 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1841 echo "$as_me:$LINENO: checking host system type" >&5
1842 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1843 if test "${ac_cv_host+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 ac_cv_host_alias=$host_alias
1847 test -z "$ac_cv_host_alias" &&
1848 ac_cv_host_alias=$ac_cv_build_alias
1849 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1850 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1851 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1852 { (exit 1); exit 1; }; }
1855 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1856 echo "${ECHO_T}$ac_cv_host" >&6
1858 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1859 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1860 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1863 echo "$as_me:$LINENO: checking target system type" >&5
1864 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1865 if test "${ac_cv_target+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 ac_cv_target_alias=$target_alias
1869 test "x$ac_cv_target_alias" = "x" &&
1870 ac_cv_target_alias=$ac_cv_host_alias
1871 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1872 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1873 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1874 { (exit 1); exit 1; }; }
1877 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878 echo "${ECHO_T}$ac_cv_target" >&6
1879 target=$ac_cv_target
1880 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1881 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1882 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1885 # The aliases save the names the user supplied, while $host etc.
1886 # will get canonicalized.
1887 test -n "$target_alias" &&
1888 test "$program_prefix$program_suffix$program_transform_name" = \
1890 program_prefix=${target_alias}-
1896 platform_type="Linux"
1897 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1899 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1906 platform_type="SunOS"
1907 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1909 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1916 platform_type="Cygwin"
1921 platform_type="Darwin"
1931 platform_type="SunOS"
1936 platform_type="Win32"
1941 platform_type="Unknown"
1945 if test $platform_type -eq "Unknown" ; then
1946 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1947 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1948 { (exit 1); exit 1; }; }
1951 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1955 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1964 sparc*-*) ARCH=Sparc
1967 powerpc*-*) ARCH=PowerPC
1976 ac_cpp='$CXXCPP $CPPFLAGS'
1977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1980 if test -n "$ac_tool_prefix"; then
1981 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CXX+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test -n "$CXX"; then
1991 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 if test -n "$CXX"; then
2011 echo "$as_me:$LINENO: result: $CXX" >&5
2012 echo "${ECHO_T}$CXX" >&6
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2018 test -n "$CXX" && break
2021 if test -z "$CXX"; then
2023 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 if test -n "$ac_ct_CXX"; then
2033 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_ac_ct_CXX="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2052 if test -n "$ac_ct_CXX"; then
2053 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2054 echo "${ECHO_T}$ac_ct_CXX" >&6
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2060 test -n "$ac_ct_CXX" && break
2062 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2068 # Provide some information about the compiler.
2069 echo "$as_me:$LINENO:" \
2070 "checking for C++ compiler version" >&5
2071 ac_compiler=`set X $ac_compile; echo $2`
2072 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2073 (eval $ac_compiler --version </dev/null >&5) 2>&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }
2077 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2078 (eval $ac_compiler -v </dev/null >&5) 2>&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2083 (eval $ac_compiler -V </dev/null >&5) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2088 cat >conftest.$ac_ext <<_ACEOF
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h. */
2103 ac_clean_files_save=$ac_clean_files
2104 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2105 # Try to create an executable without -o first, disregard a.out.
2106 # It will help us diagnose broken compilers, and finding out an intuition
2108 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2109 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2110 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2111 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2112 (eval $ac_link_default) 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; then
2116 # Find the output, starting from the most likely. This scheme is
2117 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2120 # Be careful to initialize this variable, since it used to be cached.
2121 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2123 # b.out is created by i960 compilers.
2124 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2126 test -f "$ac_file" || continue
2128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2131 # This is the source file.
2134 # We found the default executable, but exeext='' is most
2138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139 # FIXME: I believe we export ac_cv_exeext for Libtool,
2140 # but it would be cool to find out if it's true. Does anybody
2141 # maintain Libtool? --akim.
2149 echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2152 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: C++ compiler cannot create executables
2155 See \`config.log' for more details." >&2;}
2156 { (exit 77); exit 77; }; }
2159 ac_exeext=$ac_cv_exeext
2160 echo "$as_me:$LINENO: result: $ac_file" >&5
2161 echo "${ECHO_T}$ac_file" >&6
2163 # Check the compiler produces executables we can run. If not, either
2164 # the compiler is broken, or we cross compile.
2165 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2166 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2168 # If not cross compiling, check that we can run a simple program.
2169 if test "$cross_compiling" != yes; then
2170 if { ac_try='./$ac_file'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
2178 if test "$cross_compiling" = maybe; then
2181 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2182 If you meant to cross compile, use \`--host'.
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot run C++ compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&2;}
2187 { (exit 1); exit 1; }; }
2191 echo "$as_me:$LINENO: result: yes" >&5
2192 echo "${ECHO_T}yes" >&6
2194 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2195 ac_clean_files=$ac_clean_files_save
2196 # Check the compiler produces executables we can run. If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2199 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2200 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2201 echo "${ECHO_T}$cross_compiling" >&6
2203 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2204 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2206 (eval $ac_link) 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2212 # work properly (i.e., refer to `conftest.exe'), while it won't with
2214 for ac_file in conftest.exe conftest conftest.*; do
2215 test -f "$ac_file" || continue
2217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2232 rm -f conftest$ac_cv_exeext
2233 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234 echo "${ECHO_T}$ac_cv_exeext" >&6
2236 rm -f conftest.$ac_ext
2237 EXEEXT=$ac_cv_exeext
2239 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241 if test "${ac_cv_objext+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 cat >conftest.$ac_ext <<_ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2259 rm -f conftest.o conftest.obj
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
2265 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2273 echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2276 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2285 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2286 echo "${ECHO_T}$ac_cv_objext" >&6
2287 OBJEXT=$ac_cv_objext
2289 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2290 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2291 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 cat >conftest.$ac_ext <<_ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>conftest.er1
2316 grep -v '^ *+' conftest.er1 >conftest.err
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
2321 { ac_try='test -z "$ac_cxx_werror_flag"
2322 || test ! -s conftest.err'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; } &&
2328 { ac_try='test -s conftest.$ac_objext'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2345 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2346 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2347 GXX=`test $ac_compiler_gnu = yes && echo yes`
2348 ac_test_CXXFLAGS=${CXXFLAGS+set}
2349 ac_save_CXXFLAGS=$CXXFLAGS
2351 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2352 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2353 if test "${ac_cv_prog_cxx_g+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 cat >conftest.$ac_ext <<_ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_cxx_werror_flag"
2381 || test ! -s conftest.err'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2393 ac_cv_prog_cxx_g=yes
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2402 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2403 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2404 if test "$ac_test_CXXFLAGS" = set; then
2405 CXXFLAGS=$ac_save_CXXFLAGS
2406 elif test $ac_cv_prog_cxx_g = yes; then
2407 if test "$GXX" = yes; then
2413 if test "$GXX" = yes; then
2419 for ac_declaration in \
2421 'extern "C" void std::exit (int) throw (); using std::exit;' \
2422 'extern "C" void std::exit (int); using std::exit;' \
2423 'extern "C" void exit (int) throw ();' \
2424 'extern "C" void exit (int);' \
2427 cat >conftest.$ac_ext <<_ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2447 grep -v '^ *+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_cxx_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 cat >conftest.$ac_ext <<_ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>conftest.er1
2492 grep -v '^ *+' conftest.er1 >conftest.err
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -z "$ac_cxx_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519 if test -n "$ac_declaration"; then
2520 echo '#ifdef __cplusplus' >>confdefs.h
2521 echo $ac_declaration >>confdefs.h
2522 echo '#endif' >>confdefs.h
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2541 echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 if test -n "$CC"; then
2567 echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6
2570 echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2574 test -n "$CC" && break
2577 if test -z "$CC"; then
2581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy $ac_prog; ac_word=$2
2583 echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if test -n "$ac_ct_CC"; then
2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2598 ac_cv_prog_ac_ct_CC="$ac_prog"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2608 if test -n "$ac_ct_CC"; then
2609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2610 echo "${ECHO_T}$ac_ct_CC" >&6
2612 echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2616 test -n "$ac_ct_CC" && break
2623 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: no acceptable C compiler found in \$PATH
2626 See \`config.log' for more details." >&2;}
2627 { (exit 1); exit 1; }; }
2629 # Provide some information about the compiler.
2630 echo "$as_me:$LINENO:" \
2631 "checking for C compiler version" >&5
2632 ac_compiler=`set X $ac_compile; echo $2`
2633 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2634 (eval $ac_compiler --version </dev/null >&5) 2>&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }
2638 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2639 (eval $ac_compiler -v </dev/null >&5) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }
2643 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2644 (eval $ac_compiler -V </dev/null >&5) 2>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }
2649 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2650 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2651 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 cat >conftest.$ac_ext <<_ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2676 grep -v '^ *+' conftest.er1 >conftest.err
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2705 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2706 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2707 GCC=`test $ac_compiler_gnu = yes && echo yes`
2708 ac_test_CFLAGS=${CFLAGS+set}
2709 ac_save_CFLAGS=$CFLAGS
2711 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2712 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2713 if test "${ac_cv_prog_cc_g+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 cat >conftest.$ac_ext <<_ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_c_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2764 if test "$ac_test_CFLAGS" = set; then
2765 CFLAGS=$ac_save_CFLAGS
2766 elif test $ac_cv_prog_cc_g = yes; then
2767 if test "$GCC" = yes; then
2773 if test "$GCC" = yes; then
2779 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2780 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2781 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 ac_cv_prog_cc_stdc=no
2786 cat >conftest.$ac_ext <<_ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2794 #include <sys/types.h>
2795 #include <sys/stat.h>
2796 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2797 struct buf { int x; };
2798 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2799 static char *e (p, i)
2805 static char *f (char * (*g) (char **, int), char **p, ...)
2810 s = g (p, va_arg (v,int));
2815 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2816 function prototypes and stuff, but not '\xHH' hex character constants.
2817 These don't provoke an error unfortunately, instead are silently treated
2818 as 'x'. The following induces an error, until -std1 is added to get
2819 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2820 array size at least. It's necessary to write '\x00'==0 to get something
2821 that's true only with -std1. */
2822 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2824 int test (int i, double x);
2825 struct s1 {int (*f) (int a);};
2826 struct s2 {int (*f) (double a);};
2827 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2833 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2838 # Don't try gcc -ansi; that turns off useful extensions and
2839 # breaks some systems' header files.
2840 # AIX -qlanglvl=ansi
2841 # Ultrix and OSF/1 -std1
2842 # HP-UX 10.20 and later -Ae
2843 # HP-UX older versions -Aa -D_HPUX_SOURCE
2844 # SVR4 -Xc -D__EXTENSIONS__
2845 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2847 CC="$ac_save_CC $ac_arg"
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>conftest.er1
2852 grep -v '^ *+' conftest.er1 >conftest.err
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_cv_prog_cc_stdc=$ac_arg
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2877 rm -f conftest.err conftest.$ac_objext
2879 rm -f conftest.$ac_ext conftest.$ac_objext
2884 case "x$ac_cv_prog_cc_stdc" in
2886 echo "$as_me:$LINENO: result: none needed" >&5
2887 echo "${ECHO_T}none needed" >&6 ;;
2889 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2890 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2891 CC="$CC $ac_cv_prog_cc_stdc" ;;
2894 # Some people use a C++ compiler to compile C. Since we use `exit',
2895 # in C++ we need to declare it. In case someone uses the same compiler
2896 # for both compiling C and C++ we need to have the C++ compiler decide
2897 # the declaration of exit, since it's the most demanding environment.
2898 cat >conftest.$ac_ext <<_ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 for ac_declaration in \
2927 'extern "C" void std::exit (int) throw (); using std::exit;' \
2928 'extern "C" void std::exit (int); using std::exit;' \
2929 'extern "C" void exit (int) throw ();' \
2930 'extern "C" void exit (int);' \
2933 cat >conftest.$ac_ext <<_ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -z "$ac_c_werror_flag"
3004 || test ! -s conftest.err'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025 if test -n "$ac_declaration"; then
3026 echo '#ifdef __cplusplus' >>confdefs.h
3027 echo $ac_declaration >>confdefs.h
3028 echo '#endif' >>confdefs.h
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_cpp='$CPP $CPPFLAGS'
3039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3049 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3050 # On Suns, sometimes $CPP names a directory.
3051 if test -n "$CPP" && test -d "$CPP"; then
3054 if test -z "$CPP"; then
3055 if test "${ac_cv_prog_CPP+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 # Double quotes because CPP needs to be expanded
3059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3062 for ac_c_preproc_warn_flag in '' yes
3064 # Use a header file that comes with gcc, so configuring glibc
3065 # with a fresh cross-compiler works.
3066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067 # <limits.h> exists even on freestanding compilers.
3068 # On the NeXT, cc -E runs the code through the compiler's parser,
3069 # not just through cpp. "Syntax error" is here to catch this case.
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3077 # include <limits.h>
3079 # include <assert.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
3093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100 if test -z "$ac_cpp_err"; then
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 # Broken: fails on valid input.
3109 rm -f conftest.err conftest.$ac_ext
3111 # OK, works on sane cases. Now check whether non-existent headers
3112 # can be detected and how.
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 #include <ac_nonexistent.h>
3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3124 grep -v '^ *+' conftest.er1 >conftest.err
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null; then
3129 if test -s conftest.err; then
3130 ac_cpp_err=$ac_c_preproc_warn_flag
3131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3138 if test -z "$ac_cpp_err"; then
3139 # Broken: success on invalid input.
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 # Passes both tests.
3149 rm -f conftest.err conftest.$ac_ext
3152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153 rm -f conftest.err conftest.$ac_ext
3154 if $ac_preproc_ok; then
3166 echo "$as_me:$LINENO: result: $CPP" >&5
3167 echo "${ECHO_T}$CPP" >&6
3169 for ac_c_preproc_warn_flag in '' yes
3171 # Use a header file that comes with gcc, so configuring glibc
3172 # with a fresh cross-compiler works.
3173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3174 # <limits.h> exists even on freestanding compilers.
3175 # On the NeXT, cc -E runs the code through the compiler's parser,
3176 # not just through cpp. "Syntax error" is here to catch this case.
3177 cat >conftest.$ac_ext <<_ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3184 # include <limits.h>
3186 # include <assert.h>
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
3200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3207 if test -z "$ac_cpp_err"; then
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 # Broken: fails on valid input.
3216 rm -f conftest.err conftest.$ac_ext
3218 # OK, works on sane cases. Now check whether non-existent headers
3219 # can be detected and how.
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226 #include <ac_nonexistent.h>
3228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } >/dev/null; then
3236 if test -s conftest.err; then
3237 ac_cpp_err=$ac_c_preproc_warn_flag
3238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3245 if test -z "$ac_cpp_err"; then
3246 # Broken: success on invalid input.
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 # Passes both tests.
3256 rm -f conftest.err conftest.$ac_ext
3259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3260 rm -f conftest.err conftest.$ac_ext
3261 if $ac_preproc_ok; then
3264 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3265 See \`config.log' for more details." >&5
3266 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3267 See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; }
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278 if test "$GCC" != "yes"
3280 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3281 echo "$as_me: error: gcc required but not found" >&2;}
3282 { (exit 1); exit 1; }; }
3284 if test "$GXX" != "yes"
3286 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3287 echo "$as_me: error: g++ required but not found" >&2;}
3288 { (exit 1); exit 1; }; }
3291 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3292 if test "$gccmajor" -lt "3"
3294 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3295 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3296 { (exit 1); exit 1; }; }
3299 echo "$as_me:$LINENO: checking for GNU make" >&5
3300 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3301 if test "${_cv_gnu_make_command+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 _cv_gnu_make_command='' ;
3305 for a in "$MAKE" make gmake gnumake ; do
3306 if test -z "$a" ; then continue ; fi ;
3307 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3308 _cv_gnu_make_command=$a ;
3314 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3315 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3316 if test "x$_cv_gnu_make_command" != "x" ; then
3320 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3321 echo "${ECHO_T}\"Not found\"" >&6;
3325 if test -z "$_cv_gnu_make_command"
3327 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3328 echo "$as_me: error: GNU Make required but not found" >&2;}
3329 { (exit 1); exit 1; }; }
3333 echo "$as_me:$LINENO: checking " >&5
3334 echo $ECHO_N "checking ... $ECHO_C" >&6
3335 if test "${ac_cv_has_flex+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 for ac_prog in flex lex
3340 # Extract the first word of "$ac_prog", so it can be a program name with args.
3341 set dummy $ac_prog; ac_word=$2
3342 echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344 if test "${ac_cv_prog_LEX+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 if test -n "$LEX"; then
3348 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_LEX="$ac_prog"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 if test -n "$LEX"; then
3368 echo "$as_me:$LINENO: result: $LEX" >&5
3369 echo "${ECHO_T}$LEX" >&6
3371 echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3375 test -n "$LEX" && break
3377 test -n "$LEX" || LEX=":"
3379 if test -z "$LEXLIB"
3381 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3382 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3383 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 ac_check_lib_save_LIBS=$LIBS
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3395 /* Override any gcc2 internal prototype to avoid an error. */
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412 (eval $ac_link) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest$ac_exeext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 ac_cv_lib_fl_yywrap=yes
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 ac_cv_lib_fl_yywrap=no
3439 rm -f conftest.err conftest.$ac_objext \
3440 conftest$ac_exeext conftest.$ac_ext
3441 LIBS=$ac_check_lib_save_LIBS
3443 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3444 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3445 if test $ac_cv_lib_fl_yywrap = yes; then
3448 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3449 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3450 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 ac_check_lib_save_LIBS=$LIBS
3455 cat >conftest.$ac_ext <<_ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3462 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3477 rm -f conftest.$ac_objext conftest$ac_exeext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3479 (eval $ac_link) 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
3486 { ac_try='test -z "$ac_c_werror_flag"
3487 || test ! -s conftest.err'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; } &&
3493 { ac_try='test -s conftest$ac_exeext'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3499 ac_cv_lib_l_yywrap=yes
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 ac_cv_lib_l_yywrap=no
3506 rm -f conftest.err conftest.$ac_objext \
3507 conftest$ac_exeext conftest.$ac_ext
3508 LIBS=$ac_check_lib_save_LIBS
3510 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3511 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3512 if test $ac_cv_lib_l_yywrap = yes; then
3520 if test "x$LEX" != "x:"; then
3521 echo "$as_me:$LINENO: checking lex output file root" >&5
3522 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3523 if test "${ac_cv_prog_lex_root+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 # The minimal lex program is just a single line: %%. But some broken lexes
3527 # (Solaris, I think it was) want two %% lines, so accommodate them.
3528 cat >conftest.l <<_ACEOF
3532 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3533 (eval $LEX conftest.l) 2>&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }
3537 if test -f lex.yy.c; then
3538 ac_cv_prog_lex_root=lex.yy
3539 elif test -f lexyy.c; then
3540 ac_cv_prog_lex_root=lexyy
3542 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3543 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3544 { (exit 1); exit 1; }; }
3547 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3548 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3550 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3552 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3553 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3554 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 # POSIX says lex can declare yytext either as a pointer or an array; the
3558 # default is implementation-dependent. Figure out which it is, since
3559 # not all implementations provide the %pointer and %array declarations.
3560 ac_cv_prog_lex_yytext_pointer=no
3561 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3563 LIBS="$LIBS $LEXLIB"
3564 cat >conftest.$ac_ext <<_ACEOF
3565 `cat $LEX_OUTPUT_ROOT.c`
3567 rm -f conftest.$ac_objext conftest$ac_exeext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3569 (eval $ac_link) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest$ac_exeext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 ac_cv_prog_lex_yytext_pointer=yes
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3595 rm -f conftest.err conftest.$ac_objext \
3596 conftest$ac_exeext conftest.$ac_ext
3598 rm -f "${LEX_OUTPUT_ROOT}.c"
3601 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3602 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3603 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3605 cat >>confdefs.h <<\_ACEOF
3606 #define YYTEXT_POINTER 1
3614 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3615 echo "${ECHO_T}$ac_cv_has_flex" >&6
3616 if test "$LEX" != "flex"; then
3617 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3618 echo "$as_me: error: flex not found but required" >&2;}
3619 { (exit 1); exit 1; }; }
3622 echo "$as_me:$LINENO: checking " >&5
3623 echo $ECHO_N "checking ... $ECHO_C" >&6
3624 if test "${ac_cv_has_bison+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 for ac_prog in 'bison -y' byacc
3629 # Extract the first word of "$ac_prog", so it can be a program name with args.
3630 set dummy $ac_prog; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_prog_YACC+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 if test -n "$YACC"; then
3637 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_YACC="$ac_prog"
3647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 YACC=$ac_cv_prog_YACC
3656 if test -n "$YACC"; then
3657 echo "$as_me:$LINENO: result: $YACC" >&5
3658 echo "${ECHO_T}$YACC" >&6
3660 echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3664 test -n "$YACC" && break
3666 test -n "$YACC" || YACC="yacc"
3670 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3671 echo "${ECHO_T}$ac_cv_has_bison" >&6
3672 if test "$YACC" != "bison -y"; then
3673 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3674 echo "$as_me: error: bison not found but required" >&2;}
3675 { (exit 1); exit 1; }; }
3681 # Check whether --enable-shared or --disable-shared was given.
3682 if test "${enable_shared+set}" = set; then
3683 enableval="$enable_shared"
3684 p=${PACKAGE-default}
3686 yes) enable_shared=yes ;;
3687 no) enable_shared=no ;;
3690 # Look at the argument we got. We use all the common list separators.
3691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3692 for pkg in $enableval; do
3694 if test "X$pkg" = "X$p"; then
3705 # Check whether --enable-static or --disable-static was given.
3706 if test "${enable_static+set}" = set; then
3707 enableval="$enable_static"
3708 p=${PACKAGE-default}
3710 yes) enable_static=yes ;;
3711 no) enable_static=no ;;
3714 # Look at the argument we got. We use all the common list separators.
3715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3716 for pkg in $enableval; do
3718 if test "X$pkg" = "X$p"; then
3729 # Check whether --enable-fast-install or --disable-fast-install was given.
3730 if test "${enable_fast_install+set}" = set; then
3731 enableval="$enable_fast_install"
3732 p=${PACKAGE-default}
3734 yes) enable_fast_install=yes ;;
3735 no) enable_fast_install=no ;;
3737 enable_fast_install=no
3738 # Look at the argument we got. We use all the common list separators.
3739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3740 for pkg in $enableval; do
3742 if test "X$pkg" = "X$p"; then
3743 enable_fast_install=yes
3750 enable_fast_install=yes
3753 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3754 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3755 if test "${lt_cv_path_SED+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 # Loop through the user's path and test for sed and gsed.
3759 # Then use that list of sed's as ones to test for truncation.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for lt_ac_prog in sed gsed; do
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3768 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3775 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3776 # along with /bin/sed that truncates output.
3777 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3778 test ! -f $lt_ac_sed && break
3779 cat /dev/null > conftest.in
3781 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3782 # Check for GNU sed and select it if it is found.
3783 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3784 lt_cv_path_SED=$lt_ac_sed
3788 cat conftest.in conftest.in >conftest.tmp
3789 mv conftest.tmp conftest.in
3790 cp conftest.in conftest.nl
3792 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3793 cmp -s conftest.out conftest.nl || break
3794 # 10000 chars as input seems more than enough
3795 test $lt_ac_count -gt 10 && break
3796 lt_ac_count=`expr $lt_ac_count + 1`
3797 if test $lt_ac_count -gt $lt_ac_max; then
3798 lt_ac_max=$lt_ac_count
3799 lt_cv_path_SED=$lt_ac_sed
3807 echo "$as_me:$LINENO: result: $SED" >&5
3808 echo "${ECHO_T}$SED" >&6
3810 echo "$as_me:$LINENO: checking for egrep" >&5
3811 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3812 if test "${ac_cv_prog_egrep+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3816 then ac_cv_prog_egrep='grep -E'
3817 else ac_cv_prog_egrep='egrep'
3820 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3821 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3822 EGREP=$ac_cv_prog_egrep
3826 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3827 if test "${with_gnu_ld+set}" = set; then
3828 withval="$with_gnu_ld"
3829 test "$withval" = no || with_gnu_ld=yes
3834 if test "$GCC" = yes; then
3835 # Check if gcc -print-prog-name=ld gives a path.
3836 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3837 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3840 # gcc leaves a trailing carriage return which upsets mingw
3841 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3843 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3846 # Accept absolute paths.
3848 re_direlt='/[^/][^/]*/\.\./'
3849 # Canonicalize the path of ld
3850 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3851 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3852 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3854 test -z "$LD" && LD="$ac_prog"
3857 # If it fails, then pretend we aren't using GCC.
3861 # If it is relative, then search for the first ld in PATH.
3865 elif test "$with_gnu_ld" = yes; then
3866 echo "$as_me:$LINENO: checking for GNU ld" >&5
3867 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3869 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3870 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3872 if test "${lt_cv_path_LD+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 if test -z "$LD"; then
3876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3877 for ac_dir in $PATH; do
3879 test -z "$ac_dir" && ac_dir=.
3880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3881 lt_cv_path_LD="$ac_dir/$ac_prog"
3882 # Check to see if the program is GNU ld. I'd rather use --version,
3883 # but apparently some GNU ld's only accept -v.
3884 # Break only if it was the GNU/non-GNU ld that we prefer.
3885 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3886 *GNU* | *'with BFD'*)
3887 test "$with_gnu_ld" != no && break
3890 test "$with_gnu_ld" != yes && break
3897 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3902 if test -n "$LD"; then
3903 echo "$as_me:$LINENO: result: $LD" >&5
3904 echo "${ECHO_T}$LD" >&6
3906 echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3909 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3910 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3911 { (exit 1); exit 1; }; }
3912 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3913 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3914 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3918 case `"$LD" -v 2>&1 </dev/null` in
3919 *GNU* | *'with BFD'*)
3920 lt_cv_prog_gnu_ld=yes
3923 lt_cv_prog_gnu_ld=no
3927 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3928 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3929 with_gnu_ld=$lt_cv_prog_gnu_ld
3932 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3933 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3934 if test "${lt_cv_ld_reload_flag+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 lt_cv_ld_reload_flag='-r'
3939 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3940 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3941 reload_flag=$lt_cv_ld_reload_flag
3942 case $reload_flag in
3944 *) reload_flag=" $reload_flag" ;;
3946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3948 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3949 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3950 if test "${lt_cv_path_NM+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 if test -n "$NM"; then
3954 # Let the user override the test.
3957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3958 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3960 test -z "$ac_dir" && ac_dir=.
3961 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3962 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3963 # Check to see if the nm accepts a BSD-compat flag.
3964 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3965 # nm: unknown option "B" ignored
3966 # Tru64's nm complains that /dev/null is an invalid object file
3967 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3968 */dev/null* | *'Invalid file or object type'*)
3969 lt_cv_path_NM="$tmp_nm -B"
3973 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3975 lt_cv_path_NM="$tmp_nm -p"
3979 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3980 continue # so that we can try to find one that supports BSD flags
3987 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3990 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3991 echo "${ECHO_T}$lt_cv_path_NM" >&6
3994 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3995 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3997 if test "$LN_S" = "ln -s"; then
3998 echo "$as_me:$LINENO: result: yes" >&5
3999 echo "${ECHO_T}yes" >&6
4001 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4002 echo "${ECHO_T}no, using $LN_S" >&6
4005 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4006 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4007 if test "${lt_cv_deplibs_check_method+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 lt_cv_file_magic_cmd='$MAGIC_CMD'
4011 lt_cv_file_magic_test_file=
4012 lt_cv_deplibs_check_method='unknown'
4013 # Need to set the preceding variable on all platforms that support
4014 # interlibrary dependencies.
4015 # 'none' -- dependencies not supported.
4016 # `unknown' -- same as none, but documents that we really don't know.
4017 # 'pass_all' -- all dependencies passed with no checks.
4018 # 'test_compile' -- check by making test program.
4019 # 'file_magic [[regex]]' -- check by looking for files in library path
4020 # which responds to the $file_magic_cmd with a given extended regex.
4021 # If you have `file' or equivalent on your system and you're not sure
4022 # whether `pass_all' will *always* work, you probably want this one.
4026 lt_cv_deplibs_check_method=pass_all
4030 lt_cv_deplibs_check_method=pass_all
4034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4035 lt_cv_file_magic_cmd='/usr/bin/file -L'
4036 lt_cv_file_magic_test_file=/shlib/libc.so
4039 cygwin* | mingw* | pw32*)
4040 # win32_libid is a shell function defined in ltmain.sh
4041 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4042 lt_cv_file_magic_cmd='win32_libid'
4045 darwin* | rhapsody*)
4046 # this will be overwritten by pass_all, but leave it in just in case
4047 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4048 lt_cv_file_magic_cmd='/usr/bin/file -L'
4050 rhapsody* | darwin1.[012])
4051 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4054 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4057 lt_cv_deplibs_check_method=pass_all
4061 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4064 # Not sure whether the presence of OpenBSD here was a mistake.
4065 # Let's accept both of them until this is cleared up.
4066 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4067 lt_cv_file_magic_cmd=/usr/bin/file
4068 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4072 lt_cv_deplibs_check_method=pass_all
4077 lt_cv_deplibs_check_method=pass_all
4080 hpux10.20* | hpux11*)
4081 lt_cv_file_magic_cmd=/usr/bin/file
4084 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4085 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4088 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]'
4089 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4093 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4098 irix5* | irix6* | nonstopux*)
4100 irix5* | nonstopux*)
4101 # this will be overridden with pass_all, but let us keep it just in case
4102 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4106 *-32|*"-32 ") libmagic=32-bit;;
4107 *-n32|*"-n32 ") libmagic=N32;;
4108 *-64|*"-64 ") libmagic=64-bit;;
4109 *) libmagic=never-match;;
4111 # this will be overridden with pass_all, but let us keep it just in case
4112 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4115 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4116 lt_cv_deplibs_check_method=pass_all
4119 # This must be Linux ELF.
4122 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4123 lt_cv_deplibs_check_method=pass_all ;;
4125 # glibc up to 2.1.1 does not perform some relocations on ARM
4126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4128 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4132 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4141 lt_cv_file_magic_cmd=/usr/bin/file
4142 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4146 lt_cv_deplibs_check_method=unknown
4150 lt_cv_file_magic_cmd=/usr/bin/file
4151 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4155 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4159 osf3* | osf4* | osf5*)
4160 # this will be overridden with pass_all, but let us keep it just in case
4161 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4162 lt_cv_file_magic_test_file=/shlib/libc.so
4163 lt_cv_deplibs_check_method=pass_all
4167 lt_cv_deplibs_check_method=pass_all
4171 lt_cv_deplibs_check_method=pass_all
4172 lt_cv_file_magic_test_file=/lib/libc.so
4175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4176 case $host_vendor in
4178 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]'
4179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4182 lt_cv_deplibs_check_method=pass_all
4185 lt_cv_file_magic_cmd='/bin/file'
4186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4189 lt_cv_file_magic_cmd='/bin/file'
4190 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4191 lt_cv_file_magic_test_file=/lib/libc.so
4194 lt_cv_deplibs_check_method=pass_all
4199 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4200 lt_cv_deplibs_check_method=pass_all
4205 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4206 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4207 file_magic_cmd=$lt_cv_file_magic_cmd
4208 deplibs_check_method=$lt_cv_deplibs_check_method
4209 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4214 # If no C compiler was specified, use CC.
4217 # Allow CC to be a program name with arguments.
4220 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4221 if test "${enable_libtool_lock+set}" = set; then
4222 enableval="$enable_libtool_lock"
4225 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4227 # Some flags need to be propagated to the compiler or linker for good
4231 # Find out which ABI we are using.
4232 echo 'int i;' > conftest.$ac_ext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234 (eval $ac_compile) 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; then
4238 case `/usr/bin/file conftest.$ac_objext` in
4250 # Find out which ABI we are using.
4251 echo '#line 4251 "configure"' > conftest.$ac_ext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253 (eval $ac_compile) 2>&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; then
4257 if test "$lt_cv_prog_gnu_ld" = yes; then
4258 case `/usr/bin/file conftest.$ac_objext` in
4260 LD="${LD-ld} -melf32bsmip"
4263 LD="${LD-ld} -melf32bmipn32"
4266 LD="${LD-ld} -melf64bmip"
4270 case `/usr/bin/file conftest.$ac_objext` in
4286 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4287 # Find out which ABI we are using.
4288 echo 'int i;' > conftest.$ac_ext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; then
4294 case "`/usr/bin/file conftest.o`" in
4298 LD="${LD-ld} -m elf_i386"
4301 LD="${LD-ld} -m elf32ppclinux"
4304 LD="${LD-ld} -m elf_s390"
4307 LD="${LD-ld} -m elf32_sparc"
4314 LD="${LD-ld} -m elf_x86_64"
4316 ppc*-*linux*|powerpc*-*linux*)
4317 LD="${LD-ld} -m elf64ppc"
4320 LD="${LD-ld} -m elf64_s390"
4323 LD="${LD-ld} -m elf64_sparc"
4333 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4334 SAVE_CFLAGS="$CFLAGS"
4335 CFLAGS="$CFLAGS -belf"
4336 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4337 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4338 if test "${lt_cv_cc_needs_belf+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4362 rm -f conftest.$ac_objext conftest$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364 (eval $ac_link) 2>conftest.er1
4366 grep -v '^ *+' conftest.er1 >conftest.err
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -z "$ac_c_werror_flag"
4372 || test ! -s conftest.err'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest$ac_exeext'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
4384 lt_cv_cc_needs_belf=yes
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 lt_cv_cc_needs_belf=no
4391 rm -f conftest.err conftest.$ac_objext \
4392 conftest$ac_exeext conftest.$ac_ext
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4401 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4402 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4403 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4404 CFLAGS="$SAVE_CFLAGS"
4410 need_locks="$enable_libtool_lock"
4414 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4415 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4416 if test "${ac_cv_header_stdc+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 cat >conftest.$ac_ext <<_ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4438 rm -f conftest.$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>conftest.er1
4442 grep -v '^ *+' conftest.er1 >conftest.err
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -z "$ac_c_werror_flag"
4448 || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_cv_header_stdc=yes
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 ac_cv_header_stdc=no
4467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4469 if test $ac_cv_header_stdc = yes; then
4470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4471 cat >conftest.$ac_ext <<_ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481 $EGREP "memchr" >/dev/null 2>&1; then
4484 ac_cv_header_stdc=no
4490 if test $ac_cv_header_stdc = yes; then
4491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4492 cat >conftest.$ac_ext <<_ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502 $EGREP "free" >/dev/null 2>&1; then
4505 ac_cv_header_stdc=no
4511 if test $ac_cv_header_stdc = yes; then
4512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4513 if test "$cross_compiling" = yes; then
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4523 #if ((' ' & 0x0FF) == 0x020)
4524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4527 # define ISLOWER(c) \
4528 (('a' <= (c) && (c) <= 'i') \
4529 || ('j' <= (c) && (c) <= 'r') \
4530 || ('s' <= (c) && (c) <= 'z'))
4531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4539 for (i = 0; i < 256; i++)
4540 if (XOR (islower (i), ISLOWER (i))
4541 || toupper (i) != TOUPPER (i))
4546 rm -f conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4559 echo "$as_me: program exited with status $ac_status" >&5
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4564 ac_cv_header_stdc=no
4566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4570 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4571 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4572 if test $ac_cv_header_stdc = yes; then
4574 cat >>confdefs.h <<\_ACEOF
4575 #define STDC_HEADERS 1
4580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4591 inttypes.h stdint.h unistd.h
4593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4594 echo "$as_me:$LINENO: checking for $ac_header" >&5
4595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 cat >conftest.$ac_ext <<_ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 $ac_includes_default
4607 #include <$ac_header>
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 eval "$as_ac_Header=yes"
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 eval "$as_ac_Header=no"
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4643 cat >>confdefs.h <<_ACEOF
4644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4653 for ac_header in dlfcn.h
4655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4657 echo "$as_me:$LINENO: checking for $ac_header" >&5
4658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4665 # Is the header compilable?
4666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 #include <$ac_header>
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>conftest.er1
4681 grep -v '^ *+' conftest.er1 >conftest.err
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -z "$ac_c_werror_flag"
4687 || test ! -s conftest.err'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; } &&
4693 { ac_try='test -s conftest.$ac_objext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_header_compiler=yes
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 ac_header_compiler=no
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4708 echo "${ECHO_T}$ac_header_compiler" >&6
4710 # Is the header present?
4711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 #include <$ac_header>
4721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4724 grep -v '^ *+' conftest.er1 >conftest.err
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null; then
4729 if test -s conftest.err; then
4730 ac_cpp_err=$ac_c_preproc_warn_flag
4731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4738 if test -z "$ac_cpp_err"; then
4739 ac_header_preproc=yes
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 ac_header_preproc=no
4746 rm -f conftest.err conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4748 echo "${ECHO_T}$ac_header_preproc" >&6
4750 # So? What about this header?
4751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4757 ac_header_preproc=yes
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4774 ## ----------------------------------- ##
4775 ## Report this to llvmbugs@cs.uiuc.edu ##
4776 ## ----------------------------------- ##
4779 sed "s/^/$as_me: WARNING: /" >&2
4782 echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 eval "$as_ac_Header=\$ac_header_preproc"
4789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4794 cat >>confdefs.h <<_ACEOF
4795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4803 ac_cpp='$CXXCPP $CPPFLAGS'
4804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4807 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4808 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4809 if test -z "$CXXCPP"; then
4810 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 # Double quotes because CXXCPP needs to be expanded
4814 for CXXCPP in "$CXX -E" "/lib/cpp"
4817 for ac_cxx_preproc_warn_flag in '' yes
4819 # Use a header file that comes with gcc, so configuring glibc
4820 # with a fresh cross-compiler works.
4821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 # <limits.h> exists even on freestanding compilers.
4823 # On the NeXT, cc -E runs the code through the compiler's parser,
4824 # not just through cpp. "Syntax error" is here to catch this case.
4825 cat >conftest.$ac_ext <<_ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4832 # include <limits.h>
4834 # include <assert.h>
4838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4841 grep -v '^ *+' conftest.er1 >conftest.err
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null; then
4846 if test -s conftest.err; then
4847 ac_cpp_err=$ac_cxx_preproc_warn_flag
4848 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4855 if test -z "$ac_cpp_err"; then
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 # Broken: fails on valid input.
4864 rm -f conftest.err conftest.$ac_ext
4866 # OK, works on sane cases. Now check whether non-existent headers
4867 # can be detected and how.
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <ac_nonexistent.h>
4876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4879 grep -v '^ *+' conftest.er1 >conftest.err
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev/null; then
4884 if test -s conftest.err; then
4885 ac_cpp_err=$ac_cxx_preproc_warn_flag
4886 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4893 if test -z "$ac_cpp_err"; then
4894 # Broken: success on invalid input.
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4900 # Passes both tests.
4904 rm -f conftest.err conftest.$ac_ext
4907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4908 rm -f conftest.err conftest.$ac_ext
4909 if $ac_preproc_ok; then
4914 ac_cv_prog_CXXCPP=$CXXCPP
4917 CXXCPP=$ac_cv_prog_CXXCPP
4919 ac_cv_prog_CXXCPP=$CXXCPP
4921 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4922 echo "${ECHO_T}$CXXCPP" >&6
4924 for ac_cxx_preproc_warn_flag in '' yes
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
4928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
4930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4939 # include <limits.h>
4941 # include <assert.h>
4945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4948 grep -v '^ *+' conftest.er1 >conftest.err
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } >/dev/null; then
4953 if test -s conftest.err; then
4954 ac_cpp_err=$ac_cxx_preproc_warn_flag
4955 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4962 if test -z "$ac_cpp_err"; then
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4968 # Broken: fails on valid input.
4971 rm -f conftest.err conftest.$ac_ext
4973 # OK, works on sane cases. Now check whether non-existent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 #include <ac_nonexistent.h>
4983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } >/dev/null; then
4991 if test -s conftest.err; then
4992 ac_cpp_err=$ac_cxx_preproc_warn_flag
4993 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5000 if test -z "$ac_cpp_err"; then
5001 # Broken: success on invalid input.
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 # Passes both tests.
5011 rm -f conftest.err conftest.$ac_ext
5014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5015 rm -f conftest.err conftest.$ac_ext
5016 if $ac_preproc_ok; then
5019 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5020 See \`config.log' for more details." >&5
5021 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5022 See \`config.log' for more details." >&2;}
5023 { (exit 1); exit 1; }; }
5027 ac_cpp='$CXXCPP $CPPFLAGS'
5028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5037 if test -n "$ac_tool_prefix"; then
5038 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5042 echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044 if test "${ac_cv_prog_F77+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 if test -n "$F77"; then
5048 ac_cv_prog_F77="$F77" # Let the user override the test.
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 if test -n "$F77"; then
5068 echo "$as_me:$LINENO: result: $F77" >&5
5069 echo "${ECHO_T}$F77" >&6
5071 echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6
5075 test -n "$F77" && break
5078 if test -z "$F77"; then
5080 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5082 # Extract the first word of "$ac_prog", so it can be a program name with args.
5083 set dummy $ac_prog; ac_word=$2
5084 echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 if test -n "$ac_ct_F77"; then
5090 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_ac_ct_F77="$ac_prog"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5109 if test -n "$ac_ct_F77"; then
5110 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5111 echo "${ECHO_T}$ac_ct_F77" >&6
5113 echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5117 test -n "$ac_ct_F77" && break
5124 # Provide some information about the compiler.
5125 echo "$as_me:5125:" \
5126 "checking for Fortran 77 compiler version" >&5
5127 ac_compiler=`set X $ac_compile; echo $2`
5128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5129 (eval $ac_compiler --version </dev/null >&5) 2>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }
5133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5134 (eval $ac_compiler -v </dev/null >&5) 2>&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }
5138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5139 (eval $ac_compiler -V </dev/null >&5) 2>&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }
5145 # If we don't use `.F' as extension, the preprocessor is not run on the
5146 # input file. (Note that this only needs to work for GNU compilers.)
5149 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5150 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5151 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 cat >conftest.$ac_ext <<_ACEOF
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>conftest.er1
5166 grep -v '^ *+' conftest.er1 >conftest.err
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -z "$ac_f77_werror_flag"
5172 || test ! -s conftest.err'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; } &&
5178 { ac_try='test -s conftest.$ac_objext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5192 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5195 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5196 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5198 ac_test_FFLAGS=${FFLAGS+set}
5199 ac_save_FFLAGS=$FFLAGS
5201 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5202 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5203 if test "${ac_cv_prog_f77_g+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 cat >conftest.$ac_ext <<_ACEOF
5212 rm -f conftest.$ac_objext
5213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214 (eval $ac_compile) 2>conftest.er1
5216 grep -v '^ *+' conftest.er1 >conftest.err
5218 cat conftest.err >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } &&
5221 { ac_try='test -z "$ac_f77_werror_flag"
5222 || test ! -s conftest.err'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; } &&
5228 { ac_try='test -s conftest.$ac_objext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_cv_prog_f77_g=yes
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5244 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5245 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5246 if test "$ac_test_FFLAGS" = set; then
5247 FFLAGS=$ac_save_FFLAGS
5248 elif test $ac_cv_prog_f77_g = yes; then
5249 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5255 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5262 G77=`test $ac_compiler_gnu = yes && echo yes`
5264 ac_cpp='$CPP $CPPFLAGS'
5265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5271 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5273 # find the maximum length of command line arguments
5274 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5275 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5276 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 # On DJGPP, this test can blow up pretty badly due to problems in libc
5285 # (any single argument exceeding 2000 bytes causes a buffer overrun
5286 # during glob expansion). Even if it were fixed, the result of this
5287 # check would be larger than it should be.
5288 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5292 # Under GNU Hurd, this test is not required because there is
5293 # no limit to the length of command line arguments.
5294 # Libtool will interpret -1 as no limit whatsoever
5295 lt_cv_sys_max_cmd_len=-1;
5299 # On Win9x/ME, this test blows up -- it succeeds, but takes
5300 # about 5 minutes as the teststring grows exponentially.
5301 # Worse, since 9x/ME are not pre-emptively multitasking,
5302 # you end up with a "frozen" computer, even though with patience
5303 # the test eventually succeeds (with a max line length of 256k).
5304 # Instead, let's just punt: use the minimum linelength reported by
5305 # all of the supported platforms: 8192 (on NT/2K/XP).
5306 lt_cv_sys_max_cmd_len=8192;
5310 # If test is not a shell built-in, we'll probably end up computing a
5311 # maximum length that is only half of the actual maximum length, but
5313 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5314 = "XX$testring") >/dev/null 2>&1 &&
5315 new_result=`expr "X$testring" : ".*" 2>&1` &&
5316 lt_cv_sys_max_cmd_len=$new_result &&
5317 test $i != 17 # 1/2 MB should be enough
5320 testring=$testring$testring
5323 # Add a significant safety factor because C++ compilers can tack on massive
5324 # amounts of additional arguments before passing them to the linker.
5325 # It appears as though 1/2 is a usable value.
5326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5332 if test -n $lt_cv_sys_max_cmd_len ; then
5333 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5334 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5336 echo "$as_me:$LINENO: result: none" >&5
5337 echo "${ECHO_T}none" >&6
5343 # Check for command to grab the raw symbol name followed by C symbol from nm.
5344 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5345 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5346 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 # These are sane defaults that work on at least a few old systems.
5351 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5353 # Character class describing NM global symbol codes.
5354 symcode='[BCDEGRST]'
5356 # Regexp to match symbols that can be accessed directly from C.
5357 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5359 # Transform the above into a raw symbol and a C symbol.
5360 symxfrm='\1 \2\3 \3'
5362 # Transform an extracted symbol line into a proper C declaration
5363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5365 # Transform an extracted symbol line into symbol name and symbol address
5366 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'"
5368 # Define system-specific variables.
5373 cygwin* | mingw* | pw32*)
5374 symcode='[ABCDGISTW]'
5376 hpux*) # Its linker distinguishes data from code symbols
5377 if test "$host_cpu" = ia64; then
5378 symcode='[ABCDEGRST]'
5380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5381 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'"
5384 symcode='[BCDEGRST]'
5387 symcode='[BCDEGQRST]'
5397 # Handle CRLF in mingw tool chain
5401 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5405 # If we're using GNU nm, then use its standard symbol codes.
5406 case `$NM -V 2>&1` in
5407 *GNU* | *'with BFD'*)
5408 symcode='[ABCDGISTW]' ;;
5411 # Try without a prefix undercore, then with it.
5412 for ac_symprfx in "" "_"; do
5414 # Write the raw and C identifiers.
5415 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5417 # Check to see that the pipe works correctly.
5421 cat > conftest.$ac_ext <<EOF
5426 void nm_test_func(){}
5430 int main(){nm_test_var='a';nm_test_func();return(0);}
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; then
5438 # Now try to grab the symbols.
5440 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5441 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && test -s "$nlist"; then
5445 # Try sorting and uniquifying the output.
5446 if sort "$nlist" | uniq > "$nlist"T; then
5447 mv -f "$nlist"T "$nlist"
5452 # Make sure that we snagged all the symbols we need.
5453 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5454 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5455 cat <<EOF > conftest.$ac_ext
5461 # Now generate the symbol file.
5462 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5464 cat <<EOF >> conftest.$ac_ext
5465 #if defined (__STDC__) && __STDC__
5466 # define lt_ptr_t void *
5468 # define lt_ptr_t char *
5472 /* The mapping between symbol names and symbols. */
5477 lt_preloaded_symbols[] =
5480 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5481 cat <<\EOF >> conftest.$ac_ext
5489 # Now try linking the two files.
5490 mv conftest.$ac_objext conftstm.$ac_objext
5491 lt_save_LIBS="$LIBS"
5492 lt_save_CFLAGS="$CFLAGS"
5493 LIBS="conftstm.$ac_objext"
5494 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5496 (eval $ac_link) 2>&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5502 LIBS="$lt_save_LIBS"
5503 CFLAGS="$lt_save_CFLAGS"
5505 echo "cannot find nm_test_func in $nlist" >&5
5508 echo "cannot find nm_test_var in $nlist" >&5
5511 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5514 echo "$progname: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5517 rm -f conftest* conftst*
5519 # Do not use the global_symbol_pipe unless it works.
5520 if test "$pipe_works" = yes; then
5523 lt_cv_sys_global_symbol_pipe=
5529 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5530 lt_cv_sys_global_symbol_to_cdecl=
5532 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5533 echo "$as_me:$LINENO: result: failed" >&5
5534 echo "${ECHO_T}failed" >&6
5536 echo "$as_me:$LINENO: result: ok" >&5
5537 echo "${ECHO_T}ok" >&6
5540 echo "$as_me:$LINENO: checking for objdir" >&5
5541 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5542 if test "${lt_cv_objdir+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 rm -f .libs 2>/dev/null
5546 mkdir .libs 2>/dev/null
5547 if test -d .libs; then
5550 # MS-DOS does not allow filenames that begin with a dot.
5553 rmdir .libs 2>/dev/null
5555 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5556 echo "${ECHO_T}$lt_cv_objdir" >&6
5557 objdir=$lt_cv_objdir
5565 # AIX sometimes has problems with the GCC collect2 program. For some
5566 # reason, if we set the COLLECT_NAMES environment variable, the problems
5567 # vanish in a puff of smoke.
5568 if test "X${COLLECT_NAMES+set}" != Xset; then
5570 export COLLECT_NAMES
5575 # Sed substitution that helps us do robust quoting. It backslashifies
5576 # metacharacters that are still active within double-quoted strings.
5577 Xsed='sed -e s/^X//'
5578 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5580 # Same as above, but do not quote variable references.
5581 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5583 # Sed substitution to delay expansion of an escaped shell variable in a
5584 # double_quote_subst'ed string.
5585 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5587 # Sed substitution to avoid accidental globbing in evaled expressions
5588 no_glob_subst='s/\*/\\\*/g'
5595 can_build_shared=yes
5597 # All known linkers require a `.a' archive for static linking (except M$VC,
5598 # which needs '.lib').
5600 ltmain="$ac_aux_dir/ltmain.sh"
5601 ofile="$default_ofile"
5602 with_gnu_ld="$lt_cv_prog_gnu_ld"
5604 if test -n "$ac_tool_prefix"; then
5605 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5606 set dummy ${ac_tool_prefix}ar; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_prog_AR+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 if test -n "$AR"; then
5613 ac_cv_prog_AR="$AR" # Let the user override the test.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_AR="${ac_tool_prefix}ar"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 if test -n "$AR"; then
5633 echo "$as_me:$LINENO: result: $AR" >&5
5634 echo "${ECHO_T}$AR" >&6
5636 echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5641 if test -z "$ac_cv_prog_AR"; then
5643 # Extract the first word of "ar", so it can be a program name with args.
5644 set dummy ar; ac_word=$2
5645 echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 if test -n "$ac_ct_AR"; then
5651 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_ac_ct_AR="ar"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5670 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5671 if test -n "$ac_ct_AR"; then
5672 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5673 echo "${ECHO_T}$ac_ct_AR" >&6
5675 echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5684 if test -n "$ac_tool_prefix"; then
5685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_RANLIB+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test -n "$RANLIB"; then
5693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 RANLIB=$ac_cv_prog_RANLIB
5712 if test -n "$RANLIB"; then
5713 echo "$as_me:$LINENO: result: $RANLIB" >&5
5714 echo "${ECHO_T}$RANLIB" >&6
5716 echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5721 if test -z "$ac_cv_prog_RANLIB"; then
5722 ac_ct_RANLIB=$RANLIB
5723 # Extract the first word of "ranlib", so it can be a program name with args.
5724 set dummy ranlib; ac_word=$2
5725 echo "$as_me:$LINENO: checking for $ac_word" >&5
5726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 if test -n "$ac_ct_RANLIB"; then
5731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_ac_ct_RANLIB="ranlib"
5741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5751 if test -n "$ac_ct_RANLIB"; then
5752 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5753 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5755 echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5759 RANLIB=$ac_ct_RANLIB
5761 RANLIB="$ac_cv_prog_RANLIB"
5764 if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_STRIP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 if test -n "$STRIP"; then
5773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 STRIP=$ac_cv_prog_STRIP
5792 if test -n "$STRIP"; then
5793 echo "$as_me:$LINENO: result: $STRIP" >&5
5794 echo "${ECHO_T}$STRIP" >&6
5796 echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6
5801 if test -z "$ac_cv_prog_STRIP"; then
5803 # Extract the first word of "strip", so it can be a program name with args.
5804 set dummy strip; ac_word=$2
5805 echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5807 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 if test -n "$ac_ct_STRIP"; then
5811 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_ac_ct_STRIP="strip"
5821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5830 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5831 if test -n "$ac_ct_STRIP"; then
5832 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5833 echo "${ECHO_T}$ac_ct_STRIP" >&6
5835 echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5841 STRIP="$ac_cv_prog_STRIP"
5846 old_CFLAGS="$CFLAGS"
5848 # Set sane defaults for various variables
5849 test -z "$AR" && AR=ar
5850 test -z "$AR_FLAGS" && AR_FLAGS=cru
5851 test -z "$AS" && AS=as
5852 test -z "$CC" && CC=cc
5853 test -z "$LTCC" && LTCC=$CC
5854 test -z "$DLLTOOL" && DLLTOOL=dlltool
5855 test -z "$LD" && LD=ld
5856 test -z "$LN_S" && LN_S="ln -s"
5857 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5858 test -z "$NM" && NM=nm
5859 test -z "$SED" && SED=sed
5860 test -z "$OBJDUMP" && OBJDUMP=objdump
5861 test -z "$RANLIB" && RANLIB=:
5862 test -z "$STRIP" && STRIP=:
5863 test -z "$ac_objext" && ac_objext=o
5865 # Determine commands to create old-style static archives.
5866 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5867 old_postinstall_cmds='chmod 644 $oldlib'
5868 old_postuninstall_cmds=
5870 if test -n "$RANLIB"; then
5873 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5876 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5879 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5882 # Only perform the check for file, if the check method requires it
5883 case $deplibs_check_method in
5885 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5886 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5887 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5896 lt_save_MAGIC_CMD="$MAGIC_CMD"
5897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5899 for ac_dir in $ac_dummy; do
5901 test -z "$ac_dir" && ac_dir=.
5902 if test -f $ac_dir/${ac_tool_prefix}file; then
5903 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5904 if test -n "$file_magic_test_file"; then
5905 case $deplibs_check_method in
5907 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5910 $EGREP "$file_magic_regex" > /dev/null; then
5915 *** Warning: the command libtool uses to detect shared libraries,
5916 *** $file_magic_cmd, produces output that libtool cannot recognize.
5917 *** The result is that libtool may fail to recognize shared libraries
5918 *** as such. This will affect the creation of libtool libraries that
5919 *** depend on shared libraries, but programs linked with such libtool
5920 *** libraries will work regardless of this problem. Nevertheless, you
5921 *** may want to report the problem to your system manager and/or to
5922 *** bug-libtool@gnu.org
5932 MAGIC_CMD="$lt_save_MAGIC_CMD"
5937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5938 if test -n "$MAGIC_CMD"; then
5939 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5940 echo "${ECHO_T}$MAGIC_CMD" >&6
5942 echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5946 if test -z "$lt_cv_path_MAGIC_CMD"; then
5947 if test -n "$ac_tool_prefix"; then
5948 echo "$as_me:$LINENO: checking for file" >&5
5949 echo $ECHO_N "checking for file... $ECHO_C" >&6
5950 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5958 lt_save_MAGIC_CMD="$MAGIC_CMD"
5959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5960 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5961 for ac_dir in $ac_dummy; do
5963 test -z "$ac_dir" && ac_dir=.
5964 if test -f $ac_dir/file; then
5965 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5966 if test -n "$file_magic_test_file"; then
5967 case $deplibs_check_method in
5969 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5971 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5972 $EGREP "$file_magic_regex" > /dev/null; then
5977 *** Warning: the command libtool uses to detect shared libraries,
5978 *** $file_magic_cmd, produces output that libtool cannot recognize.
5979 *** The result is that libtool may fail to recognize shared libraries
5980 *** as such. This will affect the creation of libtool libraries that
5981 *** depend on shared libraries, but programs linked with such libtool
5982 *** libraries will work regardless of this problem. Nevertheless, you
5983 *** may want to report the problem to your system manager and/or to
5984 *** bug-libtool@gnu.org
5994 MAGIC_CMD="$lt_save_MAGIC_CMD"
5999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6000 if test -n "$MAGIC_CMD"; then
6001 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6002 echo "${ECHO_T}$MAGIC_CMD" >&6
6004 echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6020 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6021 if test "${enable_libtool_lock+set}" = set; then
6022 enableval="$enable_libtool_lock"
6025 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6028 # Check whether --with-pic or --without-pic was given.
6029 if test "${with_pic+set}" = set; then
6035 test -z "$pic_mode" && pic_mode=default
6037 # Use C for the default configuration in the libtool script
6041 ac_cpp='$CPP $CPPFLAGS'
6042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047 # Source file extension for C test sources.
6050 # Object file extension for compiled C test sources.
6054 # Code to be used in simple compile tests
6055 lt_simple_compile_test_code="int some_variable = 0;\n"
6057 # Code to be used in simple link tests
6058 lt_simple_link_test_code='int main(){return(0);}\n'
6061 # If no C compiler was specified, use CC.
6064 # Allow CC to be a program name with arguments.
6069 # Check for any special shared library compilation flags.
6072 if test "$GCC" = no; then
6075 lt_prog_cc_shlib='-belf'
6079 if test -n "$lt_prog_cc_shlib"; then
6080 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6081 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6082 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6084 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6085 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6086 lt_cv_prog_cc_can_build_shared=no
6092 # Check to make sure the static flag actually works.
6094 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6095 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6096 if test "${lt_prog_compiler_static_works+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 lt_prog_compiler_static_works=no
6100 save_LDFLAGS="$LDFLAGS"
6101 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6102 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6104 # The compiler can only warn and ignore the option if not recognized
6105 # So say no if there are warnings
6106 if test -s conftest.err; then
6107 # Append any errors to the config.log.
6108 cat conftest.err 1>&5
6110 lt_prog_compiler_static_works=yes
6114 LDFLAGS="$save_LDFLAGS"
6117 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6118 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6120 if test x"$lt_prog_compiler_static_works" = xyes; then
6123 lt_prog_compiler_static=
6129 ## There is no encapsulation within the following macros, do not change
6130 ## the running order or otherwise move them around unless you know exactly
6131 ## what you are doing...
6133 lt_prog_compiler_no_builtin_flag=
6135 if test "$GCC" = yes; then
6136 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6138 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6139 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6140 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 lt_cv_prog_compiler_rtti_exceptions=no
6144 ac_outfile=conftest.$ac_objext
6145 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6146 lt_compiler_flag="-fno-rtti -fno-exceptions"
6147 # Insert the option either (1) after the last *FLAGS variable, or
6148 # (2) before a word containing "conftest.", or (3) at the end.
6149 # Note that $ac_compile itself does not contain backslashes and begins
6150 # with a dollar sign (not a hyphen), so the echo should work correctly.
6151 # The option is referenced via a variable to avoid confusing sed.
6152 lt_compile=`echo "$ac_compile" | $SED \
6153 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6155 -e 's:$: $lt_compiler_flag:'`
6156 (eval echo "\"\$as_me:6156: $lt_compile\"" >&5)
6157 (eval "$lt_compile" 2>conftest.err)
6159 cat conftest.err >&5
6160 echo "$as_me:6160: \$? = $ac_status" >&5
6161 if (exit $ac_status) && test -s "$ac_outfile"; then
6162 # The compiler can only warn and ignore the option if not recognized
6163 # So say no if there are warnings
6164 if test ! -s conftest.err; then
6165 lt_cv_prog_compiler_rtti_exceptions=yes
6171 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6172 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6174 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6175 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6182 lt_prog_compiler_wl=
6183 lt_prog_compiler_pic=
6184 lt_prog_compiler_static=
6186 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6187 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6189 if test "$GCC" = yes; then
6190 lt_prog_compiler_wl='-Wl,'
6191 lt_prog_compiler_static='-static'
6195 # All AIX code is PIC.
6196 if test "$host_cpu" = ia64; then
6197 # AIX 5 now supports IA64 processor
6198 lt_prog_compiler_static='-Bstatic'
6203 # FIXME: we need at least 68020 code to build shared libraries, but
6204 # adding the `-m68020' flag to GCC prevents building anything better,
6206 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6209 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6210 # PIC is the default for these OSes.
6213 mingw* | pw32* | os2*)
6214 # This hack is so that the source file can tell whether it is being
6215 # built for inclusion in a dll (and should export symbols for example).
6216 lt_prog_compiler_pic='-DDLL_EXPORT'
6219 darwin* | rhapsody*)
6220 # PIC is the default on this platform
6221 # Common symbols not allowed in MH_DYLIB files
6222 lt_prog_compiler_pic='-fno-common'
6226 # Just because we use GCC doesn't mean we suddenly get shared libraries
6227 # on systems that don't support them.
6228 lt_prog_compiler_can_build_shared=no
6233 if test -d /usr/nec; then
6234 lt_prog_compiler_pic=-Kconform_pic
6239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6246 lt_prog_compiler_pic='-fPIC'
6252 lt_prog_compiler_pic='-fPIC'
6256 # PORTME Check for flag to pass linker flags through the system compiler.
6259 lt_prog_compiler_wl='-Wl,'
6260 if test "$host_cpu" = ia64; then
6261 # AIX 5 now supports IA64 processor
6262 lt_prog_compiler_static='-Bstatic'
6264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6268 mingw* | pw32* | os2*)
6269 # This hack is so that the source file can tell whether it is being
6270 # built for inclusion in a dll (and should export symbols for example).
6271 lt_prog_compiler_pic='-DDLL_EXPORT'
6274 hpux9* | hpux10* | hpux11*)
6275 lt_prog_compiler_wl='-Wl,'
6276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6283 lt_prog_compiler_pic='+Z'
6286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6287 lt_prog_compiler_static='${wl}-a ${wl}archive'
6290 irix5* | irix6* | nonstopux*)
6291 lt_prog_compiler_wl='-Wl,'
6292 # PIC (with -KPIC) is the default.
6293 lt_prog_compiler_static='-non_shared'
6297 lt_prog_compiler_pic='-KPIC'
6298 lt_prog_compiler_static='-Bstatic'
6304 lt_prog_compiler_wl='-Wl,'
6305 lt_prog_compiler_pic='-KPIC'
6306 lt_prog_compiler_static='-static'
6309 lt_prog_compiler_wl='-Wl,'
6310 # All Alpha code is PIC.
6311 lt_prog_compiler_static='-non_shared'
6316 osf3* | osf4* | osf5*)
6317 lt_prog_compiler_wl='-Wl,'
6318 # All OSF/1 code is PIC.
6319 lt_prog_compiler_static='-non_shared'
6323 lt_prog_compiler_pic='-Kpic'
6324 lt_prog_compiler_static='-dn'
6328 lt_prog_compiler_wl='-Wl,'
6329 lt_prog_compiler_pic='-KPIC'
6330 lt_prog_compiler_static='-Bstatic'
6334 lt_prog_compiler_wl='-Qoption ld '
6335 lt_prog_compiler_pic='-PIC'
6336 lt_prog_compiler_static='-Bstatic'
6339 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6340 lt_prog_compiler_wl='-Wl,'
6341 lt_prog_compiler_pic='-KPIC'
6342 lt_prog_compiler_static='-Bstatic'
6346 if test -d /usr/nec ;then
6347 lt_prog_compiler_pic='-Kconform_pic'
6348 lt_prog_compiler_static='-Bstatic'
6353 lt_prog_compiler_pic='-pic'
6354 lt_prog_compiler_static='-Bstatic'
6358 lt_prog_compiler_can_build_shared=no
6363 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6364 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6367 # Check to make sure the PIC flag actually works.
6369 if test -n "$lt_prog_compiler_pic"; then
6370 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6371 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6372 if test "${lt_prog_compiler_pic_works+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 lt_prog_compiler_pic_works=no
6376 ac_outfile=conftest.$ac_objext
6377 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6378 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6379 # Insert the option either (1) after the last *FLAGS variable, or
6380 # (2) before a word containing "conftest.", or (3) at the end.
6381 # Note that $ac_compile itself does not contain backslashes and begins
6382 # with a dollar sign (not a hyphen), so the echo should work correctly.
6383 # The option is referenced via a variable to avoid confusing sed.
6384 lt_compile=`echo "$ac_compile" | $SED \
6385 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6387 -e 's:$: $lt_compiler_flag:'`
6388 (eval echo "\"\$as_me:6388: $lt_compile\"" >&5)
6389 (eval "$lt_compile" 2>conftest.err)
6391 cat conftest.err >&5
6392 echo "$as_me:6392: \$? = $ac_status" >&5
6393 if (exit $ac_status) && test -s "$ac_outfile"; then
6394 # The compiler can only warn and ignore the option if not recognized
6395 # So say no if there are warnings
6396 if test ! -s conftest.err; then
6397 lt_prog_compiler_pic_works=yes
6403 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6404 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6406 if test x"$lt_prog_compiler_pic_works" = xyes; then
6407 case $lt_prog_compiler_pic in
6409 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6412 lt_prog_compiler_pic=
6413 lt_prog_compiler_can_build_shared=no
6418 # For platforms which do not support PIC, -DPIC is meaningless:
6420 lt_prog_compiler_pic=
6423 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6427 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6428 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6429 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 lt_cv_prog_compiler_c_o=no
6433 $rm -r conftest 2>/dev/null
6437 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6439 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6440 # that will create temporary files in the current directory regardless of
6441 # the output directory. Thus, making CWD read-only will cause this test
6442 # to fail, enabling locking or at least warning the user not to do parallel
6446 lt_compiler_flag="-o out/conftest2.$ac_objext"
6447 # Insert the option either (1) after the last *FLAGS variable, or
6448 # (2) before a word containing "conftest.", or (3) at the end.
6449 # Note that $ac_compile itself does not contain backslashes and begins
6450 # with a dollar sign (not a hyphen), so the echo should work correctly.
6451 lt_compile=`echo "$ac_compile" | $SED \
6452 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6454 -e 's:$: $lt_compiler_flag:'`
6455 (eval echo "\"\$as_me:6455: $lt_compile\"" >&5)
6456 (eval "$lt_compile" 2>out/conftest.err)
6458 cat out/conftest.err >&5
6459 echo "$as_me:6459: \$? = $ac_status" >&5
6460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6462 # The compiler can only warn and ignore the option if not recognized
6463 # So say no if there are warnings
6464 if test ! -s out/conftest.err; then
6465 lt_cv_prog_compiler_c_o=yes
6476 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6477 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6480 hard_links="nottested"
6481 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6482 # do not overwrite the value of need_locks provided by the user
6483 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6484 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6489 ln conftest.a conftest.b 2>&5 || hard_links=no
6490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6491 echo "$as_me:$LINENO: result: $hard_links" >&5
6492 echo "${ECHO_T}$hard_links" >&6
6493 if test "$hard_links" = no; then
6494 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6495 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6502 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6503 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6506 allow_undefined_flag=
6507 enable_shared_with_static_runtimes=no
6509 archive_expsym_cmds=
6510 old_archive_From_new_cmds=
6511 old_archive_from_expsyms_cmds=
6512 export_dynamic_flag_spec=
6513 whole_archive_flag_spec=
6514 thread_safe_flag_spec=
6515 hardcode_libdir_flag_spec=
6516 hardcode_libdir_flag_spec_ld=
6517 hardcode_libdir_separator=
6520 hardcode_shlibpath_var=unsupported
6521 link_all_deplibs=unknown
6522 hardcode_automatic=no
6525 always_export_symbols=no
6526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6527 # include_expsyms should be a list of space-separated symbols to be *always*
6528 # included in the symbol list
6530 # exclude_expsyms can be an extended regexp of symbols to exclude
6531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6533 # as well as any symbol that contains `d'.
6534 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6536 # platforms (ab)use it in PIC code, but their linkers get confused if
6537 # the symbol is explicitly referenced. Since portable code cannot
6538 # rely on this symbol name, it's probably fine to never include it in
6539 # preloaded symbol tables.
6540 extract_expsyms_cmds=
6543 cygwin* | mingw* | pw32*)
6544 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6545 # When not using gcc, we currently assume that we are using
6546 # Microsoft Visual C++.
6547 if test "$GCC" != yes; then
6557 if test "$with_gnu_ld" = yes; then
6558 # If archive_cmds runs LD, not CC, wlarc should be empty
6561 # See if GNU ld supports shared libraries.
6563 aix3* | aix4* | aix5*)
6564 # On AIX/PPC, the GNU linker is very broken
6565 if test "$host_cpu" != ia64; then
6569 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6570 *** to be unable to reliably create shared libraries on AIX.
6571 *** Therefore, libtool is disabling shared libraries support. If you
6572 *** really care for shared libraries, you may want to modify your PATH
6573 *** so that a non-GNU linker is found, and then restart.
6580 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)'
6581 hardcode_libdir_flag_spec='-L$libdir'
6582 hardcode_minus_L=yes
6584 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6585 # that the semantics of dynamic libraries on AmigaOS, at least up
6586 # to version 4, is to share data among multiple programs linked
6587 # with the same dynamic library. Since this doesn't match the
6588 # behavior of shared libraries on other platforms, we can't use
6594 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6595 allow_undefined_flag=unsupported
6596 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6597 # support --undefined. This deserves some investigation. FIXME
6598 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6604 cygwin* | mingw* | pw32*)
6605 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6606 # as there is no search path for DLLs.
6607 hardcode_libdir_flag_spec='-L$libdir'
6608 allow_undefined_flag=unsupported
6609 always_export_symbols=no
6610 enable_shared_with_static_runtimes=yes
6611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6613 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6615 # If the export-symbols file already is a .def file (1st line
6616 # is EXPORTS), use it as is; otherwise, prepend...
6617 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6618 cp $export_symbols $output_objdir/$soname.def;
6620 echo EXPORTS > $output_objdir/$soname.def;
6621 cat $export_symbols >> $output_objdir/$soname.def;
6623 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6631 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6640 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6645 *** create shared libraries on Solaris systems. Therefore, libtool
6646 *** is disabling shared libraries support. We urge you to upgrade GNU
6647 *** binutils to release 2.9.1 or newer. Another option is to modify
6648 *** your PATH or compiler configuration so that the native linker is
6649 *** used, and then restart.
6652 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6661 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6664 hardcode_shlibpath_var=no
6668 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6677 if test "$ld_shlibs" = yes; then
6678 runpath_var=LD_RUN_PATH
6679 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6680 export_dynamic_flag_spec='${wl}--export-dynamic'
6681 # ancient GNU ld didn't support --whole-archive et. al.
6682 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6683 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6685 whole_archive_flag_spec=
6689 # PORTME fill in a description of your system's linker (not GNU ld)
6692 allow_undefined_flag=unsupported
6693 always_export_symbols=yes
6694 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'
6695 # Note: this linker hardcodes the directories in LIBPATH if there
6696 # are no directories specified by -L.
6697 hardcode_minus_L=yes
6698 if test "$GCC" = yes && test -z "$link_static_flag"; then
6699 # Neither direct hardcoding nor static linking is supported with a
6701 hardcode_direct=unsupported
6706 if test "$host_cpu" = ia64; then
6707 # On IA64, the linker does run time linking by default, so we don't
6708 # have to do anything special.
6709 aix_use_runtimelinking=no
6710 exp_sym_flag='-Bexport'
6713 # If we're using GNU nm, then we don't want the "-C" option.
6714 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6715 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6716 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'
6718 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'
6720 aix_use_runtimelinking=no
6722 # Test if we are trying to use run time linking or normal
6723 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6724 # need to do runtime linking.
6725 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6726 for ld_flag in $LDFLAGS; do
6727 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6728 aix_use_runtimelinking=yes
6734 exp_sym_flag='-bexport'
6735 no_entry_flag='-bnoentry'
6738 # When large executables or shared objects are built, AIX ld can
6739 # have problems creating the table of contents. If linking a library
6740 # or program results in "error TOC overflow" add -mminimal-toc to
6741 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6742 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6746 hardcode_libdir_separator=':'
6747 link_all_deplibs=yes
6749 if test "$GCC" = yes; then
6750 case $host_os in aix4.012|aix4.012.*)
6751 # We only want to do this on AIX 4.2 and lower, the check
6752 # below for broken collect2 doesn't work under 4.3+
6753 collect2name=`${CC} -print-prog-name=collect2`
6754 if test -f "$collect2name" && \
6755 strings "$collect2name" | grep resolve_lib_name >/dev/null
6757 # We have reworked collect2
6760 # We have old collect2
6761 hardcode_direct=unsupported
6762 # It fails to find uninstalled libraries when the uninstalled
6763 # path is not listed in the libpath. Setting hardcode_minus_L
6764 # to unsupported forces relinking
6765 hardcode_minus_L=yes
6766 hardcode_libdir_flag_spec='-L$libdir'
6767 hardcode_libdir_separator=
6770 shared_flag='-shared'
6773 if test "$host_cpu" = ia64; then
6774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6775 # chokes on -Wl,-G. The following line is correct:
6778 if test "$aix_use_runtimelinking" = yes; then
6779 shared_flag='${wl}-G'
6781 shared_flag='${wl}-bM:SRE'
6786 # It seems that -bexpall does not export symbols beginning with
6787 # underscore (_), so it is better to generate a list of symbols to export.
6788 always_export_symbols=yes
6789 if test "$aix_use_runtimelinking" = yes; then
6790 # Warning - without using the other runtime loading flags (-brtl),
6791 # -berok will link without error, but may produce a broken library.
6792 allow_undefined_flag='-berok'
6793 # Determine the default libpath from the value encoded in an empty executable.
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811 (eval $ac_link) 2>conftest.er1
6813 grep -v '^ *+' conftest.er1 >conftest.err
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try='test -z "$ac_c_werror_flag"
6819 || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try='test -s conftest$ac_exeext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6834 # Check for a 64-bit object if we didn't find anything.
6835 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; }
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6842 rm -f conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
6844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6847 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"
6849 if test "$host_cpu" = ia64; then
6850 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6851 allow_undefined_flag="-z nodefs"
6852 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"
6854 # Determine the default libpath from the value encoded in an empty executable.
6855 cat >conftest.$ac_ext <<_ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6870 rm -f conftest.$ac_objext conftest$ac_exeext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872 (eval $ac_link) 2>conftest.er1
6874 grep -v '^ *+' conftest.er1 >conftest.err
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -z "$ac_c_werror_flag"
6880 || test ! -s conftest.err'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; } &&
6886 { ac_try='test -s conftest$ac_exeext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6895 # Check for a 64-bit object if we didn't find anything.
6896 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; }
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6903 rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6908 # Warning - without using the other run time loading flags,
6909 # -berok will link without error, but may produce a broken library.
6910 no_undefined_flag=' ${wl}-bernotok'
6911 allow_undefined_flag=' ${wl}-berok'
6912 # -bexpall does not export symbols beginning with underscore (_)
6913 always_export_symbols=yes
6914 # Exported symbols can be pulled into shared objects from archives
6915 whole_archive_flag_spec=' '
6916 archive_cmds_need_lc=yes
6917 # This is similar to how AIX traditionally builds it's shared libraries.
6918 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'
6924 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)'
6925 hardcode_libdir_flag_spec='-L$libdir'
6926 hardcode_minus_L=yes
6927 # see comment about different semantics on the GNU ld section
6932 export_dynamic_flag_spec=-rdynamic
6935 cygwin* | mingw* | pw32*)
6936 # When not using gcc, we currently assume that we are using
6937 # Microsoft Visual C++.
6938 # hardcode_libdir_flag_spec is actually meaningless, as there is
6939 # no search path for DLLs.
6940 hardcode_libdir_flag_spec=' '
6941 allow_undefined_flag=unsupported
6942 # Tell ltmain to make .lib files, not .a files.
6944 # Tell ltmain to make .dll files, not .so files.
6946 # FIXME: Setting linknames here is a bad hack.
6947 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6948 # The linker will automatically build a .lib file if we build a DLL.
6949 old_archive_From_new_cmds='true'
6950 # FIXME: Should let the user specify the lib program.
6951 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6952 fix_srcfile_path='`cygpath -w "$srcfile"`'
6953 enable_shared_with_static_runtimes=yes
6956 darwin* | rhapsody*)
6957 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6958 archive_cmds_need_lc=no
6960 rhapsody* | darwin1.[012])
6961 allow_undefined_flag='-undefined suppress'
6964 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6967 # FIXME: Relying on posixy $() will cause problems for
6968 # cross-compilation, but unfortunately the echo tests do not
6969 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6970 # `"' quotes if we put them in here... so don't!
6971 lt_int_apple_cc_single_mod=no
6972 output_verbose_link_cmd='echo'
6973 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6974 lt_int_apple_cc_single_mod=yes
6976 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6977 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6979 archive_cmds='$CC -r ${wl}-bind_at_load -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'
6981 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6982 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6983 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6984 archive_expsym_cmds='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}'
6986 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6988 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6990 hardcode_automatic=yes
6991 hardcode_shlibpath_var=unsupported
6992 whole_archive_flag_spec='-all_load $convenience'
6993 link_all_deplibs=yes
6998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6999 hardcode_libdir_flag_spec='-L$libdir'
7000 hardcode_shlibpath_var=no
7007 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7008 # support. Future versions do this automatically, but an explicit c++rt0.o
7009 # does not break anything, and helps significantly (at the cost of a little
7012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7013 hardcode_libdir_flag_spec='-R$libdir'
7015 hardcode_shlibpath_var=no
7018 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7020 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7022 hardcode_minus_L=yes
7023 hardcode_shlibpath_var=no
7026 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7028 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7029 hardcode_libdir_flag_spec='-R$libdir'
7031 hardcode_shlibpath_var=no
7035 if test "$GCC" = yes; then
7036 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'
7038 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'
7040 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7041 hardcode_libdir_separator=:
7044 # hardcode_minus_L: Not really in the search PATH,
7045 # but as the default location of the library.
7046 hardcode_minus_L=yes
7047 export_dynamic_flag_spec='${wl}-E'
7051 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7054 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7057 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7063 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7066 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7070 if test "$with_gnu_ld" = no; then
7073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7074 hardcode_libdir_flag_spec_ld='+b $libdir'
7075 hardcode_libdir_separator=:
7077 hardcode_shlibpath_var=no
7080 hardcode_libdir_flag_spec='-L$libdir'
7082 hardcode_shlibpath_var=no
7084 # hardcode_minus_L: Not really in the search PATH,
7085 # but as the default location of the library.
7086 hardcode_minus_L=yes
7089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7090 hardcode_libdir_separator=:
7092 export_dynamic_flag_spec='${wl}-E'
7094 # hardcode_minus_L: Not really in the search PATH,
7095 # but as the default location of the library.
7096 hardcode_minus_L=yes
7102 irix5* | irix6* | nonstopux*)
7103 if test "$GCC" = yes; then
7104 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'
7106 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'
7107 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7110 hardcode_libdir_separator=:
7111 link_all_deplibs=yes
7115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7116 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7118 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7120 hardcode_libdir_flag_spec='-R$libdir'
7122 hardcode_shlibpath_var=no
7126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7129 hardcode_libdir_separator=:
7130 hardcode_shlibpath_var=no
7135 hardcode_shlibpath_var=no
7136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7139 export_dynamic_flag_spec='${wl}-E'
7142 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7144 hardcode_libdir_flag_spec='-R$libdir'
7147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7148 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7155 hardcode_libdir_flag_spec='-L$libdir'
7156 hardcode_minus_L=yes
7157 allow_undefined_flag=unsupported
7158 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'
7159 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7163 if test "$GCC" = yes; then
7164 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7165 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'
7167 allow_undefined_flag=' -expect_unresolved \*'
7168 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'
7170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7171 hardcode_libdir_separator=:
7174 osf4* | osf5*) # as osf3* with the addition of -msym flag
7175 if test "$GCC" = yes; then
7176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7177 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'
7178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7180 allow_undefined_flag=' -expect_unresolved \*'
7181 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'
7182 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7183 $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'
7185 # Both c and cxx compiler support -rpath directly
7186 hardcode_libdir_flag_spec='-rpath $libdir'
7188 hardcode_libdir_separator=:
7192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7193 hardcode_shlibpath_var=no
7194 export_dynamic_flag_spec='${wl}-Bexport'
7195 runpath_var=LD_RUN_PATH
7196 hardcode_runpath_var=yes
7200 no_undefined_flag=' -z text'
7201 if test "$GCC" = yes; then
7202 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7203 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7204 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7206 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7207 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7208 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7210 hardcode_libdir_flag_spec='-R$libdir'
7211 hardcode_shlibpath_var=no
7213 solaris2.[0-5] | solaris2.[0-5].*) ;;
7214 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7215 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7217 link_all_deplibs=yes
7221 if test "x$host_vendor" = xsequent; then
7222 # Use $CC to link under sequent, because it throws in some extra .o
7223 # files that make .init and .fini sections work.
7224 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7226 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7228 hardcode_libdir_flag_spec='-L$libdir'
7230 hardcode_minus_L=yes
7231 hardcode_shlibpath_var=no
7235 case $host_vendor in
7237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7238 hardcode_direct=yes # is this really true???
7241 ## LD is ld it makes a PLAMLIB
7242 ## CC just makes a GrossModule.
7243 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7244 reload_cmds='$CC -r -o $output$reload_objs'
7248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7249 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7252 runpath_var='LD_RUN_PATH'
7253 hardcode_shlibpath_var=no
7257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7258 hardcode_shlibpath_var=no
7259 export_dynamic_flag_spec='-Bexport'
7263 if test -d /usr/nec; then
7264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7265 hardcode_shlibpath_var=no
7266 runpath_var=LD_RUN_PATH
7267 hardcode_runpath_var=yes
7273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7276 hardcode_shlibpath_var=no
7277 hardcode_runpath_var=yes
7278 runpath_var=LD_RUN_PATH
7281 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7282 no_undefined_flag='${wl}-z ${wl}text'
7283 if test "$GCC" = yes; then
7284 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7286 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7288 runpath_var='LD_RUN_PATH'
7289 hardcode_shlibpath_var=no
7293 no_undefined_flag=' -z text'
7294 # $CC -shared without GNU ld will not create a library from C++
7295 # object files and a static libstdc++, better avoid it by now
7296 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7298 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7299 hardcode_libdir_flag_spec=
7300 hardcode_shlibpath_var=no
7301 runpath_var='LD_RUN_PATH'
7305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306 hardcode_libdir_flag_spec='-L$libdir'
7307 hardcode_shlibpath_var=no
7316 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7317 echo "${ECHO_T}$ld_shlibs" >&6
7318 test "$ld_shlibs" = no && can_build_shared=no
7320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7321 if test "$GCC" = yes; then
7322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7326 # Do we need to explicitly link libc?
7328 case "x$archive_cmds_need_lc" in
7330 # Assume -lc should be added
7331 archive_cmds_need_lc=yes
7333 if test "$enable_shared" = yes && test "$GCC" = yes; then
7334 case $archive_cmds in
7336 # FIXME: we may have to deal with multi-command sequences.
7339 # Test whether the compiler implicitly links with -lc since on some
7340 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7341 # to ld, don't add -lc before -lgcc.
7342 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7343 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } 2>conftest.err; then
7354 libobjs=conftest.$ac_objext
7356 wl=$lt_prog_compiler_wl
7362 lt_save_allow_undefined_flag=$allow_undefined_flag
7363 allow_undefined_flag=
7364 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7365 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }
7370 archive_cmds_need_lc=no
7372 archive_cmds_need_lc=yes
7374 allow_undefined_flag=$lt_save_allow_undefined_flag
7376 cat conftest.err 1>&5
7379 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7380 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7387 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7388 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7390 if test -n "$hardcode_libdir_flag_spec" || \
7391 test -n "$runpath_var " || \
7392 test "X$hardcode_automatic"="Xyes" ; then
7394 # We can hardcode non-existant directories.
7395 if test "$hardcode_direct" != no &&
7396 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7397 # have to relink, otherwise we might link with an installed library
7398 # when we should be linking with a yet-to-be-installed one
7399 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7400 test "$hardcode_minus_L" != no; then
7401 # Linking always hardcodes the temporary library directory.
7402 hardcode_action=relink
7404 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7405 hardcode_action=immediate
7408 # We cannot hardcode anything, or else we can only hardcode existing
7410 hardcode_action=unsupported
7412 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7413 echo "${ECHO_T}$hardcode_action" >&6
7415 if test "$hardcode_action" = relink; then
7416 # Fast installation is not supported
7417 enable_fast_install=no
7418 elif test "$shlibpath_overrides_runpath" = yes ||
7419 test "$enable_shared" = no; then
7420 # Fast installation is not necessary
7421 enable_fast_install=needless
7426 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7427 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7428 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7429 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7430 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7431 echo "$as_me:$LINENO: result: yes" >&5
7432 echo "${ECHO_T}yes" >&6
7434 # FIXME - insert some real tests, host_os isn't really good enough
7437 if test -n "$STRIP" ; then
7438 striplib="$STRIP -x"
7439 echo "$as_me:$LINENO: result: yes" >&5
7440 echo "${ECHO_T}yes" >&6
7442 echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6
7447 echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6
7453 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7454 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7456 libname_spec='lib$name'
7464 shlibpath_overrides_runpath=unknown
7466 dynamic_linker="$host_os ld.so"
7467 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7468 if test "$GCC" = yes; then
7469 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7470 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7471 # if the path contains ";" then we assume it to be the separator
7472 # otherwise default to the standard path separator (i.e. ":") - it is
7473 # assumed that no part of a normal pathname contains ";" but that should
7474 # okay in the real world where ";" in dirpaths is itself problematic.
7475 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7480 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7482 need_lib_prefix=unknown
7483 hardcode_into_libs=no
7485 # when you set need_version to no, make sure it does not cause -set_version
7486 # flags to be left without arguments
7487 need_version=unknown
7492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7493 shlibpath_var=LIBPATH
7495 # AIX 3 has no versioning support, so we append a major version to the name.
7496 soname_spec='${libname}${release}${shared_ext}$major'
7503 hardcode_into_libs=yes
7504 if test "$host_cpu" = ia64; then
7505 # AIX 5 supports IA64
7506 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7507 shlibpath_var=LD_LIBRARY_PATH
7509 # With GCC up to 2.95.x, collect2 would create an import file
7510 # for dependence libraries. The import file would start with
7511 # the line `#! .'. This would cause the generated library to
7512 # depend on `.', always an invalid library. This was fixed in
7513 # development snapshots of GCC prior to 3.0.
7515 aix4 | aix4.[01] | aix4.[01].*)
7516 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7518 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7525 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7526 # soname into executable. Probably we can add versioning support to
7527 # collect2, so additional links can be useful in future.
7528 if test "$aix_use_runtimelinking" = yes; then
7529 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7530 # instead of lib<name>.a to let people know that these are not
7531 # typical AIX shared libraries.
7532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7534 # We preserve .a as extension for shared libraries through AIX4.2
7535 # and later when we are not doing run time linking.
7536 library_names_spec='${libname}${release}.a $libname.a'
7537 soname_spec='${libname}${release}${shared_ext}$major'
7539 shlibpath_var=LIBPATH
7544 library_names_spec='$libname.ixlibrary $libname.a'
7545 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7546 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'
7550 library_names_spec='${libname}${shared_ext}'
7551 dynamic_linker="$host_os ld.so"
7552 shlibpath_var=LIBRARY_PATH
7558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7559 soname_spec='${libname}${release}${shared_ext}$major'
7560 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7561 shlibpath_var=LD_LIBRARY_PATH
7562 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7563 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7564 # the default ld.so.conf also contains /usr/contrib/lib and
7565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7566 # libtool to hard-code these into programs
7569 cygwin* | mingw* | pw32*)
7570 version_type=windows
7575 case $GCC,$host_os in
7576 yes,cygwin* | yes,mingw* | yes,pw32*)
7577 library_names_spec='$libname.dll.a'
7578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7579 postinstall_cmds='base_file=`basename \${file}`~
7580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7581 dldir=$destdir/`dirname \$dlpath`~
7582 test -d \$dldir || mkdir -p \$dldir~
7583 $install_prog $dir/$dlname \$dldir/$dlname'
7584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7585 dlpath=$dir/\$dldll~
7587 shlibpath_overrides_runpath=yes
7591 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7592 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7593 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7596 # MinGW DLLs use traditional 'lib' prefix
7597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7598 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7599 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7600 # It is most probably a Windows format PATH printed by
7601 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7602 # path with ; separators, and with drive letters. We can handle the
7603 # drive letters (cygwin fileutils understands them), so leave them,
7604 # especially as we might pass files found there to a mingw objdump,
7605 # which wouldn't understand a cygwinified path. Ahh.
7606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7612 # pw32 DLLs use 'pw' prefix rather than 'lib'
7613 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7619 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7622 dynamic_linker='Win32 ld.exe'
7623 # FIXME: first we should search . and the directory the executable is in
7627 darwin* | rhapsody*)
7628 dynamic_linker="$host_os dyld"
7632 # FIXME: Relying on posixy $() will cause problems for
7633 # cross-compilation, but unfortunately the echo tests do not
7634 # yet detect zsh echo's removal of \ escapes.
7635 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7636 soname_spec='${libname}${release}${major}$shared_ext'
7637 shlibpath_overrides_runpath=yes
7638 shlibpath_var=DYLD_LIBRARY_PATH
7639 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7640 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7641 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7642 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"`
7644 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7652 soname_spec='${libname}${release}${shared_ext}$major'
7653 shlibpath_var=LD_LIBRARY_PATH
7661 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7662 version_type=freebsd-$objformat
7663 case $version_type in
7665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7674 shlibpath_var=LD_LIBRARY_PATH
7677 shlibpath_overrides_runpath=yes
7679 freebsd3.01* | freebsdelf3.01*)
7680 shlibpath_overrides_runpath=yes
7681 hardcode_into_libs=yes
7684 shlibpath_overrides_runpath=no
7685 hardcode_into_libs=yes
7694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7695 soname_spec='${libname}${release}${shared_ext}$major'
7696 shlibpath_var=LD_LIBRARY_PATH
7697 hardcode_into_libs=yes
7700 hpux9* | hpux10* | hpux11*)
7701 # Give a soname corresponding to the major version so that dld.sl refuses to
7702 # link against other versions.
7709 hardcode_into_libs=yes
7710 dynamic_linker="$host_os dld.so"
7711 shlibpath_var=LD_LIBRARY_PATH
7712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7714 soname_spec='${libname}${release}${shared_ext}$major'
7715 if test "X$HPUX_IA64_MODE" = X32; then
7716 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7718 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7724 hardcode_into_libs=yes
7725 dynamic_linker="$host_os dld.sl"
7726 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7729 soname_spec='${libname}${release}${shared_ext}$major'
7730 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7735 dynamic_linker="$host_os dld.sl"
7736 shlibpath_var=SHLIB_PATH
7737 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7739 soname_spec='${libname}${release}${shared_ext}$major'
7742 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7743 postinstall_cmds='chmod 555 $lib'
7746 irix5* | irix6* | nonstopux*)
7748 nonstopux*) version_type=nonstopux ;;
7750 if test "$lt_cv_prog_gnu_ld" = yes; then
7758 soname_spec='${libname}${release}${shared_ext}$major'
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7761 irix5* | nonstopux*)
7765 case $LD in # libtool.m4 will add one of these switches to LD
7766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7767 libsuff= shlibsuff= libmagic=32-bit;;
7768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7769 libsuff=32 shlibsuff=N32 libmagic=N32;;
7770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7772 *) libsuff= shlibsuff= libmagic=never-match;;
7776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7777 shlibpath_overrides_runpath=no
7778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7780 hardcode_into_libs=yes
7783 # No shared lib support for Linux oldld, aout, or coff.
7784 linux*oldld* | linux*aout* | linux*coff*)
7788 # This must be Linux ELF.
7793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794 soname_spec='${libname}${release}${shared_ext}$major'
7795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7796 shlibpath_var=LD_LIBRARY_PATH
7797 shlibpath_overrides_runpath=no
7798 # This implies no fast_install, which is unacceptable.
7799 # Some rework will be needed to allow for fast_install
7800 # before this can be enabled.
7801 hardcode_into_libs=yes
7803 # We used to test for /lib/ld.so.1 and disable shared libraries on
7804 # powerpc, because MkLinux only supported shared libraries with the
7805 # GNU dynamic linker. Since this was broken with cross compilers,
7806 # most powerpc-linux boxes support dynamic linking these days and
7807 # people can always --disable-shared, the test was removed, and we
7808 # assume the GNU/Linux dynamic linker is in use.
7809 dynamic_linker='GNU/Linux ld.so'
7816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7819 dynamic_linker='NetBSD (a.out) ld.so'
7821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7822 soname_spec='${libname}${release}${shared_ext}$major'
7823 dynamic_linker='NetBSD ld.elf_so'
7825 shlibpath_var=LD_LIBRARY_PATH
7826 shlibpath_overrides_runpath=yes
7827 hardcode_into_libs=yes
7832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833 shlibpath_var=LD_LIBRARY_PATH
7834 shlibpath_overrides_runpath=yes
7841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7842 soname_spec='${libname}${release}${shared_ext}$major'
7843 shlibpath_var=LD_LIBRARY_PATH
7844 shlibpath_overrides_runpath=yes
7851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7853 shlibpath_var=LD_LIBRARY_PATH
7854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7856 openbsd2.[89] | openbsd2.[89].*)
7857 shlibpath_overrides_runpath=no
7860 shlibpath_overrides_runpath=yes
7864 shlibpath_overrides_runpath=yes
7869 libname_spec='$name'
7872 library_names_spec='$libname${shared_ext} $libname.a'
7873 dynamic_linker='OS/2 ld.exe'
7874 shlibpath_var=LIBPATH
7877 osf3* | osf4* | osf5*)
7881 soname_spec='${libname}${release}${shared_ext}$major'
7882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7883 shlibpath_var=LD_LIBRARY_PATH
7884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7890 soname_spec='${libname}${release}${shared_ext}$major'
7891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892 shlibpath_var=LD_LIBRARY_PATH
7899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900 soname_spec='${libname}${release}${shared_ext}$major'
7901 shlibpath_var=LD_LIBRARY_PATH
7902 shlibpath_overrides_runpath=yes
7903 hardcode_into_libs=yes
7904 # ldd complains unless libraries are executable
7905 postinstall_cmds='chmod +x $lib'
7910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7912 shlibpath_var=LD_LIBRARY_PATH
7913 shlibpath_overrides_runpath=yes
7914 if test "$with_gnu_ld" = yes; then
7920 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7923 soname_spec='${libname}${release}${shared_ext}$major'
7924 shlibpath_var=LD_LIBRARY_PATH
7925 case $host_vendor in
7927 shlibpath_overrides_runpath=no
7929 export_dynamic_flag_spec='${wl}-Blargedynsym'
7930 runpath_var=LD_RUN_PATH
7938 shlibpath_overrides_runpath=no
7939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7945 if test -d /usr/nec ;then
7947 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7948 soname_spec='$libname${shared_ext}.$major'
7949 shlibpath_var=LD_LIBRARY_PATH
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LD_LIBRARY_PATH
7964 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7965 echo "${ECHO_T}$dynamic_linker" >&6
7966 test "$dynamic_linker" = no && can_build_shared=no
7968 if test "x$enable_dlopen" != xyes; then
7969 enable_dlopen=unknown
7970 enable_dlopen_self=unknown
7971 enable_dlopen_self_static=unknown
7978 lt_cv_dlopen="load_add_on"
7980 lt_cv_dlopen_self=yes
7984 lt_cv_dlopen="LoadLibrary"
7989 lt_cv_dlopen="dlopen"
7994 # if libdl is installed we need to link against it
7995 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 ac_check_lib_save_LIBS=$LIBS
8002 cat >conftest.$ac_ext <<_ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8009 /* Override any gcc2 internal prototype to avoid an error. */
8013 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag"
8034 || test ! -s conftest.err'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; } &&
8040 { ac_try='test -s conftest$ac_exeext'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 ac_cv_lib_dl_dlopen=yes
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 ac_cv_lib_dl_dlopen=no
8053 rm -f conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8057 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8058 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8059 if test $ac_cv_lib_dl_dlopen = yes; then
8060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8065 lt_cv_dlopen_self=yes
8072 echo "$as_me:$LINENO: checking for shl_load" >&5
8073 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8074 if test "${ac_cv_func_shl_load+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 cat >conftest.$ac_ext <<_ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8085 #define shl_load innocuous_shl_load
8087 /* System header to define __stub macros and hopefully few prototypes,
8088 which can conflict with char shl_load (); below.
8089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8090 <limits.h> exists even on freestanding compilers. */
8093 # include <limits.h>
8095 # include <assert.h>
8100 /* Override any gcc2 internal prototype to avoid an error. */
8105 /* We use char because int might match the return type of a gcc2
8106 builtin and then its argument prototype would still apply. */
8108 /* The GNU C library defines this for functions which it implements
8109 to always fail with ENOSYS. Some functions are actually named
8110 something starting with __ and the normal name is an alias. */
8111 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8114 char (*f) () = shl_load;
8123 return f != shl_load;
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>conftest.er1
8132 grep -v '^ *+' conftest.er1 >conftest.err
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag"
8138 || test ! -s conftest.err'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_func_shl_load=yes
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_cv_func_shl_load=no
8157 rm -f conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8161 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8162 if test $ac_cv_func_shl_load = yes; then
8163 lt_cv_dlopen="shl_load"
8165 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8166 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8167 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 ac_check_lib_save_LIBS=$LIBS
8172 cat >conftest.$ac_ext <<_ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8179 /* Override any gcc2 internal prototype to avoid an error. */
8183 /* We use char because int might match the return type of a gcc2
8184 builtin and then its argument prototype would still apply. */
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8196 (eval $ac_link) 2>conftest.er1
8198 grep -v '^ *+' conftest.er1 >conftest.err
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -z "$ac_c_werror_flag"
8204 || test ! -s conftest.err'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; } &&
8210 { ac_try='test -s conftest$ac_exeext'
8211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8216 ac_cv_lib_dld_shl_load=yes
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8221 ac_cv_lib_dld_shl_load=no
8223 rm -f conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8225 LIBS=$ac_check_lib_save_LIBS
8227 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8228 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8229 if test $ac_cv_lib_dld_shl_load = yes; then
8230 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8232 echo "$as_me:$LINENO: checking for dlopen" >&5
8233 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8234 if test "${ac_cv_func_dlopen+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 cat >conftest.$ac_ext <<_ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8245 #define dlopen innocuous_dlopen
8247 /* System header to define __stub macros and hopefully few prototypes,
8248 which can conflict with char dlopen (); below.
8249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8250 <limits.h> exists even on freestanding compilers. */
8253 # include <limits.h>
8255 # include <assert.h>
8260 /* Override any gcc2 internal prototype to avoid an error. */
8265 /* We use char because int might match the return type of a gcc2
8266 builtin and then its argument prototype would still apply. */
8268 /* The GNU C library defines this for functions which it implements
8269 to always fail with ENOSYS. Some functions are actually named
8270 something starting with __ and the normal name is an alias. */
8271 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8274 char (*f) () = dlopen;
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8290 (eval $ac_link) 2>conftest.er1
8292 grep -v '^ *+' conftest.er1 >conftest.err
8294 cat conftest.err >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } &&
8297 { ac_try='test -z "$ac_c_werror_flag"
8298 || test ! -s conftest.err'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest$ac_exeext'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 ac_cv_func_dlopen=yes
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 ac_cv_func_dlopen=no
8317 rm -f conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8320 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8321 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8322 if test $ac_cv_func_dlopen = yes; then
8323 lt_cv_dlopen="dlopen"
8325 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8326 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8327 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 ac_check_lib_save_LIBS=$LIBS
8332 cat >conftest.$ac_ext <<_ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8339 /* Override any gcc2 internal prototype to avoid an error. */
8343 /* We use char because int might match the return type of a gcc2
8344 builtin and then its argument prototype would still apply. */
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356 (eval $ac_link) 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag"
8364 || test ! -s conftest.err'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 ac_cv_lib_dl_dlopen=yes
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 ac_cv_lib_dl_dlopen=no
8383 rm -f conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8388 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8389 if test $ac_cv_lib_dl_dlopen = yes; then
8390 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8392 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8393 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8394 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 ac_check_lib_save_LIBS=$LIBS
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8406 /* Override any gcc2 internal prototype to avoid an error. */
8410 /* We use char because int might match the return type of a gcc2
8411 builtin and then its argument prototype would still apply. */
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>conftest.er1
8425 grep -v '^ *+' conftest.er1 >conftest.err
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -z "$ac_c_werror_flag"
8431 || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_lib_svld_dlopen=yes
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 ac_cv_lib_svld_dlopen=no
8450 rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 LIBS=$ac_check_lib_save_LIBS
8454 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8455 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8456 if test $ac_cv_lib_svld_dlopen = yes; then
8457 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8459 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8460 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8461 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 ac_check_lib_save_LIBS=$LIBS
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8473 /* Override any gcc2 internal prototype to avoid an error. */
8477 /* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag"
8498 || test ! -s conftest.err'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_cv_lib_dld_dld_link=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_cv_lib_dld_dld_link=no
8517 rm -f conftest.err conftest.$ac_objext \
8518 conftest$ac_exeext conftest.$ac_ext
8519 LIBS=$ac_check_lib_save_LIBS
8521 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8522 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8523 if test $ac_cv_lib_dld_dld_link = yes; then
8524 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8545 if test "x$lt_cv_dlopen" != xno; then
8551 case $lt_cv_dlopen in
8553 save_CPPFLAGS="$CPPFLAGS"
8554 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8556 save_LDFLAGS="$LDFLAGS"
8557 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8560 LIBS="$lt_cv_dlopen_libs $LIBS"
8562 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8563 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8564 if test "${lt_cv_dlopen_self+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 if test "$cross_compiling" = yes; then :
8568 lt_cv_dlopen_self=cross
8570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8571 lt_status=$lt_dlunknown
8572 cat > conftest.$ac_ext <<EOF
8573 #line 8573 "configure"
8574 #include "confdefs.h"
8583 # define LT_DLGLOBAL RTLD_GLOBAL
8586 # define LT_DLGLOBAL DL_GLOBAL
8588 # define LT_DLGLOBAL 0
8592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8593 find out it does not work in some platform. */
8594 #ifndef LT_DLLAZY_OR_NOW
8596 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8599 # define LT_DLLAZY_OR_NOW DL_LAZY
8602 # define LT_DLLAZY_OR_NOW RTLD_NOW
8605 # define LT_DLLAZY_OR_NOW DL_NOW
8607 # define LT_DLLAZY_OR_NOW 0
8615 extern "C" void exit (int);
8618 void fnord() { int i=42;}
8621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8622 int status = $lt_dlunknown;
8626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8628 /* dlclose (self); */
8634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635 (eval $ac_link) 2>&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8639 (./conftest; exit; ) 2>/dev/null
8642 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8643 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8644 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8647 # compilation failed
8648 lt_cv_dlopen_self=no
8655 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8656 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8658 if test "x$lt_cv_dlopen_self" = xyes; then
8659 LDFLAGS="$LDFLAGS $link_static_flag"
8660 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8661 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8662 if test "${lt_cv_dlopen_self_static+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 if test "$cross_compiling" = yes; then :
8666 lt_cv_dlopen_self_static=cross
8668 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8669 lt_status=$lt_dlunknown
8670 cat > conftest.$ac_ext <<EOF
8671 #line 8671 "configure"
8672 #include "confdefs.h"
8681 # define LT_DLGLOBAL RTLD_GLOBAL
8684 # define LT_DLGLOBAL DL_GLOBAL
8686 # define LT_DLGLOBAL 0
8690 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8691 find out it does not work in some platform. */
8692 #ifndef LT_DLLAZY_OR_NOW
8694 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8697 # define LT_DLLAZY_OR_NOW DL_LAZY
8700 # define LT_DLLAZY_OR_NOW RTLD_NOW
8703 # define LT_DLLAZY_OR_NOW DL_NOW
8705 # define LT_DLLAZY_OR_NOW 0
8713 extern "C" void exit (int);
8716 void fnord() { int i=42;}
8719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8720 int status = $lt_dlunknown;
8724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8725 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8726 /* dlclose (self); */
8732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8733 (eval $ac_link) 2>&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8737 (./conftest; exit; ) 2>/dev/null
8740 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8741 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8742 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8745 # compilation failed
8746 lt_cv_dlopen_self_static=no
8753 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8754 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8757 CPPFLAGS="$save_CPPFLAGS"
8758 LDFLAGS="$save_LDFLAGS"
8763 case $lt_cv_dlopen_self in
8764 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8765 *) enable_dlopen_self=unknown ;;
8768 case $lt_cv_dlopen_self_static in
8769 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8770 *) enable_dlopen_self_static=unknown ;;
8775 # Report which librarie types wil actually be built
8776 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8777 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8778 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8779 echo "${ECHO_T}$can_build_shared" >&6
8781 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8782 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8783 test "$can_build_shared" = "no" && enable_shared=no
8785 # On AIX, shared libraries and static libraries use the same namespace, and
8786 # are all built from PIC.
8789 test "$enable_shared" = yes && enable_static=no
8790 if test -n "$RANLIB"; then
8791 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8792 postinstall_cmds='$RANLIB $lib'
8797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8798 test "$enable_shared" = yes && enable_static=no
8801 darwin* | rhapsody*)
8802 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8803 archive_cmds_need_lc=no
8805 rhapsody* | darwin1.[012])
8806 allow_undefined_flag='-undefined suppress'
8809 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8812 # FIXME: Relying on posixy $() will cause problems for
8813 # cross-compilation, but unfortunately the echo tests do not
8814 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8815 # `"' quotes if we put them in here... so don't!
8816 output_verbose_link_cmd='echo'
8817 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8818 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8820 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}'
8821 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8823 hardcode_automatic=yes
8824 hardcode_shlibpath_var=unsupported
8825 whole_archive_flag_spec='-all_load $convenience'
8826 link_all_deplibs=yes
8830 echo "$as_me:$LINENO: result: $enable_shared" >&5
8831 echo "${ECHO_T}$enable_shared" >&6
8833 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8834 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8835 # Make sure either enable_shared or enable_static is yes.
8836 test "$enable_shared" = yes || enable_static=yes
8837 echo "$as_me:$LINENO: result: $enable_static" >&5
8838 echo "${ECHO_T}$enable_static" >&6
8840 # The else clause should only fire when bootstrapping the
8841 # libtool distribution, otherwise you forgot to ship ltmain.sh
8842 # with your package, and you will get complaints that there are
8843 # no rules to generate ltmain.sh.
8844 if test -f "$ltmain"; then
8845 # See if we are running on zsh, and set the options which allow our commands through
8846 # without removal of \ escapes.
8847 if test -n "${ZSH_VERSION+set}" ; then
8848 setopt NO_GLOB_SUBST
8850 # Now quote all the things that may contain metacharacters while being
8851 # careful not to overquote the AC_SUBSTed values. We take copies of the
8852 # variables and quote the copies for generation of the libtool script.
8853 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8854 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8855 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8856 deplibs_check_method reload_flag reload_cmds need_locks \
8857 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8858 lt_cv_sys_global_symbol_to_c_name_address \
8859 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8860 old_postinstall_cmds old_postuninstall_cmds \
8864 lt_prog_compiler_wl \
8865 lt_prog_compiler_pic \
8866 lt_prog_compiler_static \
8867 lt_prog_compiler_no_builtin_flag \
8868 export_dynamic_flag_spec \
8869 thread_safe_flag_spec \
8870 whole_archive_flag_spec \
8871 enable_shared_with_static_runtimes \
8873 old_archive_from_new_cmds \
8878 compiler_lib_search_path \
8880 archive_expsym_cmds \
8882 postuninstall_cmds \
8883 old_archive_from_expsyms_cmds \
8884 allow_undefined_flag \
8886 export_symbols_cmds \
8887 hardcode_libdir_flag_spec \
8888 hardcode_libdir_flag_spec_ld \
8889 hardcode_libdir_separator \
8890 hardcode_automatic \
8892 module_expsym_cmds \
8893 lt_cv_prog_compiler_c_o \
8898 old_archive_cmds | \
8899 old_archive_from_new_cmds | \
8901 archive_expsym_cmds | \
8903 module_expsym_cmds | \
8904 old_archive_from_expsyms_cmds | \
8905 export_symbols_cmds | \
8906 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8907 postinstall_cmds | postuninstall_cmds | \
8908 old_postinstall_cmds | old_postuninstall_cmds | \
8909 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8910 # Double-quote double-evaled strings.
8911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8920 *'\$0 --fallback-echo"')
8921 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8926 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8928 { echo "$as_me:$LINENO: creating $ofile" >&5
8929 echo "$as_me: creating $ofile" >&6;}
8931 cat <<__EOF__ >> "$cfgfile"
8934 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8935 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8936 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8938 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8939 # Free Software Foundation, Inc.
8941 # This file is part of GNU Libtool:
8942 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8944 # This program is free software; you can redistribute it and/or modify
8945 # it under the terms of the GNU General Public License as published by
8946 # the Free Software Foundation; either version 2 of the License, or
8947 # (at your option) any later version.
8949 # This program is distributed in the hope that it will be useful, but
8950 # WITHOUT ANY WARRANTY; without even the implied warranty of
8951 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8952 # General Public License for more details.
8954 # You should have received a copy of the GNU General Public License
8955 # along with this program; if not, write to the Free Software
8956 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8958 # As a special exception to the GNU General Public License, if you
8959 # distribute this file as part of a program that contains a
8960 # configuration script generated by Autoconf, you may include it under
8961 # the same distribution terms that you use for the rest of that program.
8963 # A sed program that does not truncate output.
8966 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8967 Xsed="$SED -e s/^X//"
8969 # The HP-UX ksh and POSIX shell print the target directory to stdout
8971 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8973 # The names of the tagged configurations supported by this script.
8976 # ### BEGIN LIBTOOL CONFIG
8978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8980 # Shell to use when invoking shell scripts.
8983 # Whether or not to build shared libraries.
8984 build_libtool_libs=$enable_shared
8986 # Whether or not to build static libraries.
8987 build_old_libs=$enable_static
8989 # Whether or not to add -lc for building shared libraries.
8990 build_libtool_need_lc=$archive_cmds_need_lc
8992 # Whether or not to disallow shared libs when runtime libs are static
8993 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8995 # Whether or not to optimize for fast installation.
8996 fast_install=$enable_fast_install
8999 host_alias=$host_alias
9002 # An echo program that does not interpret backslashes.
9007 AR_FLAGS=$lt_AR_FLAGS
9012 # A language-specific compiler.
9015 # Is the compiler the GNU C compiler?
9021 # The linker used to build libraries.
9024 # Whether we need hard or soft links.
9027 # A BSD-compatible nm program.
9030 # A symbol stripping program
9033 # Used to examine libraries when file_magic_cmd begins "file"
9034 MAGIC_CMD=$MAGIC_CMD
9036 # Used on cygwin: DLL creation program.
9039 # Used on cygwin: object dumper.
9042 # Used on cygwin: assembler.
9045 # The name of the directory that contains temporary libtool files.
9048 # How to create reloadable object files.
9049 reload_flag=$lt_reload_flag
9050 reload_cmds=$lt_reload_cmds
9052 # How to pass a linker flag through the compiler.
9053 wl=$lt_lt_prog_compiler_wl
9055 # Object file suffix (normally "o").
9058 # Old archive suffix (normally "a").
9061 # Shared library suffix (normally ".so").
9064 # Executable file suffix (normally "").
9067 # Additional compiler flags for building library objects.
9068 pic_flag=$lt_lt_prog_compiler_pic
9071 # What is the maximum length of a command?
9072 max_cmd_len=$lt_cv_sys_max_cmd_len
9074 # Does compiler simultaneously support -c and -o options?
9075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9077 # Must we lock files when doing compilation ?
9078 need_locks=$lt_need_locks
9080 # Do we need the lib prefix for modules?
9081 need_lib_prefix=$need_lib_prefix
9083 # Do we need a version for libraries?
9084 need_version=$need_version
9086 # Whether dlopen is supported.
9087 dlopen_support=$enable_dlopen
9089 # Whether dlopen of programs is supported.
9090 dlopen_self=$enable_dlopen_self
9092 # Whether dlopen of statically linked programs is supported.
9093 dlopen_self_static=$enable_dlopen_self_static
9095 # Compiler flag to prevent dynamic linking.
9096 link_static_flag=$lt_lt_prog_compiler_static
9098 # Compiler flag to turn off builtin functions.
9099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9101 # Compiler flag to allow reflexive dlopens.
9102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9104 # Compiler flag to generate shared objects directly from archives.
9105 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9107 # Compiler flag to generate thread-safe objects.
9108 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9110 # Library versioning type.
9111 version_type=$version_type
9113 # Format of library name prefix.
9114 libname_spec=$lt_libname_spec
9116 # List of archive names. First name is the real one, the rest are links.
9117 # The last name is the one that the linker finds with -lNAME.
9118 library_names_spec=$lt_library_names_spec
9120 # The coded name of the library, if different from the real name.
9121 soname_spec=$lt_soname_spec
9123 # Commands used to build and install an old-style archive.
9125 old_archive_cmds=$lt_old_archive_cmds
9126 old_postinstall_cmds=$lt_old_postinstall_cmds
9127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9129 # Create an old-style archive from a shared archive.
9130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9132 # Create a temporary old-style archive to link instead of a shared archive.
9133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9135 # Commands used to build and install a shared archive.
9136 archive_cmds=$lt_archive_cmds
9137 archive_expsym_cmds=$lt_archive_expsym_cmds
9138 postinstall_cmds=$lt_postinstall_cmds
9139 postuninstall_cmds=$lt_postuninstall_cmds
9141 # Commands used to build a loadable module (assumed same as above if empty)
9142 module_cmds=$lt_module_cmds
9143 module_expsym_cmds=$lt_module_expsym_cmds
9145 # Commands to strip libraries.
9146 old_striplib=$lt_old_striplib
9147 striplib=$lt_striplib
9149 # Dependencies to place before the objects being linked to create a
9151 predep_objects=$lt_predep_objects
9153 # Dependencies to place after the objects being linked to create a
9155 postdep_objects=$lt_postdep_objects
9157 # Dependencies to place before the objects being linked to create a
9161 # Dependencies to place after the objects being linked to create a
9163 postdeps=$lt_postdeps
9165 # The library search path used internally by the compiler when linking
9167 compiler_lib_search_path=$lt_compiler_lib_search_path
9169 # Method to check whether dependent libraries are shared objects.
9170 deplibs_check_method=$lt_deplibs_check_method
9172 # Command to use when deplibs_check_method == file_magic.
9173 file_magic_cmd=$lt_file_magic_cmd
9175 # Flag that allows shared libraries with undefined symbols to be built.
9176 allow_undefined_flag=$lt_allow_undefined_flag
9178 # Flag that forces no undefined symbols.
9179 no_undefined_flag=$lt_no_undefined_flag
9181 # Commands used to finish a libtool library installation in a directory.
9182 finish_cmds=$lt_finish_cmds
9184 # Same as above, but a single script fragment to be evaled but not shown.
9185 finish_eval=$lt_finish_eval
9187 # Take the output of nm and produce a listing of raw symbols and C names.
9188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9190 # Transform the output of nm in a proper C declaration
9191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9193 # Transform the output of nm in a C name address pair
9194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9196 # This is the shared library runtime path variable.
9197 runpath_var=$runpath_var
9199 # This is the shared library path variable.
9200 shlibpath_var=$shlibpath_var
9202 # Is shlibpath searched before the hard-coded library search path?
9203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9205 # How to hardcode a shared library path into an executable.
9206 hardcode_action=$hardcode_action
9208 # Whether we should hardcode library paths into libraries.
9209 hardcode_into_libs=$hardcode_into_libs
9211 # Flag to hardcode \$libdir into a binary during linking.
9212 # This must work even if \$libdir does not exist.
9213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9215 # If ld is used when linking, flag to hardcode \$libdir into
9216 # a binary during linking. This must work even if \$libdir does
9218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9220 # Whether we need a single -rpath flag with a separated argument.
9221 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9223 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9225 hardcode_direct=$hardcode_direct
9227 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9229 hardcode_minus_L=$hardcode_minus_L
9231 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9232 # the resulting binary.
9233 hardcode_shlibpath_var=$hardcode_shlibpath_var
9235 # Set to yes if building a shared library automatically hardcodes DIR into the library
9236 # and all subsequent libraries and executables linked against it.
9237 hardcode_automatic=$hardcode_automatic
9239 # Variables whose values should be saved in libtool wrapper scripts and
9240 # restored at relink time.
9241 variables_saved_for_relink="$variables_saved_for_relink"
9243 # Whether libtool must link a program against all its dependency libraries.
9244 link_all_deplibs=$link_all_deplibs
9246 # Compile-time system search path for libraries
9247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9249 # Run-time system search path for libraries
9250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9252 # Fix the shell variable \$srcfile for the compiler.
9253 fix_srcfile_path="$fix_srcfile_path"
9255 # Set to yes if exported symbols are required.
9256 always_export_symbols=$always_export_symbols
9258 # The commands to list exported symbols.
9259 export_symbols_cmds=$lt_export_symbols_cmds
9261 # The commands to extract the exported symbol list from a shared archive.
9262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9264 # Symbols that should not be listed in the preloaded symbols.
9265 exclude_expsyms=$lt_exclude_expsyms
9267 # Symbols that must always be exported.
9268 include_expsyms=$lt_include_expsyms
9270 # ### END LIBTOOL CONFIG
9277 cat <<\EOF >> "$cfgfile"
9279 # AIX sometimes has problems with the GCC collect2 program. For some
9280 # reason, if we set the COLLECT_NAMES environment variable, the problems
9281 # vanish in a puff of smoke.
9282 if test "X${COLLECT_NAMES+set}" != Xset; then
9284 export COLLECT_NAMES
9290 # We use sed instead of cat because bash on DJGPP gets confused if
9291 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9292 # text mode, it properly converts lines to CR/LF. This bash problem
9293 # is reportedly fixed, but why not run on old versions too?
9294 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9296 mv -f "$cfgfile" "$ofile" || \
9297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9301 # If there is no Makefile yet, we rely on a make rule to execute
9302 # `config.status --recheck' to rerun these tests and create the
9303 # libtool script then.
9304 test -f Makefile && make "$ltmain"
9309 ac_cpp='$CPP $CPPFLAGS'
9310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9317 # Check whether --with-tags or --without-tags was given.
9318 if test "${with_tags+set}" = set; then
9319 withval="$with_tags"
9323 if test -f "$ltmain" && test -n "$tagnames"; then
9324 if test ! -f "${ofile}"; then
9325 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9326 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9329 if test -z "$LTCC"; then
9330 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9331 if test -z "$LTCC"; then
9332 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9333 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9336 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9340 # Extract list of available tagged configurations in $ofile.
9341 # Note that this assumes the entire list is on one line.
9342 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9345 for tagname in $tagnames; do
9347 # Check whether tagname contains only valid characters
9348 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9350 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9351 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9352 { (exit 1); exit 1; }; }
9356 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9358 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9359 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9360 { (exit 1); exit 1; }; }
9363 # Update the list of available tags.
9364 if test -n "$tagname"; then
9365 echo appending configuration tag \"$tagname\" to $ofile
9369 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9371 ac_cpp='$CXXCPP $CPPFLAGS'
9372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9379 archive_cmds_need_lc_CXX=no
9380 allow_undefined_flag_CXX=
9381 always_export_symbols_CXX=no
9382 archive_expsym_cmds_CXX=
9383 export_dynamic_flag_spec_CXX=
9384 hardcode_direct_CXX=no
9385 hardcode_libdir_flag_spec_CXX=
9386 hardcode_libdir_flag_spec_ld_CXX=
9387 hardcode_libdir_separator_CXX=
9388 hardcode_minus_L_CXX=no
9389 hardcode_automatic_CXX=no
9391 module_expsym_cmds_CXX=
9392 link_all_deplibs_CXX=unknown
9393 old_archive_cmds_CXX=$old_archive_cmds
9394 no_undefined_flag_CXX=
9395 whole_archive_flag_spec_CXX=
9396 enable_shared_with_static_runtimes_CXX=no
9398 # Dependencies to place before and after the object being linked:
9400 postdep_objects_CXX=
9403 compiler_lib_search_path_CXX=
9405 # Source file extension for C++ test sources.
9408 # Object file extension for compiled C++ test sources.
9412 # Code to be used in simple compile tests
9413 lt_simple_compile_test_code="int some_variable = 0;\n"
9415 # Code to be used in simple link tests
9416 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9418 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9420 # If no C compiler was specified, use CC.
9423 # Allow CC to be a program name with arguments.
9427 # Allow CC to be a program name with arguments.
9432 lt_save_with_gnu_ld=$with_gnu_ld
9433 lt_save_path_LD=$lt_cv_path_LD
9434 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9435 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9437 unset lt_cv_prog_gnu_ld
9439 if test -n "${lt_cv_path_LDCXX+set}"; then
9440 lt_cv_path_LD=$lt_cv_path_LDCXX
9444 test -z "${LDCXX+set}" || LD=$LDCXX
9448 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9450 # We don't want -fno-exception wen compiling C++ code, so set the
9451 # no_builtin_flag separately
9452 if test "$GXX" = yes; then
9453 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9455 lt_prog_compiler_no_builtin_flag_CXX=
9458 if test "$GXX" = yes; then
9459 # Set up default GNU C++ configuration
9462 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9463 if test "${with_gnu_ld+set}" = set; then
9464 withval="$with_gnu_ld"
9465 test "$withval" = no || with_gnu_ld=yes
9470 if test "$GCC" = yes; then
9471 # Check if gcc -print-prog-name=ld gives a path.
9472 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9473 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9476 # gcc leaves a trailing carriage return which upsets mingw
9477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9482 # Accept absolute paths.
9484 re_direlt='/[^/][^/]*/\.\./'
9485 # Canonicalize the path of ld
9486 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9488 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9490 test -z "$LD" && LD="$ac_prog"
9493 # If it fails, then pretend we aren't using GCC.
9497 # If it is relative, then search for the first ld in PATH.
9501 elif test "$with_gnu_ld" = yes; then
9502 echo "$as_me:$LINENO: checking for GNU ld" >&5
9503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9505 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9508 if test "${lt_cv_path_LD+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 if test -z "$LD"; then
9512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9513 for ac_dir in $PATH; do
9515 test -z "$ac_dir" && ac_dir=.
9516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9517 lt_cv_path_LD="$ac_dir/$ac_prog"
9518 # Check to see if the program is GNU ld. I'd rather use --version,
9519 # but apparently some GNU ld's only accept -v.
9520 # Break only if it was the GNU/non-GNU ld that we prefer.
9521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9522 *GNU* | *'with BFD'*)
9523 test "$with_gnu_ld" != no && break
9526 test "$with_gnu_ld" != yes && break
9533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9538 if test -n "$LD"; then
9539 echo "$as_me:$LINENO: result: $LD" >&5
9540 echo "${ECHO_T}$LD" >&6
9542 echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6
9545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9547 { (exit 1); exit 1; }; }
9548 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9554 case `"$LD" -v 2>&1 </dev/null` in
9555 *GNU* | *'with BFD'*)
9556 lt_cv_prog_gnu_ld=yes
9559 lt_cv_prog_gnu_ld=no
9563 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9565 with_gnu_ld=$lt_cv_prog_gnu_ld
9569 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9570 # archiving commands below assume that GNU ld is being used.
9571 if test "$with_gnu_ld" = yes; then
9572 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 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'
9575 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9578 # If archive_cmds runs LD, not CC, wlarc should be empty
9579 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9580 # investigate it a little bit more. (MM)
9583 # ancient GNU ld didn't support --whole-archive et. al.
9584 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9585 grep 'no-whole-archive' > /dev/null; then
9586 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9588 whole_archive_flag_spec_CXX=
9594 # A generic and very simple default shared library creation
9595 # command for GNU C++ for the case where it uses the native
9596 # linker, instead of GNU ld. If possible, this setting should
9597 # overridden to take advantage of the native linker features on
9598 # the platform it is being used on.
9599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9602 # Commands to make compiler produce verbose output that lists
9603 # what "hidden" libraries, object files and flags are used when
9604 # linking a shared library.
9605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9613 # PORTME: fill in a description of your system's C++ link characteristics
9614 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9619 # FIXME: insert proper C++ library support
9623 if test "$host_cpu" = ia64; then
9624 # On IA64, the linker does run time linking by default, so we don't
9625 # have to do anything special.
9626 aix_use_runtimelinking=no
9627 exp_sym_flag='-Bexport'
9630 aix_use_runtimelinking=no
9632 # Test if we are trying to use run time linking or normal
9633 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9634 # need to do runtime linking.
9635 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9636 for ld_flag in $LDFLAGS; do
9639 aix_use_runtimelinking=yes
9646 exp_sym_flag='-bexport'
9647 no_entry_flag='-bnoentry'
9650 # When large executables or shared objects are built, AIX ld can
9651 # have problems creating the table of contents. If linking a library
9652 # or program results in "error TOC overflow" add -mminimal-toc to
9653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9657 hardcode_direct_CXX=yes
9658 hardcode_libdir_separator_CXX=':'
9659 link_all_deplibs_CXX=yes
9661 if test "$GXX" = yes; then
9662 case $host_os in aix4.012|aix4.012.*)
9663 # We only want to do this on AIX 4.2 and lower, the check
9664 # below for broken collect2 doesn't work under 4.3+
9665 collect2name=`${CC} -print-prog-name=collect2`
9666 if test -f "$collect2name" && \
9667 strings "$collect2name" | grep resolve_lib_name >/dev/null
9669 # We have reworked collect2
9670 hardcode_direct_CXX=yes
9672 # We have old collect2
9673 hardcode_direct_CXX=unsupported
9674 # It fails to find uninstalled libraries when the uninstalled
9675 # path is not listed in the libpath. Setting hardcode_minus_L
9676 # to unsupported forces relinking
9677 hardcode_minus_L_CXX=yes
9678 hardcode_libdir_flag_spec_CXX='-L$libdir'
9679 hardcode_libdir_separator_CXX=
9682 shared_flag='-shared'
9685 if test "$host_cpu" = ia64; then
9686 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9687 # chokes on -Wl,-G. The following line is correct:
9690 if test "$aix_use_runtimelinking" = yes; then
9691 shared_flag='${wl}-G'
9693 shared_flag='${wl}-bM:SRE'
9698 # It seems that -bexpall does not export symbols beginning with
9699 # underscore (_), so it is better to generate a list of symbols to export.
9700 always_export_symbols_CXX=yes
9701 if test "$aix_use_runtimelinking" = yes; then
9702 # Warning - without using the other runtime loading flags (-brtl),
9703 # -berok will link without error, but may produce a broken library.
9704 allow_undefined_flag_CXX='-berok'
9705 # Determine the default libpath from the value encoded in an empty executable.
9706 cat >conftest.$ac_ext <<_ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>conftest.er1
9725 grep -v '^ *+' conftest.er1 >conftest.err
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_cxx_werror_flag"
9731 || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9746 # Check for a 64-bit object if we didn't find anything.
9747 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; }
9750 echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9754 rm -f conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9758 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9760 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"
9762 if test "$host_cpu" = ia64; then
9763 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9764 allow_undefined_flag_CXX="-z nodefs"
9765 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"
9767 # Determine the default libpath from the value encoded in an empty executable.
9768 cat >conftest.$ac_ext <<_ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785 (eval $ac_link) 2>conftest.er1
9787 grep -v '^ *+' conftest.er1 >conftest.err
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -z "$ac_cxx_werror_flag"
9793 || test ! -s conftest.err'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try='test -s conftest$ac_exeext'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9808 # Check for a 64-bit object if we didn't find anything.
9809 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; }
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9816 rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9820 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9821 # Warning - without using the other run time loading flags,
9822 # -berok will link without error, but may produce a broken library.
9823 no_undefined_flag_CXX=' ${wl}-bernotok'
9824 allow_undefined_flag_CXX=' ${wl}-berok'
9825 # -bexpall does not export symbols beginning with underscore (_)
9826 always_export_symbols_CXX=yes
9827 # Exported symbols can be pulled into shared objects from archives
9828 whole_archive_flag_spec_CXX=' '
9829 archive_cmds_need_lc_CXX=yes
9830 # This is similar to how AIX traditionally builds it's shared libraries.
9831 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'
9836 case $cc_basename in
9838 # FIXME: insert proper C++ library support
9844 cygwin* | mingw* | pw32*)
9845 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9846 # as there is no search path for DLLs.
9847 hardcode_libdir_flag_spec_CXX='-L$libdir'
9848 allow_undefined_flag_CXX=unsupported
9849 always_export_symbols_CXX=no
9850 enable_shared_with_static_runtimes_CXX=yes
9852 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9853 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'
9854 # If the export-symbols file already is a .def file (1st line
9855 # is EXPORTS), use it as is; otherwise, prepend...
9856 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857 cp $export_symbols $output_objdir/$soname.def;
9859 echo EXPORTS > $output_objdir/$soname.def;
9860 cat $export_symbols >> $output_objdir/$soname.def;
9862 $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'
9868 darwin* | rhapsody*)
9869 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9870 archive_cmds_need_lc_CXX=no
9872 rhapsody* | darwin1.[012])
9873 allow_undefined_flag_CXX='-undefined suppress'
9876 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9879 lt_int_apple_cc_single_mod=no
9880 output_verbose_link_cmd='echo'
9881 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9882 lt_int_apple_cc_single_mod=yes
9884 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9885 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9887 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9889 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9891 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9892 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9893 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}'
9895 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9897 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9898 hardcode_direct_CXX=no
9899 hardcode_automatic_CXX=yes
9900 hardcode_shlibpath_var_CXX=unsupported
9901 whole_archive_flag_spec_CXX='-all_load $convenience'
9902 link_all_deplibs_CXX=yes
9907 case $cc_basename in
9909 # FIXME: insert proper C++ library support
9913 # Green Hills C++ Compiler
9914 # FIXME: insert proper C++ library support
9918 # FIXME: insert proper C++ library support
9924 # C++ shared libraries reported to be fairly broken before switch to ELF
9928 archive_cmds_need_lc_CXX=no
9931 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9938 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9939 hardcode_libdir_separator_CXX=:
9940 export_dynamic_flag_spec_CXX='${wl}-E'
9941 hardcode_direct_CXX=yes
9942 hardcode_minus_L_CXX=yes # Not in the search PATH,
9943 # but as the default
9944 # location of the library.
9946 case $cc_basename in
9948 # FIXME: insert proper C++ library support
9952 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'
9953 # Commands to make compiler produce verbose output that lists
9954 # what "hidden" libraries, object files and flags are used when
9955 # linking a shared library.
9957 # There doesn't appear to be a way to prevent this compiler from
9958 # explicitly linking system object files so we need to strip them
9959 # from the output so that they don't get included in the library
9961 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9964 if test "$GXX" = yes; then
9965 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'
9967 # FIXME: insert proper C++ library support
9974 if test $with_gnu_ld = no; then
9977 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9978 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9979 hardcode_libdir_separator_CXX=:
9982 hardcode_libdir_flag_spec_CXX='-L$libdir'
9985 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9986 hardcode_libdir_separator_CXX=:
9987 export_dynamic_flag_spec_CXX='${wl}-E'
9993 hardcode_direct_CXX=no
9994 hardcode_shlibpath_var_CXX=no
9997 hardcode_direct_CXX=no
9998 hardcode_shlibpath_var_CXX=no
9999 hardcode_minus_L_CXX=yes # Not in the search PATH,
10000 # but as the default
10001 # location of the library.
10004 hardcode_direct_CXX=yes
10005 hardcode_minus_L_CXX=yes # Not in the search PATH,
10006 # but as the default
10007 # location of the library.
10011 case $cc_basename in
10013 # FIXME: insert proper C++ library support
10017 case "$host_cpu" in
10019 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10022 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10025 # Commands to make compiler produce verbose output that lists
10026 # what "hidden" libraries, object files and flags are used when
10027 # linking a shared library.
10029 # There doesn't appear to be a way to prevent this compiler from
10030 # explicitly linking system object files so we need to strip them
10031 # from the output so that they don't get included in the library
10033 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'
10036 if test "$GXX" = yes; then
10037 if test $with_gnu_ld = no; then
10038 case "$host_cpu" in
10040 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10043 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'
10048 # FIXME: insert proper C++ library support
10055 case $cc_basename in
10058 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'
10060 # Archives containing C++ object files must be created using
10061 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10062 # necessary to make sure instantiated templates are included
10064 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10067 if test "$GXX" = yes; then
10068 if test "$with_gnu_ld" = no; then
10069 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'
10071 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'
10074 link_all_deplibs_CXX=yes
10077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10078 hardcode_libdir_separator_CXX=:
10081 case $cc_basename in
10083 # Kuck and Associates, Inc. (KAI) C++ Compiler
10085 # KCC will only create a shared library if the output file
10086 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10087 # to its proper name (with version) after linking.
10088 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'
10089 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'
10090 # Commands to make compiler produce verbose output that lists
10091 # what "hidden" libraries, object files and flags are used when
10092 # linking a shared library.
10094 # There doesn't appear to be a way to prevent this compiler from
10095 # explicitly linking system object files so we need to strip them
10096 # from the output so that they don't get included in the library
10098 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'
10100 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10101 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10103 # Archives containing C++ object files must be created using
10104 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10105 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10110 archive_cmds_need_lc_CXX=no
10111 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112 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'
10113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10115 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120 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'
10122 runpath_var=LD_RUN_PATH
10123 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10124 hardcode_libdir_separator_CXX=:
10126 # Commands to make compiler produce verbose output that lists
10127 # what "hidden" libraries, object files and flags are used when
10128 # linking a shared library.
10130 # There doesn't appear to be a way to prevent this compiler from
10131 # explicitly linking system object files so we need to strip them
10132 # from the output so that they don't get included in the library
10134 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'
10139 # FIXME: insert proper C++ library support
10143 # FIXME: insert proper C++ library support
10147 case $cc_basename in
10149 # FIXME: insert proper C++ library support
10153 # FIXME: insert proper C++ library support
10159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10160 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10162 hardcode_libdir_flag_spec_CXX='-R$libdir'
10163 hardcode_direct_CXX=yes
10164 hardcode_shlibpath_var_CXX=no
10166 # Workaround some broken pre-1.5 toolchains
10167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10170 case $cc_basename in
10172 # Kuck and Associates, Inc. (KAI) C++ Compiler
10174 # KCC will only create a shared library if the output file
10175 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10176 # to its proper name (with version) after linking.
10177 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'
10179 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10180 hardcode_libdir_separator_CXX=:
10182 # Archives containing C++ object files must be created using
10183 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10184 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10188 # Rational C++ 2.4.1
10189 # FIXME: insert proper C++ library support
10193 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10194 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'
10196 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10197 hardcode_libdir_separator_CXX=:
10199 # Commands to make compiler produce verbose output that lists
10200 # what "hidden" libraries, object files and flags are used when
10201 # linking a shared library.
10203 # There doesn't appear to be a way to prevent this compiler from
10204 # explicitly linking system object files so we need to strip them
10205 # from the output so that they don't get included in the library
10207 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'
10210 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10211 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10212 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'
10214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10215 hardcode_libdir_separator_CXX=:
10217 # Commands to make compiler produce verbose output that lists
10218 # what "hidden" libraries, object files and flags are used when
10219 # linking a shared library.
10220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10223 # FIXME: insert proper C++ library support
10230 case $cc_basename in
10232 # Kuck and Associates, Inc. (KAI) C++ Compiler
10234 # KCC will only create a shared library if the output file
10235 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10236 # to its proper name (with version) after linking.
10237 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'
10239 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10240 hardcode_libdir_separator_CXX=:
10242 # Archives containing C++ object files must be created using
10243 # the KAI C++ compiler.
10244 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10247 # Rational C++ 2.4.1
10248 # FIXME: insert proper C++ library support
10252 allow_undefined_flag_CXX=' -expect_unresolved \*'
10253 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'
10254 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10255 echo "-hidden">> $lib.exp~
10256 $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~
10259 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10260 hardcode_libdir_separator_CXX=:
10262 # Commands to make compiler produce verbose output that lists
10263 # what "hidden" libraries, object files and flags are used when
10264 # linking a shared library.
10266 # There doesn't appear to be a way to prevent this compiler from
10267 # explicitly linking system object files so we need to strip them
10268 # from the output so that they don't get included in the library
10270 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'
10273 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10274 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10275 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'
10277 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10278 hardcode_libdir_separator_CXX=:
10280 # Commands to make compiler produce verbose output that lists
10281 # what "hidden" libraries, object files and flags are used when
10282 # linking a shared library.
10283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10286 # FIXME: insert proper C++ library support
10293 # FIXME: insert proper C++ library support
10297 archive_cmds_need_lc_CXX=no
10298 case $cc_basename in
10300 # FIXME: insert proper C++ library support
10304 # FIXME: insert proper C++ library support
10310 case $cc_basename in
10313 # FIXME: insert proper C++ library support
10318 # FIXME: insert proper C++ library support
10322 # FIXME: insert proper C++ library support
10328 case $cc_basename in
10330 # Sun C++ 4.2, 5.x and Centerline C++
10331 no_undefined_flag_CXX=' -zdefs'
10332 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10333 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10334 $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'
10336 hardcode_libdir_flag_spec_CXX='-R$libdir'
10337 hardcode_shlibpath_var_CXX=no
10339 solaris2.0-5 | solaris2.0-5.*) ;;
10341 # The C++ compiler is used as linker so we must use $wl
10342 # flag to pass the commands to the underlying system
10344 # Supported since Solaris 2.6 (maybe 2.5.1?)
10345 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10348 link_all_deplibs_CXX=yes
10350 # Commands to make compiler produce verbose output that lists
10351 # what "hidden" libraries, object files and flags are used when
10352 # linking a shared library.
10354 # There doesn't appear to be a way to prevent this compiler from
10355 # explicitly linking system object files so we need to strip them
10356 # from the output so that they don't get included in the library
10358 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'
10360 # Archives containing C++ object files must be created using
10361 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10362 # necessary to make sure instantiated templates are included
10364 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10367 # Green Hills C++ Compiler
10368 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10370 # The C++ compiler must be used to create the archive.
10371 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10374 # GNU C++ compiler with Solaris linker
10375 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10376 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10377 if $CC --version | grep -v '^2\.7' > /dev/null; then
10378 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10379 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10380 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10382 # Commands to make compiler produce verbose output that lists
10383 # what "hidden" libraries, object files and flags are used when
10384 # linking a shared library.
10385 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10387 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10389 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10390 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10391 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10393 # Commands to make compiler produce verbose output that lists
10394 # what "hidden" libraries, object files and flags are used when
10395 # linking a shared library.
10396 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10399 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10404 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10405 archive_cmds_need_lc_CXX=no
10408 case $cc_basename in
10410 # NonStop-UX NCC 3.20
10411 # FIXME: insert proper C++ library support
10415 # FIXME: insert proper C++ library support
10421 # FIXME: insert proper C++ library support
10425 # FIXME: insert proper C++ library support
10429 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10430 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10431 test "$ld_shlibs_CXX" = no && can_build_shared=no
10437 ## There is no encapsulation within the following macros, do not change
10438 ## the running order or otherwise move them around unless you know exactly
10439 ## what you are doing...
10441 cat > conftest.$ac_ext <<EOF
10445 Foo (void) { a = 0; }
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; then
10456 # Parse the compiler output and extract the necessary
10457 # objects, libraries and library flags.
10459 # Sentinel used to keep track of whether or not we are before
10460 # the conftest object file.
10461 pre_test_object_deps_done=no
10463 # The `*' in the case matches for architectures that use `case' in
10464 # $output_verbose_cmd can trigger glob expansion during the loop
10465 # eval without this substitution.
10466 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10468 for p in `eval $output_verbose_link_cmd`; do
10472 # Some compilers place space between "-{L,R}" and the path.
10473 # Remove the space.
10474 if test $p = "-L" \
10475 || test $p = "-R"; then
10482 if test "$pre_test_object_deps_done" = no; then
10485 # Internal compiler library paths should come after those
10486 # provided the user. The postdeps already come after the
10487 # user supplied libs so there is no need to process them.
10488 if test -z "$compiler_lib_search_path_CXX"; then
10489 compiler_lib_search_path_CXX="${prev}${p}"
10491 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10494 # The "-l" case would never come before the object being
10495 # linked, so don't bother handling this case.
10498 if test -z "$postdeps_CXX"; then
10499 postdeps_CXX="${prev}${p}"
10501 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10507 # This assumes that the test object file only shows up
10508 # once in the compiler output.
10509 if test "$p" = "conftest.$objext"; then
10510 pre_test_object_deps_done=yes
10514 if test "$pre_test_object_deps_done" = no; then
10515 if test -z "$predep_objects_CXX"; then
10516 predep_objects_CXX="$p"
10518 predep_objects_CXX="$predep_objects_CXX $p"
10521 if test -z "$postdep_objects_CXX"; then
10522 postdep_objects_CXX="$p"
10524 postdep_objects_CXX="$postdep_objects_CXX $p"
10529 *) ;; # Ignore the rest.
10537 echo "libtool.m4: error: problem compiling CXX test program"
10540 $rm -f confest.$objext
10542 case " $postdeps_CXX " in
10543 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10546 lt_prog_compiler_wl_CXX=
10547 lt_prog_compiler_pic_CXX=
10548 lt_prog_compiler_static_CXX=
10550 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10551 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10553 # C++ specific cases for pic, static, wl, etc.
10554 if test "$GXX" = yes; then
10555 lt_prog_compiler_wl_CXX='-Wl,'
10556 lt_prog_compiler_static_CXX='-static'
10560 # All AIX code is PIC.
10561 if test "$host_cpu" = ia64; then
10562 # AIX 5 now supports IA64 processor
10563 lt_prog_compiler_static_CXX='-Bstatic'
10567 # FIXME: we need at least 68020 code to build shared libraries, but
10568 # adding the `-m68020' flag to GCC prevents building anything better,
10570 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10572 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10573 # PIC is the default for these OSes.
10575 mingw* | os2* | pw32*)
10576 # This hack is so that the source file can tell whether it is being
10577 # built for inclusion in a dll (and should export symbols for example).
10578 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10580 darwin* | rhapsody*)
10581 # PIC is the default on this platform
10582 # Common symbols not allowed in MH_DYLIB files
10583 lt_prog_compiler_pic_CXX='-fno-common'
10586 # DJGPP does not support shared libraries at all
10587 lt_prog_compiler_pic_CXX=
10590 if test -d /usr/nec; then
10591 lt_prog_compiler_pic_CXX=-Kconform_pic
10595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10596 # not for PA HP-UX.
10597 case "$host_cpu" in
10601 lt_prog_compiler_pic_CXX='-fPIC'
10606 lt_prog_compiler_pic_CXX='-fPIC'
10612 # All AIX code is PIC.
10613 if test "$host_cpu" = ia64; then
10614 # AIX 5 now supports IA64 processor
10615 lt_prog_compiler_static_CXX='-Bstatic'
10617 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10621 case $cc_basename in
10623 # Green Hills C++ Compiler
10624 # _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"
10629 case $cc_basename in
10631 lt_prog_compiler_pic_CXX='-KPIC'
10634 # Green Hills C++ Compiler
10635 lt_prog_compiler_pic_CXX='-pic'
10642 # FreeBSD uses GNU C++
10644 hpux9* | hpux10* | hpux11*)
10645 case $cc_basename in
10647 lt_prog_compiler_wl_CXX='-Wl,'
10648 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10649 if test "$host_cpu" != ia64; then
10650 lt_prog_compiler_pic_CXX='+Z'
10654 lt_prog_compiler_wl_CXX='-Wl,'
10655 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10656 case "$host_cpu" in
10661 lt_prog_compiler_pic_CXX='+Z'
10669 irix5* | irix6* | nonstopux*)
10670 case $cc_basename in
10672 lt_prog_compiler_wl_CXX='-Wl,'
10673 lt_prog_compiler_static_CXX='-non_shared'
10674 # CC pic flag -KPIC is the default.
10681 case $cc_basename in
10684 lt_prog_compiler_wl_CXX='--backend -Wl,'
10685 lt_prog_compiler_pic_CXX='-fPIC'
10689 lt_prog_compiler_wl_CXX='-Wl,'
10690 lt_prog_compiler_pic_CXX='-KPIC'
10691 lt_prog_compiler_static_CXX='-static'
10695 # Make sure the PIC flag is empty. It appears that all Alpha
10696 # Linux and Compaq Tru64 Unix objects are PIC.
10697 lt_prog_compiler_pic_CXX=
10698 lt_prog_compiler_static_CXX='-non_shared'
10709 case $cc_basename in
10711 lt_prog_compiler_pic_CXX='-W c,exportall'
10719 osf3* | osf4* | osf5*)
10720 case $cc_basename in
10722 lt_prog_compiler_wl_CXX='--backend -Wl,'
10725 # Rational C++ 2.4.1
10726 lt_prog_compiler_pic_CXX='-pic'
10729 # Digital/Compaq C++
10730 lt_prog_compiler_wl_CXX='-Wl,'
10731 # Make sure the PIC flag is empty. It appears that all Alpha
10732 # Linux and Compaq Tru64 Unix objects are PIC.
10733 lt_prog_compiler_pic_CXX=
10734 lt_prog_compiler_static_CXX='-non_shared'
10743 case $cc_basename in
10745 lt_prog_compiler_pic_CXX='-fPIC'
10752 case $cc_basename in
10754 # Sun C++ 4.2, 5.x and Centerline C++
10755 lt_prog_compiler_pic_CXX='-KPIC'
10756 lt_prog_compiler_static_CXX='-Bstatic'
10757 lt_prog_compiler_wl_CXX='-Qoption ld '
10760 # Green Hills C++ Compiler
10761 lt_prog_compiler_pic_CXX='-PIC'
10768 case $cc_basename in
10771 lt_prog_compiler_pic_CXX='-pic'
10772 lt_prog_compiler_static_CXX='-Bstatic'
10776 lt_prog_compiler_pic_CXX='-pic'
10783 case $cc_basename in
10785 # NonStop-UX NCC 3.20
10786 lt_prog_compiler_pic_CXX='-KPIC'
10797 lt_prog_compiler_can_build_shared_CXX=no
10802 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10803 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10806 # Check to make sure the PIC flag actually works.
10808 if test -n "$lt_prog_compiler_pic_CXX"; then
10809 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10810 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10811 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 lt_prog_compiler_pic_works_CXX=no
10815 ac_outfile=conftest.$ac_objext
10816 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10817 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10818 # Insert the option either (1) after the last *FLAGS variable, or
10819 # (2) before a word containing "conftest.", or (3) at the end.
10820 # Note that $ac_compile itself does not contain backslashes and begins
10821 # with a dollar sign (not a hyphen), so the echo should work correctly.
10822 # The option is referenced via a variable to avoid confusing sed.
10823 lt_compile=`echo "$ac_compile" | $SED \
10824 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10826 -e 's:$: $lt_compiler_flag:'`
10827 (eval echo "\"\$as_me:10827: $lt_compile\"" >&5)
10828 (eval "$lt_compile" 2>conftest.err)
10830 cat conftest.err >&5
10831 echo "$as_me:10831: \$? = $ac_status" >&5
10832 if (exit $ac_status) && test -s "$ac_outfile"; then
10833 # The compiler can only warn and ignore the option if not recognized
10834 # So say no if there are warnings
10835 if test ! -s conftest.err; then
10836 lt_prog_compiler_pic_works_CXX=yes
10842 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10843 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10845 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10846 case $lt_prog_compiler_pic_CXX in
10848 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10851 lt_prog_compiler_pic_CXX=
10852 lt_prog_compiler_can_build_shared_CXX=no
10857 # For platforms which do not support PIC, -DPIC is meaningless:
10859 lt_prog_compiler_pic_CXX=
10862 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10866 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10868 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 lt_cv_prog_compiler_c_o_CXX=no
10872 $rm -r conftest 2>/dev/null
10876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10878 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10879 # that will create temporary files in the current directory regardless of
10880 # the output directory. Thus, making CWD read-only will cause this test
10881 # to fail, enabling locking or at least warning the user not to do parallel
10885 lt_compiler_flag="-o out/conftest2.$ac_objext"
10886 # Insert the option either (1) after the last *FLAGS variable, or
10887 # (2) before a word containing "conftest.", or (3) at the end.
10888 # Note that $ac_compile itself does not contain backslashes and begins
10889 # with a dollar sign (not a hyphen), so the echo should work correctly.
10890 lt_compile=`echo "$ac_compile" | $SED \
10891 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10893 -e 's:$: $lt_compiler_flag:'`
10894 (eval echo "\"\$as_me:10894: $lt_compile\"" >&5)
10895 (eval "$lt_compile" 2>out/conftest.err)
10897 cat out/conftest.err >&5
10898 echo "$as_me:10898: \$? = $ac_status" >&5
10899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10901 # The compiler can only warn and ignore the option if not recognized
10902 # So say no if there are warnings
10903 if test ! -s out/conftest.err; then
10904 lt_cv_prog_compiler_c_o_CXX=yes
10908 $rm conftest* out/*
10915 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10916 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10919 hard_links="nottested"
10920 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10921 # do not overwrite the value of need_locks provided by the user
10922 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10923 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10928 ln conftest.a conftest.b 2>&5 || hard_links=no
10929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10930 echo "$as_me:$LINENO: result: $hard_links" >&5
10931 echo "${ECHO_T}$hard_links" >&6
10932 if test "$hard_links" = no; then
10933 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10934 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10941 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10942 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10947 # If we're using GNU nm, then we don't want the "-C" option.
10948 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10949 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10950 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'
10952 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'
10956 export_symbols_cmds_CXX="$ltdll_cmds"
10959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10966 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10967 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10968 test "$ld_shlibs_CXX" = no && can_build_shared=no
10970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10971 if test "$GCC" = yes; then
10972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10976 # Do we need to explicitly link libc?
10978 case "x$archive_cmds_need_lc_CXX" in
10980 # Assume -lc should be added
10981 archive_cmds_need_lc_CXX=yes
10983 if test "$enable_shared" = yes && test "$GCC" = yes; then
10984 case $archive_cmds_CXX in
10986 # FIXME: we may have to deal with multi-command sequences.
10989 # Test whether the compiler implicitly links with -lc since on some
10990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10991 # to ld, don't add -lc before -lgcc.
10992 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10998 (eval $ac_compile) 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } 2>conftest.err; then
11004 libobjs=conftest.$ac_objext
11006 wl=$lt_prog_compiler_wl_CXX
11012 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11013 allow_undefined_flag_CXX=
11014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11015 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }
11020 archive_cmds_need_lc_CXX=no
11022 archive_cmds_need_lc_CXX=yes
11024 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11026 cat conftest.err 1>&5
11029 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11030 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11037 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11038 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11039 hardcode_action_CXX=
11040 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11041 test -n "$runpath_var CXX" || \
11042 test "X$hardcode_automatic_CXX"="Xyes" ; then
11044 # We can hardcode non-existant directories.
11045 if test "$hardcode_direct_CXX" != no &&
11046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11047 # have to relink, otherwise we might link with an installed library
11048 # when we should be linking with a yet-to-be-installed one
11049 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11050 test "$hardcode_minus_L_CXX" != no; then
11051 # Linking always hardcodes the temporary library directory.
11052 hardcode_action_CXX=relink
11054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11055 hardcode_action_CXX=immediate
11058 # We cannot hardcode anything, or else we can only hardcode existing
11060 hardcode_action_CXX=unsupported
11062 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11063 echo "${ECHO_T}$hardcode_action_CXX" >&6
11065 if test "$hardcode_action_CXX" = relink; then
11066 # Fast installation is not supported
11067 enable_fast_install=no
11068 elif test "$shlibpath_overrides_runpath" = yes ||
11069 test "$enable_shared" = no; then
11070 # Fast installation is not necessary
11071 enable_fast_install=needless
11076 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11077 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11078 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11079 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11080 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11081 echo "$as_me:$LINENO: result: yes" >&5
11082 echo "${ECHO_T}yes" >&6
11084 # FIXME - insert some real tests, host_os isn't really good enough
11087 if test -n "$STRIP" ; then
11088 striplib="$STRIP -x"
11089 echo "$as_me:$LINENO: result: yes" >&5
11090 echo "${ECHO_T}yes" >&6
11092 echo "$as_me:$LINENO: result: no" >&5
11093 echo "${ECHO_T}no" >&6
11097 echo "$as_me:$LINENO: result: no" >&5
11098 echo "${ECHO_T}no" >&6
11103 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11104 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11105 library_names_spec=
11106 libname_spec='lib$name'
11110 postuninstall_cmds=
11114 shlibpath_overrides_runpath=unknown
11116 dynamic_linker="$host_os ld.so"
11117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11118 if test "$GCC" = yes; then
11119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11120 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11121 # if the path contains ";" then we assume it to be the separator
11122 # otherwise default to the standard path separator (i.e. ":") - it is
11123 # assumed that no part of a normal pathname contains ";" but that should
11124 # okay in the real world where ";" in dirpaths is itself problematic.
11125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11132 need_lib_prefix=unknown
11133 hardcode_into_libs=no
11135 # when you set need_version to no, make sure it does not cause -set_version
11136 # flags to be left without arguments
11137 need_version=unknown
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11143 shlibpath_var=LIBPATH
11145 # AIX 3 has no versioning support, so we append a major version to the name.
11146 soname_spec='${libname}${release}${shared_ext}$major'
11153 hardcode_into_libs=yes
11154 if test "$host_cpu" = ia64; then
11155 # AIX 5 supports IA64
11156 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11157 shlibpath_var=LD_LIBRARY_PATH
11159 # With GCC up to 2.95.x, collect2 would create an import file
11160 # for dependence libraries. The import file would start with
11161 # the line `#! .'. This would cause the generated library to
11162 # depend on `.', always an invalid library. This was fixed in
11163 # development snapshots of GCC prior to 3.0.
11165 aix4 | aix4.[01] | aix4.[01].*)
11166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11168 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11171 can_build_shared=no
11175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11176 # soname into executable. Probably we can add versioning support to
11177 # collect2, so additional links can be useful in future.
11178 if test "$aix_use_runtimelinking" = yes; then
11179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11180 # instead of lib<name>.a to let people know that these are not
11181 # typical AIX shared libraries.
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 # We preserve .a as extension for shared libraries through AIX4.2
11185 # and later when we are not doing run time linking.
11186 library_names_spec='${libname}${release}.a $libname.a'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11189 shlibpath_var=LIBPATH
11194 library_names_spec='$libname.ixlibrary $libname.a'
11195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11196 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'
11200 library_names_spec='${libname}${shared_ext}'
11201 dynamic_linker="$host_os ld.so"
11202 shlibpath_var=LIBRARY_PATH
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11214 # the default ld.so.conf also contains /usr/contrib/lib and
11215 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11216 # libtool to hard-code these into programs
11219 cygwin* | mingw* | pw32*)
11220 version_type=windows
11225 case $GCC,$host_os in
11226 yes,cygwin* | yes,mingw* | yes,pw32*)
11227 library_names_spec='$libname.dll.a'
11228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11229 postinstall_cmds='base_file=`basename \${file}`~
11230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11231 dldir=$destdir/`dirname \$dlpath`~
11232 test -d \$dldir || mkdir -p \$dldir~
11233 $install_prog $dir/$dlname \$dldir/$dlname'
11234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11235 dlpath=$dir/\$dldll~
11237 shlibpath_overrides_runpath=yes
11241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11243 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11246 # MinGW DLLs use traditional 'lib' prefix
11247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11249 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11250 # It is most probably a Windows format PATH printed by
11251 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11252 # path with ; separators, and with drive letters. We can handle the
11253 # drive letters (cygwin fileutils understands them), so leave them,
11254 # especially as we might pass files found there to a mingw objdump,
11255 # which wouldn't understand a cygwinified path. Ahh.
11256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11262 # pw32 DLLs use 'pw' prefix rather than 'lib'
11263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11272 dynamic_linker='Win32 ld.exe'
11273 # FIXME: first we should search . and the directory the executable is in
11277 darwin* | rhapsody*)
11278 dynamic_linker="$host_os dyld"
11279 version_type=darwin
11282 # FIXME: Relying on posixy $() will cause problems for
11283 # cross-compilation, but unfortunately the echo tests do not
11284 # yet detect zsh echo's removal of \ escapes.
11285 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11286 soname_spec='${libname}${release}${major}$shared_ext'
11287 shlibpath_overrides_runpath=yes
11288 shlibpath_var=DYLD_LIBRARY_PATH
11289 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11290 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11291 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11292 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"`
11294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11311 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11312 version_type=freebsd-$objformat
11313 case $version_type in
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11324 shlibpath_var=LD_LIBRARY_PATH
11327 shlibpath_overrides_runpath=yes
11329 freebsd3.01* | freebsdelf3.01*)
11330 shlibpath_overrides_runpath=yes
11331 hardcode_into_libs=yes
11334 shlibpath_overrides_runpath=no
11335 hardcode_into_libs=yes
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 hardcode_into_libs=yes
11350 hpux9* | hpux10* | hpux11*)
11351 # Give a soname corresponding to the major version so that dld.sl refuses to
11352 # link against other versions.
11356 case "$host_cpu" in
11359 hardcode_into_libs=yes
11360 dynamic_linker="$host_os dld.so"
11361 shlibpath_var=LD_LIBRARY_PATH
11362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11365 if test "X$HPUX_IA64_MODE" = X32; then
11366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11374 hardcode_into_libs=yes
11375 dynamic_linker="$host_os dld.sl"
11376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11385 dynamic_linker="$host_os dld.sl"
11386 shlibpath_var=SHLIB_PATH
11387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11393 postinstall_cmds='chmod 555 $lib'
11396 irix5* | irix6* | nonstopux*)
11398 nonstopux*) version_type=nonstopux ;;
11400 if test "$lt_cv_prog_gnu_ld" = yes; then
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11411 irix5* | nonstopux*)
11412 libsuff= shlibsuff=
11415 case $LD in # libtool.m4 will add one of these switches to LD
11416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11417 libsuff= shlibsuff= libmagic=32-bit;;
11418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11419 libsuff=32 shlibsuff=N32 libmagic=N32;;
11420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11422 *) libsuff= shlibsuff= libmagic=never-match;;
11426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11427 shlibpath_overrides_runpath=no
11428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11430 hardcode_into_libs=yes
11433 # No shared lib support for Linux oldld, aout, or coff.
11434 linux*oldld* | linux*aout* | linux*coff*)
11438 # This must be Linux ELF.
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 shlibpath_overrides_runpath=no
11448 # This implies no fast_install, which is unacceptable.
11449 # Some rework will be needed to allow for fast_install
11450 # before this can be enabled.
11451 hardcode_into_libs=yes
11453 # We used to test for /lib/ld.so.1 and disable shared libraries on
11454 # powerpc, because MkLinux only supported shared libraries with the
11455 # GNU dynamic linker. Since this was broken with cross compilers,
11456 # most powerpc-linux boxes support dynamic linking these days and
11457 # people can always --disable-shared, the test was removed, and we
11458 # assume the GNU/Linux dynamic linker is in use.
11459 dynamic_linker='GNU/Linux ld.so'
11466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11469 dynamic_linker='NetBSD (a.out) ld.so'
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 dynamic_linker='NetBSD ld.elf_so'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes
11477 hardcode_into_libs=yes
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath=yes
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 shlibpath_overrides_runpath=yes
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11506 openbsd2.[89] | openbsd2.[89].*)
11507 shlibpath_overrides_runpath=no
11510 shlibpath_overrides_runpath=yes
11514 shlibpath_overrides_runpath=yes
11519 libname_spec='$name'
11522 library_names_spec='$libname${shared_ext} $libname.a'
11523 dynamic_linker='OS/2 ld.exe'
11524 shlibpath_var=LIBPATH
11527 osf3* | osf4* | osf5*)
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11535 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542 shlibpath_var=LD_LIBRARY_PATH
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes
11553 hardcode_into_libs=yes
11554 # ldd complains unless libraries are executable
11555 postinstall_cmds='chmod +x $lib'
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 shlibpath_overrides_runpath=yes
11564 if test "$with_gnu_ld" = yes; then
11570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 case $host_vendor in
11577 shlibpath_overrides_runpath=no
11579 export_dynamic_flag_spec='${wl}-Blargedynsym'
11580 runpath_var=LD_RUN_PATH
11588 shlibpath_overrides_runpath=no
11589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11595 if test -d /usr/nec ;then
11597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11598 soname_spec='$libname${shared_ext}.$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11614 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11615 echo "${ECHO_T}$dynamic_linker" >&6
11616 test "$dynamic_linker" = no && can_build_shared=no
11618 if test "x$enable_dlopen" != xyes; then
11619 enable_dlopen=unknown
11620 enable_dlopen_self=unknown
11621 enable_dlopen_self_static=unknown
11628 lt_cv_dlopen="load_add_on"
11630 lt_cv_dlopen_self=yes
11634 lt_cv_dlopen="LoadLibrary"
11639 lt_cv_dlopen="dlopen"
11644 # if libdl is installed we need to link against it
11645 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11646 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 ac_check_lib_save_LIBS=$LIBS
11652 cat >conftest.$ac_ext <<_ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11659 /* Override any gcc2 internal prototype to avoid an error. */
11663 /* We use char because int might match the return type of a gcc2
11664 builtin and then its argument prototype would still apply. */
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676 (eval $ac_link) 2>conftest.er1
11678 grep -v '^ *+' conftest.er1 >conftest.err
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
11683 { ac_try='test -z "$ac_cxx_werror_flag"
11684 || test ! -s conftest.err'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 ac_cv_lib_dl_dlopen=yes
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11701 ac_cv_lib_dl_dlopen=no
11703 rm -f conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11707 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11708 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11709 if test $ac_cv_lib_dl_dlopen = yes; then
11710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11713 lt_cv_dlopen="dyld"
11715 lt_cv_dlopen_self=yes
11722 echo "$as_me:$LINENO: checking for shl_load" >&5
11723 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11724 if test "${ac_cv_func_shl_load+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 cat >conftest.$ac_ext <<_ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11735 #define shl_load innocuous_shl_load
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char shl_load (); below.
11739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740 <limits.h> exists even on freestanding compilers. */
11743 # include <limits.h>
11745 # include <assert.h>
11750 /* Override any gcc2 internal prototype to avoid an error. */
11755 /* We use char because int might match the return type of a gcc2
11756 builtin and then its argument prototype would still apply. */
11758 /* The GNU C library defines this for functions which it implements
11759 to always fail with ENOSYS. Some functions are actually named
11760 something starting with __ and the normal name is an alias. */
11761 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11764 char (*f) () = shl_load;
11773 return f != shl_load;
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_cxx_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest$ac_exeext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_func_shl_load=yes
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_cv_func_shl_load=no
11807 rm -f conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11810 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11811 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11812 if test $ac_cv_func_shl_load = yes; then
11813 lt_cv_dlopen="shl_load"
11815 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 ac_check_lib_save_LIBS=$LIBS
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11829 /* Override any gcc2 internal prototype to avoid an error. */
11833 /* We use char because int might match the return type of a gcc2
11834 builtin and then its argument prototype would still apply. */
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846 (eval $ac_link) 2>conftest.er1
11848 grep -v '^ *+' conftest.er1 >conftest.err
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -z "$ac_cxx_werror_flag"
11854 || test ! -s conftest.err'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 ac_cv_lib_dld_shl_load=yes
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 ac_cv_lib_dld_shl_load=no
11873 rm -f conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11875 LIBS=$ac_check_lib_save_LIBS
11877 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11878 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11879 if test $ac_cv_lib_dld_shl_load = yes; then
11880 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11882 echo "$as_me:$LINENO: checking for dlopen" >&5
11883 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11884 if test "${ac_cv_func_dlopen+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11895 #define dlopen innocuous_dlopen
11897 /* System header to define __stub macros and hopefully few prototypes,
11898 which can conflict with char dlopen (); below.
11899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11900 <limits.h> exists even on freestanding compilers. */
11903 # include <limits.h>
11905 # include <assert.h>
11910 /* Override any gcc2 internal prototype to avoid an error. */
11915 /* We use char because int might match the return type of a gcc2
11916 builtin and then its argument prototype would still apply. */
11918 /* The GNU C library defines this for functions which it implements
11919 to always fail with ENOSYS. Some functions are actually named
11920 something starting with __ and the normal name is an alias. */
11921 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11924 char (*f) () = dlopen;
11933 return f != dlopen;
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940 (eval $ac_link) 2>conftest.er1
11942 grep -v '^ *+' conftest.er1 >conftest.err
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_cxx_werror_flag"
11948 || test ! -s conftest.err'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest$ac_exeext'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 ac_cv_func_dlopen=yes
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 ac_cv_func_dlopen=no
11967 rm -f conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11970 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11971 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11972 if test $ac_cv_func_dlopen = yes; then
11973 lt_cv_dlopen="dlopen"
11975 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11976 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11977 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 ac_check_lib_save_LIBS=$LIBS
11982 cat >conftest.$ac_ext <<_ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11989 /* Override any gcc2 internal prototype to avoid an error. */
11993 /* We use char because int might match the return type of a gcc2
11994 builtin and then its argument prototype would still apply. */
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006 (eval $ac_link) 2>conftest.er1
12008 grep -v '^ *+' conftest.er1 >conftest.err
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try='test -z "$ac_cxx_werror_flag"
12014 || test ! -s conftest.err'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest$ac_exeext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_lib_dl_dlopen=yes
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ac_cv_lib_dl_dlopen=no
12033 rm -f conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035 LIBS=$ac_check_lib_save_LIBS
12037 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12038 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12039 if test $ac_cv_lib_dl_dlopen = yes; then
12040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12042 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12043 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12044 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-lsvld $LIBS"
12049 cat >conftest.$ac_ext <<_ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12056 /* Override any gcc2 internal prototype to avoid an error. */
12060 /* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073 (eval $ac_link) 2>conftest.er1
12075 grep -v '^ *+' conftest.er1 >conftest.err
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_cxx_werror_flag"
12081 || test ! -s conftest.err'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_lib_svld_dlopen=yes
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 ac_cv_lib_svld_dlopen=no
12100 rm -f conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
12102 LIBS=$ac_check_lib_save_LIBS
12104 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12105 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12106 if test $ac_cv_lib_svld_dlopen = yes; then
12107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12109 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12110 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12111 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 ac_check_lib_save_LIBS=$LIBS
12116 cat >conftest.$ac_ext <<_ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12123 /* Override any gcc2 internal prototype to avoid an error. */
12127 /* We use char because int might match the return type of a gcc2
12128 builtin and then its argument prototype would still apply. */
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140 (eval $ac_link) 2>conftest.er1
12142 grep -v '^ *+' conftest.er1 >conftest.err
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try='test -z "$ac_cxx_werror_flag"
12148 || test ! -s conftest.err'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; } &&
12154 { ac_try='test -s conftest$ac_exeext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 ac_cv_lib_dld_dld_link=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_cv_lib_dld_dld_link=no
12167 rm -f conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12171 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12172 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12173 if test $ac_cv_lib_dld_dld_link = yes; then
12174 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12195 if test "x$lt_cv_dlopen" != xno; then
12201 case $lt_cv_dlopen in
12203 save_CPPFLAGS="$CPPFLAGS"
12204 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12206 save_LDFLAGS="$LDFLAGS"
12207 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12210 LIBS="$lt_cv_dlopen_libs $LIBS"
12212 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12213 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12214 if test "${lt_cv_dlopen_self+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 if test "$cross_compiling" = yes; then :
12218 lt_cv_dlopen_self=cross
12220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12221 lt_status=$lt_dlunknown
12222 cat > conftest.$ac_ext <<EOF
12223 #line 12223 "configure"
12224 #include "confdefs.h"
12233 # define LT_DLGLOBAL RTLD_GLOBAL
12236 # define LT_DLGLOBAL DL_GLOBAL
12238 # define LT_DLGLOBAL 0
12242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12243 find out it does not work in some platform. */
12244 #ifndef LT_DLLAZY_OR_NOW
12246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12249 # define LT_DLLAZY_OR_NOW DL_LAZY
12252 # define LT_DLLAZY_OR_NOW RTLD_NOW
12255 # define LT_DLLAZY_OR_NOW DL_NOW
12257 # define LT_DLLAZY_OR_NOW 0
12265 extern "C" void exit (int);
12268 void fnord() { int i=42;}
12271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12272 int status = $lt_dlunknown;
12276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12278 /* dlclose (self); */
12284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12285 (eval $ac_link) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12289 (./conftest; exit; ) 2>/dev/null
12291 case x$lt_status in
12292 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12293 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12294 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12297 # compilation failed
12298 lt_cv_dlopen_self=no
12305 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12306 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12308 if test "x$lt_cv_dlopen_self" = xyes; then
12309 LDFLAGS="$LDFLAGS $link_static_flag"
12310 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12311 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12312 if test "${lt_cv_dlopen_self_static+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 if test "$cross_compiling" = yes; then :
12316 lt_cv_dlopen_self_static=cross
12318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12319 lt_status=$lt_dlunknown
12320 cat > conftest.$ac_ext <<EOF
12321 #line 12321 "configure"
12322 #include "confdefs.h"
12331 # define LT_DLGLOBAL RTLD_GLOBAL
12334 # define LT_DLGLOBAL DL_GLOBAL
12336 # define LT_DLGLOBAL 0
12340 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12341 find out it does not work in some platform. */
12342 #ifndef LT_DLLAZY_OR_NOW
12344 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12347 # define LT_DLLAZY_OR_NOW DL_LAZY
12350 # define LT_DLLAZY_OR_NOW RTLD_NOW
12353 # define LT_DLLAZY_OR_NOW DL_NOW
12355 # define LT_DLLAZY_OR_NOW 0
12363 extern "C" void exit (int);
12366 void fnord() { int i=42;}
12369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12370 int status = $lt_dlunknown;
12374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12376 /* dlclose (self); */
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383 (eval $ac_link) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12387 (./conftest; exit; ) 2>/dev/null
12389 case x$lt_status in
12390 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12391 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12392 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12395 # compilation failed
12396 lt_cv_dlopen_self_static=no
12403 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12404 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12407 CPPFLAGS="$save_CPPFLAGS"
12408 LDFLAGS="$save_LDFLAGS"
12413 case $lt_cv_dlopen_self in
12414 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12415 *) enable_dlopen_self=unknown ;;
12418 case $lt_cv_dlopen_self_static in
12419 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12420 *) enable_dlopen_self_static=unknown ;;
12425 # The else clause should only fire when bootstrapping the
12426 # libtool distribution, otherwise you forgot to ship ltmain.sh
12427 # with your package, and you will get complaints that there are
12428 # no rules to generate ltmain.sh.
12429 if test -f "$ltmain"; then
12430 # See if we are running on zsh, and set the options which allow our commands through
12431 # without removal of \ escapes.
12432 if test -n "${ZSH_VERSION+set}" ; then
12433 setopt NO_GLOB_SUBST
12435 # Now quote all the things that may contain metacharacters while being
12436 # careful not to overquote the AC_SUBSTed values. We take copies of the
12437 # variables and quote the copies for generation of the libtool script.
12438 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12439 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12440 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12441 deplibs_check_method reload_flag reload_cmds need_locks \
12442 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12443 lt_cv_sys_global_symbol_to_c_name_address \
12444 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12445 old_postinstall_cmds old_postuninstall_cmds \
12449 lt_prog_compiler_wl_CXX \
12450 lt_prog_compiler_pic_CXX \
12451 lt_prog_compiler_static_CXX \
12452 lt_prog_compiler_no_builtin_flag_CXX \
12453 export_dynamic_flag_spec_CXX \
12454 thread_safe_flag_spec_CXX \
12455 whole_archive_flag_spec_CXX \
12456 enable_shared_with_static_runtimes_CXX \
12457 old_archive_cmds_CXX \
12458 old_archive_from_new_cmds_CXX \
12459 predep_objects_CXX \
12460 postdep_objects_CXX \
12463 compiler_lib_search_path_CXX \
12465 archive_expsym_cmds_CXX \
12466 postinstall_cmds_CXX \
12467 postuninstall_cmds_CXX \
12468 old_archive_from_expsyms_cmds_CXX \
12469 allow_undefined_flag_CXX \
12470 no_undefined_flag_CXX \
12471 export_symbols_cmds_CXX \
12472 hardcode_libdir_flag_spec_CXX \
12473 hardcode_libdir_flag_spec_ld_CXX \
12474 hardcode_libdir_separator_CXX \
12475 hardcode_automatic_CXX \
12477 module_expsym_cmds_CXX \
12478 lt_cv_prog_compiler_c_o_CXX \
12479 exclude_expsyms_CXX \
12480 include_expsyms_CXX; do
12483 old_archive_cmds_CXX | \
12484 old_archive_from_new_cmds_CXX | \
12485 archive_cmds_CXX | \
12486 archive_expsym_cmds_CXX | \
12487 module_cmds_CXX | \
12488 module_expsym_cmds_CXX | \
12489 old_archive_from_expsyms_cmds_CXX | \
12490 export_symbols_cmds_CXX | \
12491 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12492 postinstall_cmds | postuninstall_cmds | \
12493 old_postinstall_cmds | old_postuninstall_cmds | \
12494 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12495 # Double-quote double-evaled strings.
12496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12499 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12505 *'\$0 --fallback-echo"')
12506 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12512 cat <<__EOF__ >> "$cfgfile"
12513 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12515 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12517 # Shell to use when invoking shell scripts.
12520 # Whether or not to build shared libraries.
12521 build_libtool_libs=$enable_shared
12523 # Whether or not to build static libraries.
12524 build_old_libs=$enable_static
12526 # Whether or not to add -lc for building shared libraries.
12527 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12529 # Whether or not to disallow shared libs when runtime libs are static
12530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12532 # Whether or not to optimize for fast installation.
12533 fast_install=$enable_fast_install
12536 host_alias=$host_alias
12539 # An echo program that does not interpret backslashes.
12544 AR_FLAGS=$lt_AR_FLAGS
12549 # A language-specific compiler.
12550 CC=$lt_compiler_CXX
12552 # Is the compiler the GNU C compiler?
12558 # The linker used to build libraries.
12561 # Whether we need hard or soft links.
12564 # A BSD-compatible nm program.
12567 # A symbol stripping program
12570 # Used to examine libraries when file_magic_cmd begins "file"
12571 MAGIC_CMD=$MAGIC_CMD
12573 # Used on cygwin: DLL creation program.
12576 # Used on cygwin: object dumper.
12579 # Used on cygwin: assembler.
12582 # The name of the directory that contains temporary libtool files.
12585 # How to create reloadable object files.
12586 reload_flag=$lt_reload_flag
12587 reload_cmds=$lt_reload_cmds
12589 # How to pass a linker flag through the compiler.
12590 wl=$lt_lt_prog_compiler_wl_CXX
12592 # Object file suffix (normally "o").
12593 objext="$ac_objext"
12595 # Old archive suffix (normally "a").
12598 # Shared library suffix (normally ".so").
12601 # Executable file suffix (normally "").
12604 # Additional compiler flags for building library objects.
12605 pic_flag=$lt_lt_prog_compiler_pic_CXX
12608 # What is the maximum length of a command?
12609 max_cmd_len=$lt_cv_sys_max_cmd_len
12611 # Does compiler simultaneously support -c and -o options?
12612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12614 # Must we lock files when doing compilation ?
12615 need_locks=$lt_need_locks
12617 # Do we need the lib prefix for modules?
12618 need_lib_prefix=$need_lib_prefix
12620 # Do we need a version for libraries?
12621 need_version=$need_version
12623 # Whether dlopen is supported.
12624 dlopen_support=$enable_dlopen
12626 # Whether dlopen of programs is supported.
12627 dlopen_self=$enable_dlopen_self
12629 # Whether dlopen of statically linked programs is supported.
12630 dlopen_self_static=$enable_dlopen_self_static
12632 # Compiler flag to prevent dynamic linking.
12633 link_static_flag=$lt_lt_prog_compiler_static_CXX
12635 # Compiler flag to turn off builtin functions.
12636 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12638 # Compiler flag to allow reflexive dlopens.
12639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12641 # Compiler flag to generate shared objects directly from archives.
12642 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12644 # Compiler flag to generate thread-safe objects.
12645 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12647 # Library versioning type.
12648 version_type=$version_type
12650 # Format of library name prefix.
12651 libname_spec=$lt_libname_spec
12653 # List of archive names. First name is the real one, the rest are links.
12654 # The last name is the one that the linker finds with -lNAME.
12655 library_names_spec=$lt_library_names_spec
12657 # The coded name of the library, if different from the real name.
12658 soname_spec=$lt_soname_spec
12660 # Commands used to build and install an old-style archive.
12662 old_archive_cmds=$lt_old_archive_cmds_CXX
12663 old_postinstall_cmds=$lt_old_postinstall_cmds
12664 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12666 # Create an old-style archive from a shared archive.
12667 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12669 # Create a temporary old-style archive to link instead of a shared archive.
12670 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12672 # Commands used to build and install a shared archive.
12673 archive_cmds=$lt_archive_cmds_CXX
12674 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12675 postinstall_cmds=$lt_postinstall_cmds
12676 postuninstall_cmds=$lt_postuninstall_cmds
12678 # Commands used to build a loadable module (assumed same as above if empty)
12679 module_cmds=$lt_module_cmds_CXX
12680 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12682 # Commands to strip libraries.
12683 old_striplib=$lt_old_striplib
12684 striplib=$lt_striplib
12686 # Dependencies to place before the objects being linked to create a
12688 predep_objects=$lt_predep_objects_CXX
12690 # Dependencies to place after the objects being linked to create a
12692 postdep_objects=$lt_postdep_objects_CXX
12694 # Dependencies to place before the objects being linked to create a
12696 predeps=$lt_predeps_CXX
12698 # Dependencies to place after the objects being linked to create a
12700 postdeps=$lt_postdeps_CXX
12702 # The library search path used internally by the compiler when linking
12703 # a shared library.
12704 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12706 # Method to check whether dependent libraries are shared objects.
12707 deplibs_check_method=$lt_deplibs_check_method
12709 # Command to use when deplibs_check_method == file_magic.
12710 file_magic_cmd=$lt_file_magic_cmd
12712 # Flag that allows shared libraries with undefined symbols to be built.
12713 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12715 # Flag that forces no undefined symbols.
12716 no_undefined_flag=$lt_no_undefined_flag_CXX
12718 # Commands used to finish a libtool library installation in a directory.
12719 finish_cmds=$lt_finish_cmds
12721 # Same as above, but a single script fragment to be evaled but not shown.
12722 finish_eval=$lt_finish_eval
12724 # Take the output of nm and produce a listing of raw symbols and C names.
12725 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12727 # Transform the output of nm in a proper C declaration
12728 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12730 # Transform the output of nm in a C name address pair
12731 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12733 # This is the shared library runtime path variable.
12734 runpath_var=$runpath_var
12736 # This is the shared library path variable.
12737 shlibpath_var=$shlibpath_var
12739 # Is shlibpath searched before the hard-coded library search path?
12740 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12742 # How to hardcode a shared library path into an executable.
12743 hardcode_action=$hardcode_action_CXX
12745 # Whether we should hardcode library paths into libraries.
12746 hardcode_into_libs=$hardcode_into_libs
12748 # Flag to hardcode \$libdir into a binary during linking.
12749 # This must work even if \$libdir does not exist.
12750 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12752 # If ld is used when linking, flag to hardcode \$libdir into
12753 # a binary during linking. This must work even if \$libdir does
12755 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12757 # Whether we need a single -rpath flag with a separated argument.
12758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12760 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12761 # resulting binary.
12762 hardcode_direct=$hardcode_direct_CXX
12764 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12765 # resulting binary.
12766 hardcode_minus_L=$hardcode_minus_L_CXX
12768 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12769 # the resulting binary.
12770 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12772 # Set to yes if building a shared library automatically hardcodes DIR into the library
12773 # and all subsequent libraries and executables linked against it.
12774 hardcode_automatic=$hardcode_automatic_CXX
12776 # Variables whose values should be saved in libtool wrapper scripts and
12777 # restored at relink time.
12778 variables_saved_for_relink="$variables_saved_for_relink"
12780 # Whether libtool must link a program against all its dependency libraries.
12781 link_all_deplibs=$link_all_deplibs_CXX
12783 # Compile-time system search path for libraries
12784 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12786 # Run-time system search path for libraries
12787 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12789 # Fix the shell variable \$srcfile for the compiler.
12790 fix_srcfile_path="$fix_srcfile_path_CXX"
12792 # Set to yes if exported symbols are required.
12793 always_export_symbols=$always_export_symbols_CXX
12795 # The commands to list exported symbols.
12796 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12798 # The commands to extract the exported symbol list from a shared archive.
12799 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12801 # Symbols that should not be listed in the preloaded symbols.
12802 exclude_expsyms=$lt_exclude_expsyms_CXX
12804 # Symbols that must always be exported.
12805 include_expsyms=$lt_include_expsyms_CXX
12807 # ### END LIBTOOL TAG CONFIG: $tagname
12813 # If there is no Makefile yet, we rely on a make rule to execute
12814 # `config.status --recheck' to rerun these tests and create the
12815 # libtool script then.
12816 test -f Makefile && make "$ltmain"
12821 ac_cpp='$CPP $CPPFLAGS'
12822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12830 with_gnu_ldcxx=$with_gnu_ld
12831 with_gnu_ld=$lt_save_with_gnu_ld
12832 lt_cv_path_LDCXX=$lt_cv_path_LD
12833 lt_cv_path_LD=$lt_save_path_LD
12834 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12835 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12843 if test -n "$F77" && test "X$F77" != "Xno"; then
12846 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12847 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12851 archive_cmds_need_lc_F77=no
12852 allow_undefined_flag_F77=
12853 always_export_symbols_F77=no
12854 archive_expsym_cmds_F77=
12855 export_dynamic_flag_spec_F77=
12856 hardcode_direct_F77=no
12857 hardcode_libdir_flag_spec_F77=
12858 hardcode_libdir_flag_spec_ld_F77=
12859 hardcode_libdir_separator_F77=
12860 hardcode_minus_L_F77=no
12861 hardcode_automatic_F77=no
12863 module_expsym_cmds_F77=
12864 link_all_deplibs_F77=unknown
12865 old_archive_cmds_F77=$old_archive_cmds
12866 no_undefined_flag_F77=
12867 whole_archive_flag_spec_F77=
12868 enable_shared_with_static_runtimes_F77=no
12870 # Source file extension for f77 test sources.
12873 # Object file extension for compiled f77 test sources.
12877 # Code to be used in simple compile tests
12878 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12880 # Code to be used in simple link tests
12881 lt_simple_link_test_code=" program t\n end\n"
12883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12885 # If no C compiler was specified, use CC.
12888 # Allow CC to be a program name with arguments.
12892 # Allow CC to be a program name with arguments.
12897 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12899 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12900 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12901 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12902 echo "${ECHO_T}$can_build_shared" >&6
12904 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12905 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12906 test "$can_build_shared" = "no" && enable_shared=no
12908 # On AIX, shared libraries and static libraries use the same namespace, and
12909 # are all built from PIC.
12912 test "$enable_shared" = yes && enable_static=no
12913 if test -n "$RANLIB"; then
12914 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12915 postinstall_cmds='$RANLIB $lib'
12919 test "$enable_shared" = yes && enable_static=no
12922 echo "$as_me:$LINENO: result: $enable_shared" >&5
12923 echo "${ECHO_T}$enable_shared" >&6
12925 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12926 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12927 # Make sure either enable_shared or enable_static is yes.
12928 test "$enable_shared" = yes || enable_static=yes
12929 echo "$as_me:$LINENO: result: $enable_static" >&5
12930 echo "${ECHO_T}$enable_static" >&6
12932 test "$ld_shlibs_F77" = no && can_build_shared=no
12937 lt_prog_compiler_wl_F77=
12938 lt_prog_compiler_pic_F77=
12939 lt_prog_compiler_static_F77=
12941 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12942 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12944 if test "$GCC" = yes; then
12945 lt_prog_compiler_wl_F77='-Wl,'
12946 lt_prog_compiler_static_F77='-static'
12950 # All AIX code is PIC.
12951 if test "$host_cpu" = ia64; then
12952 # AIX 5 now supports IA64 processor
12953 lt_prog_compiler_static_F77='-Bstatic'
12958 # FIXME: we need at least 68020 code to build shared libraries, but
12959 # adding the `-m68020' flag to GCC prevents building anything better,
12961 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12964 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12965 # PIC is the default for these OSes.
12968 mingw* | pw32* | os2*)
12969 # This hack is so that the source file can tell whether it is being
12970 # built for inclusion in a dll (and should export symbols for example).
12971 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12974 darwin* | rhapsody*)
12975 # PIC is the default on this platform
12976 # Common symbols not allowed in MH_DYLIB files
12977 lt_prog_compiler_pic_F77='-fno-common'
12981 # Just because we use GCC doesn't mean we suddenly get shared libraries
12982 # on systems that don't support them.
12983 lt_prog_compiler_can_build_shared_F77=no
12988 if test -d /usr/nec; then
12989 lt_prog_compiler_pic_F77=-Kconform_pic
12994 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12995 # not for PA HP-UX.
12996 case "$host_cpu" in
13001 lt_prog_compiler_pic_F77='-fPIC'
13007 lt_prog_compiler_pic_F77='-fPIC'
13011 # PORTME Check for flag to pass linker flags through the system compiler.
13014 lt_prog_compiler_wl_F77='-Wl,'
13015 if test "$host_cpu" = ia64; then
13016 # AIX 5 now supports IA64 processor
13017 lt_prog_compiler_static_F77='-Bstatic'
13019 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13023 mingw* | pw32* | os2*)
13024 # This hack is so that the source file can tell whether it is being
13025 # built for inclusion in a dll (and should export symbols for example).
13026 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13029 hpux9* | hpux10* | hpux11*)
13030 lt_prog_compiler_wl_F77='-Wl,'
13031 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13032 # not for PA HP-UX.
13033 case "$host_cpu" in
13038 lt_prog_compiler_pic_F77='+Z'
13041 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13042 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13045 irix5* | irix6* | nonstopux*)
13046 lt_prog_compiler_wl_F77='-Wl,'
13047 # PIC (with -KPIC) is the default.
13048 lt_prog_compiler_static_F77='-non_shared'
13052 lt_prog_compiler_pic_F77='-KPIC'
13053 lt_prog_compiler_static_F77='-Bstatic'
13059 lt_prog_compiler_wl_F77='-Wl,'
13060 lt_prog_compiler_pic_F77='-KPIC'
13061 lt_prog_compiler_static_F77='-static'
13064 lt_prog_compiler_wl_F77='-Wl,'
13065 # All Alpha code is PIC.
13066 lt_prog_compiler_static_F77='-non_shared'
13071 osf3* | osf4* | osf5*)
13072 lt_prog_compiler_wl_F77='-Wl,'
13073 # All OSF/1 code is PIC.
13074 lt_prog_compiler_static_F77='-non_shared'
13078 lt_prog_compiler_pic_F77='-Kpic'
13079 lt_prog_compiler_static_F77='-dn'
13083 lt_prog_compiler_wl_F77='-Wl,'
13084 lt_prog_compiler_pic_F77='-KPIC'
13085 lt_prog_compiler_static_F77='-Bstatic'
13089 lt_prog_compiler_wl_F77='-Qoption ld '
13090 lt_prog_compiler_pic_F77='-PIC'
13091 lt_prog_compiler_static_F77='-Bstatic'
13094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13095 lt_prog_compiler_wl_F77='-Wl,'
13096 lt_prog_compiler_pic_F77='-KPIC'
13097 lt_prog_compiler_static_F77='-Bstatic'
13101 if test -d /usr/nec ;then
13102 lt_prog_compiler_pic_F77='-Kconform_pic'
13103 lt_prog_compiler_static_F77='-Bstatic'
13108 lt_prog_compiler_pic_F77='-pic'
13109 lt_prog_compiler_static_F77='-Bstatic'
13113 lt_prog_compiler_can_build_shared_F77=no
13118 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13119 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13122 # Check to make sure the PIC flag actually works.
13124 if test -n "$lt_prog_compiler_pic_F77"; then
13125 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13126 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13127 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 lt_prog_compiler_pic_works_F77=no
13131 ac_outfile=conftest.$ac_objext
13132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13133 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13134 # Insert the option either (1) after the last *FLAGS variable, or
13135 # (2) before a word containing "conftest.", or (3) at the end.
13136 # Note that $ac_compile itself does not contain backslashes and begins
13137 # with a dollar sign (not a hyphen), so the echo should work correctly.
13138 # The option is referenced via a variable to avoid confusing sed.
13139 lt_compile=`echo "$ac_compile" | $SED \
13140 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13142 -e 's:$: $lt_compiler_flag:'`
13143 (eval echo "\"\$as_me:13143: $lt_compile\"" >&5)
13144 (eval "$lt_compile" 2>conftest.err)
13146 cat conftest.err >&5
13147 echo "$as_me:13147: \$? = $ac_status" >&5
13148 if (exit $ac_status) && test -s "$ac_outfile"; then
13149 # The compiler can only warn and ignore the option if not recognized
13150 # So say no if there are warnings
13151 if test ! -s conftest.err; then
13152 lt_prog_compiler_pic_works_F77=yes
13158 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13159 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13161 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13162 case $lt_prog_compiler_pic_F77 in
13164 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13167 lt_prog_compiler_pic_F77=
13168 lt_prog_compiler_can_build_shared_F77=no
13173 # For platforms which do not support PIC, -DPIC is meaningless:
13175 lt_prog_compiler_pic_F77=
13178 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13182 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13183 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13184 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 lt_cv_prog_compiler_c_o_F77=no
13188 $rm -r conftest 2>/dev/null
13192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13194 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13195 # that will create temporary files in the current directory regardless of
13196 # the output directory. Thus, making CWD read-only will cause this test
13197 # to fail, enabling locking or at least warning the user not to do parallel
13201 lt_compiler_flag="-o out/conftest2.$ac_objext"
13202 # Insert the option either (1) after the last *FLAGS variable, or
13203 # (2) before a word containing "conftest.", or (3) at the end.
13204 # Note that $ac_compile itself does not contain backslashes and begins
13205 # with a dollar sign (not a hyphen), so the echo should work correctly.
13206 lt_compile=`echo "$ac_compile" | $SED \
13207 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13209 -e 's:$: $lt_compiler_flag:'`
13210 (eval echo "\"\$as_me:13210: $lt_compile\"" >&5)
13211 (eval "$lt_compile" 2>out/conftest.err)
13213 cat out/conftest.err >&5
13214 echo "$as_me:13214: \$? = $ac_status" >&5
13215 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13217 # The compiler can only warn and ignore the option if not recognized
13218 # So say no if there are warnings
13219 if test ! -s out/conftest.err; then
13220 lt_cv_prog_compiler_c_o_F77=yes
13224 $rm conftest* out/*
13231 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13232 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13235 hard_links="nottested"
13236 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13237 # do not overwrite the value of need_locks provided by the user
13238 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13239 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13244 ln conftest.a conftest.b 2>&5 || hard_links=no
13245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13246 echo "$as_me:$LINENO: result: $hard_links" >&5
13247 echo "${ECHO_T}$hard_links" >&6
13248 if test "$hard_links" = no; then
13249 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13250 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13257 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13261 allow_undefined_flag_F77=
13262 enable_shared_with_static_runtimes_F77=no
13264 archive_expsym_cmds_F77=
13265 old_archive_From_new_cmds_F77=
13266 old_archive_from_expsyms_cmds_F77=
13267 export_dynamic_flag_spec_F77=
13268 whole_archive_flag_spec_F77=
13269 thread_safe_flag_spec_F77=
13270 hardcode_libdir_flag_spec_F77=
13271 hardcode_libdir_flag_spec_ld_F77=
13272 hardcode_libdir_separator_F77=
13273 hardcode_direct_F77=no
13274 hardcode_minus_L_F77=no
13275 hardcode_shlibpath_var_F77=unsupported
13276 link_all_deplibs_F77=unknown
13277 hardcode_automatic_F77=no
13279 module_expsym_cmds_F77=
13280 always_export_symbols_F77=no
13281 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13282 # include_expsyms should be a list of space-separated symbols to be *always*
13283 # included in the symbol list
13284 include_expsyms_F77=
13285 # exclude_expsyms can be an extended regexp of symbols to exclude
13286 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13287 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13288 # as well as any symbol that contains `d'.
13289 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13290 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13291 # platforms (ab)use it in PIC code, but their linkers get confused if
13292 # the symbol is explicitly referenced. Since portable code cannot
13293 # rely on this symbol name, it's probably fine to never include it in
13294 # preloaded symbol tables.
13295 extract_expsyms_cmds=
13298 cygwin* | mingw* | pw32*)
13299 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13300 # When not using gcc, we currently assume that we are using
13301 # Microsoft Visual C++.
13302 if test "$GCC" != yes; then
13312 if test "$with_gnu_ld" = yes; then
13313 # If archive_cmds runs LD, not CC, wlarc should be empty
13316 # See if GNU ld supports shared libraries.
13318 aix3* | aix4* | aix5*)
13319 # On AIX/PPC, the GNU linker is very broken
13320 if test "$host_cpu" != ia64; then
13324 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13325 *** to be unable to reliably create shared libraries on AIX.
13326 *** Therefore, libtool is disabling shared libraries support. If you
13327 *** really care for shared libraries, you may want to modify your PATH
13328 *** so that a non-GNU linker is found, and then restart.
13335 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)'
13336 hardcode_libdir_flag_spec_F77='-L$libdir'
13337 hardcode_minus_L_F77=yes
13339 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13340 # that the semantics of dynamic libraries on AmigaOS, at least up
13341 # to version 4, is to share data among multiple programs linked
13342 # with the same dynamic library. Since this doesn't match the
13343 # behavior of shared libraries on other platforms, we can't use
13349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13350 allow_undefined_flag_F77=unsupported
13351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13352 # support --undefined. This deserves some investigation. FIXME
13353 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13359 cygwin* | mingw* | pw32*)
13360 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13361 # as there is no search path for DLLs.
13362 hardcode_libdir_flag_spec_F77='-L$libdir'
13363 allow_undefined_flag_F77=unsupported
13364 always_export_symbols_F77=no
13365 enable_shared_with_static_runtimes_F77=yes
13366 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13368 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13369 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13370 # If the export-symbols file already is a .def file (1st line
13371 # is EXPORTS), use it as is; otherwise, prepend...
13372 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13373 cp $export_symbols $output_objdir/$soname.def;
13375 echo EXPORTS > $output_objdir/$soname.def;
13376 cat $export_symbols >> $output_objdir/$soname.def;
13378 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13386 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13389 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13390 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13395 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13399 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13400 *** create shared libraries on Solaris systems. Therefore, libtool
13401 *** is disabling shared libraries support. We urge you to upgrade GNU
13402 *** binutils to release 2.9.1 or newer. Another option is to modify
13403 *** your PATH or compiler configuration so that the native linker is
13404 *** used, and then restart.
13407 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13408 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13409 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13416 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13418 hardcode_direct_F77=yes
13419 hardcode_shlibpath_var_F77=no
13423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13424 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13432 if test "$ld_shlibs_F77" = yes; then
13433 runpath_var=LD_RUN_PATH
13434 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13435 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13436 # ancient GNU ld didn't support --whole-archive et. al.
13437 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13438 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13440 whole_archive_flag_spec_F77=
13444 # PORTME fill in a description of your system's linker (not GNU ld)
13447 allow_undefined_flag_F77=unsupported
13448 always_export_symbols_F77=yes
13449 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'
13450 # Note: this linker hardcodes the directories in LIBPATH if there
13451 # are no directories specified by -L.
13452 hardcode_minus_L_F77=yes
13453 if test "$GCC" = yes && test -z "$link_static_flag"; then
13454 # Neither direct hardcoding nor static linking is supported with a
13456 hardcode_direct_F77=unsupported
13461 if test "$host_cpu" = ia64; then
13462 # On IA64, the linker does run time linking by default, so we don't
13463 # have to do anything special.
13464 aix_use_runtimelinking=no
13465 exp_sym_flag='-Bexport'
13468 # If we're using GNU nm, then we don't want the "-C" option.
13469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13470 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13471 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'
13473 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'
13475 aix_use_runtimelinking=no
13477 # Test if we are trying to use run time linking or normal
13478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13479 # need to do runtime linking.
13480 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13481 for ld_flag in $LDFLAGS; do
13482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13483 aix_use_runtimelinking=yes
13489 exp_sym_flag='-bexport'
13490 no_entry_flag='-bnoentry'
13493 # When large executables or shared objects are built, AIX ld can
13494 # have problems creating the table of contents. If linking a library
13495 # or program results in "error TOC overflow" add -mminimal-toc to
13496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13499 archive_cmds_F77=''
13500 hardcode_direct_F77=yes
13501 hardcode_libdir_separator_F77=':'
13502 link_all_deplibs_F77=yes
13504 if test "$GCC" = yes; then
13505 case $host_os in aix4.012|aix4.012.*)
13506 # We only want to do this on AIX 4.2 and lower, the check
13507 # below for broken collect2 doesn't work under 4.3+
13508 collect2name=`${CC} -print-prog-name=collect2`
13509 if test -f "$collect2name" && \
13510 strings "$collect2name" | grep resolve_lib_name >/dev/null
13512 # We have reworked collect2
13513 hardcode_direct_F77=yes
13515 # We have old collect2
13516 hardcode_direct_F77=unsupported
13517 # It fails to find uninstalled libraries when the uninstalled
13518 # path is not listed in the libpath. Setting hardcode_minus_L
13519 # to unsupported forces relinking
13520 hardcode_minus_L_F77=yes
13521 hardcode_libdir_flag_spec_F77='-L$libdir'
13522 hardcode_libdir_separator_F77=
13525 shared_flag='-shared'
13528 if test "$host_cpu" = ia64; then
13529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13530 # chokes on -Wl,-G. The following line is correct:
13533 if test "$aix_use_runtimelinking" = yes; then
13534 shared_flag='${wl}-G'
13536 shared_flag='${wl}-bM:SRE'
13541 # It seems that -bexpall does not export symbols beginning with
13542 # underscore (_), so it is better to generate a list of symbols to export.
13543 always_export_symbols_F77=yes
13544 if test "$aix_use_runtimelinking" = yes; then
13545 # Warning - without using the other runtime loading flags (-brtl),
13546 # -berok will link without error, but may produce a broken library.
13547 allow_undefined_flag_F77='-berok'
13548 # Determine the default libpath from the value encoded in an empty executable.
13549 cat >conftest.$ac_ext <<_ACEOF
13554 rm -f conftest.$ac_objext conftest$ac_exeext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13556 (eval $ac_link) 2>conftest.er1
13558 grep -v '^ *+' conftest.er1 >conftest.err
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -z "$ac_f77_werror_flag"
13564 || test ! -s conftest.err'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest$ac_exeext'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13579 # Check for a 64-bit object if we didn't find anything.
13580 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; }
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13587 rm -f conftest.err conftest.$ac_objext \
13588 conftest$ac_exeext conftest.$ac_ext
13589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13591 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13592 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"
13594 if test "$host_cpu" = ia64; then
13595 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13596 allow_undefined_flag_F77="-z nodefs"
13597 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"
13599 # Determine the default libpath from the value encoded in an empty executable.
13600 cat >conftest.$ac_ext <<_ACEOF
13605 rm -f conftest.$ac_objext conftest$ac_exeext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13607 (eval $ac_link) 2>conftest.er1
13609 grep -v '^ *+' conftest.er1 >conftest.err
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try='test -z "$ac_f77_werror_flag"
13615 || test ! -s conftest.err'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest$ac_exeext'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13630 # Check for a 64-bit object if we didn't find anything.
13631 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; }
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13638 rm -f conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
13640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13642 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13643 # Warning - without using the other run time loading flags,
13644 # -berok will link without error, but may produce a broken library.
13645 no_undefined_flag_F77=' ${wl}-bernotok'
13646 allow_undefined_flag_F77=' ${wl}-berok'
13647 # -bexpall does not export symbols beginning with underscore (_)
13648 always_export_symbols_F77=yes
13649 # Exported symbols can be pulled into shared objects from archives
13650 whole_archive_flag_spec_F77=' '
13651 archive_cmds_need_lc_F77=yes
13652 # This is similar to how AIX traditionally builds it's shared libraries.
13653 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'
13659 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)'
13660 hardcode_libdir_flag_spec_F77='-L$libdir'
13661 hardcode_minus_L_F77=yes
13662 # see comment about different semantics on the GNU ld section
13667 export_dynamic_flag_spec_F77=-rdynamic
13670 cygwin* | mingw* | pw32*)
13671 # When not using gcc, we currently assume that we are using
13672 # Microsoft Visual C++.
13673 # hardcode_libdir_flag_spec is actually meaningless, as there is
13674 # no search path for DLLs.
13675 hardcode_libdir_flag_spec_F77=' '
13676 allow_undefined_flag_F77=unsupported
13677 # Tell ltmain to make .lib files, not .a files.
13679 # Tell ltmain to make .dll files, not .so files.
13681 # FIXME: Setting linknames here is a bad hack.
13682 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13683 # The linker will automatically build a .lib file if we build a DLL.
13684 old_archive_From_new_cmds_F77='true'
13685 # FIXME: Should let the user specify the lib program.
13686 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13687 fix_srcfile_path='`cygpath -w "$srcfile"`'
13688 enable_shared_with_static_runtimes_F77=yes
13691 darwin* | rhapsody*)
13692 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13693 archive_cmds_need_lc_F77=no
13695 rhapsody* | darwin1.[012])
13696 allow_undefined_flag_F77='-undefined suppress'
13699 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13702 # FIXME: Relying on posixy $() will cause problems for
13703 # cross-compilation, but unfortunately the echo tests do not
13704 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13705 # `"' quotes if we put them in here... so don't!
13706 lt_int_apple_cc_single_mod=no
13707 output_verbose_link_cmd='echo'
13708 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13709 lt_int_apple_cc_single_mod=yes
13711 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13712 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13714 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13716 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13718 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13719 archive_expsym_cmds_F77='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}'
13721 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13723 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13724 hardcode_direct_F77=no
13725 hardcode_automatic_F77=yes
13726 hardcode_shlibpath_var_F77=unsupported
13727 whole_archive_flag_spec_F77='-all_load $convenience'
13728 link_all_deplibs_F77=yes
13733 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13734 hardcode_libdir_flag_spec_F77='-L$libdir'
13735 hardcode_shlibpath_var_F77=no
13742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13743 # support. Future versions do this automatically, but an explicit c++rt0.o
13744 # does not break anything, and helps significantly (at the cost of a little
13747 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13748 hardcode_libdir_flag_spec_F77='-R$libdir'
13749 hardcode_direct_F77=yes
13750 hardcode_shlibpath_var_F77=no
13753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13755 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13756 hardcode_direct_F77=yes
13757 hardcode_minus_L_F77=yes
13758 hardcode_shlibpath_var_F77=no
13761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13763 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13764 hardcode_libdir_flag_spec_F77='-R$libdir'
13765 hardcode_direct_F77=yes
13766 hardcode_shlibpath_var_F77=no
13770 if test "$GCC" = yes; then
13771 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'
13773 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'
13775 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13776 hardcode_libdir_separator_F77=:
13777 hardcode_direct_F77=yes
13779 # hardcode_minus_L: Not really in the search PATH,
13780 # but as the default location of the library.
13781 hardcode_minus_L_F77=yes
13782 export_dynamic_flag_spec_F77='${wl}-E'
13786 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13787 case "$host_cpu" in
13789 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13792 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13796 case "$host_cpu" in
13798 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13801 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13805 if test "$with_gnu_ld" = no; then
13806 case "$host_cpu" in
13808 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13809 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13810 hardcode_libdir_separator_F77=:
13811 hardcode_direct_F77=no
13812 hardcode_shlibpath_var_F77=no
13815 hardcode_libdir_flag_spec_F77='-L$libdir'
13816 hardcode_direct_F77=no
13817 hardcode_shlibpath_var_F77=no
13819 # hardcode_minus_L: Not really in the search PATH,
13820 # but as the default location of the library.
13821 hardcode_minus_L_F77=yes
13824 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13825 hardcode_libdir_separator_F77=:
13826 hardcode_direct_F77=yes
13827 export_dynamic_flag_spec_F77='${wl}-E'
13829 # hardcode_minus_L: Not really in the search PATH,
13830 # but as the default location of the library.
13831 hardcode_minus_L_F77=yes
13837 irix5* | irix6* | nonstopux*)
13838 if test "$GCC" = yes; then
13839 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'
13841 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'
13842 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13844 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13845 hardcode_libdir_separator_F77=:
13846 link_all_deplibs_F77=yes
13850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13851 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13853 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13855 hardcode_libdir_flag_spec_F77='-R$libdir'
13856 hardcode_direct_F77=yes
13857 hardcode_shlibpath_var_F77=no
13861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862 hardcode_direct_F77=yes
13863 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13864 hardcode_libdir_separator_F77=:
13865 hardcode_shlibpath_var_F77=no
13869 hardcode_direct_F77=yes
13870 hardcode_shlibpath_var_F77=no
13871 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13872 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13873 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13874 export_dynamic_flag_spec_F77='${wl}-E'
13877 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13878 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13879 hardcode_libdir_flag_spec_F77='-R$libdir'
13882 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13883 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13890 hardcode_libdir_flag_spec_F77='-L$libdir'
13891 hardcode_minus_L_F77=yes
13892 allow_undefined_flag_F77=unsupported
13893 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'
13894 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13898 if test "$GCC" = yes; then
13899 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13900 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'
13902 allow_undefined_flag_F77=' -expect_unresolved \*'
13903 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'
13905 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13906 hardcode_libdir_separator_F77=:
13909 osf4* | osf5*) # as osf3* with the addition of -msym flag
13910 if test "$GCC" = yes; then
13911 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13912 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'
13913 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13915 allow_undefined_flag_F77=' -expect_unresolved \*'
13916 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'
13917 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~
13918 $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'
13920 # Both c and cxx compiler support -rpath directly
13921 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13923 hardcode_libdir_separator_F77=:
13927 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13928 hardcode_shlibpath_var_F77=no
13929 export_dynamic_flag_spec_F77='${wl}-Bexport'
13930 runpath_var=LD_RUN_PATH
13931 hardcode_runpath_var=yes
13935 no_undefined_flag_F77=' -z text'
13936 if test "$GCC" = yes; then
13937 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13938 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13939 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13941 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13943 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13945 hardcode_libdir_flag_spec_F77='-R$libdir'
13946 hardcode_shlibpath_var_F77=no
13948 solaris2.[0-5] | solaris2.[0-5].*) ;;
13949 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13950 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13952 link_all_deplibs_F77=yes
13956 if test "x$host_vendor" = xsequent; then
13957 # Use $CC to link under sequent, because it throws in some extra .o
13958 # files that make .init and .fini sections work.
13959 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13961 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13963 hardcode_libdir_flag_spec_F77='-L$libdir'
13964 hardcode_direct_F77=yes
13965 hardcode_minus_L_F77=yes
13966 hardcode_shlibpath_var_F77=no
13970 case $host_vendor in
13972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13973 hardcode_direct_F77=yes # is this really true???
13976 ## LD is ld it makes a PLAMLIB
13977 ## CC just makes a GrossModule.
13978 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13979 reload_cmds_F77='$CC -r -o $output$reload_objs'
13980 hardcode_direct_F77=no
13983 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13984 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13987 runpath_var='LD_RUN_PATH'
13988 hardcode_shlibpath_var_F77=no
13992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13993 hardcode_shlibpath_var_F77=no
13994 export_dynamic_flag_spec_F77='-Bexport'
13998 if test -d /usr/nec; then
13999 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14000 hardcode_shlibpath_var_F77=no
14001 runpath_var=LD_RUN_PATH
14002 hardcode_runpath_var=yes
14008 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14009 hardcode_direct_F77=yes
14010 hardcode_minus_L_F77=no
14011 hardcode_shlibpath_var_F77=no
14012 hardcode_runpath_var=yes
14013 runpath_var=LD_RUN_PATH
14016 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14017 no_undefined_flag_F77='${wl}-z ${wl}text'
14018 if test "$GCC" = yes; then
14019 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14021 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14023 runpath_var='LD_RUN_PATH'
14024 hardcode_shlibpath_var_F77=no
14028 no_undefined_flag_F77=' -z text'
14029 # $CC -shared without GNU ld will not create a library from C++
14030 # object files and a static libstdc++, better avoid it by now
14031 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14032 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14033 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14034 hardcode_libdir_flag_spec_F77=
14035 hardcode_shlibpath_var_F77=no
14036 runpath_var='LD_RUN_PATH'
14040 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14041 hardcode_libdir_flag_spec_F77='-L$libdir'
14042 hardcode_shlibpath_var_F77=no
14051 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14052 echo "${ECHO_T}$ld_shlibs_F77" >&6
14053 test "$ld_shlibs_F77" = no && can_build_shared=no
14055 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14056 if test "$GCC" = yes; then
14057 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14061 # Do we need to explicitly link libc?
14063 case "x$archive_cmds_need_lc_F77" in
14065 # Assume -lc should be added
14066 archive_cmds_need_lc_F77=yes
14068 if test "$enable_shared" = yes && test "$GCC" = yes; then
14069 case $archive_cmds_F77 in
14071 # FIXME: we may have to deal with multi-command sequences.
14074 # Test whether the compiler implicitly links with -lc since on some
14075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14076 # to ld, don't add -lc before -lgcc.
14077 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14078 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14083 (eval $ac_compile) 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } 2>conftest.err; then
14089 libobjs=conftest.$ac_objext
14091 wl=$lt_prog_compiler_wl_F77
14097 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14098 allow_undefined_flag_F77=
14099 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14100 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }
14105 archive_cmds_need_lc_F77=no
14107 archive_cmds_need_lc_F77=yes
14109 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14111 cat conftest.err 1>&5
14114 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14115 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14122 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14123 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14124 hardcode_action_F77=
14125 if test -n "$hardcode_libdir_flag_spec_F77" || \
14126 test -n "$runpath_var F77" || \
14127 test "X$hardcode_automatic_F77"="Xyes" ; then
14129 # We can hardcode non-existant directories.
14130 if test "$hardcode_direct_F77" != no &&
14131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14132 # have to relink, otherwise we might link with an installed library
14133 # when we should be linking with a yet-to-be-installed one
14134 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14135 test "$hardcode_minus_L_F77" != no; then
14136 # Linking always hardcodes the temporary library directory.
14137 hardcode_action_F77=relink
14139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14140 hardcode_action_F77=immediate
14143 # We cannot hardcode anything, or else we can only hardcode existing
14145 hardcode_action_F77=unsupported
14147 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14148 echo "${ECHO_T}$hardcode_action_F77" >&6
14150 if test "$hardcode_action_F77" = relink; then
14151 # Fast installation is not supported
14152 enable_fast_install=no
14153 elif test "$shlibpath_overrides_runpath" = yes ||
14154 test "$enable_shared" = no; then
14155 # Fast installation is not necessary
14156 enable_fast_install=needless
14161 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14162 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14163 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14164 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14165 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14166 echo "$as_me:$LINENO: result: yes" >&5
14167 echo "${ECHO_T}yes" >&6
14169 # FIXME - insert some real tests, host_os isn't really good enough
14172 if test -n "$STRIP" ; then
14173 striplib="$STRIP -x"
14174 echo "$as_me:$LINENO: result: yes" >&5
14175 echo "${ECHO_T}yes" >&6
14177 echo "$as_me:$LINENO: result: no" >&5
14178 echo "${ECHO_T}no" >&6
14182 echo "$as_me:$LINENO: result: no" >&5
14183 echo "${ECHO_T}no" >&6
14188 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14189 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14190 library_names_spec=
14191 libname_spec='lib$name'
14195 postuninstall_cmds=
14199 shlibpath_overrides_runpath=unknown
14201 dynamic_linker="$host_os ld.so"
14202 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14203 if test "$GCC" = yes; then
14204 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14205 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14206 # if the path contains ";" then we assume it to be the separator
14207 # otherwise default to the standard path separator (i.e. ":") - it is
14208 # assumed that no part of a normal pathname contains ";" but that should
14209 # okay in the real world where ";" in dirpaths is itself problematic.
14210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14215 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14217 need_lib_prefix=unknown
14218 hardcode_into_libs=no
14220 # when you set need_version to no, make sure it does not cause -set_version
14221 # flags to be left without arguments
14222 need_version=unknown
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14228 shlibpath_var=LIBPATH
14230 # AIX 3 has no versioning support, so we append a major version to the name.
14231 soname_spec='${libname}${release}${shared_ext}$major'
14238 hardcode_into_libs=yes
14239 if test "$host_cpu" = ia64; then
14240 # AIX 5 supports IA64
14241 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14242 shlibpath_var=LD_LIBRARY_PATH
14244 # With GCC up to 2.95.x, collect2 would create an import file
14245 # for dependence libraries. The import file would start with
14246 # the line `#! .'. This would cause the generated library to
14247 # depend on `.', always an invalid library. This was fixed in
14248 # development snapshots of GCC prior to 3.0.
14250 aix4 | aix4.[01] | aix4.[01].*)
14251 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14253 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14256 can_build_shared=no
14260 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14261 # soname into executable. Probably we can add versioning support to
14262 # collect2, so additional links can be useful in future.
14263 if test "$aix_use_runtimelinking" = yes; then
14264 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14265 # instead of lib<name>.a to let people know that these are not
14266 # typical AIX shared libraries.
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269 # We preserve .a as extension for shared libraries through AIX4.2
14270 # and later when we are not doing run time linking.
14271 library_names_spec='${libname}${release}.a $libname.a'
14272 soname_spec='${libname}${release}${shared_ext}$major'
14274 shlibpath_var=LIBPATH
14279 library_names_spec='$libname.ixlibrary $libname.a'
14280 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14281 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'
14285 library_names_spec='${libname}${shared_ext}'
14286 dynamic_linker="$host_os ld.so"
14287 shlibpath_var=LIBRARY_PATH
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14294 soname_spec='${libname}${release}${shared_ext}$major'
14295 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14298 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14299 # the default ld.so.conf also contains /usr/contrib/lib and
14300 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14301 # libtool to hard-code these into programs
14304 cygwin* | mingw* | pw32*)
14305 version_type=windows
14310 case $GCC,$host_os in
14311 yes,cygwin* | yes,mingw* | yes,pw32*)
14312 library_names_spec='$libname.dll.a'
14313 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14314 postinstall_cmds='base_file=`basename \${file}`~
14315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14316 dldir=$destdir/`dirname \$dlpath`~
14317 test -d \$dldir || mkdir -p \$dldir~
14318 $install_prog $dir/$dlname \$dldir/$dlname'
14319 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14320 dlpath=$dir/\$dldll~
14322 shlibpath_overrides_runpath=yes
14326 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14327 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14328 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14331 # MinGW DLLs use traditional 'lib' prefix
14332 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14333 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14334 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14335 # It is most probably a Windows format PATH printed by
14336 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14337 # path with ; separators, and with drive letters. We can handle the
14338 # drive letters (cygwin fileutils understands them), so leave them,
14339 # especially as we might pass files found there to a mingw objdump,
14340 # which wouldn't understand a cygwinified path. Ahh.
14341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14343 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14347 # pw32 DLLs use 'pw' prefix rather than 'lib'
14348 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14354 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14357 dynamic_linker='Win32 ld.exe'
14358 # FIXME: first we should search . and the directory the executable is in
14362 darwin* | rhapsody*)
14363 dynamic_linker="$host_os dyld"
14364 version_type=darwin
14367 # FIXME: Relying on posixy $() will cause problems for
14368 # cross-compilation, but unfortunately the echo tests do not
14369 # yet detect zsh echo's removal of \ escapes.
14370 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14371 soname_spec='${libname}${release}${major}$shared_ext'
14372 shlibpath_overrides_runpath=yes
14373 shlibpath_var=DYLD_LIBRARY_PATH
14374 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14375 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14376 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14377 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"`
14379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14387 soname_spec='${libname}${release}${shared_ext}$major'
14388 shlibpath_var=LD_LIBRARY_PATH
14396 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14397 version_type=freebsd-$objformat
14398 case $version_type in
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14409 shlibpath_var=LD_LIBRARY_PATH
14412 shlibpath_overrides_runpath=yes
14414 freebsd3.01* | freebsdelf3.01*)
14415 shlibpath_overrides_runpath=yes
14416 hardcode_into_libs=yes
14419 shlibpath_overrides_runpath=no
14420 hardcode_into_libs=yes
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14430 soname_spec='${libname}${release}${shared_ext}$major'
14431 shlibpath_var=LD_LIBRARY_PATH
14432 hardcode_into_libs=yes
14435 hpux9* | hpux10* | hpux11*)
14436 # Give a soname corresponding to the major version so that dld.sl refuses to
14437 # link against other versions.
14441 case "$host_cpu" in
14444 hardcode_into_libs=yes
14445 dynamic_linker="$host_os dld.so"
14446 shlibpath_var=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 if test "X$HPUX_IA64_MODE" = X32; then
14451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14459 hardcode_into_libs=yes
14460 dynamic_linker="$host_os dld.sl"
14461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14470 dynamic_linker="$host_os dld.sl"
14471 shlibpath_var=SHLIB_PATH
14472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14477 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14478 postinstall_cmds='chmod 555 $lib'
14481 irix5* | irix6* | nonstopux*)
14483 nonstopux*) version_type=nonstopux ;;
14485 if test "$lt_cv_prog_gnu_ld" = yes; then
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14496 irix5* | nonstopux*)
14497 libsuff= shlibsuff=
14500 case $LD in # libtool.m4 will add one of these switches to LD
14501 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14502 libsuff= shlibsuff= libmagic=32-bit;;
14503 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14504 libsuff=32 shlibsuff=N32 libmagic=N32;;
14505 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14506 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14507 *) libsuff= shlibsuff= libmagic=never-match;;
14511 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14512 shlibpath_overrides_runpath=no
14513 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14514 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14515 hardcode_into_libs=yes
14518 # No shared lib support for Linux oldld, aout, or coff.
14519 linux*oldld* | linux*aout* | linux*coff*)
14523 # This must be Linux ELF.
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14531 shlibpath_var=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath=no
14533 # This implies no fast_install, which is unacceptable.
14534 # Some rework will be needed to allow for fast_install
14535 # before this can be enabled.
14536 hardcode_into_libs=yes
14538 # We used to test for /lib/ld.so.1 and disable shared libraries on
14539 # powerpc, because MkLinux only supported shared libraries with the
14540 # GNU dynamic linker. Since this was broken with cross compilers,
14541 # most powerpc-linux boxes support dynamic linking these days and
14542 # people can always --disable-shared, the test was removed, and we
14543 # assume the GNU/Linux dynamic linker is in use.
14544 dynamic_linker='GNU/Linux ld.so'
14551 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14554 dynamic_linker='NetBSD (a.out) ld.so'
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14557 soname_spec='${libname}${release}${shared_ext}$major'
14558 dynamic_linker='NetBSD ld.elf_so'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 shlibpath_overrides_runpath=yes
14562 hardcode_into_libs=yes
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568 shlibpath_var=LD_LIBRARY_PATH
14569 shlibpath_overrides_runpath=yes
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=yes
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14591 openbsd2.[89] | openbsd2.[89].*)
14592 shlibpath_overrides_runpath=no
14595 shlibpath_overrides_runpath=yes
14599 shlibpath_overrides_runpath=yes
14604 libname_spec='$name'
14607 library_names_spec='$libname${shared_ext} $libname.a'
14608 dynamic_linker='OS/2 ld.exe'
14609 shlibpath_var=LIBPATH
14612 osf3* | osf4* | osf5*)
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 shlibpath_var=LD_LIBRARY_PATH
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14635 soname_spec='${libname}${release}${shared_ext}$major'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=yes
14638 hardcode_into_libs=yes
14639 # ldd complains unless libraries are executable
14640 postinstall_cmds='chmod +x $lib'
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14647 shlibpath_var=LD_LIBRARY_PATH
14648 shlibpath_overrides_runpath=yes
14649 if test "$with_gnu_ld" = yes; then
14655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 case $host_vendor in
14662 shlibpath_overrides_runpath=no
14664 export_dynamic_flag_spec='${wl}-Blargedynsym'
14665 runpath_var=LD_RUN_PATH
14673 shlibpath_overrides_runpath=no
14674 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14680 if test -d /usr/nec ;then
14682 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14683 soname_spec='$libname${shared_ext}.$major'
14684 shlibpath_var=LD_LIBRARY_PATH
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 shlibpath_var=LD_LIBRARY_PATH
14699 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14700 echo "${ECHO_T}$dynamic_linker" >&6
14701 test "$dynamic_linker" = no && can_build_shared=no
14704 # The else clause should only fire when bootstrapping the
14705 # libtool distribution, otherwise you forgot to ship ltmain.sh
14706 # with your package, and you will get complaints that there are
14707 # no rules to generate ltmain.sh.
14708 if test -f "$ltmain"; then
14709 # See if we are running on zsh, and set the options which allow our commands through
14710 # without removal of \ escapes.
14711 if test -n "${ZSH_VERSION+set}" ; then
14712 setopt NO_GLOB_SUBST
14714 # Now quote all the things that may contain metacharacters while being
14715 # careful not to overquote the AC_SUBSTed values. We take copies of the
14716 # variables and quote the copies for generation of the libtool script.
14717 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14718 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14719 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14720 deplibs_check_method reload_flag reload_cmds need_locks \
14721 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14722 lt_cv_sys_global_symbol_to_c_name_address \
14723 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14724 old_postinstall_cmds old_postuninstall_cmds \
14728 lt_prog_compiler_wl_F77 \
14729 lt_prog_compiler_pic_F77 \
14730 lt_prog_compiler_static_F77 \
14731 lt_prog_compiler_no_builtin_flag_F77 \
14732 export_dynamic_flag_spec_F77 \
14733 thread_safe_flag_spec_F77 \
14734 whole_archive_flag_spec_F77 \
14735 enable_shared_with_static_runtimes_F77 \
14736 old_archive_cmds_F77 \
14737 old_archive_from_new_cmds_F77 \
14738 predep_objects_F77 \
14739 postdep_objects_F77 \
14742 compiler_lib_search_path_F77 \
14744 archive_expsym_cmds_F77 \
14745 postinstall_cmds_F77 \
14746 postuninstall_cmds_F77 \
14747 old_archive_from_expsyms_cmds_F77 \
14748 allow_undefined_flag_F77 \
14749 no_undefined_flag_F77 \
14750 export_symbols_cmds_F77 \
14751 hardcode_libdir_flag_spec_F77 \
14752 hardcode_libdir_flag_spec_ld_F77 \
14753 hardcode_libdir_separator_F77 \
14754 hardcode_automatic_F77 \
14756 module_expsym_cmds_F77 \
14757 lt_cv_prog_compiler_c_o_F77 \
14758 exclude_expsyms_F77 \
14759 include_expsyms_F77; do
14762 old_archive_cmds_F77 | \
14763 old_archive_from_new_cmds_F77 | \
14764 archive_cmds_F77 | \
14765 archive_expsym_cmds_F77 | \
14766 module_cmds_F77 | \
14767 module_expsym_cmds_F77 | \
14768 old_archive_from_expsyms_cmds_F77 | \
14769 export_symbols_cmds_F77 | \
14770 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14771 postinstall_cmds | postuninstall_cmds | \
14772 old_postinstall_cmds | old_postuninstall_cmds | \
14773 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14774 # Double-quote double-evaled strings.
14775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14784 *'\$0 --fallback-echo"')
14785 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14791 cat <<__EOF__ >> "$cfgfile"
14792 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14796 # Shell to use when invoking shell scripts.
14799 # Whether or not to build shared libraries.
14800 build_libtool_libs=$enable_shared
14802 # Whether or not to build static libraries.
14803 build_old_libs=$enable_static
14805 # Whether or not to add -lc for building shared libraries.
14806 build_libtool_need_lc=$archive_cmds_need_lc_F77
14808 # Whether or not to disallow shared libs when runtime libs are static
14809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14811 # Whether or not to optimize for fast installation.
14812 fast_install=$enable_fast_install
14815 host_alias=$host_alias
14818 # An echo program that does not interpret backslashes.
14823 AR_FLAGS=$lt_AR_FLAGS
14828 # A language-specific compiler.
14829 CC=$lt_compiler_F77
14831 # Is the compiler the GNU C compiler?
14837 # The linker used to build libraries.
14840 # Whether we need hard or soft links.
14843 # A BSD-compatible nm program.
14846 # A symbol stripping program
14849 # Used to examine libraries when file_magic_cmd begins "file"
14850 MAGIC_CMD=$MAGIC_CMD
14852 # Used on cygwin: DLL creation program.
14855 # Used on cygwin: object dumper.
14858 # Used on cygwin: assembler.
14861 # The name of the directory that contains temporary libtool files.
14864 # How to create reloadable object files.
14865 reload_flag=$lt_reload_flag
14866 reload_cmds=$lt_reload_cmds
14868 # How to pass a linker flag through the compiler.
14869 wl=$lt_lt_prog_compiler_wl_F77
14871 # Object file suffix (normally "o").
14872 objext="$ac_objext"
14874 # Old archive suffix (normally "a").
14877 # Shared library suffix (normally ".so").
14880 # Executable file suffix (normally "").
14883 # Additional compiler flags for building library objects.
14884 pic_flag=$lt_lt_prog_compiler_pic_F77
14887 # What is the maximum length of a command?
14888 max_cmd_len=$lt_cv_sys_max_cmd_len
14890 # Does compiler simultaneously support -c and -o options?
14891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14893 # Must we lock files when doing compilation ?
14894 need_locks=$lt_need_locks
14896 # Do we need the lib prefix for modules?
14897 need_lib_prefix=$need_lib_prefix
14899 # Do we need a version for libraries?
14900 need_version=$need_version
14902 # Whether dlopen is supported.
14903 dlopen_support=$enable_dlopen
14905 # Whether dlopen of programs is supported.
14906 dlopen_self=$enable_dlopen_self
14908 # Whether dlopen of statically linked programs is supported.
14909 dlopen_self_static=$enable_dlopen_self_static
14911 # Compiler flag to prevent dynamic linking.
14912 link_static_flag=$lt_lt_prog_compiler_static_F77
14914 # Compiler flag to turn off builtin functions.
14915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14917 # Compiler flag to allow reflexive dlopens.
14918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14920 # Compiler flag to generate shared objects directly from archives.
14921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14923 # Compiler flag to generate thread-safe objects.
14924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14926 # Library versioning type.
14927 version_type=$version_type
14929 # Format of library name prefix.
14930 libname_spec=$lt_libname_spec
14932 # List of archive names. First name is the real one, the rest are links.
14933 # The last name is the one that the linker finds with -lNAME.
14934 library_names_spec=$lt_library_names_spec
14936 # The coded name of the library, if different from the real name.
14937 soname_spec=$lt_soname_spec
14939 # Commands used to build and install an old-style archive.
14941 old_archive_cmds=$lt_old_archive_cmds_F77
14942 old_postinstall_cmds=$lt_old_postinstall_cmds
14943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14945 # Create an old-style archive from a shared archive.
14946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14948 # Create a temporary old-style archive to link instead of a shared archive.
14949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14951 # Commands used to build and install a shared archive.
14952 archive_cmds=$lt_archive_cmds_F77
14953 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14954 postinstall_cmds=$lt_postinstall_cmds
14955 postuninstall_cmds=$lt_postuninstall_cmds
14957 # Commands used to build a loadable module (assumed same as above if empty)
14958 module_cmds=$lt_module_cmds_F77
14959 module_expsym_cmds=$lt_module_expsym_cmds_F77
14961 # Commands to strip libraries.
14962 old_striplib=$lt_old_striplib
14963 striplib=$lt_striplib
14965 # Dependencies to place before the objects being linked to create a
14967 predep_objects=$lt_predep_objects_F77
14969 # Dependencies to place after the objects being linked to create a
14971 postdep_objects=$lt_postdep_objects_F77
14973 # Dependencies to place before the objects being linked to create a
14975 predeps=$lt_predeps_F77
14977 # Dependencies to place after the objects being linked to create a
14979 postdeps=$lt_postdeps_F77
14981 # The library search path used internally by the compiler when linking
14982 # a shared library.
14983 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14985 # Method to check whether dependent libraries are shared objects.
14986 deplibs_check_method=$lt_deplibs_check_method
14988 # Command to use when deplibs_check_method == file_magic.
14989 file_magic_cmd=$lt_file_magic_cmd
14991 # Flag that allows shared libraries with undefined symbols to be built.
14992 allow_undefined_flag=$lt_allow_undefined_flag_F77
14994 # Flag that forces no undefined symbols.
14995 no_undefined_flag=$lt_no_undefined_flag_F77
14997 # Commands used to finish a libtool library installation in a directory.
14998 finish_cmds=$lt_finish_cmds
15000 # Same as above, but a single script fragment to be evaled but not shown.
15001 finish_eval=$lt_finish_eval
15003 # Take the output of nm and produce a listing of raw symbols and C names.
15004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15006 # Transform the output of nm in a proper C declaration
15007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15009 # Transform the output of nm in a C name address pair
15010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15012 # This is the shared library runtime path variable.
15013 runpath_var=$runpath_var
15015 # This is the shared library path variable.
15016 shlibpath_var=$shlibpath_var
15018 # Is shlibpath searched before the hard-coded library search path?
15019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15021 # How to hardcode a shared library path into an executable.
15022 hardcode_action=$hardcode_action_F77
15024 # Whether we should hardcode library paths into libraries.
15025 hardcode_into_libs=$hardcode_into_libs
15027 # Flag to hardcode \$libdir into a binary during linking.
15028 # This must work even if \$libdir does not exist.
15029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15031 # If ld is used when linking, flag to hardcode \$libdir into
15032 # a binary during linking. This must work even if \$libdir does
15034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15036 # Whether we need a single -rpath flag with a separated argument.
15037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15040 # resulting binary.
15041 hardcode_direct=$hardcode_direct_F77
15043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15044 # resulting binary.
15045 hardcode_minus_L=$hardcode_minus_L_F77
15047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15048 # the resulting binary.
15049 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15051 # Set to yes if building a shared library automatically hardcodes DIR into the library
15052 # and all subsequent libraries and executables linked against it.
15053 hardcode_automatic=$hardcode_automatic_F77
15055 # Variables whose values should be saved in libtool wrapper scripts and
15056 # restored at relink time.
15057 variables_saved_for_relink="$variables_saved_for_relink"
15059 # Whether libtool must link a program against all its dependency libraries.
15060 link_all_deplibs=$link_all_deplibs_F77
15062 # Compile-time system search path for libraries
15063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15065 # Run-time system search path for libraries
15066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15068 # Fix the shell variable \$srcfile for the compiler.
15069 fix_srcfile_path="$fix_srcfile_path_F77"
15071 # Set to yes if exported symbols are required.
15072 always_export_symbols=$always_export_symbols_F77
15074 # The commands to list exported symbols.
15075 export_symbols_cmds=$lt_export_symbols_cmds_F77
15077 # The commands to extract the exported symbol list from a shared archive.
15078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15080 # Symbols that should not be listed in the preloaded symbols.
15081 exclude_expsyms=$lt_exclude_expsyms_F77
15083 # Symbols that must always be exported.
15084 include_expsyms=$lt_include_expsyms_F77
15086 # ### END LIBTOOL TAG CONFIG: $tagname
15092 # If there is no Makefile yet, we rely on a make rule to execute
15093 # `config.status --recheck' to rerun these tests and create the
15094 # libtool script then.
15095 test -f Makefile && make "$ltmain"
15100 ac_cpp='$CPP $CPPFLAGS'
15101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15113 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15117 # Source file extension for Java test sources.
15120 # Object file extension for compiled Java test sources.
15124 # Code to be used in simple compile tests
15125 lt_simple_compile_test_code="class foo {}\n"
15127 # Code to be used in simple link tests
15128 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15130 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15132 # If no C compiler was specified, use CC.
15135 # Allow CC to be a program name with arguments.
15139 # Allow CC to be a program name with arguments.
15145 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15146 archive_cmds_need_lc_GCJ=no
15149 ## There is no encapsulation within the following macros, do not change
15150 ## the running order or otherwise move them around unless you know exactly
15151 ## what you are doing...
15153 lt_prog_compiler_no_builtin_flag_GCJ=
15155 if test "$GCC" = yes; then
15156 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15158 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15159 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15160 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 lt_cv_prog_compiler_rtti_exceptions=no
15164 ac_outfile=conftest.$ac_objext
15165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15166 lt_compiler_flag="-fno-rtti -fno-exceptions"
15167 # Insert the option either (1) after the last *FLAGS variable, or
15168 # (2) before a word containing "conftest.", or (3) at the end.
15169 # Note that $ac_compile itself does not contain backslashes and begins
15170 # with a dollar sign (not a hyphen), so the echo should work correctly.
15171 # The option is referenced via a variable to avoid confusing sed.
15172 lt_compile=`echo "$ac_compile" | $SED \
15173 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15175 -e 's:$: $lt_compiler_flag:'`
15176 (eval echo "\"\$as_me:15176: $lt_compile\"" >&5)
15177 (eval "$lt_compile" 2>conftest.err)
15179 cat conftest.err >&5
15180 echo "$as_me:15180: \$? = $ac_status" >&5
15181 if (exit $ac_status) && test -s "$ac_outfile"; then
15182 # The compiler can only warn and ignore the option if not recognized
15183 # So say no if there are warnings
15184 if test ! -s conftest.err; then
15185 lt_cv_prog_compiler_rtti_exceptions=yes
15191 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15192 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15194 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15195 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15202 lt_prog_compiler_wl_GCJ=
15203 lt_prog_compiler_pic_GCJ=
15204 lt_prog_compiler_static_GCJ=
15206 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15207 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15209 if test "$GCC" = yes; then
15210 lt_prog_compiler_wl_GCJ='-Wl,'
15211 lt_prog_compiler_static_GCJ='-static'
15215 # All AIX code is PIC.
15216 if test "$host_cpu" = ia64; then
15217 # AIX 5 now supports IA64 processor
15218 lt_prog_compiler_static_GCJ='-Bstatic'
15223 # FIXME: we need at least 68020 code to build shared libraries, but
15224 # adding the `-m68020' flag to GCC prevents building anything better,
15226 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15229 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15230 # PIC is the default for these OSes.
15233 mingw* | pw32* | os2*)
15234 # This hack is so that the source file can tell whether it is being
15235 # built for inclusion in a dll (and should export symbols for example).
15236 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15239 darwin* | rhapsody*)
15240 # PIC is the default on this platform
15241 # Common symbols not allowed in MH_DYLIB files
15242 lt_prog_compiler_pic_GCJ='-fno-common'
15246 # Just because we use GCC doesn't mean we suddenly get shared libraries
15247 # on systems that don't support them.
15248 lt_prog_compiler_can_build_shared_GCJ=no
15253 if test -d /usr/nec; then
15254 lt_prog_compiler_pic_GCJ=-Kconform_pic
15259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15260 # not for PA HP-UX.
15261 case "$host_cpu" in
15266 lt_prog_compiler_pic_GCJ='-fPIC'
15272 lt_prog_compiler_pic_GCJ='-fPIC'
15276 # PORTME Check for flag to pass linker flags through the system compiler.
15279 lt_prog_compiler_wl_GCJ='-Wl,'
15280 if test "$host_cpu" = ia64; then
15281 # AIX 5 now supports IA64 processor
15282 lt_prog_compiler_static_GCJ='-Bstatic'
15284 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15288 mingw* | pw32* | os2*)
15289 # This hack is so that the source file can tell whether it is being
15290 # built for inclusion in a dll (and should export symbols for example).
15291 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15294 hpux9* | hpux10* | hpux11*)
15295 lt_prog_compiler_wl_GCJ='-Wl,'
15296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15297 # not for PA HP-UX.
15298 case "$host_cpu" in
15303 lt_prog_compiler_pic_GCJ='+Z'
15306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15307 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15310 irix5* | irix6* | nonstopux*)
15311 lt_prog_compiler_wl_GCJ='-Wl,'
15312 # PIC (with -KPIC) is the default.
15313 lt_prog_compiler_static_GCJ='-non_shared'
15317 lt_prog_compiler_pic_GCJ='-KPIC'
15318 lt_prog_compiler_static_GCJ='-Bstatic'
15324 lt_prog_compiler_wl_GCJ='-Wl,'
15325 lt_prog_compiler_pic_GCJ='-KPIC'
15326 lt_prog_compiler_static_GCJ='-static'
15329 lt_prog_compiler_wl_GCJ='-Wl,'
15330 # All Alpha code is PIC.
15331 lt_prog_compiler_static_GCJ='-non_shared'
15336 osf3* | osf4* | osf5*)
15337 lt_prog_compiler_wl_GCJ='-Wl,'
15338 # All OSF/1 code is PIC.
15339 lt_prog_compiler_static_GCJ='-non_shared'
15343 lt_prog_compiler_pic_GCJ='-Kpic'
15344 lt_prog_compiler_static_GCJ='-dn'
15348 lt_prog_compiler_wl_GCJ='-Wl,'
15349 lt_prog_compiler_pic_GCJ='-KPIC'
15350 lt_prog_compiler_static_GCJ='-Bstatic'
15354 lt_prog_compiler_wl_GCJ='-Qoption ld '
15355 lt_prog_compiler_pic_GCJ='-PIC'
15356 lt_prog_compiler_static_GCJ='-Bstatic'
15359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15360 lt_prog_compiler_wl_GCJ='-Wl,'
15361 lt_prog_compiler_pic_GCJ='-KPIC'
15362 lt_prog_compiler_static_GCJ='-Bstatic'
15366 if test -d /usr/nec ;then
15367 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15368 lt_prog_compiler_static_GCJ='-Bstatic'
15373 lt_prog_compiler_pic_GCJ='-pic'
15374 lt_prog_compiler_static_GCJ='-Bstatic'
15378 lt_prog_compiler_can_build_shared_GCJ=no
15383 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15384 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15387 # Check to make sure the PIC flag actually works.
15389 if test -n "$lt_prog_compiler_pic_GCJ"; then
15390 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15391 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15392 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 lt_prog_compiler_pic_works_GCJ=no
15396 ac_outfile=conftest.$ac_objext
15397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15398 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15399 # Insert the option either (1) after the last *FLAGS variable, or
15400 # (2) before a word containing "conftest.", or (3) at the end.
15401 # Note that $ac_compile itself does not contain backslashes and begins
15402 # with a dollar sign (not a hyphen), so the echo should work correctly.
15403 # The option is referenced via a variable to avoid confusing sed.
15404 lt_compile=`echo "$ac_compile" | $SED \
15405 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15407 -e 's:$: $lt_compiler_flag:'`
15408 (eval echo "\"\$as_me:15408: $lt_compile\"" >&5)
15409 (eval "$lt_compile" 2>conftest.err)
15411 cat conftest.err >&5
15412 echo "$as_me:15412: \$? = $ac_status" >&5
15413 if (exit $ac_status) && test -s "$ac_outfile"; then
15414 # The compiler can only warn and ignore the option if not recognized
15415 # So say no if there are warnings
15416 if test ! -s conftest.err; then
15417 lt_prog_compiler_pic_works_GCJ=yes
15423 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15424 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15426 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15427 case $lt_prog_compiler_pic_GCJ in
15429 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15432 lt_prog_compiler_pic_GCJ=
15433 lt_prog_compiler_can_build_shared_GCJ=no
15438 # For platforms which do not support PIC, -DPIC is meaningless:
15440 lt_prog_compiler_pic_GCJ=
15443 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15447 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15448 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15449 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 lt_cv_prog_compiler_c_o_GCJ=no
15453 $rm -r conftest 2>/dev/null
15457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15459 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15460 # that will create temporary files in the current directory regardless of
15461 # the output directory. Thus, making CWD read-only will cause this test
15462 # to fail, enabling locking or at least warning the user not to do parallel
15466 lt_compiler_flag="-o out/conftest2.$ac_objext"
15467 # Insert the option either (1) after the last *FLAGS variable, or
15468 # (2) before a word containing "conftest.", or (3) at the end.
15469 # Note that $ac_compile itself does not contain backslashes and begins
15470 # with a dollar sign (not a hyphen), so the echo should work correctly.
15471 lt_compile=`echo "$ac_compile" | $SED \
15472 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15474 -e 's:$: $lt_compiler_flag:'`
15475 (eval echo "\"\$as_me:15475: $lt_compile\"" >&5)
15476 (eval "$lt_compile" 2>out/conftest.err)
15478 cat out/conftest.err >&5
15479 echo "$as_me:15479: \$? = $ac_status" >&5
15480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15482 # The compiler can only warn and ignore the option if not recognized
15483 # So say no if there are warnings
15484 if test ! -s out/conftest.err; then
15485 lt_cv_prog_compiler_c_o_GCJ=yes
15489 $rm conftest* out/*
15496 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15497 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15500 hard_links="nottested"
15501 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15502 # do not overwrite the value of need_locks provided by the user
15503 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15504 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15509 ln conftest.a conftest.b 2>&5 || hard_links=no
15510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15511 echo "$as_me:$LINENO: result: $hard_links" >&5
15512 echo "${ECHO_T}$hard_links" >&6
15513 if test "$hard_links" = no; then
15514 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15515 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15522 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15523 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15526 allow_undefined_flag_GCJ=
15527 enable_shared_with_static_runtimes_GCJ=no
15529 archive_expsym_cmds_GCJ=
15530 old_archive_From_new_cmds_GCJ=
15531 old_archive_from_expsyms_cmds_GCJ=
15532 export_dynamic_flag_spec_GCJ=
15533 whole_archive_flag_spec_GCJ=
15534 thread_safe_flag_spec_GCJ=
15535 hardcode_libdir_flag_spec_GCJ=
15536 hardcode_libdir_flag_spec_ld_GCJ=
15537 hardcode_libdir_separator_GCJ=
15538 hardcode_direct_GCJ=no
15539 hardcode_minus_L_GCJ=no
15540 hardcode_shlibpath_var_GCJ=unsupported
15541 link_all_deplibs_GCJ=unknown
15542 hardcode_automatic_GCJ=no
15544 module_expsym_cmds_GCJ=
15545 always_export_symbols_GCJ=no
15546 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15547 # include_expsyms should be a list of space-separated symbols to be *always*
15548 # included in the symbol list
15549 include_expsyms_GCJ=
15550 # exclude_expsyms can be an extended regexp of symbols to exclude
15551 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15552 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15553 # as well as any symbol that contains `d'.
15554 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15556 # platforms (ab)use it in PIC code, but their linkers get confused if
15557 # the symbol is explicitly referenced. Since portable code cannot
15558 # rely on this symbol name, it's probably fine to never include it in
15559 # preloaded symbol tables.
15560 extract_expsyms_cmds=
15563 cygwin* | mingw* | pw32*)
15564 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15565 # When not using gcc, we currently assume that we are using
15566 # Microsoft Visual C++.
15567 if test "$GCC" != yes; then
15577 if test "$with_gnu_ld" = yes; then
15578 # If archive_cmds runs LD, not CC, wlarc should be empty
15581 # See if GNU ld supports shared libraries.
15583 aix3* | aix4* | aix5*)
15584 # On AIX/PPC, the GNU linker is very broken
15585 if test "$host_cpu" != ia64; then
15589 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15590 *** to be unable to reliably create shared libraries on AIX.
15591 *** Therefore, libtool is disabling shared libraries support. If you
15592 *** really care for shared libraries, you may want to modify your PATH
15593 *** so that a non-GNU linker is found, and then restart.
15600 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)'
15601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15602 hardcode_minus_L_GCJ=yes
15604 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15605 # that the semantics of dynamic libraries on AmigaOS, at least up
15606 # to version 4, is to share data among multiple programs linked
15607 # with the same dynamic library. Since this doesn't match the
15608 # behavior of shared libraries on other platforms, we can't use
15614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15615 allow_undefined_flag_GCJ=unsupported
15616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15617 # support --undefined. This deserves some investigation. FIXME
15618 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15624 cygwin* | mingw* | pw32*)
15625 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15626 # as there is no search path for DLLs.
15627 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15628 allow_undefined_flag_GCJ=unsupported
15629 always_export_symbols_GCJ=no
15630 enable_shared_with_static_runtimes_GCJ=yes
15631 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15633 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15634 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15635 # If the export-symbols file already is a .def file (1st line
15636 # is EXPORTS), use it as is; otherwise, prepend...
15637 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15638 cp $export_symbols $output_objdir/$soname.def;
15640 echo EXPORTS > $output_objdir/$soname.def;
15641 cat $export_symbols >> $output_objdir/$soname.def;
15643 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15651 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15654 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15655 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15660 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15664 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15665 *** create shared libraries on Solaris systems. Therefore, libtool
15666 *** is disabling shared libraries support. We urge you to upgrade GNU
15667 *** binutils to release 2.9.1 or newer. Another option is to modify
15668 *** your PATH or compiler configuration so that the native linker is
15669 *** used, and then restart.
15672 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15673 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15674 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15681 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15683 hardcode_direct_GCJ=yes
15684 hardcode_shlibpath_var_GCJ=no
15688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15689 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15690 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15697 if test "$ld_shlibs_GCJ" = yes; then
15698 runpath_var=LD_RUN_PATH
15699 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15700 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15701 # ancient GNU ld didn't support --whole-archive et. al.
15702 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15703 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15705 whole_archive_flag_spec_GCJ=
15709 # PORTME fill in a description of your system's linker (not GNU ld)
15712 allow_undefined_flag_GCJ=unsupported
15713 always_export_symbols_GCJ=yes
15714 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'
15715 # Note: this linker hardcodes the directories in LIBPATH if there
15716 # are no directories specified by -L.
15717 hardcode_minus_L_GCJ=yes
15718 if test "$GCC" = yes && test -z "$link_static_flag"; then
15719 # Neither direct hardcoding nor static linking is supported with a
15721 hardcode_direct_GCJ=unsupported
15726 if test "$host_cpu" = ia64; then
15727 # On IA64, the linker does run time linking by default, so we don't
15728 # have to do anything special.
15729 aix_use_runtimelinking=no
15730 exp_sym_flag='-Bexport'
15733 # If we're using GNU nm, then we don't want the "-C" option.
15734 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15735 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15736 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'
15738 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'
15740 aix_use_runtimelinking=no
15742 # Test if we are trying to use run time linking or normal
15743 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15744 # need to do runtime linking.
15745 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15746 for ld_flag in $LDFLAGS; do
15747 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15748 aix_use_runtimelinking=yes
15754 exp_sym_flag='-bexport'
15755 no_entry_flag='-bnoentry'
15758 # When large executables or shared objects are built, AIX ld can
15759 # have problems creating the table of contents. If linking a library
15760 # or program results in "error TOC overflow" add -mminimal-toc to
15761 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15762 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15764 archive_cmds_GCJ=''
15765 hardcode_direct_GCJ=yes
15766 hardcode_libdir_separator_GCJ=':'
15767 link_all_deplibs_GCJ=yes
15769 if test "$GCC" = yes; then
15770 case $host_os in aix4.012|aix4.012.*)
15771 # We only want to do this on AIX 4.2 and lower, the check
15772 # below for broken collect2 doesn't work under 4.3+
15773 collect2name=`${CC} -print-prog-name=collect2`
15774 if test -f "$collect2name" && \
15775 strings "$collect2name" | grep resolve_lib_name >/dev/null
15777 # We have reworked collect2
15778 hardcode_direct_GCJ=yes
15780 # We have old collect2
15781 hardcode_direct_GCJ=unsupported
15782 # It fails to find uninstalled libraries when the uninstalled
15783 # path is not listed in the libpath. Setting hardcode_minus_L
15784 # to unsupported forces relinking
15785 hardcode_minus_L_GCJ=yes
15786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15787 hardcode_libdir_separator_GCJ=
15790 shared_flag='-shared'
15793 if test "$host_cpu" = ia64; then
15794 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15795 # chokes on -Wl,-G. The following line is correct:
15798 if test "$aix_use_runtimelinking" = yes; then
15799 shared_flag='${wl}-G'
15801 shared_flag='${wl}-bM:SRE'
15806 # It seems that -bexpall does not export symbols beginning with
15807 # underscore (_), so it is better to generate a list of symbols to export.
15808 always_export_symbols_GCJ=yes
15809 if test "$aix_use_runtimelinking" = yes; then
15810 # Warning - without using the other runtime loading flags (-brtl),
15811 # -berok will link without error, but may produce a broken library.
15812 allow_undefined_flag_GCJ='-berok'
15813 # Determine the default libpath from the value encoded in an empty executable.
15814 cat >conftest.$ac_ext <<_ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15831 (eval $ac_link) 2>conftest.er1
15833 grep -v '^ *+' conftest.er1 >conftest.err
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
15838 { ac_try='test -z "$ac_c_werror_flag"
15839 || test ! -s conftest.err'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest$ac_exeext'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15854 # Check for a 64-bit object if we didn't find anything.
15855 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; }
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15862 rm -f conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15866 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15867 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"
15869 if test "$host_cpu" = ia64; then
15870 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15871 allow_undefined_flag_GCJ="-z nodefs"
15872 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"
15874 # Determine the default libpath from the value encoded in an empty executable.
15875 cat >conftest.$ac_ext <<_ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15890 rm -f conftest.$ac_objext conftest$ac_exeext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15892 (eval $ac_link) 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag"
15900 || test ! -s conftest.err'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest$ac_exeext'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15915 # Check for a 64-bit object if we didn't find anything.
15916 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; }
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15923 rm -f conftest.err conftest.$ac_objext \
15924 conftest$ac_exeext conftest.$ac_ext
15925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15927 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15928 # Warning - without using the other run time loading flags,
15929 # -berok will link without error, but may produce a broken library.
15930 no_undefined_flag_GCJ=' ${wl}-bernotok'
15931 allow_undefined_flag_GCJ=' ${wl}-berok'
15932 # -bexpall does not export symbols beginning with underscore (_)
15933 always_export_symbols_GCJ=yes
15934 # Exported symbols can be pulled into shared objects from archives
15935 whole_archive_flag_spec_GCJ=' '
15936 archive_cmds_need_lc_GCJ=yes
15937 # This is similar to how AIX traditionally builds it's shared libraries.
15938 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'
15944 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)'
15945 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15946 hardcode_minus_L_GCJ=yes
15947 # see comment about different semantics on the GNU ld section
15952 export_dynamic_flag_spec_GCJ=-rdynamic
15955 cygwin* | mingw* | pw32*)
15956 # When not using gcc, we currently assume that we are using
15957 # Microsoft Visual C++.
15958 # hardcode_libdir_flag_spec is actually meaningless, as there is
15959 # no search path for DLLs.
15960 hardcode_libdir_flag_spec_GCJ=' '
15961 allow_undefined_flag_GCJ=unsupported
15962 # Tell ltmain to make .lib files, not .a files.
15964 # Tell ltmain to make .dll files, not .so files.
15966 # FIXME: Setting linknames here is a bad hack.
15967 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15968 # The linker will automatically build a .lib file if we build a DLL.
15969 old_archive_From_new_cmds_GCJ='true'
15970 # FIXME: Should let the user specify the lib program.
15971 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15972 fix_srcfile_path='`cygpath -w "$srcfile"`'
15973 enable_shared_with_static_runtimes_GCJ=yes
15976 darwin* | rhapsody*)
15977 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15978 archive_cmds_need_lc_GCJ=no
15980 rhapsody* | darwin1.[012])
15981 allow_undefined_flag_GCJ='-undefined suppress'
15984 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15987 # FIXME: Relying on posixy $() will cause problems for
15988 # cross-compilation, but unfortunately the echo tests do not
15989 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15990 # `"' quotes if we put them in here... so don't!
15991 lt_int_apple_cc_single_mod=no
15992 output_verbose_link_cmd='echo'
15993 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15994 lt_int_apple_cc_single_mod=yes
15996 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15997 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15999 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16001 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16002 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16003 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16004 archive_expsym_cmds_GCJ='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}'
16006 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16008 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16009 hardcode_direct_GCJ=no
16010 hardcode_automatic_GCJ=yes
16011 hardcode_shlibpath_var_GCJ=unsupported
16012 whole_archive_flag_spec_GCJ='-all_load $convenience'
16013 link_all_deplibs_GCJ=yes
16018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16020 hardcode_shlibpath_var_GCJ=no
16027 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16028 # support. Future versions do this automatically, but an explicit c++rt0.o
16029 # does not break anything, and helps significantly (at the cost of a little
16032 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16033 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16034 hardcode_direct_GCJ=yes
16035 hardcode_shlibpath_var_GCJ=no
16038 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16040 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16041 hardcode_direct_GCJ=yes
16042 hardcode_minus_L_GCJ=yes
16043 hardcode_shlibpath_var_GCJ=no
16046 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16048 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16049 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16050 hardcode_direct_GCJ=yes
16051 hardcode_shlibpath_var_GCJ=no
16055 if test "$GCC" = yes; then
16056 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'
16058 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'
16060 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16061 hardcode_libdir_separator_GCJ=:
16062 hardcode_direct_GCJ=yes
16064 # hardcode_minus_L: Not really in the search PATH,
16065 # but as the default location of the library.
16066 hardcode_minus_L_GCJ=yes
16067 export_dynamic_flag_spec_GCJ='${wl}-E'
16071 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16072 case "$host_cpu" in
16074 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16077 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16081 case "$host_cpu" in
16083 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16086 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16090 if test "$with_gnu_ld" = no; then
16091 case "$host_cpu" in
16093 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16094 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16095 hardcode_libdir_separator_GCJ=:
16096 hardcode_direct_GCJ=no
16097 hardcode_shlibpath_var_GCJ=no
16100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16101 hardcode_direct_GCJ=no
16102 hardcode_shlibpath_var_GCJ=no
16104 # hardcode_minus_L: Not really in the search PATH,
16105 # but as the default location of the library.
16106 hardcode_minus_L_GCJ=yes
16109 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16110 hardcode_libdir_separator_GCJ=:
16111 hardcode_direct_GCJ=yes
16112 export_dynamic_flag_spec_GCJ='${wl}-E'
16114 # hardcode_minus_L: Not really in the search PATH,
16115 # but as the default location of the library.
16116 hardcode_minus_L_GCJ=yes
16122 irix5* | irix6* | nonstopux*)
16123 if test "$GCC" = yes; then
16124 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'
16126 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'
16127 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16130 hardcode_libdir_separator_GCJ=:
16131 link_all_deplibs_GCJ=yes
16135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16136 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16138 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16140 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16141 hardcode_direct_GCJ=yes
16142 hardcode_shlibpath_var_GCJ=no
16146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16147 hardcode_direct_GCJ=yes
16148 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16149 hardcode_libdir_separator_GCJ=:
16150 hardcode_shlibpath_var_GCJ=no
16154 hardcode_direct_GCJ=yes
16155 hardcode_shlibpath_var_GCJ=no
16156 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16157 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16158 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16159 export_dynamic_flag_spec_GCJ='${wl}-E'
16162 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16163 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16164 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16167 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16168 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16175 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16176 hardcode_minus_L_GCJ=yes
16177 allow_undefined_flag_GCJ=unsupported
16178 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'
16179 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16183 if test "$GCC" = yes; then
16184 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16185 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'
16187 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16188 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'
16190 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16191 hardcode_libdir_separator_GCJ=:
16194 osf4* | osf5*) # as osf3* with the addition of -msym flag
16195 if test "$GCC" = yes; then
16196 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16197 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'
16198 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16200 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16201 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'
16202 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~
16203 $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'
16205 # Both c and cxx compiler support -rpath directly
16206 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16208 hardcode_libdir_separator_GCJ=:
16212 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16213 hardcode_shlibpath_var_GCJ=no
16214 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16215 runpath_var=LD_RUN_PATH
16216 hardcode_runpath_var=yes
16220 no_undefined_flag_GCJ=' -z text'
16221 if test "$GCC" = yes; then
16222 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16223 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16224 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16226 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16227 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16228 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16230 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16231 hardcode_shlibpath_var_GCJ=no
16233 solaris2.[0-5] | solaris2.[0-5].*) ;;
16234 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16235 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16237 link_all_deplibs_GCJ=yes
16241 if test "x$host_vendor" = xsequent; then
16242 # Use $CC to link under sequent, because it throws in some extra .o
16243 # files that make .init and .fini sections work.
16244 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16246 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16248 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16249 hardcode_direct_GCJ=yes
16250 hardcode_minus_L_GCJ=yes
16251 hardcode_shlibpath_var_GCJ=no
16255 case $host_vendor in
16257 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16258 hardcode_direct_GCJ=yes # is this really true???
16261 ## LD is ld it makes a PLAMLIB
16262 ## CC just makes a GrossModule.
16263 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16264 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16265 hardcode_direct_GCJ=no
16268 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16269 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16272 runpath_var='LD_RUN_PATH'
16273 hardcode_shlibpath_var_GCJ=no
16277 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16278 hardcode_shlibpath_var_GCJ=no
16279 export_dynamic_flag_spec_GCJ='-Bexport'
16283 if test -d /usr/nec; then
16284 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16285 hardcode_shlibpath_var_GCJ=no
16286 runpath_var=LD_RUN_PATH
16287 hardcode_runpath_var=yes
16293 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16294 hardcode_direct_GCJ=yes
16295 hardcode_minus_L_GCJ=no
16296 hardcode_shlibpath_var_GCJ=no
16297 hardcode_runpath_var=yes
16298 runpath_var=LD_RUN_PATH
16301 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16302 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16303 if test "$GCC" = yes; then
16304 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16306 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16308 runpath_var='LD_RUN_PATH'
16309 hardcode_shlibpath_var_GCJ=no
16313 no_undefined_flag_GCJ=' -z text'
16314 # $CC -shared without GNU ld will not create a library from C++
16315 # object files and a static libstdc++, better avoid it by now
16316 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16317 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16318 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16319 hardcode_libdir_flag_spec_GCJ=
16320 hardcode_shlibpath_var_GCJ=no
16321 runpath_var='LD_RUN_PATH'
16325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16326 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16327 hardcode_shlibpath_var_GCJ=no
16336 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16337 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16338 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16340 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16341 if test "$GCC" = yes; then
16342 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16346 # Do we need to explicitly link libc?
16348 case "x$archive_cmds_need_lc_GCJ" in
16350 # Assume -lc should be added
16351 archive_cmds_need_lc_GCJ=yes
16353 if test "$enable_shared" = yes && test "$GCC" = yes; then
16354 case $archive_cmds_GCJ in
16356 # FIXME: we may have to deal with multi-command sequences.
16359 # Test whether the compiler implicitly links with -lc since on some
16360 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16361 # to ld, don't add -lc before -lgcc.
16362 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16363 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16365 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16368 (eval $ac_compile) 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } 2>conftest.err; then
16374 libobjs=conftest.$ac_objext
16376 wl=$lt_prog_compiler_wl_GCJ
16382 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16383 allow_undefined_flag_GCJ=
16384 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16385 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }
16390 archive_cmds_need_lc_GCJ=no
16392 archive_cmds_need_lc_GCJ=yes
16394 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16396 cat conftest.err 1>&5
16399 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16400 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16407 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16408 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16409 hardcode_action_GCJ=
16410 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16411 test -n "$runpath_var GCJ" || \
16412 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16414 # We can hardcode non-existant directories.
16415 if test "$hardcode_direct_GCJ" != no &&
16416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16417 # have to relink, otherwise we might link with an installed library
16418 # when we should be linking with a yet-to-be-installed one
16419 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16420 test "$hardcode_minus_L_GCJ" != no; then
16421 # Linking always hardcodes the temporary library directory.
16422 hardcode_action_GCJ=relink
16424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16425 hardcode_action_GCJ=immediate
16428 # We cannot hardcode anything, or else we can only hardcode existing
16430 hardcode_action_GCJ=unsupported
16432 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16433 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16435 if test "$hardcode_action_GCJ" = relink; then
16436 # Fast installation is not supported
16437 enable_fast_install=no
16438 elif test "$shlibpath_overrides_runpath" = yes ||
16439 test "$enable_shared" = no; then
16440 # Fast installation is not necessary
16441 enable_fast_install=needless
16446 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16447 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16448 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16449 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16450 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16451 echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6
16454 # FIXME - insert some real tests, host_os isn't really good enough
16457 if test -n "$STRIP" ; then
16458 striplib="$STRIP -x"
16459 echo "$as_me:$LINENO: result: yes" >&5
16460 echo "${ECHO_T}yes" >&6
16462 echo "$as_me:$LINENO: result: no" >&5
16463 echo "${ECHO_T}no" >&6
16467 echo "$as_me:$LINENO: result: no" >&5
16468 echo "${ECHO_T}no" >&6
16473 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16474 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16475 library_names_spec=
16476 libname_spec='lib$name'
16480 postuninstall_cmds=
16484 shlibpath_overrides_runpath=unknown
16486 dynamic_linker="$host_os ld.so"
16487 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16488 if test "$GCC" = yes; then
16489 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16490 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16491 # if the path contains ";" then we assume it to be the separator
16492 # otherwise default to the standard path separator (i.e. ":") - it is
16493 # assumed that no part of a normal pathname contains ";" but that should
16494 # okay in the real world where ";" in dirpaths is itself problematic.
16495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16497 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16500 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16502 need_lib_prefix=unknown
16503 hardcode_into_libs=no
16505 # when you set need_version to no, make sure it does not cause -set_version
16506 # flags to be left without arguments
16507 need_version=unknown
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16513 shlibpath_var=LIBPATH
16515 # AIX 3 has no versioning support, so we append a major version to the name.
16516 soname_spec='${libname}${release}${shared_ext}$major'
16523 hardcode_into_libs=yes
16524 if test "$host_cpu" = ia64; then
16525 # AIX 5 supports IA64
16526 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16527 shlibpath_var=LD_LIBRARY_PATH
16529 # With GCC up to 2.95.x, collect2 would create an import file
16530 # for dependence libraries. The import file would start with
16531 # the line `#! .'. This would cause the generated library to
16532 # depend on `.', always an invalid library. This was fixed in
16533 # development snapshots of GCC prior to 3.0.
16535 aix4 | aix4.[01] | aix4.[01].*)
16536 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16538 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16541 can_build_shared=no
16545 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16546 # soname into executable. Probably we can add versioning support to
16547 # collect2, so additional links can be useful in future.
16548 if test "$aix_use_runtimelinking" = yes; then
16549 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16550 # instead of lib<name>.a to let people know that these are not
16551 # typical AIX shared libraries.
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554 # We preserve .a as extension for shared libraries through AIX4.2
16555 # and later when we are not doing run time linking.
16556 library_names_spec='${libname}${release}.a $libname.a'
16557 soname_spec='${libname}${release}${shared_ext}$major'
16559 shlibpath_var=LIBPATH
16564 library_names_spec='$libname.ixlibrary $libname.a'
16565 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16566 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'
16570 library_names_spec='${libname}${shared_ext}'
16571 dynamic_linker="$host_os ld.so"
16572 shlibpath_var=LIBRARY_PATH
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16581 shlibpath_var=LD_LIBRARY_PATH
16582 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16583 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16584 # the default ld.so.conf also contains /usr/contrib/lib and
16585 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16586 # libtool to hard-code these into programs
16589 cygwin* | mingw* | pw32*)
16590 version_type=windows
16595 case $GCC,$host_os in
16596 yes,cygwin* | yes,mingw* | yes,pw32*)
16597 library_names_spec='$libname.dll.a'
16598 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16599 postinstall_cmds='base_file=`basename \${file}`~
16600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16601 dldir=$destdir/`dirname \$dlpath`~
16602 test -d \$dldir || mkdir -p \$dldir~
16603 $install_prog $dir/$dlname \$dldir/$dlname'
16604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16605 dlpath=$dir/\$dldll~
16607 shlibpath_overrides_runpath=yes
16611 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16612 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16613 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16616 # MinGW DLLs use traditional 'lib' prefix
16617 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16619 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16620 # It is most probably a Windows format PATH printed by
16621 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16622 # path with ; separators, and with drive letters. We can handle the
16623 # drive letters (cygwin fileutils understands them), so leave them,
16624 # especially as we might pass files found there to a mingw objdump,
16625 # which wouldn't understand a cygwinified path. Ahh.
16626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16632 # pw32 DLLs use 'pw' prefix rather than 'lib'
16633 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16639 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16642 dynamic_linker='Win32 ld.exe'
16643 # FIXME: first we should search . and the directory the executable is in
16647 darwin* | rhapsody*)
16648 dynamic_linker="$host_os dyld"
16649 version_type=darwin
16652 # FIXME: Relying on posixy $() will cause problems for
16653 # cross-compilation, but unfortunately the echo tests do not
16654 # yet detect zsh echo's removal of \ escapes.
16655 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16656 soname_spec='${libname}${release}${major}$shared_ext'
16657 shlibpath_overrides_runpath=yes
16658 shlibpath_var=DYLD_LIBRARY_PATH
16659 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16660 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16661 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16662 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"`
16664 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16672 soname_spec='${libname}${release}${shared_ext}$major'
16673 shlibpath_var=LD_LIBRARY_PATH
16681 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16682 version_type=freebsd-$objformat
16683 case $version_type in
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16694 shlibpath_var=LD_LIBRARY_PATH
16697 shlibpath_overrides_runpath=yes
16699 freebsd3.01* | freebsdelf3.01*)
16700 shlibpath_overrides_runpath=yes
16701 hardcode_into_libs=yes
16704 shlibpath_overrides_runpath=no
16705 hardcode_into_libs=yes
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 hardcode_into_libs=yes
16720 hpux9* | hpux10* | hpux11*)
16721 # Give a soname corresponding to the major version so that dld.sl refuses to
16722 # link against other versions.
16726 case "$host_cpu" in
16729 hardcode_into_libs=yes
16730 dynamic_linker="$host_os dld.so"
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734 soname_spec='${libname}${release}${shared_ext}$major'
16735 if test "X$HPUX_IA64_MODE" = X32; then
16736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16738 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16744 hardcode_into_libs=yes
16745 dynamic_linker="$host_os dld.sl"
16746 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16755 dynamic_linker="$host_os dld.sl"
16756 shlibpath_var=SHLIB_PATH
16757 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 soname_spec='${libname}${release}${shared_ext}$major'
16762 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16763 postinstall_cmds='chmod 555 $lib'
16766 irix5* | irix6* | nonstopux*)
16768 nonstopux*) version_type=nonstopux ;;
16770 if test "$lt_cv_prog_gnu_ld" = yes; then
16778 soname_spec='${libname}${release}${shared_ext}$major'
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16781 irix5* | nonstopux*)
16782 libsuff= shlibsuff=
16785 case $LD in # libtool.m4 will add one of these switches to LD
16786 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16787 libsuff= shlibsuff= libmagic=32-bit;;
16788 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16789 libsuff=32 shlibsuff=N32 libmagic=N32;;
16790 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16791 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16792 *) libsuff= shlibsuff= libmagic=never-match;;
16796 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16797 shlibpath_overrides_runpath=no
16798 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16799 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16800 hardcode_into_libs=yes
16803 # No shared lib support for Linux oldld, aout, or coff.
16804 linux*oldld* | linux*aout* | linux*coff*)
16808 # This must be Linux ELF.
16813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 soname_spec='${libname}${release}${shared_ext}$major'
16815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 shlibpath_overrides_runpath=no
16818 # This implies no fast_install, which is unacceptable.
16819 # Some rework will be needed to allow for fast_install
16820 # before this can be enabled.
16821 hardcode_into_libs=yes
16823 # We used to test for /lib/ld.so.1 and disable shared libraries on
16824 # powerpc, because MkLinux only supported shared libraries with the
16825 # GNU dynamic linker. Since this was broken with cross compilers,
16826 # most powerpc-linux boxes support dynamic linking these days and
16827 # people can always --disable-shared, the test was removed, and we
16828 # assume the GNU/Linux dynamic linker is in use.
16829 dynamic_linker='GNU/Linux ld.so'
16836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16839 dynamic_linker='NetBSD (a.out) ld.so'
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 dynamic_linker='NetBSD ld.elf_so'
16845 shlibpath_var=LD_LIBRARY_PATH
16846 shlibpath_overrides_runpath=yes
16847 hardcode_into_libs=yes
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 shlibpath_overrides_runpath=yes
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 shlibpath_overrides_runpath=yes
16871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16873 shlibpath_var=LD_LIBRARY_PATH
16874 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16876 openbsd2.[89] | openbsd2.[89].*)
16877 shlibpath_overrides_runpath=no
16880 shlibpath_overrides_runpath=yes
16884 shlibpath_overrides_runpath=yes
16889 libname_spec='$name'
16892 library_names_spec='$libname${shared_ext} $libname.a'
16893 dynamic_linker='OS/2 ld.exe'
16894 shlibpath_var=LIBPATH
16897 osf3* | osf4* | osf5*)
16901 soname_spec='${libname}${release}${shared_ext}$major'
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903 shlibpath_var=LD_LIBRARY_PATH
16904 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16905 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912 shlibpath_var=LD_LIBRARY_PATH
16919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16920 soname_spec='${libname}${release}${shared_ext}$major'
16921 shlibpath_var=LD_LIBRARY_PATH
16922 shlibpath_overrides_runpath=yes
16923 hardcode_into_libs=yes
16924 # ldd complains unless libraries are executable
16925 postinstall_cmds='chmod +x $lib'
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16932 shlibpath_var=LD_LIBRARY_PATH
16933 shlibpath_overrides_runpath=yes
16934 if test "$with_gnu_ld" = yes; then
16940 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943 soname_spec='${libname}${release}${shared_ext}$major'
16944 shlibpath_var=LD_LIBRARY_PATH
16945 case $host_vendor in
16947 shlibpath_overrides_runpath=no
16949 export_dynamic_flag_spec='${wl}-Blargedynsym'
16950 runpath_var=LD_RUN_PATH
16958 shlibpath_overrides_runpath=no
16959 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16965 if test -d /usr/nec ;then
16967 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16968 soname_spec='$libname${shared_ext}.$major'
16969 shlibpath_var=LD_LIBRARY_PATH
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 soname_spec='${libname}${release}${shared_ext}$major'
16977 shlibpath_var=LD_LIBRARY_PATH
16984 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16985 echo "${ECHO_T}$dynamic_linker" >&6
16986 test "$dynamic_linker" = no && can_build_shared=no
16988 if test "x$enable_dlopen" != xyes; then
16989 enable_dlopen=unknown
16990 enable_dlopen_self=unknown
16991 enable_dlopen_self_static=unknown
16998 lt_cv_dlopen="load_add_on"
17000 lt_cv_dlopen_self=yes
17004 lt_cv_dlopen="LoadLibrary"
17009 lt_cv_dlopen="dlopen"
17014 # if libdl is installed we need to link against it
17015 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17020 ac_check_lib_save_LIBS=$LIBS
17022 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17029 /* Override any gcc2 internal prototype to avoid an error. */
17033 /* We use char because int might match the return type of a gcc2
17034 builtin and then its argument prototype would still apply. */
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17046 (eval $ac_link) 2>conftest.er1
17048 grep -v '^ *+' conftest.er1 >conftest.err
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try='test -z "$ac_c_werror_flag"
17054 || test ! -s conftest.err'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest$ac_exeext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_lib_dl_dlopen=yes
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 ac_cv_lib_dl_dlopen=no
17073 rm -f conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
17075 LIBS=$ac_check_lib_save_LIBS
17077 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17079 if test $ac_cv_lib_dl_dlopen = yes; then
17080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17083 lt_cv_dlopen="dyld"
17085 lt_cv_dlopen_self=yes
17092 echo "$as_me:$LINENO: checking for shl_load" >&5
17093 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17094 if test "${ac_cv_func_shl_load+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 cat >conftest.$ac_ext <<_ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17105 #define shl_load innocuous_shl_load
17107 /* System header to define __stub macros and hopefully few prototypes,
17108 which can conflict with char shl_load (); below.
17109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17110 <limits.h> exists even on freestanding compilers. */
17113 # include <limits.h>
17115 # include <assert.h>
17120 /* Override any gcc2 internal prototype to avoid an error. */
17125 /* We use char because int might match the return type of a gcc2
17126 builtin and then its argument prototype would still apply. */
17128 /* The GNU C library defines this for functions which it implements
17129 to always fail with ENOSYS. Some functions are actually named
17130 something starting with __ and the normal name is an alias. */
17131 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17134 char (*f) () = shl_load;
17143 return f != shl_load;
17148 rm -f conftest.$ac_objext conftest$ac_exeext
17149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17150 (eval $ac_link) 2>conftest.er1
17152 grep -v '^ *+' conftest.er1 >conftest.err
17154 cat conftest.err >&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } &&
17157 { ac_try='test -z "$ac_c_werror_flag"
17158 || test ! -s conftest.err'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 ac_cv_func_shl_load=yes
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 ac_cv_func_shl_load=no
17177 rm -f conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17180 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17181 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17182 if test $ac_cv_func_shl_load = yes; then
17183 lt_cv_dlopen="shl_load"
17185 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17186 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17187 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17190 ac_check_lib_save_LIBS=$LIBS
17192 cat >conftest.$ac_ext <<_ACEOF
17195 cat confdefs.h >>conftest.$ac_ext
17196 cat >>conftest.$ac_ext <<_ACEOF
17197 /* end confdefs.h. */
17199 /* Override any gcc2 internal prototype to avoid an error. */
17203 /* We use char because int might match the return type of a gcc2
17204 builtin and then its argument prototype would still apply. */
17214 rm -f conftest.$ac_objext conftest$ac_exeext
17215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17216 (eval $ac_link) 2>conftest.er1
17218 grep -v '^ *+' conftest.er1 >conftest.err
17220 cat conftest.err >&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
17223 { ac_try='test -z "$ac_c_werror_flag"
17224 || test ! -s conftest.err'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; } &&
17230 { ac_try='test -s conftest$ac_exeext'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_cv_lib_dld_shl_load=yes
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ac_cv_lib_dld_shl_load=no
17243 rm -f conftest.err conftest.$ac_objext \
17244 conftest$ac_exeext conftest.$ac_ext
17245 LIBS=$ac_check_lib_save_LIBS
17247 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17248 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17249 if test $ac_cv_lib_dld_shl_load = yes; then
17250 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17252 echo "$as_me:$LINENO: checking for dlopen" >&5
17253 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17254 if test "${ac_cv_func_dlopen+set}" = set; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17257 cat >conftest.$ac_ext <<_ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17263 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17265 #define dlopen innocuous_dlopen
17267 /* System header to define __stub macros and hopefully few prototypes,
17268 which can conflict with char dlopen (); below.
17269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17270 <limits.h> exists even on freestanding compilers. */
17273 # include <limits.h>
17275 # include <assert.h>
17280 /* Override any gcc2 internal prototype to avoid an error. */
17285 /* We use char because int might match the return type of a gcc2
17286 builtin and then its argument prototype would still apply. */
17288 /* The GNU C library defines this for functions which it implements
17289 to always fail with ENOSYS. Some functions are actually named
17290 something starting with __ and the normal name is an alias. */
17291 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17294 char (*f) () = dlopen;
17303 return f != dlopen;
17308 rm -f conftest.$ac_objext conftest$ac_exeext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17310 (eval $ac_link) 2>conftest.er1
17312 grep -v '^ *+' conftest.er1 >conftest.err
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -z "$ac_c_werror_flag"
17318 || test ! -s conftest.err'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try='test -s conftest$ac_exeext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_cv_func_dlopen=yes
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_cv_func_dlopen=no
17337 rm -f conftest.err conftest.$ac_objext \
17338 conftest$ac_exeext conftest.$ac_ext
17340 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17341 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17342 if test $ac_cv_func_dlopen = yes; then
17343 lt_cv_dlopen="dlopen"
17345 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17346 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17347 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 ac_check_lib_save_LIBS=$LIBS
17352 cat >conftest.$ac_ext <<_ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17359 /* Override any gcc2 internal prototype to avoid an error. */
17363 /* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17376 (eval $ac_link) 2>conftest.er1
17378 grep -v '^ *+' conftest.er1 >conftest.err
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try='test -z "$ac_c_werror_flag"
17384 || test ! -s conftest.err'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } &&
17390 { ac_try='test -s conftest$ac_exeext'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 ac_cv_lib_dl_dlopen=yes
17398 echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17401 ac_cv_lib_dl_dlopen=no
17403 rm -f conftest.err conftest.$ac_objext \
17404 conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17407 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17408 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17409 if test $ac_cv_lib_dl_dlopen = yes; then
17410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17412 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17413 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17414 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17417 ac_check_lib_save_LIBS=$LIBS
17418 LIBS="-lsvld $LIBS"
17419 cat >conftest.$ac_ext <<_ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17426 /* Override any gcc2 internal prototype to avoid an error. */
17430 /* We use char because int might match the return type of a gcc2
17431 builtin and then its argument prototype would still apply. */
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17443 (eval $ac_link) 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -z "$ac_c_werror_flag"
17451 || test ! -s conftest.err'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; } &&
17457 { ac_try='test -s conftest$ac_exeext'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463 ac_cv_lib_svld_dlopen=yes
17465 echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17468 ac_cv_lib_svld_dlopen=no
17470 rm -f conftest.err conftest.$ac_objext \
17471 conftest$ac_exeext conftest.$ac_ext
17472 LIBS=$ac_check_lib_save_LIBS
17474 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17475 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17476 if test $ac_cv_lib_svld_dlopen = yes; then
17477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17479 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17480 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17481 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 ac_check_lib_save_LIBS=$LIBS
17486 cat >conftest.$ac_ext <<_ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17493 /* Override any gcc2 internal prototype to avoid an error. */
17497 /* We use char because int might match the return type of a gcc2
17498 builtin and then its argument prototype would still apply. */
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510 (eval $ac_link) 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest$ac_exeext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_cv_lib_dld_dld_link=yes
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 ac_cv_lib_dld_dld_link=no
17537 rm -f conftest.err conftest.$ac_objext \
17538 conftest$ac_exeext conftest.$ac_ext
17539 LIBS=$ac_check_lib_save_LIBS
17541 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17542 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17543 if test $ac_cv_lib_dld_dld_link = yes; then
17544 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17565 if test "x$lt_cv_dlopen" != xno; then
17571 case $lt_cv_dlopen in
17573 save_CPPFLAGS="$CPPFLAGS"
17574 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17576 save_LDFLAGS="$LDFLAGS"
17577 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17580 LIBS="$lt_cv_dlopen_libs $LIBS"
17582 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17583 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17584 if test "${lt_cv_dlopen_self+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 if test "$cross_compiling" = yes; then :
17588 lt_cv_dlopen_self=cross
17590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17591 lt_status=$lt_dlunknown
17592 cat > conftest.$ac_ext <<EOF
17593 #line 17593 "configure"
17594 #include "confdefs.h"
17603 # define LT_DLGLOBAL RTLD_GLOBAL
17606 # define LT_DLGLOBAL DL_GLOBAL
17608 # define LT_DLGLOBAL 0
17612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17613 find out it does not work in some platform. */
17614 #ifndef LT_DLLAZY_OR_NOW
17616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17619 # define LT_DLLAZY_OR_NOW DL_LAZY
17622 # define LT_DLLAZY_OR_NOW RTLD_NOW
17625 # define LT_DLLAZY_OR_NOW DL_NOW
17627 # define LT_DLLAZY_OR_NOW 0
17635 extern "C" void exit (int);
17638 void fnord() { int i=42;}
17641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17642 int status = $lt_dlunknown;
17646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17648 /* dlclose (self); */
17654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655 (eval $ac_link) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17659 (./conftest; exit; ) 2>/dev/null
17661 case x$lt_status in
17662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17664 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17667 # compilation failed
17668 lt_cv_dlopen_self=no
17675 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17676 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17678 if test "x$lt_cv_dlopen_self" = xyes; then
17679 LDFLAGS="$LDFLAGS $link_static_flag"
17680 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17681 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17682 if test "${lt_cv_dlopen_self_static+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 if test "$cross_compiling" = yes; then :
17686 lt_cv_dlopen_self_static=cross
17688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17689 lt_status=$lt_dlunknown
17690 cat > conftest.$ac_ext <<EOF
17691 #line 17691 "configure"
17692 #include "confdefs.h"
17701 # define LT_DLGLOBAL RTLD_GLOBAL
17704 # define LT_DLGLOBAL DL_GLOBAL
17706 # define LT_DLGLOBAL 0
17710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17711 find out it does not work in some platform. */
17712 #ifndef LT_DLLAZY_OR_NOW
17714 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17717 # define LT_DLLAZY_OR_NOW DL_LAZY
17720 # define LT_DLLAZY_OR_NOW RTLD_NOW
17723 # define LT_DLLAZY_OR_NOW DL_NOW
17725 # define LT_DLLAZY_OR_NOW 0
17733 extern "C" void exit (int);
17736 void fnord() { int i=42;}
17739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17740 int status = $lt_dlunknown;
17744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17745 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17746 /* dlclose (self); */
17752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17757 (./conftest; exit; ) 2>/dev/null
17759 case x$lt_status in
17760 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17761 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17762 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17765 # compilation failed
17766 lt_cv_dlopen_self_static=no
17773 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17774 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17777 CPPFLAGS="$save_CPPFLAGS"
17778 LDFLAGS="$save_LDFLAGS"
17783 case $lt_cv_dlopen_self in
17784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17785 *) enable_dlopen_self=unknown ;;
17788 case $lt_cv_dlopen_self_static in
17789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17790 *) enable_dlopen_self_static=unknown ;;
17795 # The else clause should only fire when bootstrapping the
17796 # libtool distribution, otherwise you forgot to ship ltmain.sh
17797 # with your package, and you will get complaints that there are
17798 # no rules to generate ltmain.sh.
17799 if test -f "$ltmain"; then
17800 # See if we are running on zsh, and set the options which allow our commands through
17801 # without removal of \ escapes.
17802 if test -n "${ZSH_VERSION+set}" ; then
17803 setopt NO_GLOB_SUBST
17805 # Now quote all the things that may contain metacharacters while being
17806 # careful not to overquote the AC_SUBSTed values. We take copies of the
17807 # variables and quote the copies for generation of the libtool script.
17808 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17809 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17810 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17811 deplibs_check_method reload_flag reload_cmds need_locks \
17812 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17813 lt_cv_sys_global_symbol_to_c_name_address \
17814 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17815 old_postinstall_cmds old_postuninstall_cmds \
17819 lt_prog_compiler_wl_GCJ \
17820 lt_prog_compiler_pic_GCJ \
17821 lt_prog_compiler_static_GCJ \
17822 lt_prog_compiler_no_builtin_flag_GCJ \
17823 export_dynamic_flag_spec_GCJ \
17824 thread_safe_flag_spec_GCJ \
17825 whole_archive_flag_spec_GCJ \
17826 enable_shared_with_static_runtimes_GCJ \
17827 old_archive_cmds_GCJ \
17828 old_archive_from_new_cmds_GCJ \
17829 predep_objects_GCJ \
17830 postdep_objects_GCJ \
17833 compiler_lib_search_path_GCJ \
17835 archive_expsym_cmds_GCJ \
17836 postinstall_cmds_GCJ \
17837 postuninstall_cmds_GCJ \
17838 old_archive_from_expsyms_cmds_GCJ \
17839 allow_undefined_flag_GCJ \
17840 no_undefined_flag_GCJ \
17841 export_symbols_cmds_GCJ \
17842 hardcode_libdir_flag_spec_GCJ \
17843 hardcode_libdir_flag_spec_ld_GCJ \
17844 hardcode_libdir_separator_GCJ \
17845 hardcode_automatic_GCJ \
17847 module_expsym_cmds_GCJ \
17848 lt_cv_prog_compiler_c_o_GCJ \
17849 exclude_expsyms_GCJ \
17850 include_expsyms_GCJ; do
17853 old_archive_cmds_GCJ | \
17854 old_archive_from_new_cmds_GCJ | \
17855 archive_cmds_GCJ | \
17856 archive_expsym_cmds_GCJ | \
17857 module_cmds_GCJ | \
17858 module_expsym_cmds_GCJ | \
17859 old_archive_from_expsyms_cmds_GCJ | \
17860 export_symbols_cmds_GCJ | \
17861 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17862 postinstall_cmds | postuninstall_cmds | \
17863 old_postinstall_cmds | old_postuninstall_cmds | \
17864 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17865 # Double-quote double-evaled strings.
17866 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17875 *'\$0 --fallback-echo"')
17876 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17882 cat <<__EOF__ >> "$cfgfile"
17883 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17885 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17887 # Shell to use when invoking shell scripts.
17890 # Whether or not to build shared libraries.
17891 build_libtool_libs=$enable_shared
17893 # Whether or not to build static libraries.
17894 build_old_libs=$enable_static
17896 # Whether or not to add -lc for building shared libraries.
17897 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17899 # Whether or not to disallow shared libs when runtime libs are static
17900 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17902 # Whether or not to optimize for fast installation.
17903 fast_install=$enable_fast_install
17906 host_alias=$host_alias
17909 # An echo program that does not interpret backslashes.
17914 AR_FLAGS=$lt_AR_FLAGS
17919 # A language-specific compiler.
17920 CC=$lt_compiler_GCJ
17922 # Is the compiler the GNU C compiler?
17928 # The linker used to build libraries.
17931 # Whether we need hard or soft links.
17934 # A BSD-compatible nm program.
17937 # A symbol stripping program
17940 # Used to examine libraries when file_magic_cmd begins "file"
17941 MAGIC_CMD=$MAGIC_CMD
17943 # Used on cygwin: DLL creation program.
17946 # Used on cygwin: object dumper.
17949 # Used on cygwin: assembler.
17952 # The name of the directory that contains temporary libtool files.
17955 # How to create reloadable object files.
17956 reload_flag=$lt_reload_flag
17957 reload_cmds=$lt_reload_cmds
17959 # How to pass a linker flag through the compiler.
17960 wl=$lt_lt_prog_compiler_wl_GCJ
17962 # Object file suffix (normally "o").
17963 objext="$ac_objext"
17965 # Old archive suffix (normally "a").
17968 # Shared library suffix (normally ".so").
17971 # Executable file suffix (normally "").
17974 # Additional compiler flags for building library objects.
17975 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17978 # What is the maximum length of a command?
17979 max_cmd_len=$lt_cv_sys_max_cmd_len
17981 # Does compiler simultaneously support -c and -o options?
17982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17984 # Must we lock files when doing compilation ?
17985 need_locks=$lt_need_locks
17987 # Do we need the lib prefix for modules?
17988 need_lib_prefix=$need_lib_prefix
17990 # Do we need a version for libraries?
17991 need_version=$need_version
17993 # Whether dlopen is supported.
17994 dlopen_support=$enable_dlopen
17996 # Whether dlopen of programs is supported.
17997 dlopen_self=$enable_dlopen_self
17999 # Whether dlopen of statically linked programs is supported.
18000 dlopen_self_static=$enable_dlopen_self_static
18002 # Compiler flag to prevent dynamic linking.
18003 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18005 # Compiler flag to turn off builtin functions.
18006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18008 # Compiler flag to allow reflexive dlopens.
18009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18011 # Compiler flag to generate shared objects directly from archives.
18012 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18014 # Compiler flag to generate thread-safe objects.
18015 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18017 # Library versioning type.
18018 version_type=$version_type
18020 # Format of library name prefix.
18021 libname_spec=$lt_libname_spec
18023 # List of archive names. First name is the real one, the rest are links.
18024 # The last name is the one that the linker finds with -lNAME.
18025 library_names_spec=$lt_library_names_spec
18027 # The coded name of the library, if different from the real name.
18028 soname_spec=$lt_soname_spec
18030 # Commands used to build and install an old-style archive.
18032 old_archive_cmds=$lt_old_archive_cmds_GCJ
18033 old_postinstall_cmds=$lt_old_postinstall_cmds
18034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18036 # Create an old-style archive from a shared archive.
18037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18039 # Create a temporary old-style archive to link instead of a shared archive.
18040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18042 # Commands used to build and install a shared archive.
18043 archive_cmds=$lt_archive_cmds_GCJ
18044 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18045 postinstall_cmds=$lt_postinstall_cmds
18046 postuninstall_cmds=$lt_postuninstall_cmds
18048 # Commands used to build a loadable module (assumed same as above if empty)
18049 module_cmds=$lt_module_cmds_GCJ
18050 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18052 # Commands to strip libraries.
18053 old_striplib=$lt_old_striplib
18054 striplib=$lt_striplib
18056 # Dependencies to place before the objects being linked to create a
18058 predep_objects=$lt_predep_objects_GCJ
18060 # Dependencies to place after the objects being linked to create a
18062 postdep_objects=$lt_postdep_objects_GCJ
18064 # Dependencies to place before the objects being linked to create a
18066 predeps=$lt_predeps_GCJ
18068 # Dependencies to place after the objects being linked to create a
18070 postdeps=$lt_postdeps_GCJ
18072 # The library search path used internally by the compiler when linking
18073 # a shared library.
18074 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18076 # Method to check whether dependent libraries are shared objects.
18077 deplibs_check_method=$lt_deplibs_check_method
18079 # Command to use when deplibs_check_method == file_magic.
18080 file_magic_cmd=$lt_file_magic_cmd
18082 # Flag that allows shared libraries with undefined symbols to be built.
18083 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18085 # Flag that forces no undefined symbols.
18086 no_undefined_flag=$lt_no_undefined_flag_GCJ
18088 # Commands used to finish a libtool library installation in a directory.
18089 finish_cmds=$lt_finish_cmds
18091 # Same as above, but a single script fragment to be evaled but not shown.
18092 finish_eval=$lt_finish_eval
18094 # Take the output of nm and produce a listing of raw symbols and C names.
18095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18097 # Transform the output of nm in a proper C declaration
18098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18100 # Transform the output of nm in a C name address pair
18101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18103 # This is the shared library runtime path variable.
18104 runpath_var=$runpath_var
18106 # This is the shared library path variable.
18107 shlibpath_var=$shlibpath_var
18109 # Is shlibpath searched before the hard-coded library search path?
18110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18112 # How to hardcode a shared library path into an executable.
18113 hardcode_action=$hardcode_action_GCJ
18115 # Whether we should hardcode library paths into libraries.
18116 hardcode_into_libs=$hardcode_into_libs
18118 # Flag to hardcode \$libdir into a binary during linking.
18119 # This must work even if \$libdir does not exist.
18120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18122 # If ld is used when linking, flag to hardcode \$libdir into
18123 # a binary during linking. This must work even if \$libdir does
18125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18127 # Whether we need a single -rpath flag with a separated argument.
18128 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18131 # resulting binary.
18132 hardcode_direct=$hardcode_direct_GCJ
18134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18135 # resulting binary.
18136 hardcode_minus_L=$hardcode_minus_L_GCJ
18138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18139 # the resulting binary.
18140 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18142 # Set to yes if building a shared library automatically hardcodes DIR into the library
18143 # and all subsequent libraries and executables linked against it.
18144 hardcode_automatic=$hardcode_automatic_GCJ
18146 # Variables whose values should be saved in libtool wrapper scripts and
18147 # restored at relink time.
18148 variables_saved_for_relink="$variables_saved_for_relink"
18150 # Whether libtool must link a program against all its dependency libraries.
18151 link_all_deplibs=$link_all_deplibs_GCJ
18153 # Compile-time system search path for libraries
18154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18156 # Run-time system search path for libraries
18157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18159 # Fix the shell variable \$srcfile for the compiler.
18160 fix_srcfile_path="$fix_srcfile_path_GCJ"
18162 # Set to yes if exported symbols are required.
18163 always_export_symbols=$always_export_symbols_GCJ
18165 # The commands to list exported symbols.
18166 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18168 # The commands to extract the exported symbol list from a shared archive.
18169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18171 # Symbols that should not be listed in the preloaded symbols.
18172 exclude_expsyms=$lt_exclude_expsyms_GCJ
18174 # Symbols that must always be exported.
18175 include_expsyms=$lt_include_expsyms_GCJ
18177 # ### END LIBTOOL TAG CONFIG: $tagname
18183 # If there is no Makefile yet, we rely on a make rule to execute
18184 # `config.status --recheck' to rerun these tests and create the
18185 # libtool script then.
18186 test -f Makefile && make "$ltmain"
18191 ac_cpp='$CPP $CPPFLAGS'
18192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18207 # Source file extension for RC test sources.
18210 # Object file extension for compiled RC test sources.
18214 # Code to be used in simple compile tests
18215 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18217 # Code to be used in simple link tests
18218 lt_simple_link_test_code="$lt_simple_compile_test_code"
18220 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18222 # If no C compiler was specified, use CC.
18225 # Allow CC to be a program name with arguments.
18229 # Allow CC to be a program name with arguments.
18234 lt_cv_prog_compiler_c_o_RC=yes
18236 # The else clause should only fire when bootstrapping the
18237 # libtool distribution, otherwise you forgot to ship ltmain.sh
18238 # with your package, and you will get complaints that there are
18239 # no rules to generate ltmain.sh.
18240 if test -f "$ltmain"; then
18241 # See if we are running on zsh, and set the options which allow our commands through
18242 # without removal of \ escapes.
18243 if test -n "${ZSH_VERSION+set}" ; then
18244 setopt NO_GLOB_SUBST
18246 # Now quote all the things that may contain metacharacters while being
18247 # careful not to overquote the AC_SUBSTed values. We take copies of the
18248 # variables and quote the copies for generation of the libtool script.
18249 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18250 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18251 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18252 deplibs_check_method reload_flag reload_cmds need_locks \
18253 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18254 lt_cv_sys_global_symbol_to_c_name_address \
18255 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18256 old_postinstall_cmds old_postuninstall_cmds \
18260 lt_prog_compiler_wl_RC \
18261 lt_prog_compiler_pic_RC \
18262 lt_prog_compiler_static_RC \
18263 lt_prog_compiler_no_builtin_flag_RC \
18264 export_dynamic_flag_spec_RC \
18265 thread_safe_flag_spec_RC \
18266 whole_archive_flag_spec_RC \
18267 enable_shared_with_static_runtimes_RC \
18268 old_archive_cmds_RC \
18269 old_archive_from_new_cmds_RC \
18270 predep_objects_RC \
18271 postdep_objects_RC \
18274 compiler_lib_search_path_RC \
18276 archive_expsym_cmds_RC \
18277 postinstall_cmds_RC \
18278 postuninstall_cmds_RC \
18279 old_archive_from_expsyms_cmds_RC \
18280 allow_undefined_flag_RC \
18281 no_undefined_flag_RC \
18282 export_symbols_cmds_RC \
18283 hardcode_libdir_flag_spec_RC \
18284 hardcode_libdir_flag_spec_ld_RC \
18285 hardcode_libdir_separator_RC \
18286 hardcode_automatic_RC \
18288 module_expsym_cmds_RC \
18289 lt_cv_prog_compiler_c_o_RC \
18290 exclude_expsyms_RC \
18291 include_expsyms_RC; do
18294 old_archive_cmds_RC | \
18295 old_archive_from_new_cmds_RC | \
18296 archive_cmds_RC | \
18297 archive_expsym_cmds_RC | \
18299 module_expsym_cmds_RC | \
18300 old_archive_from_expsyms_cmds_RC | \
18301 export_symbols_cmds_RC | \
18302 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18303 postinstall_cmds | postuninstall_cmds | \
18304 old_postinstall_cmds | old_postuninstall_cmds | \
18305 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18306 # Double-quote double-evaled strings.
18307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18310 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18316 *'\$0 --fallback-echo"')
18317 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18323 cat <<__EOF__ >> "$cfgfile"
18324 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18326 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18328 # Shell to use when invoking shell scripts.
18331 # Whether or not to build shared libraries.
18332 build_libtool_libs=$enable_shared
18334 # Whether or not to build static libraries.
18335 build_old_libs=$enable_static
18337 # Whether or not to add -lc for building shared libraries.
18338 build_libtool_need_lc=$archive_cmds_need_lc_RC
18340 # Whether or not to disallow shared libs when runtime libs are static
18341 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18343 # Whether or not to optimize for fast installation.
18344 fast_install=$enable_fast_install
18347 host_alias=$host_alias
18350 # An echo program that does not interpret backslashes.
18355 AR_FLAGS=$lt_AR_FLAGS
18360 # A language-specific compiler.
18363 # Is the compiler the GNU C compiler?
18369 # The linker used to build libraries.
18372 # Whether we need hard or soft links.
18375 # A BSD-compatible nm program.
18378 # A symbol stripping program
18381 # Used to examine libraries when file_magic_cmd begins "file"
18382 MAGIC_CMD=$MAGIC_CMD
18384 # Used on cygwin: DLL creation program.
18387 # Used on cygwin: object dumper.
18390 # Used on cygwin: assembler.
18393 # The name of the directory that contains temporary libtool files.
18396 # How to create reloadable object files.
18397 reload_flag=$lt_reload_flag
18398 reload_cmds=$lt_reload_cmds
18400 # How to pass a linker flag through the compiler.
18401 wl=$lt_lt_prog_compiler_wl_RC
18403 # Object file suffix (normally "o").
18404 objext="$ac_objext"
18406 # Old archive suffix (normally "a").
18409 # Shared library suffix (normally ".so").
18412 # Executable file suffix (normally "").
18415 # Additional compiler flags for building library objects.
18416 pic_flag=$lt_lt_prog_compiler_pic_RC
18419 # What is the maximum length of a command?
18420 max_cmd_len=$lt_cv_sys_max_cmd_len
18422 # Does compiler simultaneously support -c and -o options?
18423 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18425 # Must we lock files when doing compilation ?
18426 need_locks=$lt_need_locks
18428 # Do we need the lib prefix for modules?
18429 need_lib_prefix=$need_lib_prefix
18431 # Do we need a version for libraries?
18432 need_version=$need_version
18434 # Whether dlopen is supported.
18435 dlopen_support=$enable_dlopen
18437 # Whether dlopen of programs is supported.
18438 dlopen_self=$enable_dlopen_self
18440 # Whether dlopen of statically linked programs is supported.
18441 dlopen_self_static=$enable_dlopen_self_static
18443 # Compiler flag to prevent dynamic linking.
18444 link_static_flag=$lt_lt_prog_compiler_static_RC
18446 # Compiler flag to turn off builtin functions.
18447 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18449 # Compiler flag to allow reflexive dlopens.
18450 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18452 # Compiler flag to generate shared objects directly from archives.
18453 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18455 # Compiler flag to generate thread-safe objects.
18456 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18458 # Library versioning type.
18459 version_type=$version_type
18461 # Format of library name prefix.
18462 libname_spec=$lt_libname_spec
18464 # List of archive names. First name is the real one, the rest are links.
18465 # The last name is the one that the linker finds with -lNAME.
18466 library_names_spec=$lt_library_names_spec
18468 # The coded name of the library, if different from the real name.
18469 soname_spec=$lt_soname_spec
18471 # Commands used to build and install an old-style archive.
18473 old_archive_cmds=$lt_old_archive_cmds_RC
18474 old_postinstall_cmds=$lt_old_postinstall_cmds
18475 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18477 # Create an old-style archive from a shared archive.
18478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18480 # Create a temporary old-style archive to link instead of a shared archive.
18481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18483 # Commands used to build and install a shared archive.
18484 archive_cmds=$lt_archive_cmds_RC
18485 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18486 postinstall_cmds=$lt_postinstall_cmds
18487 postuninstall_cmds=$lt_postuninstall_cmds
18489 # Commands used to build a loadable module (assumed same as above if empty)
18490 module_cmds=$lt_module_cmds_RC
18491 module_expsym_cmds=$lt_module_expsym_cmds_RC
18493 # Commands to strip libraries.
18494 old_striplib=$lt_old_striplib
18495 striplib=$lt_striplib
18497 # Dependencies to place before the objects being linked to create a
18499 predep_objects=$lt_predep_objects_RC
18501 # Dependencies to place after the objects being linked to create a
18503 postdep_objects=$lt_postdep_objects_RC
18505 # Dependencies to place before the objects being linked to create a
18507 predeps=$lt_predeps_RC
18509 # Dependencies to place after the objects being linked to create a
18511 postdeps=$lt_postdeps_RC
18513 # The library search path used internally by the compiler when linking
18514 # a shared library.
18515 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18517 # Method to check whether dependent libraries are shared objects.
18518 deplibs_check_method=$lt_deplibs_check_method
18520 # Command to use when deplibs_check_method == file_magic.
18521 file_magic_cmd=$lt_file_magic_cmd
18523 # Flag that allows shared libraries with undefined symbols to be built.
18524 allow_undefined_flag=$lt_allow_undefined_flag_RC
18526 # Flag that forces no undefined symbols.
18527 no_undefined_flag=$lt_no_undefined_flag_RC
18529 # Commands used to finish a libtool library installation in a directory.
18530 finish_cmds=$lt_finish_cmds
18532 # Same as above, but a single script fragment to be evaled but not shown.
18533 finish_eval=$lt_finish_eval
18535 # Take the output of nm and produce a listing of raw symbols and C names.
18536 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18538 # Transform the output of nm in a proper C declaration
18539 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18541 # Transform the output of nm in a C name address pair
18542 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18544 # This is the shared library runtime path variable.
18545 runpath_var=$runpath_var
18547 # This is the shared library path variable.
18548 shlibpath_var=$shlibpath_var
18550 # Is shlibpath searched before the hard-coded library search path?
18551 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18553 # How to hardcode a shared library path into an executable.
18554 hardcode_action=$hardcode_action_RC
18556 # Whether we should hardcode library paths into libraries.
18557 hardcode_into_libs=$hardcode_into_libs
18559 # Flag to hardcode \$libdir into a binary during linking.
18560 # This must work even if \$libdir does not exist.
18561 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18563 # If ld is used when linking, flag to hardcode \$libdir into
18564 # a binary during linking. This must work even if \$libdir does
18566 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18568 # Whether we need a single -rpath flag with a separated argument.
18569 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18571 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18572 # resulting binary.
18573 hardcode_direct=$hardcode_direct_RC
18575 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18576 # resulting binary.
18577 hardcode_minus_L=$hardcode_minus_L_RC
18579 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18580 # the resulting binary.
18581 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18583 # Set to yes if building a shared library automatically hardcodes DIR into the library
18584 # and all subsequent libraries and executables linked against it.
18585 hardcode_automatic=$hardcode_automatic_RC
18587 # Variables whose values should be saved in libtool wrapper scripts and
18588 # restored at relink time.
18589 variables_saved_for_relink="$variables_saved_for_relink"
18591 # Whether libtool must link a program against all its dependency libraries.
18592 link_all_deplibs=$link_all_deplibs_RC
18594 # Compile-time system search path for libraries
18595 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18597 # Run-time system search path for libraries
18598 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18600 # Fix the shell variable \$srcfile for the compiler.
18601 fix_srcfile_path="$fix_srcfile_path_RC"
18603 # Set to yes if exported symbols are required.
18604 always_export_symbols=$always_export_symbols_RC
18606 # The commands to list exported symbols.
18607 export_symbols_cmds=$lt_export_symbols_cmds_RC
18609 # The commands to extract the exported symbol list from a shared archive.
18610 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18612 # Symbols that should not be listed in the preloaded symbols.
18613 exclude_expsyms=$lt_exclude_expsyms_RC
18615 # Symbols that must always be exported.
18616 include_expsyms=$lt_include_expsyms_RC
18618 # ### END LIBTOOL TAG CONFIG: $tagname
18624 # If there is no Makefile yet, we rely on a make rule to execute
18625 # `config.status --recheck' to rerun these tests and create the
18626 # libtool script then.
18627 test -f Makefile && make "$ltmain"
18632 ac_cpp='$CPP $CPPFLAGS'
18633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18642 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18643 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18644 { (exit 1); exit 1; }; }
18648 # Append the new tag name to the list of available tags.
18649 if test -n "$tagname" ; then
18650 available_tags="$available_tags $tagname"
18656 # Now substitute the updated list of available tags.
18657 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18658 mv "${ofile}T" "$ofile"
18662 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18663 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18664 { (exit 1); exit 1; }; }
18670 # This can be used to rebuild libtool when needed
18671 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18673 # Always use our own libtool.
18674 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18676 # Prevent multiple expansion
18698 # Extract the first word of "dot", so it can be a program name with args.
18699 set dummy dot; ac_word=$2
18700 echo "$as_me:$LINENO: checking for $ac_word" >&5
18701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18702 if test "${ac_cv_path_DOT+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18707 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18711 for as_dir in $PATH
18714 test -z "$as_dir" && as_dir=.
18715 for ac_exec_ext in '' $ac_executable_extensions; do
18716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18717 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18724 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18728 DOT=$ac_cv_path_DOT
18730 if test -n "$DOT"; then
18731 echo "$as_me:$LINENO: result: $DOT" >&5
18732 echo "${ECHO_T}$DOT" >&6
18734 echo "$as_me:$LINENO: result: no" >&5
18735 echo "${ECHO_T}no" >&6
18738 # Extract the first word of "etags", so it can be a program name with args.
18739 set dummy etags; ac_word=$2
18740 echo "$as_me:$LINENO: checking for $ac_word" >&5
18741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18742 if test "${ac_cv_path_ETAGS+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751 for as_dir in $PATH
18754 test -z "$as_dir" && as_dir=.
18755 for ac_exec_ext in '' $ac_executable_extensions; do
18756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18757 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18764 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18768 ETAGS=$ac_cv_path_ETAGS
18770 if test -n "$ETAGS"; then
18771 echo "$as_me:$LINENO: result: $ETAGS" >&5
18772 echo "${ECHO_T}$ETAGS" >&6
18774 echo "$as_me:$LINENO: result: no" >&5
18775 echo "${ECHO_T}no" >&6
18778 etags_version=`$ETAGS --version 2>&1`
18779 case "$etags_version" in
18780 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18781 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18782 *) ETAGSFLAGS="" ;;
18784 ETAGSFLAGS=$ETAGSFLAGS
18786 # Extract the first word of "python", so it can be a program name with args.
18787 set dummy python; ac_word=$2
18788 echo "$as_me:$LINENO: checking for $ac_word" >&5
18789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18790 if test "${ac_cv_path_PYTHON+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18799 for as_dir in $PATH
18802 test -z "$as_dir" && as_dir=.
18803 for ac_exec_ext in '' $ac_executable_extensions; do
18804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18805 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18812 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18816 PYTHON=$ac_cv_path_PYTHON
18818 if test -n "$PYTHON"; then
18819 echo "$as_me:$LINENO: result: $PYTHON" >&5
18820 echo "${ECHO_T}$PYTHON" >&6
18822 echo "$as_me:$LINENO: result: no" >&5
18823 echo "${ECHO_T}no" >&6
18826 if test "$PYTHON" = "false"
18828 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18829 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18831 # Extract the first word of "qmtest", so it can be a program name with args.
18832 set dummy qmtest; ac_word=$2
18833 echo "$as_me:$LINENO: checking for $ac_word" >&5
18834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18835 if test "${ac_cv_path_QMTEST+set}" = set; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18844 for as_dir in $PATH
18847 test -z "$as_dir" && as_dir=.
18848 for ac_exec_ext in '' $ac_executable_extensions; do
18849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18850 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18857 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18861 QMTEST=$ac_cv_path_QMTEST
18863 if test -n "$QMTEST"; then
18864 echo "$as_me:$LINENO: result: $QMTEST" >&5
18865 echo "${ECHO_T}$QMTEST" >&6
18867 echo "$as_me:$LINENO: result: no" >&5
18868 echo "${ECHO_T}no" >&6
18871 if test "$QMTEST" = "false"
18873 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18874 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18877 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18878 pymajor=`echo $pyversion | cut -d. -f1`
18879 pyminor=`echo $pyversion | cut -d. -f2`
18881 if test "$pymajor" -ge "2"
18883 if test "$pymajor" -eq "2"
18885 if test "$pyminor" -lt "2"
18887 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18888 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18892 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18893 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18899 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18900 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18901 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 ac_check_lib_save_LIBS=$LIBS
18906 cat >conftest.$ac_ext <<_ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18913 /* Override any gcc2 internal prototype to avoid an error. */
18917 /* We use char because int might match the return type of a gcc2
18918 builtin and then its argument prototype would still apply. */
18928 rm -f conftest.$ac_objext conftest$ac_exeext
18929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18930 (eval $ac_link) 2>conftest.er1
18932 grep -v '^ *+' conftest.er1 >conftest.err
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
18937 { ac_try='test -z "$ac_c_werror_flag"
18938 || test ! -s conftest.err'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; } &&
18944 { ac_try='test -s conftest$ac_exeext'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18950 ac_cv_lib_elf_elf_begin=yes
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 ac_cv_lib_elf_elf_begin=no
18957 rm -f conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
18959 LIBS=$ac_check_lib_save_LIBS
18961 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18962 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18963 if test $ac_cv_lib_elf_elf_begin = yes; then
18964 cat >>confdefs.h <<_ACEOF
18965 #define HAVE_LIBELF 1
18973 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18974 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18975 if test "${ac_cv_search_dlopen+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 ac_func_search_save_LIBS=$LIBS
18979 ac_cv_search_dlopen=no
18980 cat >conftest.$ac_ext <<_ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18987 /* Override any gcc2 internal prototype to avoid an error. */
18991 /* We use char because int might match the return type of a gcc2
18992 builtin and then its argument prototype would still apply. */
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19004 (eval $ac_link) 2>conftest.er1
19006 grep -v '^ *+' conftest.er1 >conftest.err
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } &&
19011 { ac_try='test -z "$ac_c_werror_flag"
19012 || test ! -s conftest.err'
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest$ac_exeext'
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_cv_search_dlopen="none required"
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19030 rm -f conftest.err conftest.$ac_objext \
19031 conftest$ac_exeext conftest.$ac_ext
19032 if test "$ac_cv_search_dlopen" = no; then
19033 for ac_lib in dl; do
19034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19035 cat >conftest.$ac_ext <<_ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19042 /* Override any gcc2 internal prototype to avoid an error. */
19046 /* We use char because int might match the return type of a gcc2
19047 builtin and then its argument prototype would still apply. */
19057 rm -f conftest.$ac_objext conftest$ac_exeext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19059 (eval $ac_link) 2>conftest.er1
19061 grep -v '^ *+' conftest.er1 >conftest.err
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
19066 { ac_try='test -z "$ac_c_werror_flag"
19067 || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest$ac_exeext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_search_dlopen="-l$ac_lib"
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19086 rm -f conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_func_search_save_LIBS
19092 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19093 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19094 if test "$ac_cv_search_dlopen" != no; then
19095 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19097 cat >>confdefs.h <<\_ACEOF
19098 #define HAVE_DLOPEN 1
19102 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19103 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19107 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19108 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19109 if test "${ac_cv_search_mallinfo+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 ac_func_search_save_LIBS=$LIBS
19113 ac_cv_search_mallinfo=no
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19121 /* Override any gcc2 internal prototype to avoid an error. */
19125 /* We use char because int might match the return type of a gcc2
19126 builtin and then its argument prototype would still apply. */
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19138 (eval $ac_link) 2>conftest.er1
19140 grep -v '^ *+' conftest.er1 >conftest.err
19142 cat conftest.err >&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
19145 { ac_try='test -z "$ac_c_werror_flag"
19146 || test ! -s conftest.err'
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try='test -s conftest$ac_exeext'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_cv_search_mallinfo="none required"
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19164 rm -f conftest.err conftest.$ac_objext \
19165 conftest$ac_exeext conftest.$ac_ext
19166 if test "$ac_cv_search_mallinfo" = no; then
19167 for ac_lib in malloc; do
19168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19169 cat >conftest.$ac_ext <<_ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19176 /* Override any gcc2 internal prototype to avoid an error. */
19180 /* We use char because int might match the return type of a gcc2
19181 builtin and then its argument prototype would still apply. */
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19193 (eval $ac_link) 2>conftest.er1
19195 grep -v '^ *+' conftest.er1 >conftest.err
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } &&
19200 { ac_try='test -z "$ac_c_werror_flag"
19201 || test ! -s conftest.err'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; } &&
19207 { ac_try='test -s conftest$ac_exeext'
19208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209 (eval $ac_try) 2>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 ac_cv_search_mallinfo="-l$ac_lib"
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19220 rm -f conftest.err conftest.$ac_objext \
19221 conftest$ac_exeext conftest.$ac_ext
19224 LIBS=$ac_func_search_save_LIBS
19226 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19227 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19228 if test "$ac_cv_search_mallinfo" != no; then
19229 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19231 cat >>confdefs.h <<\_ACEOF
19232 #define HAVE_MALLINFO 1
19238 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19239 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19240 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19243 ac_func_search_save_LIBS=$LIBS
19244 ac_cv_search_pthread_mutex_lock=no
19245 cat >conftest.$ac_ext <<_ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19252 /* Override any gcc2 internal prototype to avoid an error. */
19256 /* We use char because int might match the return type of a gcc2
19257 builtin and then its argument prototype would still apply. */
19258 char pthread_mutex_lock ();
19262 pthread_mutex_lock ();
19267 rm -f conftest.$ac_objext conftest$ac_exeext
19268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19269 (eval $ac_link) 2>conftest.er1
19271 grep -v '^ *+' conftest.er1 >conftest.err
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
19276 { ac_try='test -z "$ac_c_werror_flag"
19277 || test ! -s conftest.err'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest$ac_exeext'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_search_pthread_mutex_lock="none required"
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19295 rm -f conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext conftest.$ac_ext
19297 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19298 for ac_lib in pthread; do
19299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19307 /* Override any gcc2 internal prototype to avoid an error. */
19311 /* We use char because int might match the return type of a gcc2
19312 builtin and then its argument prototype would still apply. */
19313 char pthread_mutex_lock ();
19317 pthread_mutex_lock ();
19322 rm -f conftest.$ac_objext conftest$ac_exeext
19323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19324 (eval $ac_link) 2>conftest.er1
19326 grep -v '^ *+' conftest.er1 >conftest.err
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -z "$ac_c_werror_flag"
19332 || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest$ac_exeext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19351 rm -f conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
19355 LIBS=$ac_func_search_save_LIBS
19357 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19358 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19359 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19360 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19361 HAVE_PTHREAD_MUTEX_LOCK=1
19363 HAVE_PTHREAD_MUTEX_LOCK=0
19368 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19369 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19370 if test "${ac_cv_header_stdc+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 cat >conftest.$ac_ext <<_ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19379 #include <stdlib.h>
19380 #include <stdarg.h>
19381 #include <string.h>
19392 rm -f conftest.$ac_objext
19393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19394 (eval $ac_compile) 2>conftest.er1
19396 grep -v '^ *+' conftest.er1 >conftest.err
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
19401 { ac_try='test -z "$ac_c_werror_flag"
19402 || test ! -s conftest.err'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try='test -s conftest.$ac_objext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_cv_header_stdc=yes
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19419 ac_cv_header_stdc=no
19421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19423 if test $ac_cv_header_stdc = yes; then
19424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19425 cat >conftest.$ac_ext <<_ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19431 #include <string.h>
19434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19435 $EGREP "memchr" >/dev/null 2>&1; then
19438 ac_cv_header_stdc=no
19444 if test $ac_cv_header_stdc = yes; then
19445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19446 cat >conftest.$ac_ext <<_ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h. */
19452 #include <stdlib.h>
19455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19456 $EGREP "free" >/dev/null 2>&1; then
19459 ac_cv_header_stdc=no
19465 if test $ac_cv_header_stdc = yes; then
19466 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19467 if test "$cross_compiling" = yes; then
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 #if ((' ' & 0x0FF) == 0x020)
19478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19481 # define ISLOWER(c) \
19482 (('a' <= (c) && (c) <= 'i') \
19483 || ('j' <= (c) && (c) <= 'r') \
19484 || ('s' <= (c) && (c) <= 'z'))
19485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19493 for (i = 0; i < 256; i++)
19494 if (XOR (islower (i), ISLOWER (i))
19495 || toupper (i) != TOUPPER (i))
19500 rm -f conftest$ac_exeext
19501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19502 (eval $ac_link) 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; }; then
19513 echo "$as_me: program exited with status $ac_status" >&5
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 ( exit $ac_status )
19518 ac_cv_header_stdc=no
19520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19524 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19525 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19526 if test $ac_cv_header_stdc = yes; then
19528 cat >>confdefs.h <<\_ACEOF
19529 #define STDC_HEADERS 1
19534 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19535 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19536 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 cat >conftest.$ac_ext <<_ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19545 #include <sys/types.h>
19546 #include <sys/wait.h>
19547 #ifndef WEXITSTATUS
19548 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19551 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19559 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19564 rm -f conftest.$ac_objext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19566 (eval $ac_compile) 2>conftest.er1
19568 grep -v '^ *+' conftest.er1 >conftest.err
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } &&
19573 { ac_try='test -z "$ac_c_werror_flag"
19574 || test ! -s conftest.err'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; } &&
19580 { ac_try='test -s conftest.$ac_objext'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_cv_header_sys_wait_h=yes
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19591 ac_cv_header_sys_wait_h=no
19593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19595 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19596 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19597 if test $ac_cv_header_sys_wait_h = yes; then
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_SYS_WAIT_H 1
19617 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
19619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621 echo "$as_me:$LINENO: checking for $ac_header" >&5
19622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19629 # Is the header compilable?
19630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19632 cat >conftest.$ac_ext <<_ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19638 $ac_includes_default
19639 #include <$ac_header>
19641 rm -f conftest.$ac_objext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643 (eval $ac_compile) 2>conftest.er1
19645 grep -v '^ *+' conftest.er1 >conftest.err
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
19650 { ac_try='test -z "$ac_c_werror_flag"
19651 || test ! -s conftest.err'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest.$ac_objext'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 ac_header_compiler=yes
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19668 ac_header_compiler=no
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19672 echo "${ECHO_T}$ac_header_compiler" >&6
19674 # Is the header present?
19675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19677 cat >conftest.$ac_ext <<_ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19683 #include <$ac_header>
19685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } >/dev/null; then
19693 if test -s conftest.err; then
19694 ac_cpp_err=$ac_c_preproc_warn_flag
19695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19702 if test -z "$ac_cpp_err"; then
19703 ac_header_preproc=yes
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_header_preproc=no
19710 rm -f conftest.err conftest.$ac_ext
19711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19712 echo "${ECHO_T}$ac_header_preproc" >&6
19714 # So? What about this header?
19715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19721 ac_header_preproc=yes
19724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19738 ## ----------------------------------- ##
19739 ## Report this to llvmbugs@cs.uiuc.edu ##
19740 ## ----------------------------------- ##
19743 sed "s/^/$as_me: WARNING: /" >&2
19746 echo "$as_me:$LINENO: checking for $ac_header" >&5
19747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 eval "$as_ac_Header=\$ac_header_preproc"
19753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19758 cat >>confdefs.h <<_ACEOF
19759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19767 if test "${ac_cv_header_sys_types_h+set}" = set; then
19768 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19769 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19770 if test "${ac_cv_header_sys_types_h+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19774 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19776 # Is the header compilable?
19777 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19778 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 $ac_includes_default
19786 #include <sys/types.h>
19788 rm -f conftest.$ac_objext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19790 (eval $ac_compile) 2>conftest.er1
19792 grep -v '^ *+' conftest.er1 >conftest.err
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try='test -z "$ac_c_werror_flag"
19798 || test ! -s conftest.err'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest.$ac_objext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ac_header_compiler=yes
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ac_header_compiler=no
19817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19819 echo "${ECHO_T}$ac_header_compiler" >&6
19821 # Is the header present?
19822 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19823 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19824 cat >conftest.$ac_ext <<_ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 #include <sys/types.h>
19832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19835 grep -v '^ *+' conftest.er1 >conftest.err
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } >/dev/null; then
19840 if test -s conftest.err; then
19841 ac_cpp_err=$ac_c_preproc_warn_flag
19842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19849 if test -z "$ac_cpp_err"; then
19850 ac_header_preproc=yes
19852 echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19855 ac_header_preproc=no
19857 rm -f conftest.err conftest.$ac_ext
19858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19859 echo "${ECHO_T}$ac_header_preproc" >&6
19861 # So? What about this header?
19862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19864 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19865 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19867 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19868 ac_header_preproc=yes
19871 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19872 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19873 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19874 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19876 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19878 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19880 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19882 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19885 ## ----------------------------------- ##
19886 ## Report this to llvmbugs@cs.uiuc.edu ##
19887 ## ----------------------------------- ##
19890 sed "s/^/$as_me: WARNING: /" >&2
19893 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19894 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19895 if test "${ac_cv_header_sys_types_h+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 ac_cv_header_sys_types_h=$ac_header_preproc
19900 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19901 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19904 if test $ac_cv_header_sys_types_h = yes; then
19905 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19907 INCLUDE_SYS_TYPES_H=''
19912 if test "${ac_cv_header_inttypes_h+set}" = set; then
19913 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19914 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19915 if test "${ac_cv_header_inttypes_h+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19919 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19921 # Is the header compilable?
19922 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19923 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19924 cat >conftest.$ac_ext <<_ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h. */
19930 $ac_includes_default
19931 #include <inttypes.h>
19933 rm -f conftest.$ac_objext
19934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19935 (eval $ac_compile) 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } &&
19942 { ac_try='test -z "$ac_c_werror_flag"
19943 || test ! -s conftest.err'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; } &&
19949 { ac_try='test -s conftest.$ac_objext'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; }; then
19955 ac_header_compiler=yes
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 ac_header_compiler=no
19962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19964 echo "${ECHO_T}$ac_header_compiler" >&6
19966 # Is the header present?
19967 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19968 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 #include <inttypes.h>
19977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19980 grep -v '^ *+' conftest.er1 >conftest.err
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } >/dev/null; then
19985 if test -s conftest.err; then
19986 ac_cpp_err=$ac_c_preproc_warn_flag
19987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19994 if test -z "$ac_cpp_err"; then
19995 ac_header_preproc=yes
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_header_preproc=no
20002 rm -f conftest.err conftest.$ac_ext
20003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20004 echo "${ECHO_T}$ac_header_preproc" >&6
20006 # So? What about this header?
20007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20009 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20010 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20011 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20012 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20013 ac_header_preproc=yes
20016 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20017 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20018 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20019 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20020 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20021 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20022 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20023 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20024 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20025 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20026 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20027 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20030 ## ----------------------------------- ##
20031 ## Report this to llvmbugs@cs.uiuc.edu ##
20032 ## ----------------------------------- ##
20035 sed "s/^/$as_me: WARNING: /" >&2
20038 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20039 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20040 if test "${ac_cv_header_inttypes_h+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 ac_cv_header_inttypes_h=$ac_header_preproc
20045 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20046 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20049 if test $ac_cv_header_inttypes_h = yes; then
20050 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20052 INCLUDE_INTTYPES_H=''
20057 if test "${ac_cv_header_stdint_h+set}" = set; then
20058 echo "$as_me:$LINENO: checking for stdint.h" >&5
20059 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20060 if test "${ac_cv_header_stdint_h+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20064 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20066 # Is the header compilable?
20067 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20068 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20069 cat >conftest.$ac_ext <<_ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20075 $ac_includes_default
20076 #include <stdint.h>
20078 rm -f conftest.$ac_objext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20080 (eval $ac_compile) 2>conftest.er1
20082 grep -v '^ *+' conftest.er1 >conftest.err
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
20087 { ac_try='test -z "$ac_c_werror_flag"
20088 || test ! -s conftest.err'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest.$ac_objext'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100 ac_header_compiler=yes
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20105 ac_header_compiler=no
20107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20109 echo "${ECHO_T}$ac_header_compiler" >&6
20111 # Is the header present?
20112 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20113 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20114 cat >conftest.$ac_ext <<_ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20120 #include <stdint.h>
20122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20125 grep -v '^ *+' conftest.er1 >conftest.err
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } >/dev/null; then
20130 if test -s conftest.err; then
20131 ac_cpp_err=$ac_c_preproc_warn_flag
20132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20139 if test -z "$ac_cpp_err"; then
20140 ac_header_preproc=yes
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ac_header_preproc=no
20147 rm -f conftest.err conftest.$ac_ext
20148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20149 echo "${ECHO_T}$ac_header_preproc" >&6
20151 # So? What about this header?
20152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20154 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20155 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20157 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20158 ac_header_preproc=yes
20161 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20162 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20163 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20164 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20166 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20167 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20168 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20169 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20170 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20171 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20172 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20175 ## ----------------------------------- ##
20176 ## Report this to llvmbugs@cs.uiuc.edu ##
20177 ## ----------------------------------- ##
20180 sed "s/^/$as_me: WARNING: /" >&2
20183 echo "$as_me:$LINENO: checking for stdint.h" >&5
20184 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20185 if test "${ac_cv_header_stdint_h+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 ac_cv_header_stdint_h=$ac_header_preproc
20190 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20191 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20194 if test $ac_cv_header_stdint_h = yes; then
20195 INCLUDE_STDINT_H='#include <stdint.h>'
20197 INCLUDE_STDINT_H=''
20204 echo "$as_me:$LINENO: checking for pid_t" >&5
20205 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20206 if test "${ac_cv_type_pid_t+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 $ac_includes_default
20221 if (sizeof (pid_t))
20227 rm -f conftest.$ac_objext
20228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20229 (eval $ac_compile) 2>conftest.er1
20231 grep -v '^ *+' conftest.er1 >conftest.err
20233 cat conftest.err >&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } &&
20236 { ac_try='test -z "$ac_c_werror_flag"
20237 || test ! -s conftest.err'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest.$ac_objext'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 ac_cv_type_pid_t=yes
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20254 ac_cv_type_pid_t=no
20256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20258 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20259 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20260 if test $ac_cv_type_pid_t = yes; then
20264 cat >>confdefs.h <<_ACEOF
20270 echo "$as_me:$LINENO: checking for size_t" >&5
20271 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20272 if test "${ac_cv_type_size_t+set}" = set; then
20273 echo $ECHO_N "(cached) $ECHO_C" >&6
20275 cat >conftest.$ac_ext <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20281 $ac_includes_default
20287 if (sizeof (size_t))
20293 rm -f conftest.$ac_objext
20294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20295 (eval $ac_compile) 2>conftest.er1
20297 grep -v '^ *+' conftest.er1 >conftest.err
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try='test -z "$ac_c_werror_flag"
20303 || test ! -s conftest.err'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; } &&
20309 { ac_try='test -s conftest.$ac_objext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 ac_cv_type_size_t=yes
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_type_size_t=no
20322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20324 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20325 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20326 if test $ac_cv_type_size_t = yes; then
20330 cat >>confdefs.h <<_ACEOF
20331 #define size_t unsigned
20336 echo "$as_me:$LINENO: checking for int64_t" >&5
20337 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20338 if test "${ac_cv_type_int64_t+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 cat >conftest.$ac_ext <<_ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20347 $ac_includes_default
20353 if (sizeof (int64_t))
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361 (eval $ac_compile) 2>conftest.er1
20363 grep -v '^ *+' conftest.er1 >conftest.err
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try='test -z "$ac_c_werror_flag"
20369 || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest.$ac_objext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_cv_type_int64_t=yes
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20386 ac_cv_type_int64_t=no
20388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20390 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20391 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20392 if test $ac_cv_type_int64_t = yes; then
20394 cat >>confdefs.h <<_ACEOF
20395 #define HAVE_INT64_T 1
20400 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20401 echo "$as_me: error: Type int64_t required but not found" >&2;}
20402 { (exit 1); exit 1; }; }
20405 echo "$as_me:$LINENO: checking for uint64_t" >&5
20406 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20407 if test "${ac_cv_type_uint64_t+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 $ac_includes_default
20420 if ((uint64_t *) 0)
20422 if (sizeof (uint64_t))
20428 rm -f conftest.$ac_objext
20429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20430 (eval $ac_compile) 2>conftest.er1
20432 grep -v '^ *+' conftest.er1 >conftest.err
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } &&
20437 { ac_try='test -z "$ac_c_werror_flag"
20438 || test ! -s conftest.err'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; } &&
20444 { ac_try='test -s conftest.$ac_objext'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 ac_cv_type_uint64_t=yes
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_cv_type_uint64_t=no
20457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20459 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20460 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20461 if test $ac_cv_type_uint64_t = yes; then
20463 cat >>confdefs.h <<_ACEOF
20464 #define HAVE_UINT64_T 1
20469 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20470 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20471 { (exit 1); exit 1; }; }
20474 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20475 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20476 if test "${ac_cv_header_time+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 #include <sys/types.h>
20486 #include <sys/time.h>
20492 if ((struct tm *) 0)
20498 rm -f conftest.$ac_objext
20499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20500 (eval $ac_compile) 2>conftest.er1
20502 grep -v '^ *+' conftest.er1 >conftest.err
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } &&
20507 { ac_try='test -z "$ac_c_werror_flag"
20508 || test ! -s conftest.err'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; } &&
20514 { ac_try='test -s conftest.$ac_objext'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_cv_header_time=yes
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 ac_cv_header_time=no
20527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20529 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20530 echo "${ECHO_T}$ac_cv_header_time" >&6
20531 if test $ac_cv_header_time = yes; then
20533 cat >>confdefs.h <<\_ACEOF
20534 #define TIME_WITH_SYS_TIME 1
20539 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20540 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20541 if test "${ac_cv_struct_tm+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20550 #include <sys/types.h>
20556 struct tm *tp; tp->tm_sec;
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563 (eval $ac_compile) 2>conftest.er1
20565 grep -v '^ *+' conftest.er1 >conftest.err
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
20570 { ac_try='test -z "$ac_c_werror_flag"
20571 || test ! -s conftest.err'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest.$ac_objext'
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ac_cv_struct_tm=time.h
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_cv_struct_tm=sys/time.h
20590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20592 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20593 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20594 if test $ac_cv_struct_tm = sys/time.h; then
20596 cat >>confdefs.h <<\_ACEOF
20597 #define TM_IN_SYS_TIME 1
20604 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20605 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20609 ac_cpp='$CPP $CPPFLAGS'
20610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20614 if test "$cross_compiling" = yes; then
20615 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20616 See \`config.log' for more details." >&5
20617 echo "$as_me: error: cannot run test program while cross compiling
20618 See \`config.log' for more details." >&2;}
20619 { (exit 1); exit 1; }; }
20621 cat >conftest.$ac_ext <<_ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20628 #include <stdlib.h>
20633 volatile double A, B;
20637 sprintf(Buffer, "%a", A);
20641 if (A != 0x1.999999999999ap-4)
20648 rm -f conftest$ac_exeext
20649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20650 (eval $ac_link) 2>&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; }; then
20661 echo "$as_me: program exited with status $ac_status" >&5
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20665 ( exit $ac_status )
20668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20671 ac_cpp='$CPP $CPPFLAGS'
20672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20676 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20677 echo "${ECHO_T}$ac_c_printf_a" >&6
20678 if test "$ac_c_printf_a" = "yes"; then
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_PRINTF_A 1
20687 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20688 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20689 if test "${ac_cv_c_bigendian+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 # See if sys/param.h defines the BYTE_ORDER macro.
20693 cat >conftest.$ac_ext <<_ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 #include <sys/types.h>
20700 #include <sys/param.h>
20705 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20706 bogus endian macros
20713 rm -f conftest.$ac_objext
20714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20715 (eval $ac_compile) 2>conftest.er1
20717 grep -v '^ *+' conftest.er1 >conftest.err
20719 cat conftest.err >&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } &&
20722 { ac_try='test -z "$ac_c_werror_flag"
20723 || test ! -s conftest.err'
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; } &&
20729 { ac_try='test -s conftest.$ac_objext'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 # It does; now see whether it defined to BIG_ENDIAN or not.
20736 cat >conftest.$ac_ext <<_ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20742 #include <sys/types.h>
20743 #include <sys/param.h>
20748 #if BYTE_ORDER != BIG_ENDIAN
20756 rm -f conftest.$ac_objext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758 (eval $ac_compile) 2>conftest.er1
20760 grep -v '^ *+' conftest.er1 >conftest.err
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } &&
20765 { ac_try='test -z "$ac_c_werror_flag"
20766 || test ! -s conftest.err'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; } &&
20772 { ac_try='test -s conftest.$ac_objext'
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; }; then
20778 ac_cv_c_bigendian=yes
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ac_cv_c_bigendian=no
20785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20787 echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20790 # It does not; compile a test program.
20791 if test "$cross_compiling" = yes; then
20792 # try to guess the endianness by grepping values into an object file
20793 ac_cv_c_bigendian=unknown
20794 cat >conftest.$ac_ext <<_ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20800 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20801 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20802 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20803 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20804 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20805 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20809 _ascii (); _ebcdic ();
20814 rm -f conftest.$ac_objext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20816 (eval $ac_compile) 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag"
20824 || test ! -s conftest.err'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest.$ac_objext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20837 ac_cv_c_bigendian=yes
20839 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20840 if test "$ac_cv_c_bigendian" = unknown; then
20841 ac_cv_c_bigendian=no
20843 # finding both strings is unlikely to happen, but who knows?
20844 ac_cv_c_bigendian=unknown
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20863 /* Are we little or big endian? From Harbison&Steele. */
20867 char c[sizeof (long)];
20870 exit (u.c[sizeof (long) - 1] == 1);
20873 rm -f conftest$ac_exeext
20874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20875 (eval $ac_link) 2>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ac_cv_c_bigendian=no
20886 echo "$as_me: program exited with status $ac_status" >&5
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 ( exit $ac_status )
20891 ac_cv_c_bigendian=yes
20893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20898 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20899 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20900 case $ac_cv_c_bigendian in
20908 { { echo "$as_me:$LINENO: error: unknown endianness
20909 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20910 echo "$as_me: error: unknown endianness
20911 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20912 { (exit 1); exit 1; }; } ;;
20916 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20917 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20918 if test "${ac_cv_cxx_namespaces+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20924 ac_cpp='$CXXCPP $CPPFLAGS'
20925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20929 cat >conftest.$ac_ext <<_ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935 namespace Outer { namespace Inner { int i = 0; }}
20939 using namespace Outer::Inner; return i;
20944 rm -f conftest.$ac_objext
20945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20946 (eval $ac_compile) 2>conftest.er1
20948 grep -v '^ *+' conftest.er1 >conftest.err
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } &&
20953 { ac_try='test -z "$ac_cxx_werror_flag"
20954 || test ! -s conftest.err'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; } &&
20960 { ac_try='test -s conftest.$ac_objext'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 ac_cv_cxx_namespaces=yes
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_cv_cxx_namespaces=no
20973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20975 ac_cpp='$CPP $CPPFLAGS'
20976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20982 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20983 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20984 if test "$ac_cv_cxx_namespaces" = yes; then
20986 cat >>confdefs.h <<\_ACEOF
20987 #define HAVE_NAMESPACES
20992 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20993 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20994 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20995 echo $ECHO_N "(cached) $ECHO_C" >&6
21001 ac_cpp='$CXXCPP $CPPFLAGS'
21002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21006 cat >conftest.$ac_ext <<_ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 #include <ext/hash_map>
21013 #ifdef HAVE_NAMESPACES
21014 using namespace std;
21019 hash_map<int, int> t;
21024 rm -f conftest.$ac_objext
21025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21026 (eval $ac_compile) 2>conftest.er1
21028 grep -v '^ *+' conftest.er1 >conftest.err
21030 cat conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } &&
21033 { ac_try='test -z "$ac_cxx_werror_flag"
21034 || test ! -s conftest.err'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; } &&
21040 { ac_try='test -s conftest.$ac_objext'
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21046 ac_cv_cxx_have_std_ext_hash_map=yes
21048 echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21051 ac_cv_cxx_have_std_ext_hash_map=no
21053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21055 ac_cpp='$CPP $CPPFLAGS'
21056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21061 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21062 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21063 HAVE_STD_EXT_HASH_MAP=0
21064 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21066 HAVE_STD_EXT_HASH_MAP=1
21069 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21070 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21071 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21078 ac_cpp='$CXXCPP $CPPFLAGS'
21079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <ext/hash_map>
21090 #ifdef HAVE_NAMESPACES
21091 using namespace __gnu_cxx;
21096 hash_map<int,int> t;
21101 rm -f conftest.$ac_objext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21103 (eval $ac_compile) 2>conftest.er1
21105 grep -v '^ *+' conftest.er1 >conftest.err
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } &&
21110 { ac_try='test -z "$ac_cxx_werror_flag"
21111 || test ! -s conftest.err'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; } &&
21117 { ac_try='test -s conftest.$ac_objext'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 ac_cv_cxx_have_gnu_ext_hash_map=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ac_cv_cxx_have_gnu_ext_hash_map=no
21130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21132 ac_cpp='$CPP $CPPFLAGS'
21133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21138 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21139 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21140 HAVE_GNU_EXT_HASH_MAP=0
21141 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21143 HAVE_GNU_EXT_HASH_MAP=1
21146 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21147 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21148 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21155 ac_cpp='$CXXCPP $CPPFLAGS'
21156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21160 cat >conftest.$ac_ext <<_ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 #include <hash_map>
21170 hash_map<int,int> t;
21175 rm -f conftest.$ac_objext
21176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21177 (eval $ac_compile) 2>conftest.er1
21179 grep -v '^ *+' conftest.er1 >conftest.err
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
21184 { ac_try='test -z "$ac_cxx_werror_flag"
21185 || test ! -s conftest.err'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; } &&
21191 { ac_try='test -s conftest.$ac_objext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 ac_cv_cxx_have_global_hash_map=yes
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21202 ac_cv_cxx_have_global_hash_map=no
21204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21206 ac_cpp='$CPP $CPPFLAGS'
21207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21212 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21213 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21214 HAVE_GLOBAL_HASH_MAP=0
21215 if test "$ac_cv_cxx_have_global_hash_map" = yes
21217 HAVE_GLOBAL_HASH_MAP=1
21220 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21221 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21222 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 ac_cpp='$CXXCPP $CPPFLAGS'
21230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21234 cat >conftest.$ac_ext <<_ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 #include <ext/hash_set>
21241 #ifdef HAVE_NAMESPACES
21242 using namespace std;
21252 rm -f conftest.$ac_objext
21253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21254 (eval $ac_compile) 2>conftest.er1
21256 grep -v '^ *+' conftest.er1 >conftest.err
21258 cat conftest.err >&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } &&
21261 { ac_try='test -z "$ac_cxx_werror_flag"
21262 || test ! -s conftest.err'
21263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264 (eval $ac_try) 2>&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); }; } &&
21268 { ac_try='test -s conftest.$ac_objext'
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; }; then
21274 ac_cv_cxx_have_std_ext_hash_set=yes
21276 echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21279 ac_cv_cxx_have_std_ext_hash_set=no
21281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21283 ac_cpp='$CPP $CPPFLAGS'
21284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21289 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21290 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21291 HAVE_STD_EXT_HASH_SET=0
21292 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21294 HAVE_STD_EXT_HASH_SET=1
21297 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21298 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21299 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 ac_cpp='$CXXCPP $CPPFLAGS'
21307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21311 cat >conftest.$ac_ext <<_ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h. */
21317 #include <ext/hash_set>
21318 #ifdef HAVE_NAMESPACES
21319 using namespace __gnu_cxx;
21329 rm -f conftest.$ac_objext
21330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21331 (eval $ac_compile) 2>conftest.er1
21333 grep -v '^ *+' conftest.er1 >conftest.err
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } &&
21338 { ac_try='test -z "$ac_cxx_werror_flag"
21339 || test ! -s conftest.err'
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; } &&
21345 { ac_try='test -s conftest.$ac_objext'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; }; then
21351 ac_cv_cxx_have_gnu_ext_hash_set=yes
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21356 ac_cv_cxx_have_gnu_ext_hash_set=no
21358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21360 ac_cpp='$CPP $CPPFLAGS'
21361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21366 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21367 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21368 HAVE_GNU_EXT_HASH_SET=0
21369 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21371 HAVE_GNU_EXT_HASH_SET=1
21374 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21375 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21376 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 ac_cpp='$CXXCPP $CPPFLAGS'
21384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21388 cat >conftest.$ac_ext <<_ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21394 #include <hash_set>
21398 hash_set<int> t; return 0;
21403 rm -f conftest.$ac_objext
21404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21405 (eval $ac_compile) 2>conftest.er1
21407 grep -v '^ *+' conftest.er1 >conftest.err
21409 cat conftest.err >&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } &&
21412 { ac_try='test -z "$ac_cxx_werror_flag"
21413 || test ! -s conftest.err'
21414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415 (eval $ac_try) 2>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; } &&
21419 { ac_try='test -s conftest.$ac_objext'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
21425 ac_cv_cxx_have_global_hash_set=yes
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21430 ac_cv_cxx_have_global_hash_set=no
21432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21434 ac_cpp='$CPP $CPPFLAGS'
21435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21440 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21441 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21442 HAVE_GLOBAL_HASH_SET=0
21443 if test "$ac_cv_cxx_have_global_hash_set" = yes
21445 HAVE_GLOBAL_HASH_SET=1
21448 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21449 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21450 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 ac_cpp='$CXXCPP $CPPFLAGS'
21458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21462 cat >conftest.$ac_ext <<_ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <iterator>
21469 #ifdef HAVE_NAMESPACES
21470 using namespace std;
21475 iterator<int,int,int> t; return 0;
21480 rm -f conftest.$ac_objext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21482 (eval $ac_compile) 2>conftest.er1
21484 grep -v '^ *+' conftest.er1 >conftest.err
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } &&
21489 { ac_try='test -z "$ac_cxx_werror_flag"
21490 || test ! -s conftest.err'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest.$ac_objext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 ac_cv_cxx_have_std_iterator=yes
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_cv_cxx_have_std_iterator=no
21509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21511 ac_cpp='$CPP $CPPFLAGS'
21512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21518 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21519 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21520 HAVE_STD_ITERATOR=0
21521 if test "$ac_cv_cxx_have_std_iterator" = yes
21523 HAVE_STD_ITERATOR=1
21526 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21527 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21528 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21535 ac_cpp='$CXXCPP $CPPFLAGS'
21536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 #include <iterator>
21547 #ifdef HAVE_NAMESPACES
21548 using namespace std;
21553 bidirectional_iterator<int,int> t; return 0;
21558 rm -f conftest.$ac_objext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21560 (eval $ac_compile) 2>conftest.er1
21562 grep -v '^ *+' conftest.er1 >conftest.err
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } &&
21567 { ac_try='test -z "$ac_cxx_werror_flag"
21568 || test ! -s conftest.err'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; } &&
21574 { ac_try='test -s conftest.$ac_objext'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 ac_cv_cxx_have_bi_iterator=yes
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ac_cv_cxx_have_bi_iterator=no
21587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21589 ac_cpp='$CPP $CPPFLAGS'
21590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21596 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21597 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21599 if test "$ac_cv_cxx_have_bi_iterator" = yes
21604 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21605 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21606 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21613 ac_cpp='$CXXCPP $CPPFLAGS'
21614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 #include <iterator>
21625 #ifdef HAVE_NAMESPACES
21626 using namespace std;
21631 forward_iterator<int,int> t; return 0;
21636 rm -f conftest.$ac_objext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638 (eval $ac_compile) 2>conftest.er1
21640 grep -v '^ *+' conftest.er1 >conftest.err
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
21645 { ac_try='test -z "$ac_cxx_werror_flag"
21646 || test ! -s conftest.err'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest.$ac_objext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 ac_cv_cxx_have_fwd_iterator=yes
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21663 ac_cv_cxx_have_fwd_iterator=no
21665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21667 ac_cpp='$CPP $CPPFLAGS'
21668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21674 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21675 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21676 HAVE_FWD_ITERATOR=0
21677 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21679 HAVE_FWD_ITERATOR=1
21684 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21685 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21686 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 ac_cpp='$CXXCPP $CPPFLAGS'
21691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21695 cat >conftest.$ac_ext <<_ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21702 int foo(float f) {return isnan(f);}
21704 rm -f conftest.$ac_objext
21705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21706 (eval $ac_compile) 2>conftest.er1
21708 grep -v '^ *+' conftest.er1 >conftest.err
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } &&
21713 { ac_try='test -z "$ac_cxx_werror_flag"
21714 || test ! -s conftest.err'
21715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); }; } &&
21720 { ac_try='test -s conftest.$ac_objext'
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; }; then
21726 ac_cv_func_isnan_in_math_h=yes
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21731 ac_cv_func_isnan_in_math_h=no
21733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21735 ac_cpp='$CPP $CPPFLAGS'
21736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21741 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21742 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21743 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21746 cat >>confdefs.h <<\_ACEOF
21747 #define HAVE_ISNAN_IN_MATH_H 1
21751 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21752 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21753 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21757 ac_cpp='$CXXCPP $CPPFLAGS'
21758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21762 cat >conftest.$ac_ext <<_ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21769 int foo(float f) {return isnan(f);}
21771 rm -f conftest.$ac_objext
21772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21773 (eval $ac_compile) 2>conftest.er1
21775 grep -v '^ *+' conftest.er1 >conftest.err
21777 cat conftest.err >&5
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); } &&
21780 { ac_try='test -z "$ac_cxx_werror_flag"
21781 || test ! -s conftest.err'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; } &&
21787 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21793 ac_cv_func_isnan_in_cmath=yes
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 ac_cv_func_isnan_in_cmath=no
21800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21802 ac_cpp='$CPP $CPPFLAGS'
21803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21808 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21809 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21810 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21813 cat >>confdefs.h <<\_ACEOF
21814 #define HAVE_ISNAN_IN_CMATH 1
21818 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21819 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21820 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21824 ac_cpp='$CXXCPP $CPPFLAGS'
21825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21836 using std::isnan; int foo(float f) {return isnan(f);}
21838 rm -f conftest.$ac_objext
21839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21840 (eval $ac_compile) 2>conftest.er1
21842 grep -v '^ *+' conftest.er1 >conftest.err
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } &&
21847 { ac_try='test -z "$ac_cxx_werror_flag"
21848 || test ! -s conftest.err'
21849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850 (eval $ac_try) 2>&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; } &&
21854 { ac_try='test -s conftest.$ac_objext'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860 ac_cv_func_std_isnan_in_cmath=yes
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21865 ac_cv_func_std_isnan_in_cmath=no
21867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21869 ac_cpp='$CPP $CPPFLAGS'
21870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21875 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21876 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21877 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21880 cat >>confdefs.h <<\_ACEOF
21881 #define HAVE_STD_ISNAN_IN_CMATH 1
21887 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21888 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21889 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 ac_cpp='$CXXCPP $CPPFLAGS'
21894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21905 int foo(float f) {return isinf(f);}
21907 rm -f conftest.$ac_objext
21908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21909 (eval $ac_compile) 2>conftest.er1
21911 grep -v '^ *+' conftest.er1 >conftest.err
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } &&
21916 { ac_try='test -z "$ac_cxx_werror_flag"
21917 || test ! -s conftest.err'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; } &&
21923 { ac_try='test -s conftest.$ac_objext'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 ac_cv_func_isinf_in_math_h=yes
21931 echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 ac_cv_func_isinf_in_math_h=no
21936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21938 ac_cpp='$CPP $CPPFLAGS'
21939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21944 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21945 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21946 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21949 cat >>confdefs.h <<\_ACEOF
21950 #define HAVE_ISINF_IN_MATH_H 1
21954 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21955 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21956 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21957 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 ac_cpp='$CXXCPP $CPPFLAGS'
21961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21965 cat >conftest.$ac_ext <<_ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21972 int foo(float f) {return isinf(f);}
21974 rm -f conftest.$ac_objext
21975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21976 (eval $ac_compile) 2>conftest.er1
21978 grep -v '^ *+' conftest.er1 >conftest.err
21980 cat conftest.err >&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
21983 { ac_try='test -z "$ac_cxx_werror_flag"
21984 || test ! -s conftest.err'
21985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986 (eval $ac_try) 2>&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; } &&
21990 { ac_try='test -s conftest.$ac_objext'
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21996 ac_cv_func_isinf_in_cmath=yes
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ac_cv_func_isinf_in_cmath=no
22003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22005 ac_cpp='$CPP $CPPFLAGS'
22006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22011 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22012 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22013 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22016 cat >>confdefs.h <<\_ACEOF
22017 #define HAVE_ISINF_IN_CMATH 1
22021 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22022 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22023 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22027 ac_cpp='$CXXCPP $CPPFLAGS'
22028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22032 cat >conftest.$ac_ext <<_ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h. */
22039 using std::isinf; int foo(float f) {return isinf(f);}
22041 rm -f conftest.$ac_objext
22042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22043 (eval $ac_compile) 2>conftest.er1
22045 grep -v '^ *+' conftest.er1 >conftest.err
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } &&
22050 { ac_try='test -z "$ac_cxx_werror_flag"
22051 || test ! -s conftest.err'
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; } &&
22057 { ac_try='test -s conftest.$ac_objext'
22058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059 (eval $ac_try) 2>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; }; then
22063 ac_cv_func_std_isinf_in_cmath=yes
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ac_cv_func_std_isinf_in_cmath=no
22070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22072 ac_cpp='$CPP $CPPFLAGS'
22073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22078 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22079 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22080 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22083 cat >>confdefs.h <<\_ACEOF
22084 #define HAVE_STD_ISINF_IN_CMATH 1
22088 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22089 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22090 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22091 echo $ECHO_N "(cached) $ECHO_C" >&6
22094 ac_cpp='$CXXCPP $CPPFLAGS'
22095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22099 cat >conftest.$ac_ext <<_ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22105 #include <ieeefp.h>
22106 int foo(float f) {return finite(f);}
22108 rm -f conftest.$ac_objext
22109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22110 (eval $ac_compile) 2>conftest.er1
22112 grep -v '^ *+' conftest.er1 >conftest.err
22114 cat conftest.err >&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } &&
22117 { ac_try='test -z "$ac_cxx_werror_flag"
22118 || test ! -s conftest.err'
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; } &&
22124 { ac_try='test -s conftest.$ac_objext'
22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 ac_cv_func_finite_in_ieeefp_h=yes
22132 echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.$ac_ext >&5
22135 ac_cv_func_finite_in_ieeefp_h=no
22137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22139 ac_cpp='$CPP $CPPFLAGS'
22140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22145 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22146 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22147 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22150 cat >>confdefs.h <<\_ACEOF
22151 #define HAVE_FINITE_IN_IEEEFP_H 1
22157 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22158 # for constant arguments. Useless!
22159 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22160 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22161 if test "${ac_cv_working_alloca_h+set}" = set; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 cat >conftest.$ac_ext <<_ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h. */
22170 #include <alloca.h>
22174 char *p = (char *) alloca (2 * sizeof (int));
22179 rm -f conftest.$ac_objext conftest$ac_exeext
22180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22181 (eval $ac_link) 2>conftest.er1
22183 grep -v '^ *+' conftest.er1 >conftest.err
22185 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } &&
22188 { ac_try='test -z "$ac_c_werror_flag"
22189 || test ! -s conftest.err'
22190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191 (eval $ac_try) 2>&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; } &&
22195 { ac_try='test -s conftest$ac_exeext'
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; }; then
22201 ac_cv_working_alloca_h=yes
22203 echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22206 ac_cv_working_alloca_h=no
22208 rm -f conftest.err conftest.$ac_objext \
22209 conftest$ac_exeext conftest.$ac_ext
22211 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22212 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22213 if test $ac_cv_working_alloca_h = yes; then
22215 cat >>confdefs.h <<\_ACEOF
22216 #define HAVE_ALLOCA_H 1
22221 echo "$as_me:$LINENO: checking for alloca" >&5
22222 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22223 if test "${ac_cv_func_alloca_works+set}" = set; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 cat >conftest.$ac_ext <<_ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22233 # define alloca __builtin_alloca
22236 # include <malloc.h>
22237 # define alloca _alloca
22240 # include <alloca.h>
22245 # ifndef alloca /* predefined by HP cc +Olibcalls */
22256 char *p = (char *) alloca (1);
22261 rm -f conftest.$ac_objext conftest$ac_exeext
22262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22263 (eval $ac_link) 2>conftest.er1
22265 grep -v '^ *+' conftest.er1 >conftest.err
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } &&
22270 { ac_try='test -z "$ac_c_werror_flag"
22271 || test ! -s conftest.err'
22272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273 (eval $ac_try) 2>&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; } &&
22277 { ac_try='test -s conftest$ac_exeext'
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; }; then
22283 ac_cv_func_alloca_works=yes
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22288 ac_cv_func_alloca_works=no
22290 rm -f conftest.err conftest.$ac_objext \
22291 conftest$ac_exeext conftest.$ac_ext
22293 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22294 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22296 if test $ac_cv_func_alloca_works = yes; then
22298 cat >>confdefs.h <<\_ACEOF
22299 #define HAVE_ALLOCA 1
22303 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22304 # that cause trouble. Some versions do not even contain alloca or
22305 # contain a buggy version. If you still want to use their alloca,
22306 # use ar to extract alloca.o from them instead of compiling alloca.c.
22308 ALLOCA=alloca.$ac_objext
22310 cat >>confdefs.h <<\_ACEOF
22315 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22316 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22317 if test "${ac_cv_os_cray+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 cat >conftest.$ac_ext <<_ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h. */
22326 #if defined(CRAY) && ! defined(CRAY2)
22333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22334 $EGREP "webecray" >/dev/null 2>&1; then
22342 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22343 echo "${ECHO_T}$ac_cv_os_cray" >&6
22344 if test $ac_cv_os_cray = yes; then
22345 for ac_func in _getb67 GETB67 getb67; do
22346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22347 echo "$as_me:$LINENO: checking for $ac_func" >&5
22348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22349 if eval "test \"\${$as_ac_var+set}\" = set"; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22352 cat >conftest.$ac_ext <<_ACEOF
22355 cat confdefs.h >>conftest.$ac_ext
22356 cat >>conftest.$ac_ext <<_ACEOF
22357 /* end confdefs.h. */
22358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22360 #define $ac_func innocuous_$ac_func
22362 /* System header to define __stub macros and hopefully few prototypes,
22363 which can conflict with char $ac_func (); below.
22364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22365 <limits.h> exists even on freestanding compilers. */
22368 # include <limits.h>
22370 # include <assert.h>
22375 /* Override any gcc2 internal prototype to avoid an error. */
22380 /* We use char because int might match the return type of a gcc2
22381 builtin and then its argument prototype would still apply. */
22383 /* The GNU C library defines this for functions which it implements
22384 to always fail with ENOSYS. Some functions are actually named
22385 something starting with __ and the normal name is an alias. */
22386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22389 char (*f) () = $ac_func;
22398 return f != $ac_func;
22403 rm -f conftest.$ac_objext conftest$ac_exeext
22404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22405 (eval $ac_link) 2>conftest.er1
22407 grep -v '^ *+' conftest.er1 >conftest.err
22409 cat conftest.err >&5
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } &&
22412 { ac_try='test -z "$ac_c_werror_flag"
22413 || test ! -s conftest.err'
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; } &&
22419 { ac_try='test -s conftest$ac_exeext'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 eval "$as_ac_var=yes"
22427 echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22430 eval "$as_ac_var=no"
22432 rm -f conftest.err conftest.$ac_objext \
22433 conftest$ac_exeext conftest.$ac_ext
22435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22437 if test `eval echo '${'$as_ac_var'}'` = yes; then
22439 cat >>confdefs.h <<_ACEOF
22440 #define CRAY_STACKSEG_END $ac_func
22449 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22450 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22451 if test "${ac_cv_c_stack_direction+set}" = set; then
22452 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 if test "$cross_compiling" = yes; then
22455 ac_cv_c_stack_direction=0
22457 cat >conftest.$ac_ext <<_ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22464 find_stack_direction ()
22466 static char *addr = 0;
22471 return find_stack_direction ();
22474 return (&dummy > addr) ? 1 : -1;
22480 exit (find_stack_direction () < 0);
22483 rm -f conftest$ac_exeext
22484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22485 (eval $ac_link) 2>&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 (eval $ac_try) 2>&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; }; then
22494 ac_cv_c_stack_direction=1
22496 echo "$as_me: program exited with status $ac_status" >&5
22497 echo "$as_me: failed program was:" >&5
22498 sed 's/^/| /' conftest.$ac_ext >&5
22500 ( exit $ac_status )
22501 ac_cv_c_stack_direction=-1
22503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22506 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22507 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22509 cat >>confdefs.h <<_ACEOF
22510 #define STACK_DIRECTION $ac_cv_c_stack_direction
22518 for ac_header in stdlib.h unistd.h
22520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22522 echo "$as_me:$LINENO: checking for $ac_header" >&5
22523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22530 # Is the header compilable?
22531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22533 cat >conftest.$ac_ext <<_ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 $ac_includes_default
22540 #include <$ac_header>
22542 rm -f conftest.$ac_objext
22543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22544 (eval $ac_compile) 2>conftest.er1
22546 grep -v '^ *+' conftest.er1 >conftest.err
22548 cat conftest.err >&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } &&
22551 { ac_try='test -z "$ac_c_werror_flag"
22552 || test ! -s conftest.err'
22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; } &&
22558 { ac_try='test -s conftest.$ac_objext'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
22564 ac_header_compiler=yes
22566 echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22569 ac_header_compiler=no
22571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22573 echo "${ECHO_T}$ac_header_compiler" >&6
22575 # Is the header present?
22576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22578 cat >conftest.$ac_ext <<_ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 #include <$ac_header>
22586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22589 grep -v '^ *+' conftest.er1 >conftest.err
22591 cat conftest.err >&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } >/dev/null; then
22594 if test -s conftest.err; then
22595 ac_cpp_err=$ac_c_preproc_warn_flag
22596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22603 if test -z "$ac_cpp_err"; then
22604 ac_header_preproc=yes
22606 echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22609 ac_header_preproc=no
22611 rm -f conftest.err conftest.$ac_ext
22612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22613 echo "${ECHO_T}$ac_header_preproc" >&6
22615 # So? What about this header?
22616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22622 ac_header_preproc=yes
22625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22639 ## ----------------------------------- ##
22640 ## Report this to llvmbugs@cs.uiuc.edu ##
22641 ## ----------------------------------- ##
22644 sed "s/^/$as_me: WARNING: /" >&2
22647 echo "$as_me:$LINENO: checking for $ac_header" >&5
22648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 eval "$as_ac_Header=\$ac_header_preproc"
22654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22659 cat >>confdefs.h <<_ACEOF
22660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22668 for ac_func in getpagesize
22670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22671 echo "$as_me:$LINENO: checking for $ac_func" >&5
22672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22673 if eval "test \"\${$as_ac_var+set}\" = set"; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22676 cat >conftest.$ac_ext <<_ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22684 #define $ac_func innocuous_$ac_func
22686 /* System header to define __stub macros and hopefully few prototypes,
22687 which can conflict with char $ac_func (); below.
22688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22689 <limits.h> exists even on freestanding compilers. */
22692 # include <limits.h>
22694 # include <assert.h>
22699 /* Override any gcc2 internal prototype to avoid an error. */
22704 /* We use char because int might match the return type of a gcc2
22705 builtin and then its argument prototype would still apply. */
22707 /* The GNU C library defines this for functions which it implements
22708 to always fail with ENOSYS. Some functions are actually named
22709 something starting with __ and the normal name is an alias. */
22710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22713 char (*f) () = $ac_func;
22722 return f != $ac_func;
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22729 (eval $ac_link) 2>conftest.er1
22731 grep -v '^ *+' conftest.er1 >conftest.err
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } &&
22736 { ac_try='test -z "$ac_c_werror_flag"
22737 || test ! -s conftest.err'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; } &&
22743 { ac_try='test -s conftest$ac_exeext'
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 eval "$as_ac_var=yes"
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22754 eval "$as_ac_var=no"
22756 rm -f conftest.err conftest.$ac_objext \
22757 conftest$ac_exeext conftest.$ac_ext
22759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22761 if test `eval echo '${'$as_ac_var'}'` = yes; then
22762 cat >>confdefs.h <<_ACEOF
22763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22769 echo "$as_me:$LINENO: checking for working mmap" >&5
22770 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22771 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22774 if test "$cross_compiling" = yes; then
22775 ac_cv_func_mmap_fixed_mapped=no
22777 cat >conftest.$ac_ext <<_ACEOF
22780 cat confdefs.h >>conftest.$ac_ext
22781 cat >>conftest.$ac_ext <<_ACEOF
22782 /* end confdefs.h. */
22783 $ac_includes_default
22784 /* malloc might have been renamed as rpl_malloc. */
22787 /* Thanks to Mike Haertel and Jim Avera for this test.
22788 Here is a matrix of mmap possibilities:
22789 mmap private not fixed
22790 mmap private fixed at somewhere currently unmapped
22791 mmap private fixed at somewhere already mapped
22792 mmap shared not fixed
22793 mmap shared fixed at somewhere currently unmapped
22794 mmap shared fixed at somewhere already mapped
22795 For private mappings, we should verify that changes cannot be read()
22796 back from the file, nor mmap's back from the file at a different
22797 address. (There have been systems where private was not correctly
22798 implemented like the infamous i386 svr4.0, and systems where the
22799 VM page cache was not coherent with the file system buffer cache
22800 like early versions of FreeBSD and possibly contemporary NetBSD.)
22801 For shared mappings, we should conversely verify that changes get
22802 propagated back to all the places they're supposed to be.
22804 Grep wants private fixed already mapped.
22805 The main things grep needs to know about mmap are:
22806 * does it exist and is it safe to write into the mmap'd area
22807 * how to use it (BSD variants) */
22810 #include <sys/mman.h>
22812 #if !STDC_HEADERS && !HAVE_STDLIB_H
22816 /* This mess was copied from the GNU getpagesize.h. */
22817 #if !HAVE_GETPAGESIZE
22818 /* Assume that all systems that can run configure have sys/param.h. */
22819 # if !HAVE_SYS_PARAM_H
22820 # define HAVE_SYS_PARAM_H 1
22823 # ifdef _SC_PAGESIZE
22824 # define getpagesize() sysconf(_SC_PAGESIZE)
22825 # else /* no _SC_PAGESIZE */
22826 # if HAVE_SYS_PARAM_H
22827 # include <sys/param.h>
22828 # ifdef EXEC_PAGESIZE
22829 # define getpagesize() EXEC_PAGESIZE
22830 # else /* no EXEC_PAGESIZE */
22832 # define getpagesize() NBPG * CLSIZE
22835 # endif /* no CLSIZE */
22836 # else /* no NBPG */
22838 # define getpagesize() NBPC
22839 # else /* no NBPC */
22841 # define getpagesize() PAGESIZE
22842 # endif /* PAGESIZE */
22843 # endif /* no NBPC */
22844 # endif /* no NBPG */
22845 # endif /* no EXEC_PAGESIZE */
22846 # else /* no HAVE_SYS_PARAM_H */
22847 # define getpagesize() 8192 /* punt totally */
22848 # endif /* no HAVE_SYS_PARAM_H */
22849 # endif /* no _SC_PAGESIZE */
22851 #endif /* no HAVE_GETPAGESIZE */
22856 char *data, *data2, *data3;
22860 pagesize = getpagesize ();
22862 /* First, make a file with some known garbage in it. */
22863 data = (char *) malloc (pagesize);
22866 for (i = 0; i < pagesize; ++i)
22867 *(data + i) = rand ();
22869 fd = creat ("conftest.mmap", 0600);
22872 if (write (fd, data, pagesize) != pagesize)
22876 /* Next, try to mmap the file at a fixed address which already has
22877 something else allocated at it. If we can, also make sure that
22878 we see the same garbage. */
22879 fd = open ("conftest.mmap", O_RDWR);
22882 data2 = (char *) malloc (2 * pagesize);
22885 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22886 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22887 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22889 for (i = 0; i < pagesize; ++i)
22890 if (*(data + i) != *(data2 + i))
22893 /* Finally, make sure that changes to the mapped area do not
22894 percolate back to the file as seen by read(). (This is a bug on
22895 some variants of i386 svr4.0.) */
22896 for (i = 0; i < pagesize; ++i)
22897 *(data2 + i) = *(data2 + i) + 1;
22898 data3 = (char *) malloc (pagesize);
22901 if (read (fd, data3, pagesize) != pagesize)
22903 for (i = 0; i < pagesize; ++i)
22904 if (*(data + i) != *(data3 + i))
22910 rm -f conftest$ac_exeext
22911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22912 (eval $ac_link) 2>&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917 (eval $ac_try) 2>&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); }; }; then
22921 ac_cv_func_mmap_fixed_mapped=yes
22923 echo "$as_me: program exited with status $ac_status" >&5
22924 echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22927 ( exit $ac_status )
22928 ac_cv_func_mmap_fixed_mapped=no
22930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22933 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22934 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22935 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22937 cat >>confdefs.h <<\_ACEOF
22938 #define HAVE_MMAP 1
22942 rm -f conftest.mmap
22944 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22946 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22947 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22949 echo "$as_me:$LINENO: checking for mmap of files" >&5
22950 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22951 if test "${ac_cv_func_mmap_file+set}" = set; then
22952 echo $ECHO_N "(cached) $ECHO_C" >&6
22957 ac_cpp='$CPP $CPPFLAGS'
22958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22962 if test "$cross_compiling" = yes; then
22963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22964 See \`config.log' for more details." >&5
22965 echo "$as_me: error: cannot run test program while cross compiling
22966 See \`config.log' for more details." >&2;}
22967 { (exit 1); exit 1; }; }
22969 cat >conftest.$ac_ext <<_ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22976 #ifdef HAVE_SYS_TYPES_H
22977 #include <sys/types.h>
22980 #ifdef HAVE_SYS_MMAN_H
22981 #include <sys/mman.h>
22984 #ifdef HAVE_FCNTL_H
22990 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22992 rm -f conftest$ac_exeext
22993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22994 (eval $ac_link) 2>&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999 (eval $ac_try) 2>&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ac_cv_func_mmap_file=yes
23005 echo "$as_me: program exited with status $ac_status" >&5
23006 echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23009 ( exit $ac_status )
23010 ac_cv_func_mmap_file=no
23012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23015 ac_cpp='$CPP $CPPFLAGS'
23016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23022 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23023 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23024 if test "$ac_cv_func_mmap_file" = yes; then
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_MMAP_FILE
23034 if test "$ac_cv_func_mmap_file" = "no"
23036 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23037 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23039 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23040 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23041 if test "${ac_cv_header_mmap_anon+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 ac_cpp='$CPP $CPPFLAGS'
23048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23052 cat >conftest.$ac_ext <<_ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 #include <sys/mman.h>
23059 #include <unistd.h>
23064 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23069 rm -f conftest.$ac_objext
23070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23071 (eval $ac_compile) 2>conftest.er1
23073 grep -v '^ *+' conftest.er1 >conftest.err
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } &&
23078 { ac_try='test -z "$ac_c_werror_flag"
23079 || test ! -s conftest.err'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest.$ac_objext'
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23091 ac_cv_header_mmap_anon=yes
23093 echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23096 ac_cv_header_mmap_anon=no
23098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23100 ac_cpp='$CPP $CPPFLAGS'
23101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23107 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23108 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23109 if test "$ac_cv_header_mmap_anon" = yes; then
23111 cat >>confdefs.h <<\_ACEOF
23112 #define HAVE_MMAP_ANONYMOUS
23117 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23118 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23119 if test "${ac_cv_type_signal+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
23122 cat >conftest.$ac_ext <<_ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h. */
23128 #include <sys/types.h>
23129 #include <signal.h>
23134 extern "C" void (*signal (int, void (*)(int)))(int);
23136 void (*signal ()) ();
23147 rm -f conftest.$ac_objext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23149 (eval $ac_compile) 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } &&
23156 { ac_try='test -z "$ac_c_werror_flag"
23157 || test ! -s conftest.err'
23158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159 (eval $ac_try) 2>&5
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); }; } &&
23163 { ac_try='test -s conftest.$ac_objext'
23164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165 (eval $ac_try) 2>&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); }; }; then
23169 ac_cv_type_signal=void
23171 echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23174 ac_cv_type_signal=int
23176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23178 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23179 echo "${ECHO_T}$ac_cv_type_signal" >&6
23181 cat >>confdefs.h <<_ACEOF
23182 #define RETSIGTYPE $ac_cv_type_signal
23195 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23198 echo "$as_me:$LINENO: checking for $ac_func" >&5
23199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23200 if eval "test \"\${$as_ac_var+set}\" = set"; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23203 cat >conftest.$ac_ext <<_ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23211 #define $ac_func innocuous_$ac_func
23213 /* System header to define __stub macros and hopefully few prototypes,
23214 which can conflict with char $ac_func (); below.
23215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23216 <limits.h> exists even on freestanding compilers. */
23219 # include <limits.h>
23221 # include <assert.h>
23226 /* Override any gcc2 internal prototype to avoid an error. */
23231 /* We use char because int might match the return type of a gcc2
23232 builtin and then its argument prototype would still apply. */
23234 /* The GNU C library defines this for functions which it implements
23235 to always fail with ENOSYS. Some functions are actually named
23236 something starting with __ and the normal name is an alias. */
23237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23240 char (*f) () = $ac_func;
23249 return f != $ac_func;
23254 rm -f conftest.$ac_objext conftest$ac_exeext
23255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23256 (eval $ac_link) 2>conftest.er1
23258 grep -v '^ *+' conftest.er1 >conftest.err
23260 cat conftest.err >&5
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } &&
23263 { ac_try='test -z "$ac_c_werror_flag"
23264 || test ! -s conftest.err'
23265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266 (eval $ac_try) 2>&5
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; } &&
23270 { ac_try='test -s conftest$ac_exeext'
23271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; }; then
23276 eval "$as_ac_var=yes"
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 eval "$as_ac_var=no"
23283 rm -f conftest.err conftest.$ac_objext \
23284 conftest$ac_exeext conftest.$ac_ext
23286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23288 if test `eval echo '${'$as_ac_var'}'` = yes; then
23289 cat >>confdefs.h <<_ACEOF
23290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23296 echo "$as_me:$LINENO: checking for mprotect" >&5
23297 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23298 if test "${ac_cv_func_mprotect+set}" = set; then
23299 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 cat >conftest.$ac_ext <<_ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23307 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23309 #define mprotect innocuous_mprotect
23311 /* System header to define __stub macros and hopefully few prototypes,
23312 which can conflict with char mprotect (); below.
23313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23314 <limits.h> exists even on freestanding compilers. */
23317 # include <limits.h>
23319 # include <assert.h>
23324 /* Override any gcc2 internal prototype to avoid an error. */
23329 /* We use char because int might match the return type of a gcc2
23330 builtin and then its argument prototype would still apply. */
23332 /* The GNU C library defines this for functions which it implements
23333 to always fail with ENOSYS. Some functions are actually named
23334 something starting with __ and the normal name is an alias. */
23335 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23338 char (*f) () = mprotect;
23347 return f != mprotect;
23352 rm -f conftest.$ac_objext conftest$ac_exeext
23353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23354 (eval $ac_link) 2>conftest.er1
23356 grep -v '^ *+' conftest.er1 >conftest.err
23358 cat conftest.err >&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } &&
23361 { ac_try='test -z "$ac_c_werror_flag"
23362 || test ! -s conftest.err'
23363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364 (eval $ac_try) 2>&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); }; } &&
23368 { ac_try='test -s conftest$ac_exeext'
23369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370 (eval $ac_try) 2>&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); }; }; then
23374 ac_cv_func_mprotect=yes
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 ac_cv_func_mprotect=no
23381 rm -f conftest.err conftest.$ac_objext \
23382 conftest$ac_exeext conftest.$ac_ext
23384 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23385 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23386 if test $ac_cv_func_mprotect = yes; then
23389 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23390 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23391 { (exit 1); exit 1; }; }
23396 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23397 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23401 ac_cpp='$CPP $CPPFLAGS'
23402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23406 oldcflags="$CFLAGS"
23407 CFLAGS="$CFLAGS -Wl,-R."
23408 cat >conftest.$ac_ext <<_ACEOF
23409 int main() { return 0; }
23411 rm -f conftest.$ac_objext conftest$ac_exeext
23412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23413 (eval $ac_link) 2>conftest.er1
23415 grep -v '^ *+' conftest.er1 >conftest.err
23417 cat conftest.err >&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } &&
23420 { ac_try='test -z "$ac_c_werror_flag"
23421 || test ! -s conftest.err'
23422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423 (eval $ac_try) 2>&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; } &&
23427 { ac_try='test -s conftest$ac_exeext'
23428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429 (eval $ac_try) 2>&5
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); }; }; then
23433 ac_cv_link_use_r=yes
23435 echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23438 ac_cv_link_use_r=no
23440 rm -f conftest.err conftest.$ac_objext \
23441 conftest$ac_exeext conftest.$ac_ext
23442 CFLAGS="$oldcflags"
23444 ac_cpp='$CPP $CPPFLAGS'
23445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23449 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23450 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23451 if test "$ac_cv_link_use_r" = yes
23454 cat >>confdefs.h <<\_ACEOF
23455 #define HAVE_LINK_R 1
23461 # Check whether --enable-optimized or --disable-optimized was given.
23462 if test "${enable_optimized+set}" = set; then
23463 enableval="$enable_optimized"
23468 if test ${enableval} = "no"
23473 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23480 # Check whether --enable-spec95 or --disable-spec95 was given.
23481 if test "${enable_spec95+set}" = set; then
23482 enableval="$enable_spec95"
23483 checkresult=$enableval
23487 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23488 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23489 case "$checkresult" in
23491 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23492 if test -d "$defaultdir"
23494 SPEC95_ROOT=$defaultdir
23496 USE_SPEC95=USE_SPEC95=1
23498 checkresult="yes, found in $defaultdir"
23508 *) if test -d "$checkresult"
23510 SPEC95_ROOT="$checkresult"
23512 USE_SPEC95=USE_SPEC95=1
23514 checkresult="yes, in $checkresult"
23518 checkresult="no, not found in $checkresult"
23522 echo "$as_me:$LINENO: result: $checkresult" >&5
23523 echo "${ECHO_T}$checkresult" >&6
23527 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23528 if test "${enable_spec2000+set}" = set; then
23529 enableval="$enable_spec2000"
23530 checkresult=$enableval
23534 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23535 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23536 case "$checkresult" in
23538 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23539 if test -d "$defaultdir"
23541 SPEC2000_ROOT=$defaultdir
23543 USE_SPEC2000=USE_SPEC2000=1
23545 checkresult="yes, found in $defaultdir"
23555 *) if test -d "$checkresult"
23557 SPEC2000_ROOT="$checkresult"
23559 USE_SPEC2000=USE_SPEC2000=1
23561 checkresult="yes, in $checkresult"
23565 checkresult="no, not found in $checkresult"
23569 echo "$as_me:$LINENO: result: $checkresult" >&5
23570 echo "${ECHO_T}$checkresult" >&6
23574 # Check whether --enable-povray or --disable-povray was given.
23575 if test "${enable_povray+set}" = set; then
23576 enableval="$enable_povray"
23577 checkresult=$enableval
23581 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23582 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23583 case "$checkresult" in
23585 defaultdir=/home/vadve/shared/benchmarks/povray31
23586 if test -d "$defaultdir"
23588 POVRAY_ROOT=$defaultdir
23590 USE_POVRAY=USE_POVRAY=1
23592 checkresult="yes, found in $defaultdir"
23602 *) if test -d "$checkresult"
23604 POVRAY_ROOT="$checkresult"
23606 USE_POVRAY=USE_POVRAY=1
23608 checkresult="yes, in $checkresult"
23612 checkresult="no, not found in $checkresult"
23616 echo "$as_me:$LINENO: result: $checkresult" >&5
23617 echo "${ECHO_T}$checkresult" >&6
23621 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23622 if test "${enable_precompiled_bytecode+set}" = set; then
23623 enableval="$enable_precompiled_bytecode"
23628 if test ${enableval} = "no"
23633 UPB=USE_PRECOMPILED_BYTECODE=1
23637 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23638 if test "${enable_llc_diffs+set}" = set; then
23639 enableval="$enable_llc_diffs"
23644 if test ${enableval} = "no"
23646 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23653 # Check whether --enable-jit or --disable-jit was given.
23654 if test "${enable_jit+set}" = set; then
23655 enableval="$enable_jit"
23660 if test ${enableval} = "no"
23667 JIT=TARGET_HAS_JIT=1
23671 JIT=TARGET_HAS_JIT=1
23682 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23683 if test "${with_llvmgccdir+set}" = set; then
23684 withval="$with_llvmgccdir"
23685 LLVMGCCDIR=$withval
23688 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23689 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23691 if test -d "$LLVMGCCDIR"
23693 if test -x "$LLVMGCCDIR/bin/gcc"
23695 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23699 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23700 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23701 if test "$LLVM_GCC_CHECK" = "no"
23705 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23706 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23708 if test -x "$LLVM_GCC_CHECK"
23710 cp /dev/null conftest.c
23711 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23717 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23718 LLVMCC1=$llvmcc1path
23720 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23721 LLVMCC1PLUS=$llvmcc1pluspath
23724 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23725 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23726 if test "$LLVM_GCC_SANE" = "no"
23732 # Check whether --with-bcrepos or --without-bcrepos was given.
23733 if test "${with_bcrepos+set}" = set; then
23734 withval="$with_bcrepos"
23738 BCR=/home/vadve/lattner/LLVMPrograms
23743 # Check whether --with-papi or --without-papi was given.
23744 if test "${with_papi+set}" = set; then
23745 withval="$with_papi"
23749 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23753 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23754 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23755 eval "SHLIBEXT=$shrext"
23756 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23757 echo "${ECHO_T}$SHLIBEXT" >&6
23761 cat >>confdefs.h <<_ACEOF
23762 #define SHLIBEXT "$SHLIBEXT"
23766 # Translate the various configuration directories and other basic
23767 # information into substitutions that will end up in config.h.in so
23768 # that these configured values can be hard-wired into a program.
23769 eval LLVM_PREFIX="${prefix}";
23770 eval LLVM_BINDIR="${prefix}/bin";
23771 eval LLVM_LIBDIR="${prefix}/lib";
23772 eval LLVM_DATADIR="${prefix}/data";
23773 eval LLVM_DOCSDIR="${prefix}/docs";
23774 eval LLVM_ETCDIR="${prefix}/etc";
23775 eval LLVM_INCLUDEDIR="${prefix}/include";
23776 eval LLVM_INFODIR="${prefix}/info";
23777 eval LLVM_MANDIR="${prefix}/man";
23778 LLVM_CONFIGTIME=`date`
23790 cat >>confdefs.h <<_ACEOF
23791 #define LLVM_PREFIX "$LLVM_PREFIX"
23795 cat >>confdefs.h <<_ACEOF
23796 #define LLVM_BINDIR "$LLVM_BINDIR"
23800 cat >>confdefs.h <<_ACEOF
23801 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23805 cat >>confdefs.h <<_ACEOF
23806 #define LLVM_DATADIR "$LLVM_DATADIR"
23810 cat >>confdefs.h <<_ACEOF
23811 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23815 cat >>confdefs.h <<_ACEOF
23816 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23820 cat >>confdefs.h <<_ACEOF
23821 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23825 cat >>confdefs.h <<_ACEOF
23826 #define LLVM_INFODIR "$LLVM_INFODIR"
23830 cat >>confdefs.h <<_ACEOF
23831 #define LLVM_MANDIR "$LLVM_MANDIR"
23835 cat >>confdefs.h <<_ACEOF
23836 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23840 cat >confcache <<\_ACEOF
23841 # This file is a shell script that caches the results of configure
23842 # tests run on this system so they can be shared between configure
23843 # scripts and configure runs, see configure's option --config-cache.
23844 # It is not useful on other systems. If it contains results you don't
23845 # want to keep, you may remove or edit it.
23847 # config.status only pays attention to the cache file if you give it
23848 # the --recheck option to rerun configure.
23850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23852 # following values.
23856 # The following way of writing the cache mishandles newlines in values,
23857 # but we know of no workaround that is simple, portable, and efficient.
23858 # So, don't put newlines in cache variables' values.
23859 # Ultrix sh set writes to stderr and can't be redirected directly,
23860 # and sets the high bit in the cache file unless we assign to the vars.
23863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23865 # `set' does not quote correctly, so add quotes (double-quote
23866 # substitution turns \\\\ into \\, and sed turns \\ into \).
23869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23872 # `set' quotes correctly as required by POSIX, so do not add quotes.
23874 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23883 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23885 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23886 if test -w $cache_file; then
23887 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23888 cat confcache >$cache_file
23890 echo "not updating unwritable cache $cache_file"
23895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23896 # Let make expand exec_prefix.
23897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23901 # trailing colons and then remove the whole line if VPATH becomes empty
23902 # (actually we leave an empty line to preserve line numbers).
23903 if test "x$srcdir" = x.; then
23904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23905 s/:*\$(srcdir):*/:/;
23906 s/:*\${srcdir}:*/:/;
23908 s/^\([^=]*=[ ]*\):*/\1/;
23914 DEFS=-DHAVE_CONFIG_H
23918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23919 # 1. Remove the extension, and $U if already installed.
23920 ac_i=`echo "$ac_i" |
23921 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23923 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23924 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23926 LIBOBJS=$ac_libobjs
23928 LTLIBOBJS=$ac_ltlibobjs
23932 : ${CONFIG_STATUS=./config.status}
23933 ac_clean_files_save=$ac_clean_files
23934 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23935 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23936 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23937 cat >$CONFIG_STATUS <<_ACEOF
23939 # Generated by $as_me.
23940 # Run this file to recreate the current configuration.
23941 # Compiler output produced by configure, useful for debugging
23942 # configure, is in config.log if it exists.
23945 ac_cs_recheck=false
23947 SHELL=\${CONFIG_SHELL-$SHELL}
23950 cat >>$CONFIG_STATUS <<\_ACEOF
23951 ## --------------------- ##
23952 ## M4sh Initialization. ##
23953 ## --------------------- ##
23955 # Be Bourne compatible
23956 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23959 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23960 # is contrary to our usage. Disable this feature.
23961 alias -g '${1+"$@"}'='"$@"'
23962 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23965 DUALCASE=1; export DUALCASE # for MKS sh
23967 # Support unset when possible.
23968 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23975 # Work around bugs in pre-3.0 UWIN ksh.
23976 $as_unset ENV MAIL MAILPATH
23983 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23984 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23985 LC_TELEPHONE LC_TIME
23987 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23988 eval $as_var=C; export $as_var
23994 # Required to use basename.
23995 if expr a : '\(a\)' >/dev/null 2>&1; then
24001 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24002 as_basename=basename
24008 # Name of the executable.
24009 as_me=`$as_basename "$0" ||
24010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24011 X"$0" : 'X\(//\)$' \| \
24012 X"$0" : 'X\(/\)$' \| \
24013 . : '\(.\)' 2>/dev/null ||
24015 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24016 /^X\/\(\/\/\)$/{ s//\1/; q; }
24017 /^X\/\(\/\).*/{ s//\1/; q; }
24021 # PATH needs CR, and LINENO needs CR and PATH.
24022 # Avoid depending upon Character Ranges.
24023 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24024 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24025 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24026 as_cr_digits='0123456789'
24027 as_cr_alnum=$as_cr_Letters$as_cr_digits
24029 # The user is always right.
24030 if test "${PATH_SEPARATOR+set}" != set; then
24031 echo "#! /bin/sh" >conf$$.sh
24032 echo "exit 0" >>conf$$.sh
24034 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24043 as_lineno_1=$LINENO
24044 as_lineno_2=$LINENO
24045 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24046 test "x$as_lineno_1" != "x$as_lineno_2" &&
24047 test "x$as_lineno_3" = "x$as_lineno_2" || {
24048 # Find who we are. Look in the path if we contain no path at all
24051 *[\\/]* ) as_myself=$0 ;;
24052 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24053 for as_dir in $PATH
24056 test -z "$as_dir" && as_dir=.
24057 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24062 # We did not find ourselves, most probably we were run as `sh COMMAND'
24063 # in which case we are not to be found in the path.
24064 if test "x$as_myself" = x; then
24067 if test ! -f "$as_myself"; then
24068 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24069 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24070 { (exit 1); exit 1; }; }
24072 case $CONFIG_SHELL in
24074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24075 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24078 test -z "$as_dir" && as_dir=.
24079 for as_base in sh bash ksh sh5; do
24082 if ("$as_dir/$as_base" -c '
24083 as_lineno_1=$LINENO
24084 as_lineno_2=$LINENO
24085 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24086 test "x$as_lineno_1" != "x$as_lineno_2" &&
24087 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24088 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24089 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24090 CONFIG_SHELL=$as_dir/$as_base
24091 export CONFIG_SHELL
24092 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24100 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24101 # uniformly replaced by the line number. The first 'sed' inserts a
24102 # line-number line before each line; the second 'sed' does the real
24103 # work. The second script uses 'N' to pair each line-number line
24104 # with the numbered line, and appends trailing '-' during
24105 # substitution so that $LINENO is not a special case at line end.
24106 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24107 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24108 sed '=' <$as_myself |
24113 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24116 s,^['$as_cr_digits']*\n,,
24117 ' >$as_me.lineno &&
24118 chmod +x $as_me.lineno ||
24119 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24120 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24121 { (exit 1); exit 1; }; }
24123 # Don't try to exec as it changes $[0], causing all sort of problems
24124 # (the dirname of $[0] is not the place where we might find the
24125 # original and so on. Autoconf is especially sensible to this).
24127 # Exit status is that of the last command.
24132 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24133 *c*,-n*) ECHO_N= ECHO_C='
24135 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24136 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24139 if expr a : '\(a\)' >/dev/null 2>&1; then
24145 rm -f conf$$ conf$$.exe conf$$.file
24147 if ln -s conf$$.file conf$$ 2>/dev/null; then
24148 # We could just check for DJGPP; but this test a) works b) is more generic
24149 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24150 if test -f conf$$.exe; then
24151 # Don't use ln at all; we don't have any links
24156 elif ln conf$$.file conf$$ 2>/dev/null; then
24161 rm -f conf$$ conf$$.exe conf$$.file
24163 if mkdir -p . 2>/dev/null; then
24166 test -d ./-p && rmdir ./-p
24170 as_executable_p="test -f"
24172 # Sed expression to map a string onto a valid CPP name.
24173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24175 # Sed expression to map a string onto a valid variable name.
24176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24180 # We need space, tab and new line, in precisely that order.
24190 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24191 # report actual input values of CONFIG_FILES etc. instead of their
24192 # values after options handling. Logging --version etc. is OK.
24196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24197 ## Running $as_me. ##
24202 This file was extended by LLVM $as_me 1.4, which was
24203 generated by GNU Autoconf 2.59. Invocation command line was
24205 CONFIG_FILES = $CONFIG_FILES
24206 CONFIG_HEADERS = $CONFIG_HEADERS
24207 CONFIG_LINKS = $CONFIG_LINKS
24208 CONFIG_COMMANDS = $CONFIG_COMMANDS
24212 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24216 # Files that config.status was made for.
24217 if test -n "$ac_config_files"; then
24218 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24221 if test -n "$ac_config_headers"; then
24222 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24225 if test -n "$ac_config_links"; then
24226 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24229 if test -n "$ac_config_commands"; then
24230 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24233 cat >>$CONFIG_STATUS <<\_ACEOF
24236 \`$as_me' instantiates files from templates according to the
24237 current configuration.
24239 Usage: $0 [OPTIONS] [FILE]...
24241 -h, --help print this help, then exit
24242 -V, --version print version number, then exit
24243 -q, --quiet do not print progress messages
24244 -d, --debug don't remove temporary files
24245 --recheck update $as_me by reconfiguring in the same conditions
24246 --file=FILE[:TEMPLATE]
24247 instantiate the configuration file FILE
24248 --header=FILE[:TEMPLATE]
24249 instantiate the configuration header FILE
24251 Configuration files:
24254 Configuration headers:
24257 Configuration links:
24260 Configuration commands:
24263 Report bugs to <bug-autoconf@gnu.org>."
24266 cat >>$CONFIG_STATUS <<_ACEOF
24268 LLVM config.status 1.4
24269 configured by $0, generated by GNU Autoconf 2.59,
24270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24272 Copyright (C) 2003 Free Software Foundation, Inc.
24273 This config.status script is free software; the Free Software Foundation
24274 gives unlimited permission to copy, distribute and modify it."
24279 cat >>$CONFIG_STATUS <<\_ACEOF
24280 # If no file are specified by the user, then we need to provide default
24281 # value. By we need to know if files were specified by the user.
24287 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24288 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24296 *) # This is not an option, so the user has probably given explicit
24299 ac_need_defaults=false;;
24303 # Handling of the options.
24305 cat >>$CONFIG_STATUS <<\_ACEOF
24306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24308 --version | --vers* | -V )
24309 echo "$ac_cs_version"; exit 0 ;;
24311 # Conflict between --help and --header
24312 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24313 Try \`$0 --help' for more information." >&5
24314 echo "$as_me: error: ambiguous option: $1
24315 Try \`$0 --help' for more information." >&2;}
24316 { (exit 1); exit 1; }; };;
24317 --help | --hel | -h )
24318 echo "$ac_cs_usage"; exit 0 ;;
24319 --debug | --d* | -d )
24321 --file | --fil | --fi | --f )
24323 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24324 ac_need_defaults=false;;
24325 --header | --heade | --head | --hea )
24327 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24328 ac_need_defaults=false;;
24329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24333 # This is an error.
24334 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24335 Try \`$0 --help' for more information." >&5
24336 echo "$as_me: error: unrecognized option: $1
24337 Try \`$0 --help' for more information." >&2;}
24338 { (exit 1); exit 1; }; } ;;
24340 *) ac_config_targets="$ac_config_targets $1" ;;
24346 ac_configure_extra_args=
24348 if $ac_cs_silent; then
24350 ac_configure_extra_args="$ac_configure_extra_args --silent"
24354 cat >>$CONFIG_STATUS <<_ACEOF
24355 if \$ac_cs_recheck; then
24356 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24357 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24362 cat >>$CONFIG_STATUS <<_ACEOF
24364 # INIT-COMMANDS section.
24367 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24368 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24369 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24370 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24371 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24374 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24375 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24388 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24389 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24415 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24416 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24417 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24423 cat >>$CONFIG_STATUS <<\_ACEOF
24424 for ac_config_target in $ac_config_targets
24426 case "$ac_config_target" in
24427 # Handling of arguments.
24428 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24429 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24430 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
24431 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24432 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
24433 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
24434 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24435 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24436 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24437 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24438 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24439 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24440 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24441 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24442 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24443 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24444 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24445 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24446 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24447 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24448 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24449 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24450 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24451 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24452 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24453 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24454 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24455 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24456 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24457 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24458 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24459 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24460 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24461 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24462 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24463 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24464 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24465 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24466 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24467 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24468 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24469 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24470 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24471 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24472 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24473 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24474 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24475 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24476 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24477 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24478 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24479 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24480 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24481 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24482 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24483 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24484 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24485 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24486 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24489 { (exit 1); exit 1; }; };;
24493 # If the user did not use the arguments to specify the items to instantiate,
24494 # then the envvar interface is used. Set only those that are not.
24495 # We use the long form for the default assignment because of an extremely
24496 # bizarre bug on SunOS 4.1.3.
24497 if $ac_need_defaults; then
24498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24500 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24504 # Have a temporary directory for convenience. Make it in the build tree
24505 # simply because there is no reason to put it here, and in addition,
24506 # creating and moving files from /tmp can sometimes cause problems.
24507 # Create a temporary directory, and hook for its removal unless debugging.
24510 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24511 trap '{ (exit 1); exit 1; }' 1 2 13 15
24514 # Create a (secure) tmp directory for tmp files.
24517 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24518 test -n "$tmp" && test -d "$tmp"
24521 tmp=./confstat$$-$RANDOM
24522 (umask 077 && mkdir $tmp)
24525 echo "$me: cannot create a temporary directory in ." >&2
24526 { (exit 1); exit 1; }
24531 cat >>$CONFIG_STATUS <<_ACEOF
24534 # CONFIG_FILES section.
24537 # No need to generate the scripts if there are no CONFIG_FILES.
24538 # This happens for instance when ./config.status config.h
24539 if test -n "\$CONFIG_FILES"; then
24540 # Protect against being on the right side of a sed subst in config.status.
24541 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24542 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24543 s,@SHELL@,$SHELL,;t t
24544 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24545 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24546 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24547 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24548 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24549 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24550 s,@exec_prefix@,$exec_prefix,;t t
24551 s,@prefix@,$prefix,;t t
24552 s,@program_transform_name@,$program_transform_name,;t t
24553 s,@bindir@,$bindir,;t t
24554 s,@sbindir@,$sbindir,;t t
24555 s,@libexecdir@,$libexecdir,;t t
24556 s,@datadir@,$datadir,;t t
24557 s,@sysconfdir@,$sysconfdir,;t t
24558 s,@sharedstatedir@,$sharedstatedir,;t t
24559 s,@localstatedir@,$localstatedir,;t t
24560 s,@libdir@,$libdir,;t t
24561 s,@includedir@,$includedir,;t t
24562 s,@oldincludedir@,$oldincludedir,;t t
24563 s,@infodir@,$infodir,;t t
24564 s,@mandir@,$mandir,;t t
24565 s,@build_alias@,$build_alias,;t t
24566 s,@host_alias@,$host_alias,;t t
24567 s,@target_alias@,$target_alias,;t t
24568 s,@DEFS@,$DEFS,;t t
24569 s,@ECHO_C@,$ECHO_C,;t t
24570 s,@ECHO_N@,$ECHO_N,;t t
24571 s,@ECHO_T@,$ECHO_T,;t t
24572 s,@LIBS@,$LIBS,;t t
24573 s,@subdirs@,$subdirs,;t t
24574 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24575 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24576 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24577 s,@build@,$build,;t t
24578 s,@build_cpu@,$build_cpu,;t t
24579 s,@build_vendor@,$build_vendor,;t t
24580 s,@build_os@,$build_os,;t t
24581 s,@host@,$host,;t t
24582 s,@host_cpu@,$host_cpu,;t t
24583 s,@host_vendor@,$host_vendor,;t t
24584 s,@host_os@,$host_os,;t t
24585 s,@target@,$target,;t t
24586 s,@target_cpu@,$target_cpu,;t t
24587 s,@target_vendor@,$target_vendor,;t t
24588 s,@target_os@,$target_os,;t t
24590 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24591 s,@ARCH@,$ARCH,;t t
24593 s,@CXXFLAGS@,$CXXFLAGS,;t t
24594 s,@LDFLAGS@,$LDFLAGS,;t t
24595 s,@CPPFLAGS@,$CPPFLAGS,;t t
24596 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24597 s,@EXEEXT@,$EXEEXT,;t t
24598 s,@OBJEXT@,$OBJEXT,;t t
24600 s,@CFLAGS@,$CFLAGS,;t t
24601 s,@ac_ct_CC@,$ac_ct_CC,;t t
24603 s,@ifGNUmake@,$ifGNUmake,;t t
24605 s,@LEXLIB@,$LEXLIB,;t t
24606 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24607 s,@YACC@,$YACC,;t t
24608 s,@BISON@,$BISON,;t t
24609 s,@EGREP@,$EGREP,;t t
24610 s,@LN_S@,$LN_S,;t t
24611 s,@ECHO@,$ECHO,;t t
24613 s,@ac_ct_AR@,$ac_ct_AR,;t t
24614 s,@RANLIB@,$RANLIB,;t t
24615 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24616 s,@STRIP@,$STRIP,;t t
24617 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24618 s,@CXXCPP@,$CXXCPP,;t t
24620 s,@FFLAGS@,$FFLAGS,;t t
24621 s,@ac_ct_F77@,$ac_ct_F77,;t t
24622 s,@LIBTOOL@,$LIBTOOL,;t t
24624 s,@ETAGS@,$ETAGS,;t t
24625 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24626 s,@PYTHON@,$PYTHON,;t t
24627 s,@QMTEST@,$QMTEST,;t t
24628 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24629 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24630 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24631 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24632 s,@ENDIAN@,$ENDIAN,;t t
24633 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24634 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24635 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24636 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24637 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24638 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24639 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24640 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24641 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24642 s,@ALLOCA@,$ALLOCA,;t t
24643 s,@MMAP_FILE@,$MMAP_FILE,;t t
24644 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24645 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24646 s,@USE_SPEC95@,$USE_SPEC95,;t t
24647 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24648 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24649 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24650 s,@USE_POVRAY@,$USE_POVRAY,;t t
24652 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24654 s,@LLVMCC1@,$LLVMCC1,;t t
24655 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24657 s,@PAPIDIR@,$PAPIDIR,;t t
24658 s,@SHLIBEXT@,$SHLIBEXT,;t t
24659 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24660 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24661 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24662 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24663 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24664 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24665 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24666 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24667 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24668 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24669 s,@LIBOBJS@,$LIBOBJS,;t t
24670 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24675 cat >>$CONFIG_STATUS <<\_ACEOF
24676 # Split the substitutions into bite-sized pieces for seds with
24677 # small command number limits, like on Digital OSF/1 and HP-UX.
24678 ac_max_sed_lines=48
24679 ac_sed_frag=1 # Number of current file.
24680 ac_beg=1 # First line for current file.
24681 ac_end=$ac_max_sed_lines # Line after last line for current file.
24684 while $ac_more_lines; do
24685 if test $ac_beg -gt 1; then
24686 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24688 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24690 if test ! -s $tmp/subs.frag; then
24691 ac_more_lines=false
24693 # The purpose of the label and of the branching condition is to
24694 # speed up the sed processing (if there are no `@' at all, there
24695 # is no need to browse any of the substitutions).
24696 # These are the two extra sed commands mentioned above.
24698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24699 if test -z "$ac_sed_cmds"; then
24700 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24702 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24704 ac_sed_frag=`expr $ac_sed_frag + 1`
24706 ac_end=`expr $ac_end + $ac_max_sed_lines`
24709 if test -z "$ac_sed_cmds"; then
24712 fi # test -n "$CONFIG_FILES"
24715 cat >>$CONFIG_STATUS <<\_ACEOF
24716 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24717 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24719 - | *:- | *:-:* ) # input from stdin
24721 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24722 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24723 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24724 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24725 * ) ac_file_in=$ac_file.in ;;
24728 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24729 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24731 X"$ac_file" : 'X\(//\)[^/]' \| \
24732 X"$ac_file" : 'X\(//\)$' \| \
24733 X"$ac_file" : 'X\(/\)' \| \
24734 . : '\(.\)' 2>/dev/null ||
24736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24738 /^X\(\/\/\)$/{ s//\1/; q; }
24739 /^X\(\/\).*/{ s//\1/; q; }
24741 { if $as_mkdir_p; then
24746 while test ! -d "$as_dir"; do
24747 as_dirs="$as_dir $as_dirs"
24748 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24750 X"$as_dir" : 'X\(//\)[^/]' \| \
24751 X"$as_dir" : 'X\(//\)$' \| \
24752 X"$as_dir" : 'X\(/\)' \| \
24753 . : '\(.\)' 2>/dev/null ||
24755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24757 /^X\(\/\/\)$/{ s//\1/; q; }
24758 /^X\(\/\).*/{ s//\1/; q; }
24761 test ! -n "$as_dirs" || mkdir $as_dirs
24762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24763 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24764 { (exit 1); exit 1; }; }; }
24768 if test "$ac_dir" != .; then
24769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24770 # A "../" for each directory in $ac_dir_suffix.
24771 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24773 ac_dir_suffix= ac_top_builddir=
24777 .) # No --srcdir option. We are building in place.
24779 if test -z "$ac_top_builddir"; then
24782 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24784 [\\/]* | ?:[\\/]* ) # Absolute path.
24785 ac_srcdir=$srcdir$ac_dir_suffix;
24786 ac_top_srcdir=$srcdir ;;
24787 *) # Relative path.
24788 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24789 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24792 # Do not use `cd foo && pwd` to compute absolute paths, because
24793 # the directories may not exist.
24795 .) ac_abs_builddir="$ac_dir";;
24798 .) ac_abs_builddir=`pwd`;;
24799 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24800 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24803 case $ac_abs_builddir in
24804 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24806 case ${ac_top_builddir}. in
24807 .) ac_abs_top_builddir=$ac_abs_builddir;;
24808 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24809 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24812 case $ac_abs_builddir in
24813 .) ac_abs_srcdir=$ac_srcdir;;
24816 .) ac_abs_srcdir=$ac_abs_builddir;;
24817 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24818 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24821 case $ac_abs_builddir in
24822 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24824 case $ac_top_srcdir in
24825 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24826 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24827 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24834 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24837 if test x"$ac_file" != x-; then
24838 { echo "$as_me:$LINENO: creating $ac_file" >&5
24839 echo "$as_me: creating $ac_file" >&6;}
24842 # Let's still pretend it is `configure' which instantiates (i.e., don't
24843 # use $as_me), people would be surprised to read:
24844 # /* config.h. Generated by config.status. */
24845 if test x"$ac_file" = x-; then
24848 configure_input="$ac_file. "
24850 configure_input=$configure_input"Generated from `echo $ac_file_in |
24851 sed 's,.*/,,'` by configure."
24853 # First look for the input files in the build tree, otherwise in the
24855 ac_file_inputs=`IFS=:
24856 for f in $ac_file_in; do
24858 -) echo $tmp/stdin ;;
24860 # Absolute (can't be DOS-style, as IFS=:)
24861 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24862 echo "$as_me: error: cannot find input file: $f" >&2;}
24863 { (exit 1); exit 1; }; }
24866 if test -f "$f"; then
24869 elif test -f "$srcdir/$f"; then
24874 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24875 echo "$as_me: error: cannot find input file: $f" >&2;}
24876 { (exit 1); exit 1; }; }
24879 done` || { (exit 1); exit 1; }
24881 cat >>$CONFIG_STATUS <<_ACEOF
24885 cat >>$CONFIG_STATUS <<\_ACEOF
24887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24888 s,@configure_input@,$configure_input,;t t
24889 s,@srcdir@,$ac_srcdir,;t t
24890 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24891 s,@top_srcdir@,$ac_top_srcdir,;t t
24892 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24893 s,@builddir@,$ac_builddir,;t t
24894 s,@abs_builddir@,$ac_abs_builddir,;t t
24895 s,@top_builddir@,$ac_top_builddir,;t t
24896 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24897 s,@INSTALL@,$ac_INSTALL,;t t
24898 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24900 if test x"$ac_file" != x-; then
24901 mv $tmp/out $ac_file
24909 cat >>$CONFIG_STATUS <<\_ACEOF
24912 # CONFIG_HEADER section.
24915 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24916 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24918 # ac_d sets the value in "#define NAME VALUE" lines.
24919 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24920 ac_dB='[ ].*$,\1#\2'
24923 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24924 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24925 ac_uB='$,\1#\2define\3'
24929 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24932 - | *:- | *:-:* ) # input from stdin
24934 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24936 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24938 * ) ac_file_in=$ac_file.in ;;
24941 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24942 echo "$as_me: creating $ac_file" >&6;}
24944 # First look for the input files in the build tree, otherwise in the
24946 ac_file_inputs=`IFS=:
24947 for f in $ac_file_in; do
24949 -) echo $tmp/stdin ;;
24951 # Absolute (can't be DOS-style, as IFS=:)
24952 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24953 echo "$as_me: error: cannot find input file: $f" >&2;}
24954 { (exit 1); exit 1; }; }
24955 # Do quote $f, to prevent DOS paths from being IFS'd.
24958 if test -f "$f"; then
24961 elif test -f "$srcdir/$f"; then
24966 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24967 echo "$as_me: error: cannot find input file: $f" >&2;}
24968 { (exit 1); exit 1; }; }
24971 done` || { (exit 1); exit 1; }
24972 # Remove the trailing spaces.
24973 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24977 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24978 # `conftest.undefs', that substitutes the proper values into
24979 # config.h.in to produce config.h. The first handles `#define'
24980 # templates, and the second `#undef' templates.
24981 # And first: Protect against being on the right side of a sed subst in
24982 # config.status. Protect against being in an unquoted here document
24983 # in config.status.
24984 rm -f conftest.defines conftest.undefs
24985 # Using a here document instead of a string reduces the quoting nightmare.
24986 # Putting comments in sed scripts is not portable.
24988 # `end' is used to avoid that the second main sed command (meant for
24989 # 0-ary CPP macros) applies to n-ary macro definitions.
24990 # See the Autoconf documentation for `clear'.
24991 cat >confdef2sed.sed <<\_ACEOF
24996 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24998 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25001 # If some macros were called several times there might be several times
25002 # the same #defines, which is useless. Nevertheless, we may not want to
25003 # sort them, since we want the *last* AC-DEFINE to be honored.
25004 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25005 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25006 rm -f confdef2sed.sed
25008 # This sed command replaces #undef with comments. This is necessary, for
25009 # example, in the case of _POSIX_SOURCE, which is predefined and required
25010 # on some systems where configure will not decide to define it.
25011 cat >>conftest.undefs <<\_ACEOF
25012 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25015 # Break up conftest.defines because some shells have a limit on the size
25016 # of here documents, and old seds have small limits too (100 cmds).
25017 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25018 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25019 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25020 echo ' :' >>$CONFIG_STATUS
25021 rm -f conftest.tail
25022 while grep . conftest.defines >/dev/null
25024 # Write a limited-size here document to $tmp/defines.sed.
25025 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25026 # Speed up: don't consider the non `#define' lines.
25027 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25028 # Work around the forget-to-reset-the-flag bug.
25029 echo 't clr' >>$CONFIG_STATUS
25030 echo ': clr' >>$CONFIG_STATUS
25031 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25033 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25035 mv $tmp/out $tmp/in
25037 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25038 rm -f conftest.defines
25039 mv conftest.tail conftest.defines
25041 rm -f conftest.defines
25042 echo ' fi # grep' >>$CONFIG_STATUS
25043 echo >>$CONFIG_STATUS
25045 # Break up conftest.undefs because some shells have a limit on the size
25046 # of here documents, and old seds have small limits too (100 cmds).
25047 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25048 rm -f conftest.tail
25049 while grep . conftest.undefs >/dev/null
25051 # Write a limited-size here document to $tmp/undefs.sed.
25052 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25053 # Speed up: don't consider the non `#undef'
25054 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25055 # Work around the forget-to-reset-the-flag bug.
25056 echo 't clr' >>$CONFIG_STATUS
25057 echo ': clr' >>$CONFIG_STATUS
25058 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25060 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25062 mv $tmp/out $tmp/in
25064 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25065 rm -f conftest.undefs
25066 mv conftest.tail conftest.undefs
25068 rm -f conftest.undefs
25070 cat >>$CONFIG_STATUS <<\_ACEOF
25071 # Let's still pretend it is `configure' which instantiates (i.e., don't
25072 # use $as_me), people would be surprised to read:
25073 # /* config.h. Generated by config.status. */
25074 if test x"$ac_file" = x-; then
25075 echo "/* Generated by configure. */" >$tmp/config.h
25077 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25079 cat $tmp/in >>$tmp/config.h
25081 if test x"$ac_file" != x-; then
25082 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25083 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25084 echo "$as_me: $ac_file is unchanged" >&6;}
25086 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25088 X"$ac_file" : 'X\(//\)[^/]' \| \
25089 X"$ac_file" : 'X\(//\)$' \| \
25090 X"$ac_file" : 'X\(/\)' \| \
25091 . : '\(.\)' 2>/dev/null ||
25093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25095 /^X\(\/\/\)$/{ s//\1/; q; }
25096 /^X\(\/\).*/{ s//\1/; q; }
25098 { if $as_mkdir_p; then
25103 while test ! -d "$as_dir"; do
25104 as_dirs="$as_dir $as_dirs"
25105 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25107 X"$as_dir" : 'X\(//\)[^/]' \| \
25108 X"$as_dir" : 'X\(//\)$' \| \
25109 X"$as_dir" : 'X\(/\)' \| \
25110 . : '\(.\)' 2>/dev/null ||
25112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25114 /^X\(\/\/\)$/{ s//\1/; q; }
25115 /^X\(\/\).*/{ s//\1/; q; }
25118 test ! -n "$as_dirs" || mkdir $as_dirs
25119 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25120 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25121 { (exit 1); exit 1; }; }; }
25124 mv $tmp/config.h $ac_file
25128 rm -f $tmp/config.h
25132 cat >>$CONFIG_STATUS <<\_ACEOF
25135 # CONFIG_LINKS section.
25138 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25139 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25140 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25142 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25143 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25145 if test ! -r $srcdir/$ac_source; then
25146 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25147 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25148 { (exit 1); exit 1; }; }
25152 # Make relative symlinks.
25153 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25154 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25155 X"$ac_dest" : 'X\(//\)[^/]' \| \
25156 X"$ac_dest" : 'X\(//\)$' \| \
25157 X"$ac_dest" : 'X\(/\)' \| \
25158 . : '\(.\)' 2>/dev/null ||
25160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25162 /^X\(\/\/\)$/{ s//\1/; q; }
25163 /^X\(\/\).*/{ s//\1/; q; }
25165 { if $as_mkdir_p; then
25166 mkdir -p "$ac_dest_dir"
25168 as_dir="$ac_dest_dir"
25170 while test ! -d "$as_dir"; do
25171 as_dirs="$as_dir $as_dirs"
25172 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25174 X"$as_dir" : 'X\(//\)[^/]' \| \
25175 X"$as_dir" : 'X\(//\)$' \| \
25176 X"$as_dir" : 'X\(/\)' \| \
25177 . : '\(.\)' 2>/dev/null ||
25179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25181 /^X\(\/\/\)$/{ s//\1/; q; }
25182 /^X\(\/\).*/{ s//\1/; q; }
25185 test ! -n "$as_dirs" || mkdir $as_dirs
25186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25187 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25188 { (exit 1); exit 1; }; }; }
25192 if test "$ac_dest_dir" != .; then
25193 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25194 # A "../" for each directory in $ac_dir_suffix.
25195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25197 ac_dir_suffix= ac_top_builddir=
25201 .) # No --srcdir option. We are building in place.
25203 if test -z "$ac_top_builddir"; then
25206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25208 [\\/]* | ?:[\\/]* ) # Absolute path.
25209 ac_srcdir=$srcdir$ac_dir_suffix;
25210 ac_top_srcdir=$srcdir ;;
25211 *) # Relative path.
25212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25213 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25216 # Do not use `cd foo && pwd` to compute absolute paths, because
25217 # the directories may not exist.
25219 .) ac_abs_builddir="$ac_dest_dir";;
25221 case "$ac_dest_dir" in
25222 .) ac_abs_builddir=`pwd`;;
25223 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25224 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25227 case $ac_abs_builddir in
25228 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25230 case ${ac_top_builddir}. in
25231 .) ac_abs_top_builddir=$ac_abs_builddir;;
25232 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25233 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25236 case $ac_abs_builddir in
25237 .) ac_abs_srcdir=$ac_srcdir;;
25240 .) ac_abs_srcdir=$ac_abs_builddir;;
25241 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25242 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25245 case $ac_abs_builddir in
25246 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25248 case $ac_top_srcdir in
25249 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25250 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25251 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25257 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25258 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25261 # Try a symlink, then a hard link, then a copy.
25262 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25263 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25264 cp -p $srcdir/$ac_source $ac_dest ||
25265 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25266 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25267 { (exit 1); exit 1; }; }
25270 cat >>$CONFIG_STATUS <<\_ACEOF
25273 # CONFIG_COMMANDS section.
25275 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25276 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25277 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25278 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25279 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25280 X"$ac_dest" : 'X\(//\)[^/]' \| \
25281 X"$ac_dest" : 'X\(//\)$' \| \
25282 X"$ac_dest" : 'X\(/\)' \| \
25283 . : '\(.\)' 2>/dev/null ||
25285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25287 /^X\(\/\/\)$/{ s//\1/; q; }
25288 /^X\(\/\).*/{ s//\1/; q; }
25290 { if $as_mkdir_p; then
25295 while test ! -d "$as_dir"; do
25296 as_dirs="$as_dir $as_dirs"
25297 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25299 X"$as_dir" : 'X\(//\)[^/]' \| \
25300 X"$as_dir" : 'X\(//\)$' \| \
25301 X"$as_dir" : 'X\(/\)' \| \
25302 . : '\(.\)' 2>/dev/null ||
25304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25306 /^X\(\/\/\)$/{ s//\1/; q; }
25307 /^X\(\/\).*/{ s//\1/; q; }
25310 test ! -n "$as_dirs" || mkdir $as_dirs
25311 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25312 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25313 { (exit 1); exit 1; }; }; }
25317 if test "$ac_dir" != .; then
25318 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25319 # A "../" for each directory in $ac_dir_suffix.
25320 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25322 ac_dir_suffix= ac_top_builddir=
25326 .) # No --srcdir option. We are building in place.
25328 if test -z "$ac_top_builddir"; then
25331 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25333 [\\/]* | ?:[\\/]* ) # Absolute path.
25334 ac_srcdir=$srcdir$ac_dir_suffix;
25335 ac_top_srcdir=$srcdir ;;
25336 *) # Relative path.
25337 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25338 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25341 # Do not use `cd foo && pwd` to compute absolute paths, because
25342 # the directories may not exist.
25344 .) ac_abs_builddir="$ac_dir";;
25347 .) ac_abs_builddir=`pwd`;;
25348 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25349 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25352 case $ac_abs_builddir in
25353 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25355 case ${ac_top_builddir}. in
25356 .) ac_abs_top_builddir=$ac_abs_builddir;;
25357 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25358 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25361 case $ac_abs_builddir in
25362 .) ac_abs_srcdir=$ac_srcdir;;
25365 .) ac_abs_srcdir=$ac_abs_builddir;;
25366 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25367 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25370 case $ac_abs_builddir in
25371 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25373 case $ac_top_srcdir in
25374 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25375 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25376 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25381 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25382 echo "$as_me: executing $ac_dest commands" >&6;}
25384 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25385 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25386 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25387 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25388 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25389 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25390 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25391 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25392 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25393 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25394 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25395 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25396 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25397 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25398 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25399 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25400 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25401 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25402 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25403 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25404 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25405 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25406 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25407 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25408 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25409 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25410 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25411 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
25412 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
25413 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
25414 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25415 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25416 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
25417 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
25418 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
25419 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
25420 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
25421 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
25422 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
25423 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
25424 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
25425 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
25426 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
25427 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
25428 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
25429 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25430 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25431 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
25432 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25433 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25434 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25439 cat >>$CONFIG_STATUS <<\_ACEOF
25441 { (exit 0); exit 0; }
25443 chmod +x $CONFIG_STATUS
25444 ac_clean_files=$ac_clean_files_save
25447 # configure is writing to config.log, and then calls config.status.
25448 # config.status does its own redirection, appending to config.log.
25449 # Unfortunately, on DOS this fails, as config.log is still kept open
25450 # by configure, so config.status won't be able to write to it; its
25451 # output is simply discarded. So we exec the FD to /dev/null,
25452 # effectively closing config.log, so it can be properly (re)opened and
25453 # appended to by config.status. When coming back to configure, we
25454 # need to make the FD available again.
25455 if test "$no_create" != yes; then
25457 ac_config_status_args=
25458 test "$silent" = yes &&
25459 ac_config_status_args="$ac_config_status_args --quiet"
25461 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25464 # would make configure fail if this is the last instruction.
25465 $ac_cs_success || { (exit 1); exit 1; }
25469 # CONFIG_SUBDIRS section.
25471 if test "$no_recursion" != yes; then
25473 # Remove --cache-file and --srcdir arguments so they do not pile up.
25474 ac_sub_configure_args=
25476 for ac_arg in $ac_configure_args; do
25477 if test -n "$ac_prev"; then
25482 -cache-file | --cache-file | --cache-fil | --cache-fi \
25483 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25484 ac_prev=cache_file ;;
25485 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25486 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25489 --config-cache | -C)
25491 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25493 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25495 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25497 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25499 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25503 # Always prepend --prefix to ensure using the same prefix
25504 # in subdir configurations.
25505 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25508 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25510 # Do not complain, so a configure script can configure whichever
25511 # parts of a large source tree are present.
25512 test -d $srcdir/$ac_dir || continue
25514 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25515 echo "$as_me: configuring in $ac_dir" >&6;}
25516 { if $as_mkdir_p; then
25521 while test ! -d "$as_dir"; do
25522 as_dirs="$as_dir $as_dirs"
25523 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25525 X"$as_dir" : 'X\(//\)[^/]' \| \
25526 X"$as_dir" : 'X\(//\)$' \| \
25527 X"$as_dir" : 'X\(/\)' \| \
25528 . : '\(.\)' 2>/dev/null ||
25530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25532 /^X\(\/\/\)$/{ s//\1/; q; }
25533 /^X\(\/\).*/{ s//\1/; q; }
25536 test ! -n "$as_dirs" || mkdir $as_dirs
25537 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25538 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25539 { (exit 1); exit 1; }; }; }
25543 if test "$ac_dir" != .; then
25544 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25545 # A "../" for each directory in $ac_dir_suffix.
25546 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25548 ac_dir_suffix= ac_top_builddir=
25552 .) # No --srcdir option. We are building in place.
25554 if test -z "$ac_top_builddir"; then
25557 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25559 [\\/]* | ?:[\\/]* ) # Absolute path.
25560 ac_srcdir=$srcdir$ac_dir_suffix;
25561 ac_top_srcdir=$srcdir ;;
25562 *) # Relative path.
25563 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25564 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25567 # Do not use `cd foo && pwd` to compute absolute paths, because
25568 # the directories may not exist.
25570 .) ac_abs_builddir="$ac_dir";;
25573 .) ac_abs_builddir=`pwd`;;
25574 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25575 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25578 case $ac_abs_builddir in
25579 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25581 case ${ac_top_builddir}. in
25582 .) ac_abs_top_builddir=$ac_abs_builddir;;
25583 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25584 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25587 case $ac_abs_builddir in
25588 .) ac_abs_srcdir=$ac_srcdir;;
25591 .) ac_abs_srcdir=$ac_abs_builddir;;
25592 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25593 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25596 case $ac_abs_builddir in
25597 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25599 case $ac_top_srcdir in
25600 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25601 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25602 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25609 # Check for guested configure; otherwise get Cygnus style configure.
25610 if test -f $ac_srcdir/configure.gnu; then
25611 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25612 elif test -f $ac_srcdir/configure; then
25613 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25614 elif test -f $ac_srcdir/configure.in; then
25615 ac_sub_configure=$ac_configure
25617 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25618 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25622 # The recursion is here.
25623 if test -n "$ac_sub_configure"; then
25624 # Make the cache file name correct relative to the subdirectory.
25625 case $cache_file in
25626 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25627 *) # Relative path.
25628 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25631 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25632 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25633 # The eval makes quoting arguments work.
25634 eval $ac_sub_configure $ac_sub_configure_args \
25635 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25636 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25637 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25638 { (exit 1); exit 1; }; }
25646 if test $llvmgccwarn = yes
25648 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25649 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25650 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25651 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25652 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25653 echo "$as_me: WARNING: ***** " >&2;}
25654 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25655 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25656 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25657 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25658 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25659 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}