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 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1898 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1905 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1907 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1929 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1938 sparc*-*) ARCH=Sparc
1941 powerpc*-*) ARCH=PowerPC
1950 ac_cpp='$CXXCPP $CPPFLAGS'
1951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CXX+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test -n "$CXX"; then
1965 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test -n "$CXX"; then
1985 echo "$as_me:$LINENO: result: $CXX" >&5
1986 echo "${ECHO_T}$CXX" >&6
1988 echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1992 test -n "$CXX" && break
1995 if test -z "$CXX"; then
1997 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$ac_ct_CXX"; then
2007 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_CXX="$ac_prog"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2026 if test -n "$ac_ct_CXX"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2028 echo "${ECHO_T}$ac_ct_CXX" >&6
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2034 test -n "$ac_ct_CXX" && break
2036 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2042 # Provide some information about the compiler.
2043 echo "$as_me:$LINENO:" \
2044 "checking for C++ compiler version" >&5
2045 ac_compiler=`set X $ac_compile; echo $2`
2046 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2047 (eval $ac_compiler --version </dev/null >&5) 2>&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }
2051 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2052 (eval $ac_compiler -v </dev/null >&5) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }
2056 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2057 (eval $ac_compiler -V </dev/null >&5) 2>&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }
2062 cat >conftest.$ac_ext <<_ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h. */
2077 ac_clean_files_save=$ac_clean_files
2078 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2079 # Try to create an executable without -o first, disregard a.out.
2080 # It will help us diagnose broken compilers, and finding out an intuition
2082 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2083 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2084 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2085 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2086 (eval $ac_link_default) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; then
2090 # Find the output, starting from the most likely. This scheme is
2091 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2094 # Be careful to initialize this variable, since it used to be cached.
2095 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2097 # b.out is created by i960 compilers.
2098 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2100 test -f "$ac_file" || continue
2102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2105 # This is the source file.
2108 # We found the default executable, but exeext='' is most
2112 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2113 # FIXME: I believe we export ac_cv_exeext for Libtool,
2114 # but it would be cool to find out if it's true. Does anybody
2115 # maintain Libtool? --akim.
2123 echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2126 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2127 See \`config.log' for more details." >&5
2128 echo "$as_me: error: C++ compiler cannot create executables
2129 See \`config.log' for more details." >&2;}
2130 { (exit 77); exit 77; }; }
2133 ac_exeext=$ac_cv_exeext
2134 echo "$as_me:$LINENO: result: $ac_file" >&5
2135 echo "${ECHO_T}$ac_file" >&6
2137 # Check the compiler produces executables we can run. If not, either
2138 # the compiler is broken, or we cross compile.
2139 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2140 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2141 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2142 # If not cross compiling, check that we can run a simple program.
2143 if test "$cross_compiling" != yes; then
2144 if { ac_try='./$ac_file'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; }; then
2152 if test "$cross_compiling" = maybe; then
2155 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2156 If you meant to cross compile, use \`--host'.
2157 See \`config.log' for more details." >&5
2158 echo "$as_me: error: cannot run C++ compiled programs.
2159 If you meant to cross compile, use \`--host'.
2160 See \`config.log' for more details." >&2;}
2161 { (exit 1); exit 1; }; }
2165 echo "$as_me:$LINENO: result: yes" >&5
2166 echo "${ECHO_T}yes" >&6
2168 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2169 ac_clean_files=$ac_clean_files_save
2170 # Check the compiler produces executables we can run. If not, either
2171 # the compiler is broken, or we cross compile.
2172 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2173 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2174 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2175 echo "${ECHO_T}$cross_compiling" >&6
2177 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2178 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2180 (eval $ac_link) 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; then
2184 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2185 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2186 # work properly (i.e., refer to `conftest.exe'), while it won't with
2188 for ac_file in conftest.exe conftest conftest.*; do
2189 test -f "$ac_file" || continue
2191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2192 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2199 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2202 See \`config.log' for more details." >&2;}
2203 { (exit 1); exit 1; }; }
2206 rm -f conftest$ac_cv_exeext
2207 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2208 echo "${ECHO_T}$ac_cv_exeext" >&6
2210 rm -f conftest.$ac_ext
2211 EXEEXT=$ac_cv_exeext
2213 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2214 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2215 if test "${ac_cv_objext+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 cat >conftest.$ac_ext <<_ACEOF
2221 cat confdefs.h >>conftest.$ac_ext
2222 cat >>conftest.$ac_ext <<_ACEOF
2223 /* end confdefs.h. */
2233 rm -f conftest.o conftest.obj
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; then
2239 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2242 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2257 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2259 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2260 echo "${ECHO_T}$ac_cv_objext" >&6
2261 OBJEXT=$ac_cv_objext
2263 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2264 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2265 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 cat >conftest.$ac_ext <<_ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h. */
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2290 grep -v '^ *+' conftest.er1 >conftest.err
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_cxx_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2316 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2319 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2320 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2321 GXX=`test $ac_compiler_gnu = yes && echo yes`
2322 ac_test_CXXFLAGS=${CXXFLAGS+set}
2323 ac_save_CXXFLAGS=$CXXFLAGS
2325 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2326 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2327 if test "${ac_cv_prog_cxx_g+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 cat >conftest.$ac_ext <<_ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2349 grep -v '^ *+' conftest.er1 >conftest.err
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -z "$ac_cxx_werror_flag"
2355 || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_cv_prog_cxx_g=yes
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2376 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2377 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2378 if test "$ac_test_CXXFLAGS" = set; then
2379 CXXFLAGS=$ac_save_CXXFLAGS
2380 elif test $ac_cv_prog_cxx_g = yes; then
2381 if test "$GXX" = yes; then
2387 if test "$GXX" = yes; then
2393 for ac_declaration in \
2395 'extern "C" void std::exit (int) throw (); using std::exit;' \
2396 'extern "C" void std::exit (int); using std::exit;' \
2397 'extern "C" void exit (int) throw ();' \
2398 'extern "C" void exit (int);' \
2401 cat >conftest.$ac_ext <<_ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2417 rm -f conftest.$ac_objext
2418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419 (eval $ac_compile) 2>conftest.er1
2421 grep -v '^ *+' conftest.er1 >conftest.err
2423 cat conftest.err >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } &&
2426 { ac_try='test -z "$ac_cxx_werror_flag"
2427 || test ! -s conftest.err'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 cat >conftest.$ac_ext <<_ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_cxx_werror_flag"
2472 || test ! -s conftest.err'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; } &&
2478 { ac_try='test -s conftest.$ac_objext'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493 if test -n "$ac_declaration"; then
2494 echo '#ifdef __cplusplus' >>confdefs.h
2495 echo $ac_declaration >>confdefs.h
2496 echo '#endif' >>confdefs.h
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515 echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 if test -n "$CC"; then
2541 echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6
2544 echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2548 test -n "$CC" && break
2551 if test -z "$CC"; then
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$ac_ct_CC"; then
2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572 ac_cv_prog_ac_ct_CC="$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2582 if test -n "$ac_ct_CC"; then
2583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2584 echo "${ECHO_T}$ac_ct_CC" >&6
2586 echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6
2590 test -n "$ac_ct_CC" && break
2597 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2598 See \`config.log' for more details." >&5
2599 echo "$as_me: error: no acceptable C compiler found in \$PATH
2600 See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2603 # Provide some information about the compiler.
2604 echo "$as_me:$LINENO:" \
2605 "checking for C compiler version" >&5
2606 ac_compiler=`set X $ac_compile; echo $2`
2607 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2608 (eval $ac_compiler --version </dev/null >&5) 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2613 (eval $ac_compiler -v </dev/null >&5) 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2618 (eval $ac_compiler -V </dev/null >&5) 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2623 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2650 grep -v '^ *+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2679 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2680 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2681 GCC=`test $ac_compiler_gnu = yes && echo yes`
2682 ac_test_CFLAGS=${CFLAGS+set}
2683 ac_save_CFLAGS=$CFLAGS
2685 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2686 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2687 if test "${ac_cv_prog_cc_g+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 cat >conftest.$ac_ext <<_ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag"
2715 || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2737 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2738 if test "$ac_test_CFLAGS" = set; then
2739 CFLAGS=$ac_save_CFLAGS
2740 elif test $ac_cv_prog_cc_g = yes; then
2741 if test "$GCC" = yes; then
2747 if test "$GCC" = yes; then
2753 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2754 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2755 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 ac_cv_prog_cc_stdc=no
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2768 #include <sys/types.h>
2769 #include <sys/stat.h>
2770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2771 struct buf { int x; };
2772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2773 static char *e (p, i)
2779 static char *f (char * (*g) (char **, int), char **p, ...)
2784 s = g (p, va_arg (v,int));
2789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2790 function prototypes and stuff, but not '\xHH' hex character constants.
2791 These don't provoke an error unfortunately, instead are silently treated
2792 as 'x'. The following induces an error, until -std1 is added to get
2793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2794 array size at least. It's necessary to write '\x00'==0 to get something
2795 that's true only with -std1. */
2796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2798 int test (int i, double x);
2799 struct s1 {int (*f) (int a);};
2800 struct s2 {int (*f) (double a);};
2801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2812 # Don't try gcc -ansi; that turns off useful extensions and
2813 # breaks some systems' header files.
2814 # AIX -qlanglvl=ansi
2815 # Ultrix and OSF/1 -std1
2816 # HP-UX 10.20 and later -Ae
2817 # HP-UX older versions -Aa -D_HPUX_SOURCE
2818 # SVR4 -Xc -D__EXTENSIONS__
2819 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2821 CC="$ac_save_CC $ac_arg"
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2826 grep -v '^ *+' conftest.er1 >conftest.err
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_c_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 ac_cv_prog_cc_stdc=$ac_arg
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2851 rm -f conftest.err conftest.$ac_objext
2853 rm -f conftest.$ac_ext conftest.$ac_objext
2858 case "x$ac_cv_prog_cc_stdc" in
2860 echo "$as_me:$LINENO: result: none needed" >&5
2861 echo "${ECHO_T}none needed" >&6 ;;
2863 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2864 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2865 CC="$CC $ac_cv_prog_cc_stdc" ;;
2868 # Some people use a C++ compiler to compile C. Since we use `exit',
2869 # in C++ we need to declare it. In case someone uses the same compiler
2870 # for both compiling C and C++ we need to have the C++ compiler decide
2871 # the declaration of exit, since it's the most demanding environment.
2872 cat >conftest.$ac_ext <<_ACEOF
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879 (eval $ac_compile) 2>conftest.er1
2881 grep -v '^ *+' conftest.er1 >conftest.err
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
2886 { ac_try='test -z "$ac_c_werror_flag"
2887 || test ! -s conftest.err'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 for ac_declaration in \
2901 'extern "C" void std::exit (int) throw (); using std::exit;' \
2902 'extern "C" void std::exit (int); using std::exit;' \
2903 'extern "C" void exit (int) throw ();' \
2904 'extern "C" void exit (int);' \
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2923 rm -f conftest.$ac_objext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2925 (eval $ac_compile) 2>conftest.er1
2927 grep -v '^ *+' conftest.er1 >conftest.err
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try='test -z "$ac_c_werror_flag"
2933 || test ! -s conftest.err'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; } &&
2939 { ac_try='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953 cat >conftest.$ac_ext <<_ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2968 rm -f conftest.$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970 (eval $ac_compile) 2>conftest.er1
2972 grep -v '^ *+' conftest.er1 >conftest.err
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -z "$ac_c_werror_flag"
2978 || test ! -s conftest.err'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2999 if test -n "$ac_declaration"; then
3000 echo '#ifdef __cplusplus' >>confdefs.h
3001 echo $ac_declaration >>confdefs.h
3002 echo '#endif' >>confdefs.h
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3023 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3024 # On Suns, sometimes $CPP names a directory.
3025 if test -n "$CPP" && test -d "$CPP"; then
3028 if test -z "$CPP"; then
3029 if test "${ac_cv_prog_CPP+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 # Double quotes because CPP needs to be expanded
3033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3036 for ac_c_preproc_warn_flag in '' yes
3038 # Use a header file that comes with gcc, so configuring glibc
3039 # with a fresh cross-compiler works.
3040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3041 # <limits.h> exists even on freestanding compilers.
3042 # On the NeXT, cc -E runs the code through the compiler's parser,
3043 # not just through cpp. "Syntax error" is here to catch this case.
3044 cat >conftest.$ac_ext <<_ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3051 # include <limits.h>
3053 # include <assert.h>
3057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } >/dev/null; then
3065 if test -s conftest.err; then
3066 ac_cpp_err=$ac_c_preproc_warn_flag
3067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3074 if test -z "$ac_cpp_err"; then
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 # Broken: fails on valid input.
3083 rm -f conftest.err conftest.$ac_ext
3085 # OK, works on sane cases. Now check whether non-existent headers
3086 # can be detected and how.
3087 cat >conftest.$ac_ext <<_ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3093 #include <ac_nonexistent.h>
3095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null; then
3103 if test -s conftest.err; then
3104 ac_cpp_err=$ac_c_preproc_warn_flag
3105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3112 if test -z "$ac_cpp_err"; then
3113 # Broken: success on invalid input.
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 # Passes both tests.
3123 rm -f conftest.err conftest.$ac_ext
3126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127 rm -f conftest.err conftest.$ac_ext
3128 if $ac_preproc_ok; then
3140 echo "$as_me:$LINENO: result: $CPP" >&5
3141 echo "${ECHO_T}$CPP" >&6
3143 for ac_c_preproc_warn_flag in '' yes
3145 # Use a header file that comes with gcc, so configuring glibc
3146 # with a fresh cross-compiler works.
3147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148 # <limits.h> exists even on freestanding compilers.
3149 # On the NeXT, cc -E runs the code through the compiler's parser,
3150 # not just through cpp. "Syntax error" is here to catch this case.
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3158 # include <limits.h>
3160 # include <assert.h>
3164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3167 grep -v '^ *+' conftest.er1 >conftest.err
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } >/dev/null; then
3172 if test -s conftest.err; then
3173 ac_cpp_err=$ac_c_preproc_warn_flag
3174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3181 if test -z "$ac_cpp_err"; then
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 # Broken: fails on valid input.
3190 rm -f conftest.err conftest.$ac_ext
3192 # OK, works on sane cases. Now check whether non-existent headers
3193 # can be detected and how.
3194 cat >conftest.$ac_ext <<_ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3200 #include <ac_nonexistent.h>
3202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } >/dev/null; then
3210 if test -s conftest.err; then
3211 ac_cpp_err=$ac_c_preproc_warn_flag
3212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3219 if test -z "$ac_cpp_err"; then
3220 # Broken: success on invalid input.
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 # Passes both tests.
3230 rm -f conftest.err conftest.$ac_ext
3233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3234 rm -f conftest.err conftest.$ac_ext
3235 if $ac_preproc_ok; then
3238 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3239 See \`config.log' for more details." >&5
3240 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3241 See \`config.log' for more details." >&2;}
3242 { (exit 1); exit 1; }; }
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 if test "$GCC" != "yes"
3254 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3255 echo "$as_me: error: gcc required but not found" >&2;}
3256 { (exit 1); exit 1; }; }
3258 if test "$GXX" != "yes"
3260 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3261 echo "$as_me: error: g++ required but not found" >&2;}
3262 { (exit 1); exit 1; }; }
3265 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3266 if test "$gccmajor" -lt "3"
3268 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3269 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3270 { (exit 1); exit 1; }; }
3273 echo "$as_me:$LINENO: checking for GNU make" >&5
3274 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3275 if test "${_cv_gnu_make_command+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 _cv_gnu_make_command='' ;
3279 for a in "$MAKE" make gmake gnumake ; do
3280 if test -z "$a" ; then continue ; fi ;
3281 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3282 _cv_gnu_make_command=$a ;
3288 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3289 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3290 if test "x$_cv_gnu_make_command" != "x" ; then
3294 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3295 echo "${ECHO_T}\"Not found\"" >&6;
3299 if test -z "$_cv_gnu_make_command"
3301 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3302 echo "$as_me: error: GNU Make required but not found" >&2;}
3303 { (exit 1); exit 1; }; }
3307 echo "$as_me:$LINENO: checking " >&5
3308 echo $ECHO_N "checking ... $ECHO_C" >&6
3309 if test "${ac_cv_has_flex+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 for ac_prog in flex lex
3314 # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_LEX+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -n "$LEX"; then
3322 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_LEX="$ac_prog"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 if test -n "$LEX"; then
3342 echo "$as_me:$LINENO: result: $LEX" >&5
3343 echo "${ECHO_T}$LEX" >&6
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 test -n "$LEX" && break
3351 test -n "$LEX" || LEX=":"
3353 if test -z "$LEXLIB"
3355 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3356 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3357 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 ac_check_lib_save_LIBS=$LIBS
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3369 /* Override any gcc2 internal prototype to avoid an error. */
3373 /* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
3384 rm -f conftest.$ac_objext conftest$ac_exeext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3386 (eval $ac_link) 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest$ac_exeext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_cv_lib_fl_yywrap=yes
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 ac_cv_lib_fl_yywrap=no
3413 rm -f conftest.err conftest.$ac_objext \
3414 conftest$ac_exeext conftest.$ac_ext
3415 LIBS=$ac_check_lib_save_LIBS
3417 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3418 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3419 if test $ac_cv_lib_fl_yywrap = yes; then
3422 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3423 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3424 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_check_lib_save_LIBS=$LIBS
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3436 /* Override any gcc2 internal prototype to avoid an error. */
3440 /* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3451 rm -f conftest.$ac_objext conftest$ac_exeext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453 (eval $ac_link) 2>conftest.er1
3455 grep -v '^ *+' conftest.er1 >conftest.err
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_c_werror_flag"
3461 || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest$ac_exeext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_lib_l_yywrap=yes
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 ac_cv_lib_l_yywrap=no
3480 rm -f conftest.err conftest.$ac_objext \
3481 conftest$ac_exeext conftest.$ac_ext
3482 LIBS=$ac_check_lib_save_LIBS
3484 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3485 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3486 if test $ac_cv_lib_l_yywrap = yes; then
3494 if test "x$LEX" != "x:"; then
3495 echo "$as_me:$LINENO: checking lex output file root" >&5
3496 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3497 if test "${ac_cv_prog_lex_root+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 # The minimal lex program is just a single line: %%. But some broken lexes
3501 # (Solaris, I think it was) want two %% lines, so accommodate them.
3502 cat >conftest.l <<_ACEOF
3506 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3507 (eval $LEX conftest.l) 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }
3511 if test -f lex.yy.c; then
3512 ac_cv_prog_lex_root=lex.yy
3513 elif test -f lexyy.c; then
3514 ac_cv_prog_lex_root=lexyy
3516 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3517 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3518 { (exit 1); exit 1; }; }
3521 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3522 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3524 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3526 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3527 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3528 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 # POSIX says lex can declare yytext either as a pointer or an array; the
3532 # default is implementation-dependent. Figure out which it is, since
3533 # not all implementations provide the %pointer and %array declarations.
3534 ac_cv_prog_lex_yytext_pointer=no
3535 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3537 LIBS="$LIBS $LEXLIB"
3538 cat >conftest.$ac_ext <<_ACEOF
3539 `cat $LEX_OUTPUT_ROOT.c`
3541 rm -f conftest.$ac_objext conftest$ac_exeext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3543 (eval $ac_link) 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try='test -z "$ac_c_werror_flag"
3551 || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest$ac_exeext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_cv_prog_lex_yytext_pointer=yes
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3569 rm -f conftest.err conftest.$ac_objext \
3570 conftest$ac_exeext conftest.$ac_ext
3572 rm -f "${LEX_OUTPUT_ROOT}.c"
3575 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3576 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3577 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3579 cat >>confdefs.h <<\_ACEOF
3580 #define YYTEXT_POINTER 1
3588 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3589 echo "${ECHO_T}$ac_cv_has_flex" >&6
3590 if test "$LEX" != "flex"; then
3591 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3592 echo "$as_me: error: flex not found but required" >&2;}
3593 { (exit 1); exit 1; }; }
3596 echo "$as_me:$LINENO: checking " >&5
3597 echo $ECHO_N "checking ... $ECHO_C" >&6
3598 if test "${ac_cv_has_bison+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 for ac_prog in 'bison -y' byacc
3603 # Extract the first word of "$ac_prog", so it can be a program name with args.
3604 set dummy $ac_prog; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_YACC+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 if test -n "$YACC"; then
3611 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_YACC="$ac_prog"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 YACC=$ac_cv_prog_YACC
3630 if test -n "$YACC"; then
3631 echo "$as_me:$LINENO: result: $YACC" >&5
3632 echo "${ECHO_T}$YACC" >&6
3634 echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3638 test -n "$YACC" && break
3640 test -n "$YACC" || YACC="yacc"
3644 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3645 echo "${ECHO_T}$ac_cv_has_bison" >&6
3646 if test "$YACC" != "bison -y"; then
3647 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3648 echo "$as_me: error: bison not found but required" >&2;}
3649 { (exit 1); exit 1; }; }
3655 # Check whether --enable-shared or --disable-shared was given.
3656 if test "${enable_shared+set}" = set; then
3657 enableval="$enable_shared"
3658 p=${PACKAGE-default}
3660 yes) enable_shared=yes ;;
3661 no) enable_shared=no ;;
3664 # Look at the argument we got. We use all the common list separators.
3665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3666 for pkg in $enableval; do
3668 if test "X$pkg" = "X$p"; then
3679 # Check whether --enable-static or --disable-static was given.
3680 if test "${enable_static+set}" = set; then
3681 enableval="$enable_static"
3682 p=${PACKAGE-default}
3684 yes) enable_static=yes ;;
3685 no) enable_static=no ;;
3688 # Look at the argument we got. We use all the common list separators.
3689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3690 for pkg in $enableval; do
3692 if test "X$pkg" = "X$p"; then
3703 # Check whether --enable-fast-install or --disable-fast-install was given.
3704 if test "${enable_fast_install+set}" = set; then
3705 enableval="$enable_fast_install"
3706 p=${PACKAGE-default}
3708 yes) enable_fast_install=yes ;;
3709 no) enable_fast_install=no ;;
3711 enable_fast_install=no
3712 # Look at the argument we got. We use all the common list separators.
3713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3714 for pkg in $enableval; do
3716 if test "X$pkg" = "X$p"; then
3717 enable_fast_install=yes
3724 enable_fast_install=yes
3727 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3728 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3729 if test "${lt_cv_path_SED+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 # Loop through the user's path and test for sed and gsed.
3733 # Then use that list of sed's as ones to test for truncation.
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 test -z "$as_dir" && as_dir=.
3739 for lt_ac_prog in sed gsed; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3742 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3749 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3750 # along with /bin/sed that truncates output.
3751 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3752 test ! -f $lt_ac_sed && break
3753 cat /dev/null > conftest.in
3755 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3756 # Check for GNU sed and select it if it is found.
3757 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3758 lt_cv_path_SED=$lt_ac_sed
3762 cat conftest.in conftest.in >conftest.tmp
3763 mv conftest.tmp conftest.in
3764 cp conftest.in conftest.nl
3766 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3767 cmp -s conftest.out conftest.nl || break
3768 # 10000 chars as input seems more than enough
3769 test $lt_ac_count -gt 10 && break
3770 lt_ac_count=`expr $lt_ac_count + 1`
3771 if test $lt_ac_count -gt $lt_ac_max; then
3772 lt_ac_max=$lt_ac_count
3773 lt_cv_path_SED=$lt_ac_sed
3781 echo "$as_me:$LINENO: result: $SED" >&5
3782 echo "${ECHO_T}$SED" >&6
3784 echo "$as_me:$LINENO: checking for egrep" >&5
3785 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3786 if test "${ac_cv_prog_egrep+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3790 then ac_cv_prog_egrep='grep -E'
3791 else ac_cv_prog_egrep='egrep'
3794 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3795 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3796 EGREP=$ac_cv_prog_egrep
3800 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3801 if test "${with_gnu_ld+set}" = set; then
3802 withval="$with_gnu_ld"
3803 test "$withval" = no || with_gnu_ld=yes
3808 if test "$GCC" = yes; then
3809 # Check if gcc -print-prog-name=ld gives a path.
3810 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3811 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3814 # gcc leaves a trailing carriage return which upsets mingw
3815 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3817 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3820 # Accept absolute paths.
3822 re_direlt='/[^/][^/]*/\.\./'
3823 # Canonicalize the path of ld
3824 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3825 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3826 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3828 test -z "$LD" && LD="$ac_prog"
3831 # If it fails, then pretend we aren't using GCC.
3835 # If it is relative, then search for the first ld in PATH.
3839 elif test "$with_gnu_ld" = yes; then
3840 echo "$as_me:$LINENO: checking for GNU ld" >&5
3841 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3843 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3844 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3846 if test "${lt_cv_path_LD+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 if test -z "$LD"; then
3850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3851 for ac_dir in $PATH; do
3853 test -z "$ac_dir" && ac_dir=.
3854 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3855 lt_cv_path_LD="$ac_dir/$ac_prog"
3856 # Check to see if the program is GNU ld. I'd rather use --version,
3857 # but apparently some GNU ld's only accept -v.
3858 # Break only if it was the GNU/non-GNU ld that we prefer.
3859 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3860 *GNU* | *'with BFD'*)
3861 test "$with_gnu_ld" != no && break
3864 test "$with_gnu_ld" != yes && break
3871 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3876 if test -n "$LD"; then
3877 echo "$as_me:$LINENO: result: $LD" >&5
3878 echo "${ECHO_T}$LD" >&6
3880 echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3883 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3884 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3885 { (exit 1); exit 1; }; }
3886 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3887 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3888 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3892 case `"$LD" -v 2>&1 </dev/null` in
3893 *GNU* | *'with BFD'*)
3894 lt_cv_prog_gnu_ld=yes
3897 lt_cv_prog_gnu_ld=no
3901 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3902 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3903 with_gnu_ld=$lt_cv_prog_gnu_ld
3906 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3907 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3908 if test "${lt_cv_ld_reload_flag+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 lt_cv_ld_reload_flag='-r'
3913 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3914 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3915 reload_flag=$lt_cv_ld_reload_flag
3916 case $reload_flag in
3918 *) reload_flag=" $reload_flag" ;;
3920 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3922 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3923 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3924 if test "${lt_cv_path_NM+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$NM"; then
3928 # Let the user override the test.
3931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3932 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3934 test -z "$ac_dir" && ac_dir=.
3935 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3936 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3937 # Check to see if the nm accepts a BSD-compat flag.
3938 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3939 # nm: unknown option "B" ignored
3940 # Tru64's nm complains that /dev/null is an invalid object file
3941 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3942 */dev/null* | *'Invalid file or object type'*)
3943 lt_cv_path_NM="$tmp_nm -B"
3947 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3949 lt_cv_path_NM="$tmp_nm -p"
3953 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3954 continue # so that we can try to find one that supports BSD flags
3961 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3964 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3965 echo "${ECHO_T}$lt_cv_path_NM" >&6
3968 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3969 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3971 if test "$LN_S" = "ln -s"; then
3972 echo "$as_me:$LINENO: result: yes" >&5
3973 echo "${ECHO_T}yes" >&6
3975 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3976 echo "${ECHO_T}no, using $LN_S" >&6
3979 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3980 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3981 if test "${lt_cv_deplibs_check_method+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 lt_cv_file_magic_cmd='$MAGIC_CMD'
3985 lt_cv_file_magic_test_file=
3986 lt_cv_deplibs_check_method='unknown'
3987 # Need to set the preceding variable on all platforms that support
3988 # interlibrary dependencies.
3989 # 'none' -- dependencies not supported.
3990 # `unknown' -- same as none, but documents that we really don't know.
3991 # 'pass_all' -- all dependencies passed with no checks.
3992 # 'test_compile' -- check by making test program.
3993 # 'file_magic [[regex]]' -- check by looking for files in library path
3994 # which responds to the $file_magic_cmd with a given extended regex.
3995 # If you have `file' or equivalent on your system and you're not sure
3996 # whether `pass_all' will *always* work, you probably want this one.
4000 lt_cv_deplibs_check_method=pass_all
4004 lt_cv_deplibs_check_method=pass_all
4008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4009 lt_cv_file_magic_cmd='/usr/bin/file -L'
4010 lt_cv_file_magic_test_file=/shlib/libc.so
4013 cygwin* | mingw* | pw32*)
4014 # win32_libid is a shell function defined in ltmain.sh
4015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4016 lt_cv_file_magic_cmd='win32_libid'
4019 darwin* | rhapsody*)
4020 # this will be overwritten by pass_all, but leave it in just in case
4021 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4022 lt_cv_file_magic_cmd='/usr/bin/file -L'
4024 rhapsody* | darwin1.[012])
4025 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4028 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4031 lt_cv_deplibs_check_method=pass_all
4035 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4038 # Not sure whether the presence of OpenBSD here was a mistake.
4039 # Let's accept both of them until this is cleared up.
4040 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4041 lt_cv_file_magic_cmd=/usr/bin/file
4042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4046 lt_cv_deplibs_check_method=pass_all
4051 lt_cv_deplibs_check_method=pass_all
4054 hpux10.20* | hpux11*)
4055 lt_cv_file_magic_cmd=/usr/bin/file
4058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4059 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4062 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]'
4063 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4067 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4072 irix5* | irix6* | nonstopux*)
4074 irix5* | nonstopux*)
4075 # this will be overridden with pass_all, but let us keep it just in case
4076 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4080 *-32|*"-32 ") libmagic=32-bit;;
4081 *-n32|*"-n32 ") libmagic=N32;;
4082 *-64|*"-64 ") libmagic=64-bit;;
4083 *) libmagic=never-match;;
4085 # this will be overridden with pass_all, but let us keep it just in case
4086 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4089 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4090 lt_cv_deplibs_check_method=pass_all
4093 # This must be Linux ELF.
4096 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4097 lt_cv_deplibs_check_method=pass_all ;;
4099 # glibc up to 2.1.1 does not perform some relocations on ARM
4100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4102 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4106 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4115 lt_cv_file_magic_cmd=/usr/bin/file
4116 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4120 lt_cv_deplibs_check_method=unknown
4124 lt_cv_file_magic_cmd=/usr/bin/file
4125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4129 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4133 osf3* | osf4* | osf5*)
4134 # this will be overridden with pass_all, but let us keep it just in case
4135 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4136 lt_cv_file_magic_test_file=/shlib/libc.so
4137 lt_cv_deplibs_check_method=pass_all
4141 lt_cv_deplibs_check_method=pass_all
4145 lt_cv_deplibs_check_method=pass_all
4146 lt_cv_file_magic_test_file=/lib/libc.so
4149 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4150 case $host_vendor in
4152 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]'
4153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4156 lt_cv_deplibs_check_method=pass_all
4159 lt_cv_file_magic_cmd='/bin/file'
4160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4163 lt_cv_file_magic_cmd='/bin/file'
4164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4165 lt_cv_file_magic_test_file=/lib/libc.so
4168 lt_cv_deplibs_check_method=pass_all
4173 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4174 lt_cv_deplibs_check_method=pass_all
4179 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4180 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4181 file_magic_cmd=$lt_cv_file_magic_cmd
4182 deplibs_check_method=$lt_cv_deplibs_check_method
4183 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4188 # If no C compiler was specified, use CC.
4191 # Allow CC to be a program name with arguments.
4194 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4195 if test "${enable_libtool_lock+set}" = set; then
4196 enableval="$enable_libtool_lock"
4199 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4201 # Some flags need to be propagated to the compiler or linker for good
4205 # Find out which ABI we are using.
4206 echo 'int i;' > conftest.$ac_ext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; then
4212 case `/usr/bin/file conftest.$ac_objext` in
4224 # Find out which ABI we are using.
4225 echo '#line 4225 "configure"' > conftest.$ac_ext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; then
4231 if test "$lt_cv_prog_gnu_ld" = yes; then
4232 case `/usr/bin/file conftest.$ac_objext` in
4234 LD="${LD-ld} -melf32bsmip"
4237 LD="${LD-ld} -melf32bmipn32"
4240 LD="${LD-ld} -melf64bmip"
4244 case `/usr/bin/file conftest.$ac_objext` in
4260 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4261 # Find out which ABI we are using.
4262 echo 'int i;' > conftest.$ac_ext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264 (eval $ac_compile) 2>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; then
4268 case "`/usr/bin/file conftest.o`" in
4272 LD="${LD-ld} -m elf_i386"
4275 LD="${LD-ld} -m elf32ppclinux"
4278 LD="${LD-ld} -m elf_s390"
4281 LD="${LD-ld} -m elf32_sparc"
4288 LD="${LD-ld} -m elf_x86_64"
4290 ppc*-*linux*|powerpc*-*linux*)
4291 LD="${LD-ld} -m elf64ppc"
4294 LD="${LD-ld} -m elf64_s390"
4297 LD="${LD-ld} -m elf64_sparc"
4307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4308 SAVE_CFLAGS="$CFLAGS"
4309 CFLAGS="$CFLAGS -belf"
4310 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4311 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4312 if test "${lt_cv_cc_needs_belf+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4336 rm -f conftest.$ac_objext conftest$ac_exeext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338 (eval $ac_link) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest$ac_exeext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 lt_cv_cc_needs_belf=yes
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 lt_cv_cc_needs_belf=no
4365 rm -f conftest.err conftest.$ac_objext \
4366 conftest$ac_exeext conftest.$ac_ext
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4375 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4376 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4377 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4378 CFLAGS="$SAVE_CFLAGS"
4384 need_locks="$enable_libtool_lock"
4388 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4389 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4390 if test "${ac_cv_header_stdc+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 cat >conftest.$ac_ext <<_ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4412 rm -f conftest.$ac_objext
4413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4414 (eval $ac_compile) 2>conftest.er1
4416 grep -v '^ *+' conftest.er1 >conftest.err
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try='test -z "$ac_c_werror_flag"
4422 || test ! -s conftest.err'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; } &&
4428 { ac_try='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 ac_cv_header_stdc=yes
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 ac_cv_header_stdc=no
4441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4443 if test $ac_cv_header_stdc = yes; then
4444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4455 $EGREP "memchr" >/dev/null 2>&1; then
4458 ac_cv_header_stdc=no
4464 if test $ac_cv_header_stdc = yes; then
4465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4466 cat >conftest.$ac_ext <<_ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476 $EGREP "free" >/dev/null 2>&1; then
4479 ac_cv_header_stdc=no
4485 if test $ac_cv_header_stdc = yes; then
4486 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4487 if test "$cross_compiling" = yes; then
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4497 #if ((' ' & 0x0FF) == 0x020)
4498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4501 # define ISLOWER(c) \
4502 (('a' <= (c) && (c) <= 'i') \
4503 || ('j' <= (c) && (c) <= 'r') \
4504 || ('s' <= (c) && (c) <= 'z'))
4505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4513 for (i = 0; i < 256; i++)
4514 if (XOR (islower (i), ISLOWER (i))
4515 || toupper (i) != TOUPPER (i))
4520 rm -f conftest$ac_exeext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4522 (eval $ac_link) 2>&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4533 echo "$as_me: program exited with status $ac_status" >&5
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4538 ac_cv_header_stdc=no
4540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4544 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4545 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4546 if test $ac_cv_header_stdc = yes; then
4548 cat >>confdefs.h <<\_ACEOF
4549 #define STDC_HEADERS 1
4554 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4564 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4565 inttypes.h stdint.h unistd.h
4567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4568 echo "$as_me:$LINENO: checking for $ac_header" >&5
4569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 $ac_includes_default
4581 #include <$ac_header>
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>conftest.er1
4587 grep -v '^ *+' conftest.er1 >conftest.err
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 eval "$as_ac_Header=yes"
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 eval "$as_ac_Header=no"
4612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4617 cat >>confdefs.h <<_ACEOF
4618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4627 for ac_header in dlfcn.h
4629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631 echo "$as_me:$LINENO: checking for $ac_header" >&5
4632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4639 # Is the header compilable?
4640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4642 cat >conftest.$ac_ext <<_ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 $ac_includes_default
4649 #include <$ac_header>
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_header_compiler=yes
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 ac_header_compiler=no
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4682 echo "${ECHO_T}$ac_header_compiler" >&6
4684 # Is the header present?
4685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4687 cat >conftest.$ac_ext <<_ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 #include <$ac_header>
4695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4698 grep -v '^ *+' conftest.er1 >conftest.err
4700 cat conftest.err >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } >/dev/null; then
4703 if test -s conftest.err; then
4704 ac_cpp_err=$ac_c_preproc_warn_flag
4705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4712 if test -z "$ac_cpp_err"; then
4713 ac_header_preproc=yes
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4718 ac_header_preproc=no
4720 rm -f conftest.err conftest.$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4722 echo "${ECHO_T}$ac_header_preproc" >&6
4724 # So? What about this header?
4725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4731 ac_header_preproc=yes
4734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4748 ## ----------------------------------- ##
4749 ## Report this to llvmbugs@cs.uiuc.edu ##
4750 ## ----------------------------------- ##
4753 sed "s/^/$as_me: WARNING: /" >&2
4756 echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 eval "$as_ac_Header=\$ac_header_preproc"
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768 cat >>confdefs.h <<_ACEOF
4769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 ac_cpp='$CXXCPP $CPPFLAGS'
4778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4781 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4782 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4783 if test -z "$CXXCPP"; then
4784 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 # Double quotes because CXXCPP needs to be expanded
4788 for CXXCPP in "$CXX -E" "/lib/cpp"
4791 for ac_cxx_preproc_warn_flag in '' yes
4793 # Use a header file that comes with gcc, so configuring glibc
4794 # with a fresh cross-compiler works.
4795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796 # <limits.h> exists even on freestanding compilers.
4797 # On the NeXT, cc -E runs the code through the compiler's parser,
4798 # not just through cpp. "Syntax error" is here to catch this case.
4799 cat >conftest.$ac_ext <<_ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4806 # include <limits.h>
4808 # include <assert.h>
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev/null; then
4820 if test -s conftest.err; then
4821 ac_cpp_err=$ac_cxx_preproc_warn_flag
4822 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4829 if test -z "$ac_cpp_err"; then
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 # Broken: fails on valid input.
4838 rm -f conftest.err conftest.$ac_ext
4840 # OK, works on sane cases. Now check whether non-existent headers
4841 # can be detected and how.
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <ac_nonexistent.h>
4850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4853 grep -v '^ *+' conftest.er1 >conftest.err
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null; then
4858 if test -s conftest.err; then
4859 ac_cpp_err=$ac_cxx_preproc_warn_flag
4860 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4867 if test -z "$ac_cpp_err"; then
4868 # Broken: success on invalid input.
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 # Passes both tests.
4878 rm -f conftest.err conftest.$ac_ext
4881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4882 rm -f conftest.err conftest.$ac_ext
4883 if $ac_preproc_ok; then
4888 ac_cv_prog_CXXCPP=$CXXCPP
4891 CXXCPP=$ac_cv_prog_CXXCPP
4893 ac_cv_prog_CXXCPP=$CXXCPP
4895 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4896 echo "${ECHO_T}$CXXCPP" >&6
4898 for ac_cxx_preproc_warn_flag in '' yes
4900 # Use a header file that comes with gcc, so configuring glibc
4901 # with a fresh cross-compiler works.
4902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4903 # <limits.h> exists even on freestanding compilers.
4904 # On the NeXT, cc -E runs the code through the compiler's parser,
4905 # not just through cpp. "Syntax error" is here to catch this case.
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4913 # include <limits.h>
4915 # include <assert.h>
4919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } >/dev/null; then
4927 if test -s conftest.err; then
4928 ac_cpp_err=$ac_cxx_preproc_warn_flag
4929 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4936 if test -z "$ac_cpp_err"; then
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 # Broken: fails on valid input.
4945 rm -f conftest.err conftest.$ac_ext
4947 # OK, works on sane cases. Now check whether non-existent headers
4948 # can be detected and how.
4949 cat >conftest.$ac_ext <<_ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 #include <ac_nonexistent.h>
4957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev/null; then
4965 if test -s conftest.err; then
4966 ac_cpp_err=$ac_cxx_preproc_warn_flag
4967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4974 if test -z "$ac_cpp_err"; then
4975 # Broken: success on invalid input.
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 # Passes both tests.
4985 rm -f conftest.err conftest.$ac_ext
4988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4989 rm -f conftest.err conftest.$ac_ext
4990 if $ac_preproc_ok; then
4993 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4994 See \`config.log' for more details." >&5
4995 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4996 See \`config.log' for more details." >&2;}
4997 { (exit 1); exit 1; }; }
5001 ac_cpp='$CXXCPP $CPPFLAGS'
5002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5008 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5009 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5011 if test -n "$ac_tool_prefix"; then
5012 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016 echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018 if test "${ac_cv_prog_F77+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 if test -n "$F77"; then
5022 ac_cv_prog_F77="$F77" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 if test -n "$F77"; then
5042 echo "$as_me:$LINENO: result: $F77" >&5
5043 echo "${ECHO_T}$F77" >&6
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5049 test -n "$F77" && break
5052 if test -z "$F77"; then
5054 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5056 # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 if test -n "$ac_ct_F77"; then
5064 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_ac_ct_F77="$ac_prog"
5074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5083 if test -n "$ac_ct_F77"; then
5084 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5085 echo "${ECHO_T}$ac_ct_F77" >&6
5087 echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6
5091 test -n "$ac_ct_F77" && break
5098 # Provide some information about the compiler.
5099 echo "$as_me:5099:" \
5100 "checking for Fortran 77 compiler version" >&5
5101 ac_compiler=`set X $ac_compile; echo $2`
5102 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5103 (eval $ac_compiler --version </dev/null >&5) 2>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }
5107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5108 (eval $ac_compiler -v </dev/null >&5) 2>&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }
5112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5113 (eval $ac_compiler -V </dev/null >&5) 2>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }
5119 # If we don't use `.F' as extension, the preprocessor is not run on the
5120 # input file. (Note that this only needs to work for GNU compilers.)
5123 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5124 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5125 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 cat >conftest.$ac_ext <<_ACEOF
5136 rm -f conftest.$ac_objext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138 (eval $ac_compile) 2>conftest.er1
5140 grep -v '^ *+' conftest.er1 >conftest.err
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
5145 { ac_try='test -z "$ac_f77_werror_flag"
5146 || test ! -s conftest.err'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; } &&
5152 { ac_try='test -s conftest.$ac_objext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5166 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5169 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5170 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5172 ac_test_FFLAGS=${FFLAGS+set}
5173 ac_save_FFLAGS=$FFLAGS
5175 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5176 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5177 if test "${ac_cv_prog_f77_g+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 cat >conftest.$ac_ext <<_ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>conftest.er1
5190 grep -v '^ *+' conftest.er1 >conftest.err
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try='test -z "$ac_f77_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_prog_f77_g=yes
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5218 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5219 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5220 if test "$ac_test_FFLAGS" = set; then
5221 FFLAGS=$ac_save_FFLAGS
5222 elif test $ac_cv_prog_f77_g = yes; then
5223 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5229 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5236 G77=`test $ac_compiler_gnu = yes && echo yes`
5238 ac_cpp='$CPP $CPPFLAGS'
5239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5247 # find the maximum length of command line arguments
5248 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5249 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5250 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 # On DJGPP, this test can blow up pretty badly due to problems in libc
5259 # (any single argument exceeding 2000 bytes causes a buffer overrun
5260 # during glob expansion). Even if it were fixed, the result of this
5261 # check would be larger than it should be.
5262 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5266 # Under GNU Hurd, this test is not required because there is
5267 # no limit to the length of command line arguments.
5268 # Libtool will interpret -1 as no limit whatsoever
5269 lt_cv_sys_max_cmd_len=-1;
5273 # On Win9x/ME, this test blows up -- it succeeds, but takes
5274 # about 5 minutes as the teststring grows exponentially.
5275 # Worse, since 9x/ME are not pre-emptively multitasking,
5276 # you end up with a "frozen" computer, even though with patience
5277 # the test eventually succeeds (with a max line length of 256k).
5278 # Instead, let's just punt: use the minimum linelength reported by
5279 # all of the supported platforms: 8192 (on NT/2K/XP).
5280 lt_cv_sys_max_cmd_len=8192;
5284 # If test is not a shell built-in, we'll probably end up computing a
5285 # maximum length that is only half of the actual maximum length, but
5287 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5288 = "XX$testring") >/dev/null 2>&1 &&
5289 new_result=`expr "X$testring" : ".*" 2>&1` &&
5290 lt_cv_sys_max_cmd_len=$new_result &&
5291 test $i != 17 # 1/2 MB should be enough
5294 testring=$testring$testring
5297 # Add a significant safety factor because C++ compilers can tack on massive
5298 # amounts of additional arguments before passing them to the linker.
5299 # It appears as though 1/2 is a usable value.
5300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5306 if test -n $lt_cv_sys_max_cmd_len ; then
5307 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5308 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5310 echo "$as_me:$LINENO: result: none" >&5
5311 echo "${ECHO_T}none" >&6
5317 # Check for command to grab the raw symbol name followed by C symbol from nm.
5318 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5319 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5320 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 # These are sane defaults that work on at least a few old systems.
5325 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5327 # Character class describing NM global symbol codes.
5328 symcode='[BCDEGRST]'
5330 # Regexp to match symbols that can be accessed directly from C.
5331 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5333 # Transform the above into a raw symbol and a C symbol.
5334 symxfrm='\1 \2\3 \3'
5336 # Transform an extracted symbol line into a proper C declaration
5337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5339 # Transform an extracted symbol line into symbol name and symbol address
5340 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'"
5342 # Define system-specific variables.
5347 cygwin* | mingw* | pw32*)
5348 symcode='[ABCDGISTW]'
5350 hpux*) # Its linker distinguishes data from code symbols
5351 if test "$host_cpu" = ia64; then
5352 symcode='[ABCDEGRST]'
5354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5355 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'"
5358 symcode='[BCDEGRST]'
5361 symcode='[BCDEGQRST]'
5371 # Handle CRLF in mingw tool chain
5375 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5379 # If we're using GNU nm, then use its standard symbol codes.
5380 case `$NM -V 2>&1` in
5381 *GNU* | *'with BFD'*)
5382 symcode='[ABCDGISTW]' ;;
5385 # Try without a prefix undercore, then with it.
5386 for ac_symprfx in "" "_"; do
5388 # Write the raw and C identifiers.
5389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5391 # Check to see that the pipe works correctly.
5395 cat > conftest.$ac_ext <<EOF
5400 void nm_test_func(){}
5404 int main(){nm_test_var='a';nm_test_func();return(0);}
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; then
5412 # Now try to grab the symbols.
5414 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5415 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && test -s "$nlist"; then
5419 # Try sorting and uniquifying the output.
5420 if sort "$nlist" | uniq > "$nlist"T; then
5421 mv -f "$nlist"T "$nlist"
5426 # Make sure that we snagged all the symbols we need.
5427 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5428 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5429 cat <<EOF > conftest.$ac_ext
5435 # Now generate the symbol file.
5436 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5438 cat <<EOF >> conftest.$ac_ext
5439 #if defined (__STDC__) && __STDC__
5440 # define lt_ptr_t void *
5442 # define lt_ptr_t char *
5446 /* The mapping between symbol names and symbols. */
5451 lt_preloaded_symbols[] =
5454 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5455 cat <<\EOF >> conftest.$ac_ext
5463 # Now try linking the two files.
5464 mv conftest.$ac_objext conftstm.$ac_objext
5465 lt_save_LIBS="$LIBS"
5466 lt_save_CFLAGS="$CFLAGS"
5467 LIBS="conftstm.$ac_objext"
5468 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470 (eval $ac_link) 2>&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5476 LIBS="$lt_save_LIBS"
5477 CFLAGS="$lt_save_CFLAGS"
5479 echo "cannot find nm_test_func in $nlist" >&5
5482 echo "cannot find nm_test_var in $nlist" >&5
5485 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5488 echo "$progname: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5491 rm -f conftest* conftst*
5493 # Do not use the global_symbol_pipe unless it works.
5494 if test "$pipe_works" = yes; then
5497 lt_cv_sys_global_symbol_pipe=
5503 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5504 lt_cv_sys_global_symbol_to_cdecl=
5506 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5507 echo "$as_me:$LINENO: result: failed" >&5
5508 echo "${ECHO_T}failed" >&6
5510 echo "$as_me:$LINENO: result: ok" >&5
5511 echo "${ECHO_T}ok" >&6
5514 echo "$as_me:$LINENO: checking for objdir" >&5
5515 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5516 if test "${lt_cv_objdir+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 rm -f .libs 2>/dev/null
5520 mkdir .libs 2>/dev/null
5521 if test -d .libs; then
5524 # MS-DOS does not allow filenames that begin with a dot.
5527 rmdir .libs 2>/dev/null
5529 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5530 echo "${ECHO_T}$lt_cv_objdir" >&6
5531 objdir=$lt_cv_objdir
5539 # AIX sometimes has problems with the GCC collect2 program. For some
5540 # reason, if we set the COLLECT_NAMES environment variable, the problems
5541 # vanish in a puff of smoke.
5542 if test "X${COLLECT_NAMES+set}" != Xset; then
5544 export COLLECT_NAMES
5549 # Sed substitution that helps us do robust quoting. It backslashifies
5550 # metacharacters that are still active within double-quoted strings.
5551 Xsed='sed -e s/^X//'
5552 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5554 # Same as above, but do not quote variable references.
5555 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5557 # Sed substitution to delay expansion of an escaped shell variable in a
5558 # double_quote_subst'ed string.
5559 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5561 # Sed substitution to avoid accidental globbing in evaled expressions
5562 no_glob_subst='s/\*/\\\*/g'
5569 can_build_shared=yes
5571 # All known linkers require a `.a' archive for static linking (except M$VC,
5572 # which needs '.lib').
5574 ltmain="$ac_aux_dir/ltmain.sh"
5575 ofile="$default_ofile"
5576 with_gnu_ld="$lt_cv_prog_gnu_ld"
5578 if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5580 set dummy ${ac_tool_prefix}ar; ac_word=$2
5581 echo "$as_me:$LINENO: checking for $ac_word" >&5
5582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5583 if test "${ac_cv_prog_AR+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 if test -n "$AR"; then
5587 ac_cv_prog_AR="$AR" # Let the user override the test.
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_AR="${ac_tool_prefix}ar"
5597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 if test -n "$AR"; then
5607 echo "$as_me:$LINENO: result: $AR" >&5
5608 echo "${ECHO_T}$AR" >&6
5610 echo "$as_me:$LINENO: result: no" >&5
5611 echo "${ECHO_T}no" >&6
5615 if test -z "$ac_cv_prog_AR"; then
5617 # Extract the first word of "ar", so it can be a program name with args.
5618 set dummy ar; ac_word=$2
5619 echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 if test -n "$ac_ct_AR"; then
5625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_ac_ct_AR="ar"
5635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5644 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5645 if test -n "$ac_ct_AR"; then
5646 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5647 echo "${ECHO_T}$ac_ct_AR" >&6
5649 echo "$as_me:$LINENO: result: no" >&5
5650 echo "${ECHO_T}no" >&6
5658 if test -n "$ac_tool_prefix"; then
5659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5661 echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5663 if test "${ac_cv_prog_RANLIB+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 if test -n "$RANLIB"; then
5667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 RANLIB=$ac_cv_prog_RANLIB
5686 if test -n "$RANLIB"; then
5687 echo "$as_me:$LINENO: result: $RANLIB" >&5
5688 echo "${ECHO_T}$RANLIB" >&6
5690 echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6
5695 if test -z "$ac_cv_prog_RANLIB"; then
5696 ac_ct_RANLIB=$RANLIB
5697 # Extract the first word of "ranlib", so it can be a program name with args.
5698 set dummy ranlib; ac_word=$2
5699 echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 if test -n "$ac_ct_RANLIB"; then
5705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_ac_ct_RANLIB="ranlib"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5725 if test -n "$ac_ct_RANLIB"; then
5726 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5727 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5729 echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6
5733 RANLIB=$ac_ct_RANLIB
5735 RANLIB="$ac_cv_prog_RANLIB"
5738 if test -n "$ac_tool_prefix"; then
5739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5740 set dummy ${ac_tool_prefix}strip; ac_word=$2
5741 echo "$as_me:$LINENO: checking for $ac_word" >&5
5742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743 if test "${ac_cv_prog_STRIP+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 if test -n "$STRIP"; then
5747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 STRIP=$ac_cv_prog_STRIP
5766 if test -n "$STRIP"; then
5767 echo "$as_me:$LINENO: result: $STRIP" >&5
5768 echo "${ECHO_T}$STRIP" >&6
5770 echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6
5775 if test -z "$ac_cv_prog_STRIP"; then
5777 # Extract the first word of "strip", so it can be a program name with args.
5778 set dummy strip; ac_word=$2
5779 echo "$as_me:$LINENO: checking for $ac_word" >&5
5780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 if test -n "$ac_ct_STRIP"; then
5785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_ac_ct_STRIP="strip"
5795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5805 if test -n "$ac_ct_STRIP"; then
5806 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5807 echo "${ECHO_T}$ac_ct_STRIP" >&6
5809 echo "$as_me:$LINENO: result: no" >&5
5810 echo "${ECHO_T}no" >&6
5815 STRIP="$ac_cv_prog_STRIP"
5820 old_CFLAGS="$CFLAGS"
5822 # Set sane defaults for various variables
5823 test -z "$AR" && AR=ar
5824 test -z "$AR_FLAGS" && AR_FLAGS=cru
5825 test -z "$AS" && AS=as
5826 test -z "$CC" && CC=cc
5827 test -z "$LTCC" && LTCC=$CC
5828 test -z "$DLLTOOL" && DLLTOOL=dlltool
5829 test -z "$LD" && LD=ld
5830 test -z "$LN_S" && LN_S="ln -s"
5831 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5832 test -z "$NM" && NM=nm
5833 test -z "$SED" && SED=sed
5834 test -z "$OBJDUMP" && OBJDUMP=objdump
5835 test -z "$RANLIB" && RANLIB=:
5836 test -z "$STRIP" && STRIP=:
5837 test -z "$ac_objext" && ac_objext=o
5839 # Determine commands to create old-style static archives.
5840 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5841 old_postinstall_cmds='chmod 644 $oldlib'
5842 old_postuninstall_cmds=
5844 if test -n "$RANLIB"; then
5847 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5850 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5853 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5856 # Only perform the check for file, if the check method requires it
5857 case $deplibs_check_method in
5859 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5860 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5861 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5862 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5870 lt_save_MAGIC_CMD="$MAGIC_CMD"
5871 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5872 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5873 for ac_dir in $ac_dummy; do
5875 test -z "$ac_dir" && ac_dir=.
5876 if test -f $ac_dir/${ac_tool_prefix}file; then
5877 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5878 if test -n "$file_magic_test_file"; then
5879 case $deplibs_check_method in
5881 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5882 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5883 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5884 $EGREP "$file_magic_regex" > /dev/null; then
5889 *** Warning: the command libtool uses to detect shared libraries,
5890 *** $file_magic_cmd, produces output that libtool cannot recognize.
5891 *** The result is that libtool may fail to recognize shared libraries
5892 *** as such. This will affect the creation of libtool libraries that
5893 *** depend on shared libraries, but programs linked with such libtool
5894 *** libraries will work regardless of this problem. Nevertheless, you
5895 *** may want to report the problem to your system manager and/or to
5896 *** bug-libtool@gnu.org
5906 MAGIC_CMD="$lt_save_MAGIC_CMD"
5911 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5912 if test -n "$MAGIC_CMD"; then
5913 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5914 echo "${ECHO_T}$MAGIC_CMD" >&6
5916 echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6
5920 if test -z "$lt_cv_path_MAGIC_CMD"; then
5921 if test -n "$ac_tool_prefix"; then
5922 echo "$as_me:$LINENO: checking for file" >&5
5923 echo $ECHO_N "checking for file... $ECHO_C" >&6
5924 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5932 lt_save_MAGIC_CMD="$MAGIC_CMD"
5933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5934 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5935 for ac_dir in $ac_dummy; do
5937 test -z "$ac_dir" && ac_dir=.
5938 if test -f $ac_dir/file; then
5939 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5940 if test -n "$file_magic_test_file"; then
5941 case $deplibs_check_method in
5943 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5945 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5946 $EGREP "$file_magic_regex" > /dev/null; then
5951 *** Warning: the command libtool uses to detect shared libraries,
5952 *** $file_magic_cmd, produces output that libtool cannot recognize.
5953 *** The result is that libtool may fail to recognize shared libraries
5954 *** as such. This will affect the creation of libtool libraries that
5955 *** depend on shared libraries, but programs linked with such libtool
5956 *** libraries will work regardless of this problem. Nevertheless, you
5957 *** may want to report the problem to your system manager and/or to
5958 *** bug-libtool@gnu.org
5968 MAGIC_CMD="$lt_save_MAGIC_CMD"
5973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5974 if test -n "$MAGIC_CMD"; then
5975 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5976 echo "${ECHO_T}$MAGIC_CMD" >&6
5978 echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6
5994 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5995 if test "${enable_libtool_lock+set}" = set; then
5996 enableval="$enable_libtool_lock"
5999 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6002 # Check whether --with-pic or --without-pic was given.
6003 if test "${with_pic+set}" = set; then
6009 test -z "$pic_mode" && pic_mode=default
6011 # Use C for the default configuration in the libtool script
6015 ac_cpp='$CPP $CPPFLAGS'
6016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021 # Source file extension for C test sources.
6024 # Object file extension for compiled C test sources.
6028 # Code to be used in simple compile tests
6029 lt_simple_compile_test_code="int some_variable = 0;\n"
6031 # Code to be used in simple link tests
6032 lt_simple_link_test_code='int main(){return(0);}\n'
6035 # If no C compiler was specified, use CC.
6038 # Allow CC to be a program name with arguments.
6043 # Check for any special shared library compilation flags.
6046 if test "$GCC" = no; then
6049 lt_prog_cc_shlib='-belf'
6053 if test -n "$lt_prog_cc_shlib"; then
6054 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6055 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6056 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6058 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6059 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6060 lt_cv_prog_cc_can_build_shared=no
6066 # Check to make sure the static flag actually works.
6068 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6069 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6070 if test "${lt_prog_compiler_static_works+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 lt_prog_compiler_static_works=no
6074 save_LDFLAGS="$LDFLAGS"
6075 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6076 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6077 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6078 # The compiler can only warn and ignore the option if not recognized
6079 # So say no if there are warnings
6080 if test -s conftest.err; then
6081 # Append any errors to the config.log.
6082 cat conftest.err 1>&5
6084 lt_prog_compiler_static_works=yes
6088 LDFLAGS="$save_LDFLAGS"
6091 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6092 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6094 if test x"$lt_prog_compiler_static_works" = xyes; then
6097 lt_prog_compiler_static=
6103 ## There is no encapsulation within the following macros, do not change
6104 ## the running order or otherwise move them around unless you know exactly
6105 ## what you are doing...
6107 lt_prog_compiler_no_builtin_flag=
6109 if test "$GCC" = yes; then
6110 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6112 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6113 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6114 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 lt_cv_prog_compiler_rtti_exceptions=no
6118 ac_outfile=conftest.$ac_objext
6119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6120 lt_compiler_flag="-fno-rtti -fno-exceptions"
6121 # Insert the option either (1) after the last *FLAGS variable, or
6122 # (2) before a word containing "conftest.", or (3) at the end.
6123 # Note that $ac_compile itself does not contain backslashes and begins
6124 # with a dollar sign (not a hyphen), so the echo should work correctly.
6125 # The option is referenced via a variable to avoid confusing sed.
6126 lt_compile=`echo "$ac_compile" | $SED \
6127 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6129 -e 's:$: $lt_compiler_flag:'`
6130 (eval echo "\"\$as_me:6130: $lt_compile\"" >&5)
6131 (eval "$lt_compile" 2>conftest.err)
6133 cat conftest.err >&5
6134 echo "$as_me:6134: \$? = $ac_status" >&5
6135 if (exit $ac_status) && test -s "$ac_outfile"; then
6136 # The compiler can only warn and ignore the option if not recognized
6137 # So say no if there are warnings
6138 if test ! -s conftest.err; then
6139 lt_cv_prog_compiler_rtti_exceptions=yes
6145 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6146 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6156 lt_prog_compiler_wl=
6157 lt_prog_compiler_pic=
6158 lt_prog_compiler_static=
6160 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6161 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6163 if test "$GCC" = yes; then
6164 lt_prog_compiler_wl='-Wl,'
6165 lt_prog_compiler_static='-static'
6169 # All AIX code is PIC.
6170 if test "$host_cpu" = ia64; then
6171 # AIX 5 now supports IA64 processor
6172 lt_prog_compiler_static='-Bstatic'
6177 # FIXME: we need at least 68020 code to build shared libraries, but
6178 # adding the `-m68020' flag to GCC prevents building anything better,
6180 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6183 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6184 # PIC is the default for these OSes.
6187 mingw* | pw32* | os2*)
6188 # This hack is so that the source file can tell whether it is being
6189 # built for inclusion in a dll (and should export symbols for example).
6190 lt_prog_compiler_pic='-DDLL_EXPORT'
6193 darwin* | rhapsody*)
6194 # PIC is the default on this platform
6195 # Common symbols not allowed in MH_DYLIB files
6196 lt_prog_compiler_pic='-fno-common'
6200 # Just because we use GCC doesn't mean we suddenly get shared libraries
6201 # on systems that don't support them.
6202 lt_prog_compiler_can_build_shared=no
6207 if test -d /usr/nec; then
6208 lt_prog_compiler_pic=-Kconform_pic
6213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6220 lt_prog_compiler_pic='-fPIC'
6226 lt_prog_compiler_pic='-fPIC'
6230 # PORTME Check for flag to pass linker flags through the system compiler.
6233 lt_prog_compiler_wl='-Wl,'
6234 if test "$host_cpu" = ia64; then
6235 # AIX 5 now supports IA64 processor
6236 lt_prog_compiler_static='-Bstatic'
6238 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6242 mingw* | pw32* | os2*)
6243 # This hack is so that the source file can tell whether it is being
6244 # built for inclusion in a dll (and should export symbols for example).
6245 lt_prog_compiler_pic='-DDLL_EXPORT'
6248 hpux9* | hpux10* | hpux11*)
6249 lt_prog_compiler_wl='-Wl,'
6250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6257 lt_prog_compiler_pic='+Z'
6260 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6261 lt_prog_compiler_static='${wl}-a ${wl}archive'
6264 irix5* | irix6* | nonstopux*)
6265 lt_prog_compiler_wl='-Wl,'
6266 # PIC (with -KPIC) is the default.
6267 lt_prog_compiler_static='-non_shared'
6271 lt_prog_compiler_pic='-KPIC'
6272 lt_prog_compiler_static='-Bstatic'
6278 lt_prog_compiler_wl='-Wl,'
6279 lt_prog_compiler_pic='-KPIC'
6280 lt_prog_compiler_static='-static'
6283 lt_prog_compiler_wl='-Wl,'
6284 # All Alpha code is PIC.
6285 lt_prog_compiler_static='-non_shared'
6290 osf3* | osf4* | osf5*)
6291 lt_prog_compiler_wl='-Wl,'
6292 # All OSF/1 code is PIC.
6293 lt_prog_compiler_static='-non_shared'
6297 lt_prog_compiler_pic='-Kpic'
6298 lt_prog_compiler_static='-dn'
6302 lt_prog_compiler_wl='-Wl,'
6303 lt_prog_compiler_pic='-KPIC'
6304 lt_prog_compiler_static='-Bstatic'
6308 lt_prog_compiler_wl='-Qoption ld '
6309 lt_prog_compiler_pic='-PIC'
6310 lt_prog_compiler_static='-Bstatic'
6313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6314 lt_prog_compiler_wl='-Wl,'
6315 lt_prog_compiler_pic='-KPIC'
6316 lt_prog_compiler_static='-Bstatic'
6320 if test -d /usr/nec ;then
6321 lt_prog_compiler_pic='-Kconform_pic'
6322 lt_prog_compiler_static='-Bstatic'
6327 lt_prog_compiler_pic='-pic'
6328 lt_prog_compiler_static='-Bstatic'
6332 lt_prog_compiler_can_build_shared=no
6337 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6338 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6341 # Check to make sure the PIC flag actually works.
6343 if test -n "$lt_prog_compiler_pic"; then
6344 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6345 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6346 if test "${lt_prog_compiler_pic_works+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 lt_prog_compiler_pic_works=no
6350 ac_outfile=conftest.$ac_objext
6351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6352 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6353 # Insert the option either (1) after the last *FLAGS variable, or
6354 # (2) before a word containing "conftest.", or (3) at the end.
6355 # Note that $ac_compile itself does not contain backslashes and begins
6356 # with a dollar sign (not a hyphen), so the echo should work correctly.
6357 # The option is referenced via a variable to avoid confusing sed.
6358 lt_compile=`echo "$ac_compile" | $SED \
6359 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6361 -e 's:$: $lt_compiler_flag:'`
6362 (eval echo "\"\$as_me:6362: $lt_compile\"" >&5)
6363 (eval "$lt_compile" 2>conftest.err)
6365 cat conftest.err >&5
6366 echo "$as_me:6366: \$? = $ac_status" >&5
6367 if (exit $ac_status) && test -s "$ac_outfile"; then
6368 # The compiler can only warn and ignore the option if not recognized
6369 # So say no if there are warnings
6370 if test ! -s conftest.err; then
6371 lt_prog_compiler_pic_works=yes
6377 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6378 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6380 if test x"$lt_prog_compiler_pic_works" = xyes; then
6381 case $lt_prog_compiler_pic in
6383 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6386 lt_prog_compiler_pic=
6387 lt_prog_compiler_can_build_shared=no
6392 # For platforms which do not support PIC, -DPIC is meaningless:
6394 lt_prog_compiler_pic=
6397 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6401 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6402 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6403 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 lt_cv_prog_compiler_c_o=no
6407 $rm -r conftest 2>/dev/null
6411 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6413 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6414 # that will create temporary files in the current directory regardless of
6415 # the output directory. Thus, making CWD read-only will cause this test
6416 # to fail, enabling locking or at least warning the user not to do parallel
6420 lt_compiler_flag="-o out/conftest2.$ac_objext"
6421 # Insert the option either (1) after the last *FLAGS variable, or
6422 # (2) before a word containing "conftest.", or (3) at the end.
6423 # Note that $ac_compile itself does not contain backslashes and begins
6424 # with a dollar sign (not a hyphen), so the echo should work correctly.
6425 lt_compile=`echo "$ac_compile" | $SED \
6426 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6428 -e 's:$: $lt_compiler_flag:'`
6429 (eval echo "\"\$as_me:6429: $lt_compile\"" >&5)
6430 (eval "$lt_compile" 2>out/conftest.err)
6432 cat out/conftest.err >&5
6433 echo "$as_me:6433: \$? = $ac_status" >&5
6434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6436 # The compiler can only warn and ignore the option if not recognized
6437 # So say no if there are warnings
6438 if test ! -s out/conftest.err; then
6439 lt_cv_prog_compiler_c_o=yes
6450 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6451 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6454 hard_links="nottested"
6455 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6456 # do not overwrite the value of need_locks provided by the user
6457 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6458 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6463 ln conftest.a conftest.b 2>&5 || hard_links=no
6464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6465 echo "$as_me:$LINENO: result: $hard_links" >&5
6466 echo "${ECHO_T}$hard_links" >&6
6467 if test "$hard_links" = no; then
6468 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6469 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6476 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6477 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6480 allow_undefined_flag=
6481 enable_shared_with_static_runtimes=no
6483 archive_expsym_cmds=
6484 old_archive_From_new_cmds=
6485 old_archive_from_expsyms_cmds=
6486 export_dynamic_flag_spec=
6487 whole_archive_flag_spec=
6488 thread_safe_flag_spec=
6489 hardcode_libdir_flag_spec=
6490 hardcode_libdir_flag_spec_ld=
6491 hardcode_libdir_separator=
6494 hardcode_shlibpath_var=unsupported
6495 link_all_deplibs=unknown
6496 hardcode_automatic=no
6499 always_export_symbols=no
6500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6501 # include_expsyms should be a list of space-separated symbols to be *always*
6502 # included in the symbol list
6504 # exclude_expsyms can be an extended regexp of symbols to exclude
6505 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6506 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6507 # as well as any symbol that contains `d'.
6508 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6509 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6510 # platforms (ab)use it in PIC code, but their linkers get confused if
6511 # the symbol is explicitly referenced. Since portable code cannot
6512 # rely on this symbol name, it's probably fine to never include it in
6513 # preloaded symbol tables.
6514 extract_expsyms_cmds=
6517 cygwin* | mingw* | pw32*)
6518 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6519 # When not using gcc, we currently assume that we are using
6520 # Microsoft Visual C++.
6521 if test "$GCC" != yes; then
6531 if test "$with_gnu_ld" = yes; then
6532 # If archive_cmds runs LD, not CC, wlarc should be empty
6535 # See if GNU ld supports shared libraries.
6537 aix3* | aix4* | aix5*)
6538 # On AIX/PPC, the GNU linker is very broken
6539 if test "$host_cpu" != ia64; then
6543 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6544 *** to be unable to reliably create shared libraries on AIX.
6545 *** Therefore, libtool is disabling shared libraries support. If you
6546 *** really care for shared libraries, you may want to modify your PATH
6547 *** so that a non-GNU linker is found, and then restart.
6554 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)'
6555 hardcode_libdir_flag_spec='-L$libdir'
6556 hardcode_minus_L=yes
6558 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6559 # that the semantics of dynamic libraries on AmigaOS, at least up
6560 # to version 4, is to share data among multiple programs linked
6561 # with the same dynamic library. Since this doesn't match the
6562 # behavior of shared libraries on other platforms, we can't use
6568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6569 allow_undefined_flag=unsupported
6570 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6571 # support --undefined. This deserves some investigation. FIXME
6572 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6578 cygwin* | mingw* | pw32*)
6579 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6580 # as there is no search path for DLLs.
6581 hardcode_libdir_flag_spec='-L$libdir'
6582 allow_undefined_flag=unsupported
6583 always_export_symbols=no
6584 enable_shared_with_static_runtimes=yes
6585 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6587 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6589 # If the export-symbols file already is a .def file (1st line
6590 # is EXPORTS), use it as is; otherwise, prepend...
6591 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6592 cp $export_symbols $output_objdir/$soname.def;
6594 echo EXPORTS > $output_objdir/$soname.def;
6595 cat $export_symbols >> $output_objdir/$soname.def;
6597 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6605 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6614 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6618 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6619 *** create shared libraries on Solaris systems. Therefore, libtool
6620 *** is disabling shared libraries support. We urge you to upgrade GNU
6621 *** binutils to release 2.9.1 or newer. Another option is to modify
6622 *** your PATH or compiler configuration so that the native linker is
6623 *** used, and then restart.
6626 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6635 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6638 hardcode_shlibpath_var=no
6642 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6651 if test "$ld_shlibs" = yes; then
6652 runpath_var=LD_RUN_PATH
6653 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6654 export_dynamic_flag_spec='${wl}--export-dynamic'
6655 # ancient GNU ld didn't support --whole-archive et. al.
6656 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6657 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6659 whole_archive_flag_spec=
6663 # PORTME fill in a description of your system's linker (not GNU ld)
6666 allow_undefined_flag=unsupported
6667 always_export_symbols=yes
6668 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'
6669 # Note: this linker hardcodes the directories in LIBPATH if there
6670 # are no directories specified by -L.
6671 hardcode_minus_L=yes
6672 if test "$GCC" = yes && test -z "$link_static_flag"; then
6673 # Neither direct hardcoding nor static linking is supported with a
6675 hardcode_direct=unsupported
6680 if test "$host_cpu" = ia64; then
6681 # On IA64, the linker does run time linking by default, so we don't
6682 # have to do anything special.
6683 aix_use_runtimelinking=no
6684 exp_sym_flag='-Bexport'
6687 # If we're using GNU nm, then we don't want the "-C" option.
6688 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6689 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6690 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'
6692 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'
6694 aix_use_runtimelinking=no
6696 # Test if we are trying to use run time linking or normal
6697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6698 # need to do runtime linking.
6699 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6700 for ld_flag in $LDFLAGS; do
6701 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6702 aix_use_runtimelinking=yes
6708 exp_sym_flag='-bexport'
6709 no_entry_flag='-bnoentry'
6712 # When large executables or shared objects are built, AIX ld can
6713 # have problems creating the table of contents. If linking a library
6714 # or program results in "error TOC overflow" add -mminimal-toc to
6715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6720 hardcode_libdir_separator=':'
6721 link_all_deplibs=yes
6723 if test "$GCC" = yes; then
6724 case $host_os in aix4.012|aix4.012.*)
6725 # We only want to do this on AIX 4.2 and lower, the check
6726 # below for broken collect2 doesn't work under 4.3+
6727 collect2name=`${CC} -print-prog-name=collect2`
6728 if test -f "$collect2name" && \
6729 strings "$collect2name" | grep resolve_lib_name >/dev/null
6731 # We have reworked collect2
6734 # We have old collect2
6735 hardcode_direct=unsupported
6736 # It fails to find uninstalled libraries when the uninstalled
6737 # path is not listed in the libpath. Setting hardcode_minus_L
6738 # to unsupported forces relinking
6739 hardcode_minus_L=yes
6740 hardcode_libdir_flag_spec='-L$libdir'
6741 hardcode_libdir_separator=
6744 shared_flag='-shared'
6747 if test "$host_cpu" = ia64; then
6748 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6749 # chokes on -Wl,-G. The following line is correct:
6752 if test "$aix_use_runtimelinking" = yes; then
6753 shared_flag='${wl}-G'
6755 shared_flag='${wl}-bM:SRE'
6760 # It seems that -bexpall does not export symbols beginning with
6761 # underscore (_), so it is better to generate a list of symbols to export.
6762 always_export_symbols=yes
6763 if test "$aix_use_runtimelinking" = yes; then
6764 # Warning - without using the other runtime loading flags (-brtl),
6765 # -berok will link without error, but may produce a broken library.
6766 allow_undefined_flag='-berok'
6767 # Determine the default libpath from the value encoded in an empty executable.
6768 cat >conftest.$ac_ext <<_ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785 (eval $ac_link) 2>conftest.er1
6787 grep -v '^ *+' conftest.er1 >conftest.err
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try='test -z "$ac_c_werror_flag"
6793 || test ! -s conftest.err'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6808 # Check for a 64-bit object if we didn't find anything.
6809 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; }
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6816 rm -f conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6820 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6821 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"
6823 if test "$host_cpu" = ia64; then
6824 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6825 allow_undefined_flag="-z nodefs"
6826 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"
6828 # Determine the default libpath from the value encoded in an empty executable.
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846 (eval $ac_link) 2>conftest.er1
6848 grep -v '^ *+' conftest.er1 >conftest.err
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -z "$ac_c_werror_flag"
6854 || test ! -s conftest.err'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; } &&
6860 { ac_try='test -s conftest$ac_exeext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6867 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6869 # Check for a 64-bit object if we didn't find anything.
6870 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; }
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6877 rm -f conftest.err conftest.$ac_objext \
6878 conftest$ac_exeext conftest.$ac_ext
6879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6881 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6882 # Warning - without using the other run time loading flags,
6883 # -berok will link without error, but may produce a broken library.
6884 no_undefined_flag=' ${wl}-bernotok'
6885 allow_undefined_flag=' ${wl}-berok'
6886 # -bexpall does not export symbols beginning with underscore (_)
6887 always_export_symbols=yes
6888 # Exported symbols can be pulled into shared objects from archives
6889 whole_archive_flag_spec=' '
6890 archive_cmds_need_lc=yes
6891 # This is similar to how AIX traditionally builds it's shared libraries.
6892 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'
6898 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)'
6899 hardcode_libdir_flag_spec='-L$libdir'
6900 hardcode_minus_L=yes
6901 # see comment about different semantics on the GNU ld section
6906 export_dynamic_flag_spec=-rdynamic
6909 cygwin* | mingw* | pw32*)
6910 # When not using gcc, we currently assume that we are using
6911 # Microsoft Visual C++.
6912 # hardcode_libdir_flag_spec is actually meaningless, as there is
6913 # no search path for DLLs.
6914 hardcode_libdir_flag_spec=' '
6915 allow_undefined_flag=unsupported
6916 # Tell ltmain to make .lib files, not .a files.
6918 # Tell ltmain to make .dll files, not .so files.
6920 # FIXME: Setting linknames here is a bad hack.
6921 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6922 # The linker will automatically build a .lib file if we build a DLL.
6923 old_archive_From_new_cmds='true'
6924 # FIXME: Should let the user specify the lib program.
6925 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6926 fix_srcfile_path='`cygpath -w "$srcfile"`'
6927 enable_shared_with_static_runtimes=yes
6930 darwin* | rhapsody*)
6931 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6932 archive_cmds_need_lc=no
6934 rhapsody* | darwin1.[012])
6935 allow_undefined_flag='-undefined suppress'
6938 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6941 # FIXME: Relying on posixy $() will cause problems for
6942 # cross-compilation, but unfortunately the echo tests do not
6943 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6944 # `"' quotes if we put them in here... so don't!
6945 lt_int_apple_cc_single_mod=no
6946 output_verbose_link_cmd='echo'
6947 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6948 lt_int_apple_cc_single_mod=yes
6950 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6951 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6953 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'
6955 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6956 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6957 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6958 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}'
6960 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}'
6962 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}'
6964 hardcode_automatic=yes
6965 hardcode_shlibpath_var=unsupported
6966 whole_archive_flag_spec='-all_load $convenience'
6967 link_all_deplibs=yes
6972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6973 hardcode_libdir_flag_spec='-L$libdir'
6974 hardcode_shlibpath_var=no
6981 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6982 # support. Future versions do this automatically, but an explicit c++rt0.o
6983 # does not break anything, and helps significantly (at the cost of a little
6986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6987 hardcode_libdir_flag_spec='-R$libdir'
6989 hardcode_shlibpath_var=no
6992 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6996 hardcode_minus_L=yes
6997 hardcode_shlibpath_var=no
7000 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7002 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7003 hardcode_libdir_flag_spec='-R$libdir'
7005 hardcode_shlibpath_var=no
7009 if test "$GCC" = yes; then
7010 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'
7012 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'
7014 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7015 hardcode_libdir_separator=:
7018 # hardcode_minus_L: Not really in the search PATH,
7019 # but as the default location of the library.
7020 hardcode_minus_L=yes
7021 export_dynamic_flag_spec='${wl}-E'
7025 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7028 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7031 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7037 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7044 if test "$with_gnu_ld" = no; then
7047 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7048 hardcode_libdir_flag_spec_ld='+b $libdir'
7049 hardcode_libdir_separator=:
7051 hardcode_shlibpath_var=no
7054 hardcode_libdir_flag_spec='-L$libdir'
7056 hardcode_shlibpath_var=no
7058 # hardcode_minus_L: Not really in the search PATH,
7059 # but as the default location of the library.
7060 hardcode_minus_L=yes
7063 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7064 hardcode_libdir_separator=:
7066 export_dynamic_flag_spec='${wl}-E'
7068 # hardcode_minus_L: Not really in the search PATH,
7069 # but as the default location of the library.
7070 hardcode_minus_L=yes
7076 irix5* | irix6* | nonstopux*)
7077 if test "$GCC" = yes; then
7078 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'
7080 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'
7081 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7084 hardcode_libdir_separator=:
7085 link_all_deplibs=yes
7089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7092 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7094 hardcode_libdir_flag_spec='-R$libdir'
7096 hardcode_shlibpath_var=no
7100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7103 hardcode_libdir_separator=:
7104 hardcode_shlibpath_var=no
7109 hardcode_shlibpath_var=no
7110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7113 export_dynamic_flag_spec='${wl}-E'
7116 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7118 hardcode_libdir_flag_spec='-R$libdir'
7121 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7122 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7129 hardcode_libdir_flag_spec='-L$libdir'
7130 hardcode_minus_L=yes
7131 allow_undefined_flag=unsupported
7132 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'
7133 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7137 if test "$GCC" = yes; then
7138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7139 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'
7141 allow_undefined_flag=' -expect_unresolved \*'
7142 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'
7144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7145 hardcode_libdir_separator=:
7148 osf4* | osf5*) # as osf3* with the addition of -msym flag
7149 if test "$GCC" = yes; then
7150 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7151 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'
7152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7154 allow_undefined_flag=' -expect_unresolved \*'
7155 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'
7156 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7157 $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'
7159 # Both c and cxx compiler support -rpath directly
7160 hardcode_libdir_flag_spec='-rpath $libdir'
7162 hardcode_libdir_separator=:
7166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7167 hardcode_shlibpath_var=no
7168 export_dynamic_flag_spec='${wl}-Bexport'
7169 runpath_var=LD_RUN_PATH
7170 hardcode_runpath_var=yes
7174 no_undefined_flag=' -z text'
7175 if test "$GCC" = yes; then
7176 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7177 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7178 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7180 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7181 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7182 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7184 hardcode_libdir_flag_spec='-R$libdir'
7185 hardcode_shlibpath_var=no
7187 solaris2.[0-5] | solaris2.[0-5].*) ;;
7188 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7189 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7191 link_all_deplibs=yes
7195 if test "x$host_vendor" = xsequent; then
7196 # Use $CC to link under sequent, because it throws in some extra .o
7197 # files that make .init and .fini sections work.
7198 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7200 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7202 hardcode_libdir_flag_spec='-L$libdir'
7204 hardcode_minus_L=yes
7205 hardcode_shlibpath_var=no
7209 case $host_vendor in
7211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7212 hardcode_direct=yes # is this really true???
7215 ## LD is ld it makes a PLAMLIB
7216 ## CC just makes a GrossModule.
7217 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7218 reload_cmds='$CC -r -o $output$reload_objs'
7222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7223 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7226 runpath_var='LD_RUN_PATH'
7227 hardcode_shlibpath_var=no
7231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7232 hardcode_shlibpath_var=no
7233 export_dynamic_flag_spec='-Bexport'
7237 if test -d /usr/nec; then
7238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7239 hardcode_shlibpath_var=no
7240 runpath_var=LD_RUN_PATH
7241 hardcode_runpath_var=yes
7247 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7250 hardcode_shlibpath_var=no
7251 hardcode_runpath_var=yes
7252 runpath_var=LD_RUN_PATH
7255 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7256 no_undefined_flag='${wl}-z ${wl}text'
7257 if test "$GCC" = yes; then
7258 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7260 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7262 runpath_var='LD_RUN_PATH'
7263 hardcode_shlibpath_var=no
7267 no_undefined_flag=' -z text'
7268 # $CC -shared without GNU ld will not create a library from C++
7269 # object files and a static libstdc++, better avoid it by now
7270 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7271 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7273 hardcode_libdir_flag_spec=
7274 hardcode_shlibpath_var=no
7275 runpath_var='LD_RUN_PATH'
7279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7280 hardcode_libdir_flag_spec='-L$libdir'
7281 hardcode_shlibpath_var=no
7290 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7291 echo "${ECHO_T}$ld_shlibs" >&6
7292 test "$ld_shlibs" = no && can_build_shared=no
7294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7295 if test "$GCC" = yes; then
7296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7300 # Do we need to explicitly link libc?
7302 case "x$archive_cmds_need_lc" in
7304 # Assume -lc should be added
7305 archive_cmds_need_lc=yes
7307 if test "$enable_shared" = yes && test "$GCC" = yes; then
7308 case $archive_cmds in
7310 # FIXME: we may have to deal with multi-command sequences.
7313 # Test whether the compiler implicitly links with -lc since on some
7314 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7315 # to ld, don't add -lc before -lgcc.
7316 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7317 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7322 (eval $ac_compile) 2>&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } 2>conftest.err; then
7328 libobjs=conftest.$ac_objext
7330 wl=$lt_prog_compiler_wl
7336 lt_save_allow_undefined_flag=$allow_undefined_flag
7337 allow_undefined_flag=
7338 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7339 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }
7344 archive_cmds_need_lc=no
7346 archive_cmds_need_lc=yes
7348 allow_undefined_flag=$lt_save_allow_undefined_flag
7350 cat conftest.err 1>&5
7353 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7354 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7361 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7362 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7364 if test -n "$hardcode_libdir_flag_spec" || \
7365 test -n "$runpath_var " || \
7366 test "X$hardcode_automatic"="Xyes" ; then
7368 # We can hardcode non-existant directories.
7369 if test "$hardcode_direct" != no &&
7370 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7371 # have to relink, otherwise we might link with an installed library
7372 # when we should be linking with a yet-to-be-installed one
7373 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7374 test "$hardcode_minus_L" != no; then
7375 # Linking always hardcodes the temporary library directory.
7376 hardcode_action=relink
7378 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7379 hardcode_action=immediate
7382 # We cannot hardcode anything, or else we can only hardcode existing
7384 hardcode_action=unsupported
7386 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7387 echo "${ECHO_T}$hardcode_action" >&6
7389 if test "$hardcode_action" = relink; then
7390 # Fast installation is not supported
7391 enable_fast_install=no
7392 elif test "$shlibpath_overrides_runpath" = yes ||
7393 test "$enable_shared" = no; then
7394 # Fast installation is not necessary
7395 enable_fast_install=needless
7400 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7401 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7402 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7403 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7404 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7405 echo "$as_me:$LINENO: result: yes" >&5
7406 echo "${ECHO_T}yes" >&6
7408 # FIXME - insert some real tests, host_os isn't really good enough
7411 if test -n "$STRIP" ; then
7412 striplib="$STRIP -x"
7413 echo "$as_me:$LINENO: result: yes" >&5
7414 echo "${ECHO_T}yes" >&6
7416 echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6
7421 echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6
7427 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7428 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7430 libname_spec='lib$name'
7438 shlibpath_overrides_runpath=unknown
7440 dynamic_linker="$host_os ld.so"
7441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7442 if test "$GCC" = yes; then
7443 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7444 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7445 # if the path contains ";" then we assume it to be the separator
7446 # otherwise default to the standard path separator (i.e. ":") - it is
7447 # assumed that no part of a normal pathname contains ";" but that should
7448 # okay in the real world where ";" in dirpaths is itself problematic.
7449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7454 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7456 need_lib_prefix=unknown
7457 hardcode_into_libs=no
7459 # when you set need_version to no, make sure it does not cause -set_version
7460 # flags to be left without arguments
7461 need_version=unknown
7466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7467 shlibpath_var=LIBPATH
7469 # AIX 3 has no versioning support, so we append a major version to the name.
7470 soname_spec='${libname}${release}${shared_ext}$major'
7477 hardcode_into_libs=yes
7478 if test "$host_cpu" = ia64; then
7479 # AIX 5 supports IA64
7480 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7481 shlibpath_var=LD_LIBRARY_PATH
7483 # With GCC up to 2.95.x, collect2 would create an import file
7484 # for dependence libraries. The import file would start with
7485 # the line `#! .'. This would cause the generated library to
7486 # depend on `.', always an invalid library. This was fixed in
7487 # development snapshots of GCC prior to 3.0.
7489 aix4 | aix4.[01] | aix4.[01].*)
7490 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7492 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7499 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7500 # soname into executable. Probably we can add versioning support to
7501 # collect2, so additional links can be useful in future.
7502 if test "$aix_use_runtimelinking" = yes; then
7503 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7504 # instead of lib<name>.a to let people know that these are not
7505 # typical AIX shared libraries.
7506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7508 # We preserve .a as extension for shared libraries through AIX4.2
7509 # and later when we are not doing run time linking.
7510 library_names_spec='${libname}${release}.a $libname.a'
7511 soname_spec='${libname}${release}${shared_ext}$major'
7513 shlibpath_var=LIBPATH
7518 library_names_spec='$libname.ixlibrary $libname.a'
7519 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7520 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'
7524 library_names_spec='${libname}${shared_ext}'
7525 dynamic_linker="$host_os ld.so"
7526 shlibpath_var=LIBRARY_PATH
7532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7533 soname_spec='${libname}${release}${shared_ext}$major'
7534 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7535 shlibpath_var=LD_LIBRARY_PATH
7536 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7537 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7538 # the default ld.so.conf also contains /usr/contrib/lib and
7539 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7540 # libtool to hard-code these into programs
7543 cygwin* | mingw* | pw32*)
7544 version_type=windows
7549 case $GCC,$host_os in
7550 yes,cygwin* | yes,mingw* | yes,pw32*)
7551 library_names_spec='$libname.dll.a'
7552 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7553 postinstall_cmds='base_file=`basename \${file}`~
7554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7555 dldir=$destdir/`dirname \$dlpath`~
7556 test -d \$dldir || mkdir -p \$dldir~
7557 $install_prog $dir/$dlname \$dldir/$dlname'
7558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7559 dlpath=$dir/\$dldll~
7561 shlibpath_overrides_runpath=yes
7565 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7566 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7567 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7570 # MinGW DLLs use traditional 'lib' prefix
7571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7572 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7573 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7574 # It is most probably a Windows format PATH printed by
7575 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7576 # path with ; separators, and with drive letters. We can handle the
7577 # drive letters (cygwin fileutils understands them), so leave them,
7578 # especially as we might pass files found there to a mingw objdump,
7579 # which wouldn't understand a cygwinified path. Ahh.
7580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7586 # pw32 DLLs use 'pw' prefix rather than 'lib'
7587 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7593 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7596 dynamic_linker='Win32 ld.exe'
7597 # FIXME: first we should search . and the directory the executable is in
7601 darwin* | rhapsody*)
7602 dynamic_linker="$host_os dyld"
7606 # FIXME: Relying on posixy $() will cause problems for
7607 # cross-compilation, but unfortunately the echo tests do not
7608 # yet detect zsh echo's removal of \ escapes.
7609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7610 soname_spec='${libname}${release}${major}$shared_ext'
7611 shlibpath_overrides_runpath=yes
7612 shlibpath_var=DYLD_LIBRARY_PATH
7613 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7614 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7615 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7616 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"`
7618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7626 soname_spec='${libname}${release}${shared_ext}$major'
7627 shlibpath_var=LD_LIBRARY_PATH
7635 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7636 version_type=freebsd-$objformat
7637 case $version_type in
7639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7648 shlibpath_var=LD_LIBRARY_PATH
7651 shlibpath_overrides_runpath=yes
7653 freebsd3.01* | freebsdelf3.01*)
7654 shlibpath_overrides_runpath=yes
7655 hardcode_into_libs=yes
7658 shlibpath_overrides_runpath=no
7659 hardcode_into_libs=yes
7668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
7670 shlibpath_var=LD_LIBRARY_PATH
7671 hardcode_into_libs=yes
7674 hpux9* | hpux10* | hpux11*)
7675 # Give a soname corresponding to the major version so that dld.sl refuses to
7676 # link against other versions.
7683 hardcode_into_libs=yes
7684 dynamic_linker="$host_os dld.so"
7685 shlibpath_var=LD_LIBRARY_PATH
7686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7688 soname_spec='${libname}${release}${shared_ext}$major'
7689 if test "X$HPUX_IA64_MODE" = X32; then
7690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7698 hardcode_into_libs=yes
7699 dynamic_linker="$host_os dld.sl"
7700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703 soname_spec='${libname}${release}${shared_ext}$major'
7704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7709 dynamic_linker="$host_os dld.sl"
7710 shlibpath_var=SHLIB_PATH
7711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7713 soname_spec='${libname}${release}${shared_ext}$major'
7716 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7717 postinstall_cmds='chmod 555 $lib'
7720 irix5* | irix6* | nonstopux*)
7722 nonstopux*) version_type=nonstopux ;;
7724 if test "$lt_cv_prog_gnu_ld" = yes; then
7732 soname_spec='${libname}${release}${shared_ext}$major'
7733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7735 irix5* | nonstopux*)
7739 case $LD in # libtool.m4 will add one of these switches to LD
7740 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7741 libsuff= shlibsuff= libmagic=32-bit;;
7742 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7743 libsuff=32 shlibsuff=N32 libmagic=N32;;
7744 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7745 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7746 *) libsuff= shlibsuff= libmagic=never-match;;
7750 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7751 shlibpath_overrides_runpath=no
7752 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7753 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7754 hardcode_into_libs=yes
7757 # No shared lib support for Linux oldld, aout, or coff.
7758 linux*oldld* | linux*aout* | linux*coff*)
7762 # This must be Linux ELF.
7767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7768 soname_spec='${libname}${release}${shared_ext}$major'
7769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7770 shlibpath_var=LD_LIBRARY_PATH
7771 shlibpath_overrides_runpath=no
7772 # This implies no fast_install, which is unacceptable.
7773 # Some rework will be needed to allow for fast_install
7774 # before this can be enabled.
7775 hardcode_into_libs=yes
7777 # We used to test for /lib/ld.so.1 and disable shared libraries on
7778 # powerpc, because MkLinux only supported shared libraries with the
7779 # GNU dynamic linker. Since this was broken with cross compilers,
7780 # most powerpc-linux boxes support dynamic linking these days and
7781 # people can always --disable-shared, the test was removed, and we
7782 # assume the GNU/Linux dynamic linker is in use.
7783 dynamic_linker='GNU/Linux ld.so'
7790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7793 dynamic_linker='NetBSD (a.out) ld.so'
7795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7796 soname_spec='${libname}${release}${shared_ext}$major'
7797 dynamic_linker='NetBSD ld.elf_so'
7799 shlibpath_var=LD_LIBRARY_PATH
7800 shlibpath_overrides_runpath=yes
7801 hardcode_into_libs=yes
7806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807 shlibpath_var=LD_LIBRARY_PATH
7808 shlibpath_overrides_runpath=yes
7815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7816 soname_spec='${libname}${release}${shared_ext}$major'
7817 shlibpath_var=LD_LIBRARY_PATH
7818 shlibpath_overrides_runpath=yes
7825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7827 shlibpath_var=LD_LIBRARY_PATH
7828 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7830 openbsd2.[89] | openbsd2.[89].*)
7831 shlibpath_overrides_runpath=no
7834 shlibpath_overrides_runpath=yes
7838 shlibpath_overrides_runpath=yes
7843 libname_spec='$name'
7846 library_names_spec='$libname${shared_ext} $libname.a'
7847 dynamic_linker='OS/2 ld.exe'
7848 shlibpath_var=LIBPATH
7851 osf3* | osf4* | osf5*)
7855 soname_spec='${libname}${release}${shared_ext}$major'
7856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7857 shlibpath_var=LD_LIBRARY_PATH
7858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7859 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7864 soname_spec='${libname}${release}${shared_ext}$major'
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866 shlibpath_var=LD_LIBRARY_PATH
7873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874 soname_spec='${libname}${release}${shared_ext}$major'
7875 shlibpath_var=LD_LIBRARY_PATH
7876 shlibpath_overrides_runpath=yes
7877 hardcode_into_libs=yes
7878 # ldd complains unless libraries are executable
7879 postinstall_cmds='chmod +x $lib'
7884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7885 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7886 shlibpath_var=LD_LIBRARY_PATH
7887 shlibpath_overrides_runpath=yes
7888 if test "$with_gnu_ld" = yes; then
7894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897 soname_spec='${libname}${release}${shared_ext}$major'
7898 shlibpath_var=LD_LIBRARY_PATH
7899 case $host_vendor in
7901 shlibpath_overrides_runpath=no
7903 export_dynamic_flag_spec='${wl}-Blargedynsym'
7904 runpath_var=LD_RUN_PATH
7912 shlibpath_overrides_runpath=no
7913 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7919 if test -d /usr/nec ;then
7921 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7922 soname_spec='$libname${shared_ext}.$major'
7923 shlibpath_var=LD_LIBRARY_PATH
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930 soname_spec='${libname}${release}${shared_ext}$major'
7931 shlibpath_var=LD_LIBRARY_PATH
7938 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7939 echo "${ECHO_T}$dynamic_linker" >&6
7940 test "$dynamic_linker" = no && can_build_shared=no
7942 if test "x$enable_dlopen" != xyes; then
7943 enable_dlopen=unknown
7944 enable_dlopen_self=unknown
7945 enable_dlopen_self_static=unknown
7952 lt_cv_dlopen="load_add_on"
7954 lt_cv_dlopen_self=yes
7958 lt_cv_dlopen="LoadLibrary"
7963 lt_cv_dlopen="dlopen"
7968 # if libdl is installed we need to link against it
7969 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 ac_check_lib_save_LIBS=$LIBS
7976 cat >conftest.$ac_ext <<_ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7983 /* Override any gcc2 internal prototype to avoid an error. */
7987 /* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7998 rm -f conftest.$ac_objext conftest$ac_exeext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000 (eval $ac_link) 2>conftest.er1
8002 grep -v '^ *+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_cv_lib_dl_dlopen=yes
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ac_cv_lib_dl_dlopen=no
8027 rm -f conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029 LIBS=$ac_check_lib_save_LIBS
8031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8033 if test $ac_cv_lib_dl_dlopen = yes; then
8034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8039 lt_cv_dlopen_self=yes
8046 echo "$as_me:$LINENO: checking for shl_load" >&5
8047 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8048 if test "${ac_cv_func_shl_load+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8059 #define shl_load innocuous_shl_load
8061 /* System header to define __stub macros and hopefully few prototypes,
8062 which can conflict with char shl_load (); below.
8063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8064 <limits.h> exists even on freestanding compilers. */
8067 # include <limits.h>
8069 # include <assert.h>
8074 /* Override any gcc2 internal prototype to avoid an error. */
8079 /* We use char because int might match the return type of a gcc2
8080 builtin and then its argument prototype would still apply. */
8082 /* The GNU C library defines this for functions which it implements
8083 to always fail with ENOSYS. Some functions are actually named
8084 something starting with __ and the normal name is an alias. */
8085 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8088 char (*f) () = shl_load;
8097 return f != shl_load;
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag"
8112 || test ! -s conftest.err'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_func_shl_load=yes
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_cv_func_shl_load=no
8131 rm -f conftest.err conftest.$ac_objext \
8132 conftest$ac_exeext conftest.$ac_ext
8134 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8135 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8136 if test $ac_cv_func_shl_load = yes; then
8137 lt_cv_dlopen="shl_load"
8139 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8140 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8141 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 ac_check_lib_save_LIBS=$LIBS
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8153 /* Override any gcc2 internal prototype to avoid an error. */
8157 /* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170 (eval $ac_link) 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag"
8178 || test ! -s conftest.err'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_cv_lib_dld_shl_load=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_lib_dld_shl_load=no
8197 rm -f conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199 LIBS=$ac_check_lib_save_LIBS
8201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8202 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8203 if test $ac_cv_lib_dld_shl_load = yes; then
8204 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8206 echo "$as_me:$LINENO: checking for dlopen" >&5
8207 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8208 if test "${ac_cv_func_dlopen+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8219 #define dlopen innocuous_dlopen
8221 /* System header to define __stub macros and hopefully few prototypes,
8222 which can conflict with char dlopen (); below.
8223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8224 <limits.h> exists even on freestanding compilers. */
8227 # include <limits.h>
8229 # include <assert.h>
8234 /* Override any gcc2 internal prototype to avoid an error. */
8239 /* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8242 /* The GNU C library defines this for functions which it implements
8243 to always fail with ENOSYS. Some functions are actually named
8244 something starting with __ and the normal name is an alias. */
8245 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8248 char (*f) () = dlopen;
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>conftest.er1
8266 grep -v '^ *+' conftest.er1 >conftest.err
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -z "$ac_c_werror_flag"
8272 || test ! -s conftest.err'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_func_dlopen=yes
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 ac_cv_func_dlopen=no
8291 rm -f conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
8294 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8295 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8296 if test $ac_cv_func_dlopen = yes; then
8297 lt_cv_dlopen="dlopen"
8299 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8300 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 ac_check_lib_save_LIBS=$LIBS
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8313 /* Override any gcc2 internal prototype to avoid an error. */
8317 /* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330 (eval $ac_link) 2>conftest.er1
8332 grep -v '^ *+' conftest.er1 >conftest.err
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag"
8338 || test ! -s conftest.err'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try='test -s conftest$ac_exeext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_cv_lib_dl_dlopen=yes
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 ac_cv_lib_dl_dlopen=no
8357 rm -f conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
8359 LIBS=$ac_check_lib_save_LIBS
8361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8363 if test $ac_cv_lib_dl_dlopen = yes; then
8364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8366 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8367 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8368 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 ac_check_lib_save_LIBS=$LIBS
8373 cat >conftest.$ac_ext <<_ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h. */
8380 /* Override any gcc2 internal prototype to avoid an error. */
8384 /* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397 (eval $ac_link) 2>conftest.er1
8399 grep -v '^ *+' conftest.er1 >conftest.err
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -z "$ac_c_werror_flag"
8405 || test ! -s conftest.err'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest$ac_exeext'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_cv_lib_svld_dlopen=yes
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8422 ac_cv_lib_svld_dlopen=no
8424 rm -f conftest.err conftest.$ac_objext \
8425 conftest$ac_exeext conftest.$ac_ext
8426 LIBS=$ac_check_lib_save_LIBS
8428 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8429 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8430 if test $ac_cv_lib_svld_dlopen = yes; then
8431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8433 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8434 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8435 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 ac_check_lib_save_LIBS=$LIBS
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8447 /* Override any gcc2 internal prototype to avoid an error. */
8451 /* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>conftest.er1
8466 grep -v '^ *+' conftest.er1 >conftest.err
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_lib_dld_dld_link=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_lib_dld_dld_link=no
8491 rm -f conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
8493 LIBS=$ac_check_lib_save_LIBS
8495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8497 if test $ac_cv_lib_dld_dld_link = yes; then
8498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8519 if test "x$lt_cv_dlopen" != xno; then
8525 case $lt_cv_dlopen in
8527 save_CPPFLAGS="$CPPFLAGS"
8528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8530 save_LDFLAGS="$LDFLAGS"
8531 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8534 LIBS="$lt_cv_dlopen_libs $LIBS"
8536 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8538 if test "${lt_cv_dlopen_self+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 if test "$cross_compiling" = yes; then :
8542 lt_cv_dlopen_self=cross
8544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8545 lt_status=$lt_dlunknown
8546 cat > conftest.$ac_ext <<EOF
8547 #line 8547 "configure"
8548 #include "confdefs.h"
8557 # define LT_DLGLOBAL RTLD_GLOBAL
8560 # define LT_DLGLOBAL DL_GLOBAL
8562 # define LT_DLGLOBAL 0
8566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8567 find out it does not work in some platform. */
8568 #ifndef LT_DLLAZY_OR_NOW
8570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8573 # define LT_DLLAZY_OR_NOW DL_LAZY
8576 # define LT_DLLAZY_OR_NOW RTLD_NOW
8579 # define LT_DLLAZY_OR_NOW DL_NOW
8581 # define LT_DLLAZY_OR_NOW 0
8589 extern "C" void exit (int);
8592 void fnord() { int i=42;}
8595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8596 int status = $lt_dlunknown;
8600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8602 /* dlclose (self); */
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8613 (./conftest; exit; ) 2>/dev/null
8616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8618 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8621 # compilation failed
8622 lt_cv_dlopen_self=no
8629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8632 if test "x$lt_cv_dlopen_self" = xyes; then
8633 LDFLAGS="$LDFLAGS $link_static_flag"
8634 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8636 if test "${lt_cv_dlopen_self_static+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 if test "$cross_compiling" = yes; then :
8640 lt_cv_dlopen_self_static=cross
8642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8643 lt_status=$lt_dlunknown
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8645 "configure"
8646 #include "confdefs.h"
8655 # define LT_DLGLOBAL RTLD_GLOBAL
8658 # define LT_DLGLOBAL DL_GLOBAL
8660 # define LT_DLGLOBAL 0
8664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8665 find out it does not work in some platform. */
8666 #ifndef LT_DLLAZY_OR_NOW
8668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8671 # define LT_DLLAZY_OR_NOW DL_LAZY
8674 # define LT_DLLAZY_OR_NOW RTLD_NOW
8677 # define LT_DLLAZY_OR_NOW DL_NOW
8679 # define LT_DLLAZY_OR_NOW 0
8687 extern "C" void exit (int);
8690 void fnord() { int i=42;}
8693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8694 int status = $lt_dlunknown;
8698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8700 /* dlclose (self); */
8706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707 (eval $ac_link) 2>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8711 (./conftest; exit; ) 2>/dev/null
8714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8716 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8719 # compilation failed
8720 lt_cv_dlopen_self_static=no
8727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8731 CPPFLAGS="$save_CPPFLAGS"
8732 LDFLAGS="$save_LDFLAGS"
8737 case $lt_cv_dlopen_self in
8738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8739 *) enable_dlopen_self=unknown ;;
8742 case $lt_cv_dlopen_self_static in
8743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8744 *) enable_dlopen_self_static=unknown ;;
8749 # Report which librarie types wil actually be built
8750 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8751 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8752 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8753 echo "${ECHO_T}$can_build_shared" >&6
8755 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8756 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8757 test "$can_build_shared" = "no" && enable_shared=no
8759 # On AIX, shared libraries and static libraries use the same namespace, and
8760 # are all built from PIC.
8763 test "$enable_shared" = yes && enable_static=no
8764 if test -n "$RANLIB"; then
8765 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8766 postinstall_cmds='$RANLIB $lib'
8771 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8772 test "$enable_shared" = yes && enable_static=no
8775 darwin* | rhapsody*)
8776 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8777 archive_cmds_need_lc=no
8779 rhapsody* | darwin1.[012])
8780 allow_undefined_flag='-undefined suppress'
8783 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8786 # FIXME: Relying on posixy $() will cause problems for
8787 # cross-compilation, but unfortunately the echo tests do not
8788 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8789 # `"' quotes if we put them in here... so don't!
8790 output_verbose_link_cmd='echo'
8791 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8792 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8793 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8794 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}'
8795 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}'
8797 hardcode_automatic=yes
8798 hardcode_shlibpath_var=unsupported
8799 whole_archive_flag_spec='-all_load $convenience'
8800 link_all_deplibs=yes
8804 echo "$as_me:$LINENO: result: $enable_shared" >&5
8805 echo "${ECHO_T}$enable_shared" >&6
8807 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8808 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8809 # Make sure either enable_shared or enable_static is yes.
8810 test "$enable_shared" = yes || enable_static=yes
8811 echo "$as_me:$LINENO: result: $enable_static" >&5
8812 echo "${ECHO_T}$enable_static" >&6
8814 # The else clause should only fire when bootstrapping the
8815 # libtool distribution, otherwise you forgot to ship ltmain.sh
8816 # with your package, and you will get complaints that there are
8817 # no rules to generate ltmain.sh.
8818 if test -f "$ltmain"; then
8819 # See if we are running on zsh, and set the options which allow our commands through
8820 # without removal of \ escapes.
8821 if test -n "${ZSH_VERSION+set}" ; then
8822 setopt NO_GLOB_SUBST
8824 # Now quote all the things that may contain metacharacters while being
8825 # careful not to overquote the AC_SUBSTed values. We take copies of the
8826 # variables and quote the copies for generation of the libtool script.
8827 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8828 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8829 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8830 deplibs_check_method reload_flag reload_cmds need_locks \
8831 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8832 lt_cv_sys_global_symbol_to_c_name_address \
8833 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8834 old_postinstall_cmds old_postuninstall_cmds \
8838 lt_prog_compiler_wl \
8839 lt_prog_compiler_pic \
8840 lt_prog_compiler_static \
8841 lt_prog_compiler_no_builtin_flag \
8842 export_dynamic_flag_spec \
8843 thread_safe_flag_spec \
8844 whole_archive_flag_spec \
8845 enable_shared_with_static_runtimes \
8847 old_archive_from_new_cmds \
8852 compiler_lib_search_path \
8854 archive_expsym_cmds \
8856 postuninstall_cmds \
8857 old_archive_from_expsyms_cmds \
8858 allow_undefined_flag \
8860 export_symbols_cmds \
8861 hardcode_libdir_flag_spec \
8862 hardcode_libdir_flag_spec_ld \
8863 hardcode_libdir_separator \
8864 hardcode_automatic \
8866 module_expsym_cmds \
8867 lt_cv_prog_compiler_c_o \
8872 old_archive_cmds | \
8873 old_archive_from_new_cmds | \
8875 archive_expsym_cmds | \
8877 module_expsym_cmds | \
8878 old_archive_from_expsyms_cmds | \
8879 export_symbols_cmds | \
8880 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8881 postinstall_cmds | postuninstall_cmds | \
8882 old_postinstall_cmds | old_postuninstall_cmds | \
8883 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8884 # Double-quote double-evaled strings.
8885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8894 *'\$0 --fallback-echo"')
8895 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8900 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8902 { echo "$as_me:$LINENO: creating $ofile" >&5
8903 echo "$as_me: creating $ofile" >&6;}
8905 cat <<__EOF__ >> "$cfgfile"
8908 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8909 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8910 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8912 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8913 # Free Software Foundation, Inc.
8915 # This file is part of GNU Libtool:
8916 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8918 # This program is free software; you can redistribute it and/or modify
8919 # it under the terms of the GNU General Public License as published by
8920 # the Free Software Foundation; either version 2 of the License, or
8921 # (at your option) any later version.
8923 # This program is distributed in the hope that it will be useful, but
8924 # WITHOUT ANY WARRANTY; without even the implied warranty of
8925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8926 # General Public License for more details.
8928 # You should have received a copy of the GNU General Public License
8929 # along with this program; if not, write to the Free Software
8930 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8932 # As a special exception to the GNU General Public License, if you
8933 # distribute this file as part of a program that contains a
8934 # configuration script generated by Autoconf, you may include it under
8935 # the same distribution terms that you use for the rest of that program.
8937 # A sed program that does not truncate output.
8940 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8941 Xsed="$SED -e s/^X//"
8943 # The HP-UX ksh and POSIX shell print the target directory to stdout
8945 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8947 # The names of the tagged configurations supported by this script.
8950 # ### BEGIN LIBTOOL CONFIG
8952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8954 # Shell to use when invoking shell scripts.
8957 # Whether or not to build shared libraries.
8958 build_libtool_libs=$enable_shared
8960 # Whether or not to build static libraries.
8961 build_old_libs=$enable_static
8963 # Whether or not to add -lc for building shared libraries.
8964 build_libtool_need_lc=$archive_cmds_need_lc
8966 # Whether or not to disallow shared libs when runtime libs are static
8967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8969 # Whether or not to optimize for fast installation.
8970 fast_install=$enable_fast_install
8973 host_alias=$host_alias
8976 # An echo program that does not interpret backslashes.
8981 AR_FLAGS=$lt_AR_FLAGS
8986 # A language-specific compiler.
8989 # Is the compiler the GNU C compiler?
8995 # The linker used to build libraries.
8998 # Whether we need hard or soft links.
9001 # A BSD-compatible nm program.
9004 # A symbol stripping program
9007 # Used to examine libraries when file_magic_cmd begins "file"
9008 MAGIC_CMD=$MAGIC_CMD
9010 # Used on cygwin: DLL creation program.
9013 # Used on cygwin: object dumper.
9016 # Used on cygwin: assembler.
9019 # The name of the directory that contains temporary libtool files.
9022 # How to create reloadable object files.
9023 reload_flag=$lt_reload_flag
9024 reload_cmds=$lt_reload_cmds
9026 # How to pass a linker flag through the compiler.
9027 wl=$lt_lt_prog_compiler_wl
9029 # Object file suffix (normally "o").
9032 # Old archive suffix (normally "a").
9035 # Shared library suffix (normally ".so").
9038 # Executable file suffix (normally "").
9041 # Additional compiler flags for building library objects.
9042 pic_flag=$lt_lt_prog_compiler_pic
9045 # What is the maximum length of a command?
9046 max_cmd_len=$lt_cv_sys_max_cmd_len
9048 # Does compiler simultaneously support -c and -o options?
9049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9051 # Must we lock files when doing compilation ?
9052 need_locks=$lt_need_locks
9054 # Do we need the lib prefix for modules?
9055 need_lib_prefix=$need_lib_prefix
9057 # Do we need a version for libraries?
9058 need_version=$need_version
9060 # Whether dlopen is supported.
9061 dlopen_support=$enable_dlopen
9063 # Whether dlopen of programs is supported.
9064 dlopen_self=$enable_dlopen_self
9066 # Whether dlopen of statically linked programs is supported.
9067 dlopen_self_static=$enable_dlopen_self_static
9069 # Compiler flag to prevent dynamic linking.
9070 link_static_flag=$lt_lt_prog_compiler_static
9072 # Compiler flag to turn off builtin functions.
9073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9075 # Compiler flag to allow reflexive dlopens.
9076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9078 # Compiler flag to generate shared objects directly from archives.
9079 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9081 # Compiler flag to generate thread-safe objects.
9082 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9084 # Library versioning type.
9085 version_type=$version_type
9087 # Format of library name prefix.
9088 libname_spec=$lt_libname_spec
9090 # List of archive names. First name is the real one, the rest are links.
9091 # The last name is the one that the linker finds with -lNAME.
9092 library_names_spec=$lt_library_names_spec
9094 # The coded name of the library, if different from the real name.
9095 soname_spec=$lt_soname_spec
9097 # Commands used to build and install an old-style archive.
9099 old_archive_cmds=$lt_old_archive_cmds
9100 old_postinstall_cmds=$lt_old_postinstall_cmds
9101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9103 # Create an old-style archive from a shared archive.
9104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9106 # Create a temporary old-style archive to link instead of a shared archive.
9107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9109 # Commands used to build and install a shared archive.
9110 archive_cmds=$lt_archive_cmds
9111 archive_expsym_cmds=$lt_archive_expsym_cmds
9112 postinstall_cmds=$lt_postinstall_cmds
9113 postuninstall_cmds=$lt_postuninstall_cmds
9115 # Commands used to build a loadable module (assumed same as above if empty)
9116 module_cmds=$lt_module_cmds
9117 module_expsym_cmds=$lt_module_expsym_cmds
9119 # Commands to strip libraries.
9120 old_striplib=$lt_old_striplib
9121 striplib=$lt_striplib
9123 # Dependencies to place before the objects being linked to create a
9125 predep_objects=$lt_predep_objects
9127 # Dependencies to place after the objects being linked to create a
9129 postdep_objects=$lt_postdep_objects
9131 # Dependencies to place before the objects being linked to create a
9135 # Dependencies to place after the objects being linked to create a
9137 postdeps=$lt_postdeps
9139 # The library search path used internally by the compiler when linking
9141 compiler_lib_search_path=$lt_compiler_lib_search_path
9143 # Method to check whether dependent libraries are shared objects.
9144 deplibs_check_method=$lt_deplibs_check_method
9146 # Command to use when deplibs_check_method == file_magic.
9147 file_magic_cmd=$lt_file_magic_cmd
9149 # Flag that allows shared libraries with undefined symbols to be built.
9150 allow_undefined_flag=$lt_allow_undefined_flag
9152 # Flag that forces no undefined symbols.
9153 no_undefined_flag=$lt_no_undefined_flag
9155 # Commands used to finish a libtool library installation in a directory.
9156 finish_cmds=$lt_finish_cmds
9158 # Same as above, but a single script fragment to be evaled but not shown.
9159 finish_eval=$lt_finish_eval
9161 # Take the output of nm and produce a listing of raw symbols and C names.
9162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9164 # Transform the output of nm in a proper C declaration
9165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9167 # Transform the output of nm in a C name address pair
9168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9170 # This is the shared library runtime path variable.
9171 runpath_var=$runpath_var
9173 # This is the shared library path variable.
9174 shlibpath_var=$shlibpath_var
9176 # Is shlibpath searched before the hard-coded library search path?
9177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9179 # How to hardcode a shared library path into an executable.
9180 hardcode_action=$hardcode_action
9182 # Whether we should hardcode library paths into libraries.
9183 hardcode_into_libs=$hardcode_into_libs
9185 # Flag to hardcode \$libdir into a binary during linking.
9186 # This must work even if \$libdir does not exist.
9187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9189 # If ld is used when linking, flag to hardcode \$libdir into
9190 # a binary during linking. This must work even if \$libdir does
9192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9194 # Whether we need a single -rpath flag with a separated argument.
9195 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9199 hardcode_direct=$hardcode_direct
9201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9203 hardcode_minus_L=$hardcode_minus_L
9205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9206 # the resulting binary.
9207 hardcode_shlibpath_var=$hardcode_shlibpath_var
9209 # Set to yes if building a shared library automatically hardcodes DIR into the library
9210 # and all subsequent libraries and executables linked against it.
9211 hardcode_automatic=$hardcode_automatic
9213 # Variables whose values should be saved in libtool wrapper scripts and
9214 # restored at relink time.
9215 variables_saved_for_relink="$variables_saved_for_relink"
9217 # Whether libtool must link a program against all its dependency libraries.
9218 link_all_deplibs=$link_all_deplibs
9220 # Compile-time system search path for libraries
9221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9223 # Run-time system search path for libraries
9224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9226 # Fix the shell variable \$srcfile for the compiler.
9227 fix_srcfile_path="$fix_srcfile_path"
9229 # Set to yes if exported symbols are required.
9230 always_export_symbols=$always_export_symbols
9232 # The commands to list exported symbols.
9233 export_symbols_cmds=$lt_export_symbols_cmds
9235 # The commands to extract the exported symbol list from a shared archive.
9236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9238 # Symbols that should not be listed in the preloaded symbols.
9239 exclude_expsyms=$lt_exclude_expsyms
9241 # Symbols that must always be exported.
9242 include_expsyms=$lt_include_expsyms
9244 # ### END LIBTOOL CONFIG
9251 cat <<\EOF >> "$cfgfile"
9253 # AIX sometimes has problems with the GCC collect2 program. For some
9254 # reason, if we set the COLLECT_NAMES environment variable, the problems
9255 # vanish in a puff of smoke.
9256 if test "X${COLLECT_NAMES+set}" != Xset; then
9258 export COLLECT_NAMES
9264 # We use sed instead of cat because bash on DJGPP gets confused if
9265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9266 # text mode, it properly converts lines to CR/LF. This bash problem
9267 # is reportedly fixed, but why not run on old versions too?
9268 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9270 mv -f "$cfgfile" "$ofile" || \
9271 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9275 # If there is no Makefile yet, we rely on a make rule to execute
9276 # `config.status --recheck' to rerun these tests and create the
9277 # libtool script then.
9278 test -f Makefile && make "$ltmain"
9283 ac_cpp='$CPP $CPPFLAGS'
9284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9291 # Check whether --with-tags or --without-tags was given.
9292 if test "${with_tags+set}" = set; then
9293 withval="$with_tags"
9297 if test -f "$ltmain" && test -n "$tagnames"; then
9298 if test ! -f "${ofile}"; then
9299 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9300 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9303 if test -z "$LTCC"; then
9304 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9305 if test -z "$LTCC"; then
9306 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9307 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9310 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9314 # Extract list of available tagged configurations in $ofile.
9315 # Note that this assumes the entire list is on one line.
9316 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9319 for tagname in $tagnames; do
9321 # Check whether tagname contains only valid characters
9322 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9324 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9325 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9326 { (exit 1); exit 1; }; }
9330 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9332 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9333 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9334 { (exit 1); exit 1; }; }
9337 # Update the list of available tags.
9338 if test -n "$tagname"; then
9339 echo appending configuration tag \"$tagname\" to $ofile
9343 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9345 ac_cpp='$CXXCPP $CPPFLAGS'
9346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9353 archive_cmds_need_lc_CXX=no
9354 allow_undefined_flag_CXX=
9355 always_export_symbols_CXX=no
9356 archive_expsym_cmds_CXX=
9357 export_dynamic_flag_spec_CXX=
9358 hardcode_direct_CXX=no
9359 hardcode_libdir_flag_spec_CXX=
9360 hardcode_libdir_flag_spec_ld_CXX=
9361 hardcode_libdir_separator_CXX=
9362 hardcode_minus_L_CXX=no
9363 hardcode_automatic_CXX=no
9365 module_expsym_cmds_CXX=
9366 link_all_deplibs_CXX=unknown
9367 old_archive_cmds_CXX=$old_archive_cmds
9368 no_undefined_flag_CXX=
9369 whole_archive_flag_spec_CXX=
9370 enable_shared_with_static_runtimes_CXX=no
9372 # Dependencies to place before and after the object being linked:
9374 postdep_objects_CXX=
9377 compiler_lib_search_path_CXX=
9379 # Source file extension for C++ test sources.
9382 # Object file extension for compiled C++ test sources.
9386 # Code to be used in simple compile tests
9387 lt_simple_compile_test_code="int some_variable = 0;\n"
9389 # Code to be used in simple link tests
9390 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9394 # If no C compiler was specified, use CC.
9397 # Allow CC to be a program name with arguments.
9401 # Allow CC to be a program name with arguments.
9406 lt_save_with_gnu_ld=$with_gnu_ld
9407 lt_save_path_LD=$lt_cv_path_LD
9408 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9409 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9411 unset lt_cv_prog_gnu_ld
9413 if test -n "${lt_cv_path_LDCXX+set}"; then
9414 lt_cv_path_LD=$lt_cv_path_LDCXX
9418 test -z "${LDCXX+set}" || LD=$LDCXX
9422 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9424 # We don't want -fno-exception wen compiling C++ code, so set the
9425 # no_builtin_flag separately
9426 if test "$GXX" = yes; then
9427 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9429 lt_prog_compiler_no_builtin_flag_CXX=
9432 if test "$GXX" = yes; then
9433 # Set up default GNU C++ configuration
9436 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9437 if test "${with_gnu_ld+set}" = set; then
9438 withval="$with_gnu_ld"
9439 test "$withval" = no || with_gnu_ld=yes
9444 if test "$GCC" = yes; then
9445 # Check if gcc -print-prog-name=ld gives a path.
9446 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9447 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9450 # gcc leaves a trailing carriage return which upsets mingw
9451 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9453 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9456 # Accept absolute paths.
9458 re_direlt='/[^/][^/]*/\.\./'
9459 # Canonicalize the path of ld
9460 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9461 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9462 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9464 test -z "$LD" && LD="$ac_prog"
9467 # If it fails, then pretend we aren't using GCC.
9471 # If it is relative, then search for the first ld in PATH.
9475 elif test "$with_gnu_ld" = yes; then
9476 echo "$as_me:$LINENO: checking for GNU ld" >&5
9477 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9479 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9480 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9482 if test "${lt_cv_path_LD+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 if test -z "$LD"; then
9486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9487 for ac_dir in $PATH; do
9489 test -z "$ac_dir" && ac_dir=.
9490 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9491 lt_cv_path_LD="$ac_dir/$ac_prog"
9492 # Check to see if the program is GNU ld. I'd rather use --version,
9493 # but apparently some GNU ld's only accept -v.
9494 # Break only if it was the GNU/non-GNU ld that we prefer.
9495 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9496 *GNU* | *'with BFD'*)
9497 test "$with_gnu_ld" != no && break
9500 test "$with_gnu_ld" != yes && break
9507 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9512 if test -n "$LD"; then
9513 echo "$as_me:$LINENO: result: $LD" >&5
9514 echo "${ECHO_T}$LD" >&6
9516 echo "$as_me:$LINENO: result: no" >&5
9517 echo "${ECHO_T}no" >&6
9519 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9520 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9521 { (exit 1); exit 1; }; }
9522 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9523 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9524 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9528 case `"$LD" -v 2>&1 </dev/null` in
9529 *GNU* | *'with BFD'*)
9530 lt_cv_prog_gnu_ld=yes
9533 lt_cv_prog_gnu_ld=no
9537 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9538 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9539 with_gnu_ld=$lt_cv_prog_gnu_ld
9543 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9544 # archiving commands below assume that GNU ld is being used.
9545 if test "$with_gnu_ld" = yes; then
9546 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 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'
9549 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9550 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9552 # If archive_cmds runs LD, not CC, wlarc should be empty
9553 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9554 # investigate it a little bit more. (MM)
9557 # ancient GNU ld didn't support --whole-archive et. al.
9558 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9559 grep 'no-whole-archive' > /dev/null; then
9560 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9562 whole_archive_flag_spec_CXX=
9568 # A generic and very simple default shared library creation
9569 # command for GNU C++ for the case where it uses the native
9570 # linker, instead of GNU ld. If possible, this setting should
9571 # overridden to take advantage of the native linker features on
9572 # the platform it is being used on.
9573 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9576 # Commands to make compiler produce verbose output that lists
9577 # what "hidden" libraries, object files and flags are used when
9578 # linking a shared library.
9579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9587 # PORTME: fill in a description of your system's C++ link characteristics
9588 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9593 # FIXME: insert proper C++ library support
9597 if test "$host_cpu" = ia64; then
9598 # On IA64, the linker does run time linking by default, so we don't
9599 # have to do anything special.
9600 aix_use_runtimelinking=no
9601 exp_sym_flag='-Bexport'
9604 aix_use_runtimelinking=no
9606 # Test if we are trying to use run time linking or normal
9607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9608 # need to do runtime linking.
9609 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9610 for ld_flag in $LDFLAGS; do
9613 aix_use_runtimelinking=yes
9620 exp_sym_flag='-bexport'
9621 no_entry_flag='-bnoentry'
9624 # When large executables or shared objects are built, AIX ld can
9625 # have problems creating the table of contents. If linking a library
9626 # or program results in "error TOC overflow" add -mminimal-toc to
9627 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9628 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9631 hardcode_direct_CXX=yes
9632 hardcode_libdir_separator_CXX=':'
9633 link_all_deplibs_CXX=yes
9635 if test "$GXX" = yes; then
9636 case $host_os in aix4.012|aix4.012.*)
9637 # We only want to do this on AIX 4.2 and lower, the check
9638 # below for broken collect2 doesn't work under 4.3+
9639 collect2name=`${CC} -print-prog-name=collect2`
9640 if test -f "$collect2name" && \
9641 strings "$collect2name" | grep resolve_lib_name >/dev/null
9643 # We have reworked collect2
9644 hardcode_direct_CXX=yes
9646 # We have old collect2
9647 hardcode_direct_CXX=unsupported
9648 # It fails to find uninstalled libraries when the uninstalled
9649 # path is not listed in the libpath. Setting hardcode_minus_L
9650 # to unsupported forces relinking
9651 hardcode_minus_L_CXX=yes
9652 hardcode_libdir_flag_spec_CXX='-L$libdir'
9653 hardcode_libdir_separator_CXX=
9656 shared_flag='-shared'
9659 if test "$host_cpu" = ia64; then
9660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9661 # chokes on -Wl,-G. The following line is correct:
9664 if test "$aix_use_runtimelinking" = yes; then
9665 shared_flag='${wl}-G'
9667 shared_flag='${wl}-bM:SRE'
9672 # It seems that -bexpall does not export symbols beginning with
9673 # underscore (_), so it is better to generate a list of symbols to export.
9674 always_export_symbols_CXX=yes
9675 if test "$aix_use_runtimelinking" = yes; then
9676 # Warning - without using the other runtime loading flags (-brtl),
9677 # -berok will link without error, but may produce a broken library.
9678 allow_undefined_flag_CXX='-berok'
9679 # Determine the default libpath from the value encoded in an empty executable.
9680 cat >conftest.$ac_ext <<_ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697 (eval $ac_link) 2>conftest.er1
9699 grep -v '^ *+' conftest.er1 >conftest.err
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -z "$ac_cxx_werror_flag"
9705 || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9718 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9720 # Check for a 64-bit object if we didn't find anything.
9721 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; }
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9728 rm -f conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9732 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9734 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"
9736 if test "$host_cpu" = ia64; then
9737 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9738 allow_undefined_flag_CXX="-z nodefs"
9739 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"
9741 # Determine the default libpath from the value encoded in an empty executable.
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>conftest.er1
9761 grep -v '^ *+' conftest.er1 >conftest.err
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_cxx_werror_flag"
9767 || test ! -s conftest.err'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9782 # Check for a 64-bit object if we didn't find anything.
9783 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; }
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9790 rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9794 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9795 # Warning - without using the other run time loading flags,
9796 # -berok will link without error, but may produce a broken library.
9797 no_undefined_flag_CXX=' ${wl}-bernotok'
9798 allow_undefined_flag_CXX=' ${wl}-berok'
9799 # -bexpall does not export symbols beginning with underscore (_)
9800 always_export_symbols_CXX=yes
9801 # Exported symbols can be pulled into shared objects from archives
9802 whole_archive_flag_spec_CXX=' '
9803 archive_cmds_need_lc_CXX=yes
9804 # This is similar to how AIX traditionally builds it's shared libraries.
9805 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'
9810 case $cc_basename in
9812 # FIXME: insert proper C++ library support
9818 cygwin* | mingw* | pw32*)
9819 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9820 # as there is no search path for DLLs.
9821 hardcode_libdir_flag_spec_CXX='-L$libdir'
9822 allow_undefined_flag_CXX=unsupported
9823 always_export_symbols_CXX=no
9824 enable_shared_with_static_runtimes_CXX=yes
9826 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9827 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'
9828 # If the export-symbols file already is a .def file (1st line
9829 # is EXPORTS), use it as is; otherwise, prepend...
9830 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9831 cp $export_symbols $output_objdir/$soname.def;
9833 echo EXPORTS > $output_objdir/$soname.def;
9834 cat $export_symbols >> $output_objdir/$soname.def;
9836 $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'
9842 darwin* | rhapsody*)
9843 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9844 archive_cmds_need_lc_CXX=no
9846 rhapsody* | darwin1.[012])
9847 allow_undefined_flag_CXX='-undefined suppress'
9850 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9853 lt_int_apple_cc_single_mod=no
9854 output_verbose_link_cmd='echo'
9855 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9856 lt_int_apple_cc_single_mod=yes
9858 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9859 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9861 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'
9863 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9866 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9867 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}'
9869 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}'
9871 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}'
9872 hardcode_direct_CXX=no
9873 hardcode_automatic_CXX=yes
9874 hardcode_shlibpath_var_CXX=unsupported
9875 whole_archive_flag_spec_CXX='-all_load $convenience'
9876 link_all_deplibs_CXX=yes
9881 case $cc_basename in
9883 # FIXME: insert proper C++ library support
9887 # Green Hills C++ Compiler
9888 # FIXME: insert proper C++ library support
9892 # FIXME: insert proper C++ library support
9898 # C++ shared libraries reported to be fairly broken before switch to ELF
9902 archive_cmds_need_lc_CXX=no
9905 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9912 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9913 hardcode_libdir_separator_CXX=:
9914 export_dynamic_flag_spec_CXX='${wl}-E'
9915 hardcode_direct_CXX=yes
9916 hardcode_minus_L_CXX=yes # Not in the search PATH,
9917 # but as the default
9918 # location of the library.
9920 case $cc_basename in
9922 # FIXME: insert proper C++ library support
9926 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'
9927 # Commands to make compiler produce verbose output that lists
9928 # what "hidden" libraries, object files and flags are used when
9929 # linking a shared library.
9931 # There doesn't appear to be a way to prevent this compiler from
9932 # explicitly linking system object files so we need to strip them
9933 # from the output so that they don't get included in the library
9935 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'
9938 if test "$GXX" = yes; then
9939 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'
9941 # FIXME: insert proper C++ library support
9948 if test $with_gnu_ld = no; then
9951 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9952 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9953 hardcode_libdir_separator_CXX=:
9956 hardcode_libdir_flag_spec_CXX='-L$libdir'
9959 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9960 hardcode_libdir_separator_CXX=:
9961 export_dynamic_flag_spec_CXX='${wl}-E'
9967 hardcode_direct_CXX=no
9968 hardcode_shlibpath_var_CXX=no
9971 hardcode_direct_CXX=no
9972 hardcode_shlibpath_var_CXX=no
9973 hardcode_minus_L_CXX=yes # Not in the search PATH,
9974 # but as the default
9975 # location of the library.
9978 hardcode_direct_CXX=yes
9979 hardcode_minus_L_CXX=yes # Not in the search PATH,
9980 # but as the default
9981 # location of the library.
9985 case $cc_basename in
9987 # FIXME: insert proper C++ library support
9993 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9996 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9999 # Commands to make compiler produce verbose output that lists
10000 # what "hidden" libraries, object files and flags are used when
10001 # linking a shared library.
10003 # There doesn't appear to be a way to prevent this compiler from
10004 # explicitly linking system object files so we need to strip them
10005 # from the output so that they don't get included in the library
10007 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'
10010 if test "$GXX" = yes; then
10011 if test $with_gnu_ld = no; then
10012 case "$host_cpu" in
10014 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10017 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'
10022 # FIXME: insert proper C++ library support
10029 case $cc_basename in
10032 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'
10034 # Archives containing C++ object files must be created using
10035 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10036 # necessary to make sure instantiated templates are included
10038 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10041 if test "$GXX" = yes; then
10042 if test "$with_gnu_ld" = no; then
10043 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'
10045 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'
10048 link_all_deplibs_CXX=yes
10051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10052 hardcode_libdir_separator_CXX=:
10055 case $cc_basename in
10057 # Kuck and Associates, Inc. (KAI) C++ Compiler
10059 # KCC will only create a shared library if the output file
10060 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10061 # to its proper name (with version) after linking.
10062 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'
10063 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'
10064 # Commands to make compiler produce verbose output that lists
10065 # what "hidden" libraries, object files and flags are used when
10066 # linking a shared library.
10068 # There doesn't appear to be a way to prevent this compiler from
10069 # explicitly linking system object files so we need to strip them
10070 # from the output so that they don't get included in the library
10072 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'
10074 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10075 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10077 # Archives containing C++ object files must be created using
10078 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10079 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10084 archive_cmds_need_lc_CXX=no
10085 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086 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'
10087 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10088 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10089 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10093 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094 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'
10096 runpath_var=LD_RUN_PATH
10097 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10098 hardcode_libdir_separator_CXX=:
10100 # Commands to make compiler produce verbose output that lists
10101 # what "hidden" libraries, object files and flags are used when
10102 # linking a shared library.
10104 # There doesn't appear to be a way to prevent this compiler from
10105 # explicitly linking system object files so we need to strip them
10106 # from the output so that they don't get included in the library
10108 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'
10113 # FIXME: insert proper C++ library support
10117 # FIXME: insert proper C++ library support
10121 case $cc_basename in
10123 # FIXME: insert proper C++ library support
10127 # FIXME: insert proper C++ library support
10133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10134 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10136 hardcode_libdir_flag_spec_CXX='-R$libdir'
10137 hardcode_direct_CXX=yes
10138 hardcode_shlibpath_var_CXX=no
10140 # Workaround some broken pre-1.5 toolchains
10141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10144 case $cc_basename in
10146 # Kuck and Associates, Inc. (KAI) C++ Compiler
10148 # KCC will only create a shared library if the output file
10149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10150 # to its proper name (with version) after linking.
10151 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'
10153 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10154 hardcode_libdir_separator_CXX=:
10156 # Archives containing C++ object files must be created using
10157 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10158 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10162 # Rational C++ 2.4.1
10163 # FIXME: insert proper C++ library support
10167 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10168 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'
10170 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10171 hardcode_libdir_separator_CXX=:
10173 # Commands to make compiler produce verbose output that lists
10174 # what "hidden" libraries, object files and flags are used when
10175 # linking a shared library.
10177 # There doesn't appear to be a way to prevent this compiler from
10178 # explicitly linking system object files so we need to strip them
10179 # from the output so that they don't get included in the library
10181 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'
10184 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10185 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10186 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'
10188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10189 hardcode_libdir_separator_CXX=:
10191 # Commands to make compiler produce verbose output that lists
10192 # what "hidden" libraries, object files and flags are used when
10193 # linking a shared library.
10194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10197 # FIXME: insert proper C++ library support
10204 case $cc_basename in
10206 # Kuck and Associates, Inc. (KAI) C++ Compiler
10208 # KCC will only create a shared library if the output file
10209 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10210 # to its proper name (with version) after linking.
10211 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'
10213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10214 hardcode_libdir_separator_CXX=:
10216 # Archives containing C++ object files must be created using
10217 # the KAI C++ compiler.
10218 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10221 # Rational C++ 2.4.1
10222 # FIXME: insert proper C++ library support
10226 allow_undefined_flag_CXX=' -expect_unresolved \*'
10227 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'
10228 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10229 echo "-hidden">> $lib.exp~
10230 $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~
10233 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10234 hardcode_libdir_separator_CXX=:
10236 # Commands to make compiler produce verbose output that lists
10237 # what "hidden" libraries, object files and flags are used when
10238 # linking a shared library.
10240 # There doesn't appear to be a way to prevent this compiler from
10241 # explicitly linking system object files so we need to strip them
10242 # from the output so that they don't get included in the library
10244 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'
10247 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10248 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10249 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'
10251 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10252 hardcode_libdir_separator_CXX=:
10254 # Commands to make compiler produce verbose output that lists
10255 # what "hidden" libraries, object files and flags are used when
10256 # linking a shared library.
10257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10260 # FIXME: insert proper C++ library support
10267 # FIXME: insert proper C++ library support
10271 archive_cmds_need_lc_CXX=no
10272 case $cc_basename in
10274 # FIXME: insert proper C++ library support
10278 # FIXME: insert proper C++ library support
10284 case $cc_basename in
10287 # FIXME: insert proper C++ library support
10292 # FIXME: insert proper C++ library support
10296 # FIXME: insert proper C++ library support
10302 case $cc_basename in
10304 # Sun C++ 4.2, 5.x and Centerline C++
10305 no_undefined_flag_CXX=' -zdefs'
10306 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10307 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10308 $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'
10310 hardcode_libdir_flag_spec_CXX='-R$libdir'
10311 hardcode_shlibpath_var_CXX=no
10313 solaris2.0-5 | solaris2.0-5.*) ;;
10315 # The C++ compiler is used as linker so we must use $wl
10316 # flag to pass the commands to the underlying system
10318 # Supported since Solaris 2.6 (maybe 2.5.1?)
10319 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10322 link_all_deplibs_CXX=yes
10324 # Commands to make compiler produce verbose output that lists
10325 # what "hidden" libraries, object files and flags are used when
10326 # linking a shared library.
10328 # There doesn't appear to be a way to prevent this compiler from
10329 # explicitly linking system object files so we need to strip them
10330 # from the output so that they don't get included in the library
10332 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'
10334 # Archives containing C++ object files must be created using
10335 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10336 # necessary to make sure instantiated templates are included
10338 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10341 # Green Hills C++ Compiler
10342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10344 # The C++ compiler must be used to create the archive.
10345 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10348 # GNU C++ compiler with Solaris linker
10349 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10350 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10351 if $CC --version | grep -v '^2\.7' > /dev/null; then
10352 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10353 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10354 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10356 # Commands to make compiler produce verbose output that lists
10357 # what "hidden" libraries, object files and flags are used when
10358 # linking a shared library.
10359 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10361 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10363 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10364 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10365 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10367 # Commands to make compiler produce verbose output that lists
10368 # what "hidden" libraries, object files and flags are used when
10369 # linking a shared library.
10370 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10373 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10378 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10379 archive_cmds_need_lc_CXX=no
10382 case $cc_basename in
10384 # NonStop-UX NCC 3.20
10385 # FIXME: insert proper C++ library support
10389 # FIXME: insert proper C++ library support
10395 # FIXME: insert proper C++ library support
10399 # FIXME: insert proper C++ library support
10403 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10404 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10405 test "$ld_shlibs_CXX" = no && can_build_shared=no
10411 ## There is no encapsulation within the following macros, do not change
10412 ## the running order or otherwise move them around unless you know exactly
10413 ## what you are doing...
10415 cat > conftest.$ac_ext <<EOF
10419 Foo (void) { a = 0; }
10425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426 (eval $ac_compile) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; then
10430 # Parse the compiler output and extract the necessary
10431 # objects, libraries and library flags.
10433 # Sentinel used to keep track of whether or not we are before
10434 # the conftest object file.
10435 pre_test_object_deps_done=no
10437 # The `*' in the case matches for architectures that use `case' in
10438 # $output_verbose_cmd can trigger glob expansion during the loop
10439 # eval without this substitution.
10440 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10442 for p in `eval $output_verbose_link_cmd`; do
10446 # Some compilers place space between "-{L,R}" and the path.
10447 # Remove the space.
10448 if test $p = "-L" \
10449 || test $p = "-R"; then
10456 if test "$pre_test_object_deps_done" = no; then
10459 # Internal compiler library paths should come after those
10460 # provided the user. The postdeps already come after the
10461 # user supplied libs so there is no need to process them.
10462 if test -z "$compiler_lib_search_path_CXX"; then
10463 compiler_lib_search_path_CXX="${prev}${p}"
10465 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10468 # The "-l" case would never come before the object being
10469 # linked, so don't bother handling this case.
10472 if test -z "$postdeps_CXX"; then
10473 postdeps_CXX="${prev}${p}"
10475 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10481 # This assumes that the test object file only shows up
10482 # once in the compiler output.
10483 if test "$p" = "conftest.$objext"; then
10484 pre_test_object_deps_done=yes
10488 if test "$pre_test_object_deps_done" = no; then
10489 if test -z "$predep_objects_CXX"; then
10490 predep_objects_CXX="$p"
10492 predep_objects_CXX="$predep_objects_CXX $p"
10495 if test -z "$postdep_objects_CXX"; then
10496 postdep_objects_CXX="$p"
10498 postdep_objects_CXX="$postdep_objects_CXX $p"
10503 *) ;; # Ignore the rest.
10511 echo "libtool.m4: error: problem compiling CXX test program"
10514 $rm -f confest.$objext
10516 case " $postdeps_CXX " in
10517 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10520 lt_prog_compiler_wl_CXX=
10521 lt_prog_compiler_pic_CXX=
10522 lt_prog_compiler_static_CXX=
10524 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10527 # C++ specific cases for pic, static, wl, etc.
10528 if test "$GXX" = yes; then
10529 lt_prog_compiler_wl_CXX='-Wl,'
10530 lt_prog_compiler_static_CXX='-static'
10534 # All AIX code is PIC.
10535 if test "$host_cpu" = ia64; then
10536 # AIX 5 now supports IA64 processor
10537 lt_prog_compiler_static_CXX='-Bstatic'
10541 # FIXME: we need at least 68020 code to build shared libraries, but
10542 # adding the `-m68020' flag to GCC prevents building anything better,
10544 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10546 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10547 # PIC is the default for these OSes.
10549 mingw* | os2* | pw32*)
10550 # This hack is so that the source file can tell whether it is being
10551 # built for inclusion in a dll (and should export symbols for example).
10552 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10554 darwin* | rhapsody*)
10555 # PIC is the default on this platform
10556 # Common symbols not allowed in MH_DYLIB files
10557 lt_prog_compiler_pic_CXX='-fno-common'
10560 # DJGPP does not support shared libraries at all
10561 lt_prog_compiler_pic_CXX=
10564 if test -d /usr/nec; then
10565 lt_prog_compiler_pic_CXX=-Kconform_pic
10569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10570 # not for PA HP-UX.
10571 case "$host_cpu" in
10575 lt_prog_compiler_pic_CXX='-fPIC'
10580 lt_prog_compiler_pic_CXX='-fPIC'
10586 # All AIX code is PIC.
10587 if test "$host_cpu" = ia64; then
10588 # AIX 5 now supports IA64 processor
10589 lt_prog_compiler_static_CXX='-Bstatic'
10591 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10595 case $cc_basename in
10597 # Green Hills C++ Compiler
10598 # _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"
10603 case $cc_basename in
10605 lt_prog_compiler_pic_CXX='-KPIC'
10608 # Green Hills C++ Compiler
10609 lt_prog_compiler_pic_CXX='-pic'
10616 # FreeBSD uses GNU C++
10618 hpux9* | hpux10* | hpux11*)
10619 case $cc_basename in
10621 lt_prog_compiler_wl_CXX='-Wl,'
10622 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10623 if test "$host_cpu" != ia64; then
10624 lt_prog_compiler_pic_CXX='+Z'
10628 lt_prog_compiler_wl_CXX='-Wl,'
10629 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10630 case "$host_cpu" in
10635 lt_prog_compiler_pic_CXX='+Z'
10643 irix5* | irix6* | nonstopux*)
10644 case $cc_basename in
10646 lt_prog_compiler_wl_CXX='-Wl,'
10647 lt_prog_compiler_static_CXX='-non_shared'
10648 # CC pic flag -KPIC is the default.
10655 case $cc_basename in
10658 lt_prog_compiler_wl_CXX='--backend -Wl,'
10659 lt_prog_compiler_pic_CXX='-fPIC'
10663 lt_prog_compiler_wl_CXX='-Wl,'
10664 lt_prog_compiler_pic_CXX='-KPIC'
10665 lt_prog_compiler_static_CXX='-static'
10669 # Make sure the PIC flag is empty. It appears that all Alpha
10670 # Linux and Compaq Tru64 Unix objects are PIC.
10671 lt_prog_compiler_pic_CXX=
10672 lt_prog_compiler_static_CXX='-non_shared'
10683 case $cc_basename in
10685 lt_prog_compiler_pic_CXX='-W c,exportall'
10693 osf3* | osf4* | osf5*)
10694 case $cc_basename in
10696 lt_prog_compiler_wl_CXX='--backend -Wl,'
10699 # Rational C++ 2.4.1
10700 lt_prog_compiler_pic_CXX='-pic'
10703 # Digital/Compaq C++
10704 lt_prog_compiler_wl_CXX='-Wl,'
10705 # Make sure the PIC flag is empty. It appears that all Alpha
10706 # Linux and Compaq Tru64 Unix objects are PIC.
10707 lt_prog_compiler_pic_CXX=
10708 lt_prog_compiler_static_CXX='-non_shared'
10717 case $cc_basename in
10719 lt_prog_compiler_pic_CXX='-fPIC'
10726 case $cc_basename in
10728 # Sun C++ 4.2, 5.x and Centerline C++
10729 lt_prog_compiler_pic_CXX='-KPIC'
10730 lt_prog_compiler_static_CXX='-Bstatic'
10731 lt_prog_compiler_wl_CXX='-Qoption ld '
10734 # Green Hills C++ Compiler
10735 lt_prog_compiler_pic_CXX='-PIC'
10742 case $cc_basename in
10745 lt_prog_compiler_pic_CXX='-pic'
10746 lt_prog_compiler_static_CXX='-Bstatic'
10750 lt_prog_compiler_pic_CXX='-pic'
10757 case $cc_basename in
10759 # NonStop-UX NCC 3.20
10760 lt_prog_compiler_pic_CXX='-KPIC'
10771 lt_prog_compiler_can_build_shared_CXX=no
10776 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10777 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10780 # Check to make sure the PIC flag actually works.
10782 if test -n "$lt_prog_compiler_pic_CXX"; then
10783 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10784 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10785 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 lt_prog_compiler_pic_works_CXX=no
10789 ac_outfile=conftest.$ac_objext
10790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10791 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10792 # Insert the option either (1) after the last *FLAGS variable, or
10793 # (2) before a word containing "conftest.", or (3) at the end.
10794 # Note that $ac_compile itself does not contain backslashes and begins
10795 # with a dollar sign (not a hyphen), so the echo should work correctly.
10796 # The option is referenced via a variable to avoid confusing sed.
10797 lt_compile=`echo "$ac_compile" | $SED \
10798 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10800 -e 's:$: $lt_compiler_flag:'`
10801 (eval echo "\"\$as_me:10801: $lt_compile\"" >&5)
10802 (eval "$lt_compile" 2>conftest.err)
10804 cat conftest.err >&5
10805 echo "$as_me:10805: \$? = $ac_status" >&5
10806 if (exit $ac_status) && test -s "$ac_outfile"; then
10807 # The compiler can only warn and ignore the option if not recognized
10808 # So say no if there are warnings
10809 if test ! -s conftest.err; then
10810 lt_prog_compiler_pic_works_CXX=yes
10816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10817 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10819 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10820 case $lt_prog_compiler_pic_CXX in
10822 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10825 lt_prog_compiler_pic_CXX=
10826 lt_prog_compiler_can_build_shared_CXX=no
10831 # For platforms which do not support PIC, -DPIC is meaningless:
10833 lt_prog_compiler_pic_CXX=
10836 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10840 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10841 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10842 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 lt_cv_prog_compiler_c_o_CXX=no
10846 $rm -r conftest 2>/dev/null
10850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10852 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10853 # that will create temporary files in the current directory regardless of
10854 # the output directory. Thus, making CWD read-only will cause this test
10855 # to fail, enabling locking or at least warning the user not to do parallel
10859 lt_compiler_flag="-o out/conftest2.$ac_objext"
10860 # Insert the option either (1) after the last *FLAGS variable, or
10861 # (2) before a word containing "conftest.", or (3) at the end.
10862 # Note that $ac_compile itself does not contain backslashes and begins
10863 # with a dollar sign (not a hyphen), so the echo should work correctly.
10864 lt_compile=`echo "$ac_compile" | $SED \
10865 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10867 -e 's:$: $lt_compiler_flag:'`
10868 (eval echo "\"\$as_me:10868: $lt_compile\"" >&5)
10869 (eval "$lt_compile" 2>out/conftest.err)
10871 cat out/conftest.err >&5
10872 echo "$as_me:10872: \$? = $ac_status" >&5
10873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10875 # The compiler can only warn and ignore the option if not recognized
10876 # So say no if there are warnings
10877 if test ! -s out/conftest.err; then
10878 lt_cv_prog_compiler_c_o_CXX=yes
10882 $rm conftest* out/*
10889 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10890 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10893 hard_links="nottested"
10894 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10895 # do not overwrite the value of need_locks provided by the user
10896 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10897 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10902 ln conftest.a conftest.b 2>&5 || hard_links=no
10903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10904 echo "$as_me:$LINENO: result: $hard_links" >&5
10905 echo "${ECHO_T}$hard_links" >&6
10906 if test "$hard_links" = no; then
10907 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10908 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10915 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10916 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10918 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10921 # If we're using GNU nm, then we don't want the "-C" option.
10922 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10923 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10924 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'
10926 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'
10930 export_symbols_cmds_CXX="$ltdll_cmds"
10933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10936 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10940 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10941 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10942 test "$ld_shlibs_CXX" = no && can_build_shared=no
10944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10945 if test "$GCC" = yes; then
10946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10950 # Do we need to explicitly link libc?
10952 case "x$archive_cmds_need_lc_CXX" in
10954 # Assume -lc should be added
10955 archive_cmds_need_lc_CXX=yes
10957 if test "$enable_shared" = yes && test "$GCC" = yes; then
10958 case $archive_cmds_CXX in
10960 # FIXME: we may have to deal with multi-command sequences.
10963 # Test whether the compiler implicitly links with -lc since on some
10964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10965 # to ld, don't add -lc before -lgcc.
10966 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10967 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10972 (eval $ac_compile) 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } 2>conftest.err; then
10978 libobjs=conftest.$ac_objext
10980 wl=$lt_prog_compiler_wl_CXX
10986 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10987 allow_undefined_flag_CXX=
10988 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10989 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }
10994 archive_cmds_need_lc_CXX=no
10996 archive_cmds_need_lc_CXX=yes
10998 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11000 cat conftest.err 1>&5
11003 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11004 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11011 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11012 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11013 hardcode_action_CXX=
11014 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11015 test -n "$runpath_var CXX" || \
11016 test "X$hardcode_automatic_CXX"="Xyes" ; then
11018 # We can hardcode non-existant directories.
11019 if test "$hardcode_direct_CXX" != no &&
11020 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11021 # have to relink, otherwise we might link with an installed library
11022 # when we should be linking with a yet-to-be-installed one
11023 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11024 test "$hardcode_minus_L_CXX" != no; then
11025 # Linking always hardcodes the temporary library directory.
11026 hardcode_action_CXX=relink
11028 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11029 hardcode_action_CXX=immediate
11032 # We cannot hardcode anything, or else we can only hardcode existing
11034 hardcode_action_CXX=unsupported
11036 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11037 echo "${ECHO_T}$hardcode_action_CXX" >&6
11039 if test "$hardcode_action_CXX" = relink; then
11040 # Fast installation is not supported
11041 enable_fast_install=no
11042 elif test "$shlibpath_overrides_runpath" = yes ||
11043 test "$enable_shared" = no; then
11044 # Fast installation is not necessary
11045 enable_fast_install=needless
11050 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11051 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11052 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11053 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11054 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11055 echo "$as_me:$LINENO: result: yes" >&5
11056 echo "${ECHO_T}yes" >&6
11058 # FIXME - insert some real tests, host_os isn't really good enough
11061 if test -n "$STRIP" ; then
11062 striplib="$STRIP -x"
11063 echo "$as_me:$LINENO: result: yes" >&5
11064 echo "${ECHO_T}yes" >&6
11066 echo "$as_me:$LINENO: result: no" >&5
11067 echo "${ECHO_T}no" >&6
11071 echo "$as_me:$LINENO: result: no" >&5
11072 echo "${ECHO_T}no" >&6
11077 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11078 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11079 library_names_spec=
11080 libname_spec='lib$name'
11084 postuninstall_cmds=
11088 shlibpath_overrides_runpath=unknown
11090 dynamic_linker="$host_os ld.so"
11091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11092 if test "$GCC" = yes; then
11093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11094 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11095 # if the path contains ";" then we assume it to be the separator
11096 # otherwise default to the standard path separator (i.e. ":") - it is
11097 # assumed that no part of a normal pathname contains ";" but that should
11098 # okay in the real world where ";" in dirpaths is itself problematic.
11099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11106 need_lib_prefix=unknown
11107 hardcode_into_libs=no
11109 # when you set need_version to no, make sure it does not cause -set_version
11110 # flags to be left without arguments
11111 need_version=unknown
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11117 shlibpath_var=LIBPATH
11119 # AIX 3 has no versioning support, so we append a major version to the name.
11120 soname_spec='${libname}${release}${shared_ext}$major'
11127 hardcode_into_libs=yes
11128 if test "$host_cpu" = ia64; then
11129 # AIX 5 supports IA64
11130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11131 shlibpath_var=LD_LIBRARY_PATH
11133 # With GCC up to 2.95.x, collect2 would create an import file
11134 # for dependence libraries. The import file would start with
11135 # the line `#! .'. This would cause the generated library to
11136 # depend on `.', always an invalid library. This was fixed in
11137 # development snapshots of GCC prior to 3.0.
11139 aix4 | aix4.[01] | aix4.[01].*)
11140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11145 can_build_shared=no
11149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11150 # soname into executable. Probably we can add versioning support to
11151 # collect2, so additional links can be useful in future.
11152 if test "$aix_use_runtimelinking" = yes; then
11153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11154 # instead of lib<name>.a to let people know that these are not
11155 # typical AIX shared libraries.
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158 # We preserve .a as extension for shared libraries through AIX4.2
11159 # and later when we are not doing run time linking.
11160 library_names_spec='${libname}${release}.a $libname.a'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11163 shlibpath_var=LIBPATH
11168 library_names_spec='$libname.ixlibrary $libname.a'
11169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11170 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'
11174 library_names_spec='${libname}${shared_ext}'
11175 dynamic_linker="$host_os ld.so"
11176 shlibpath_var=LIBRARY_PATH
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11188 # the default ld.so.conf also contains /usr/contrib/lib and
11189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11190 # libtool to hard-code these into programs
11193 cygwin* | mingw* | pw32*)
11194 version_type=windows
11199 case $GCC,$host_os in
11200 yes,cygwin* | yes,mingw* | yes,pw32*)
11201 library_names_spec='$libname.dll.a'
11202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11203 postinstall_cmds='base_file=`basename \${file}`~
11204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11205 dldir=$destdir/`dirname \$dlpath`~
11206 test -d \$dldir || mkdir -p \$dldir~
11207 $install_prog $dir/$dlname \$dldir/$dlname'
11208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11209 dlpath=$dir/\$dldll~
11211 shlibpath_overrides_runpath=yes
11215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11217 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11220 # MinGW DLLs use traditional 'lib' prefix
11221 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11222 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11223 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11224 # It is most probably a Windows format PATH printed by
11225 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11226 # path with ; separators, and with drive letters. We can handle the
11227 # drive letters (cygwin fileutils understands them), so leave them,
11228 # especially as we might pass files found there to a mingw objdump,
11229 # which wouldn't understand a cygwinified path. Ahh.
11230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11236 # pw32 DLLs use 'pw' prefix rather than 'lib'
11237 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11243 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11246 dynamic_linker='Win32 ld.exe'
11247 # FIXME: first we should search . and the directory the executable is in
11251 darwin* | rhapsody*)
11252 dynamic_linker="$host_os dyld"
11253 version_type=darwin
11256 # FIXME: Relying on posixy $() will cause problems for
11257 # cross-compilation, but unfortunately the echo tests do not
11258 # yet detect zsh echo's removal of \ escapes.
11259 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11260 soname_spec='${libname}${release}${major}$shared_ext'
11261 shlibpath_overrides_runpath=yes
11262 shlibpath_var=DYLD_LIBRARY_PATH
11263 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11264 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11265 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11266 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"`
11268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11285 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11286 version_type=freebsd-$objformat
11287 case $version_type in
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11298 shlibpath_var=LD_LIBRARY_PATH
11301 shlibpath_overrides_runpath=yes
11303 freebsd3.01* | freebsdelf3.01*)
11304 shlibpath_overrides_runpath=yes
11305 hardcode_into_libs=yes
11308 shlibpath_overrides_runpath=no
11309 hardcode_into_libs=yes
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 hardcode_into_libs=yes
11324 hpux9* | hpux10* | hpux11*)
11325 # Give a soname corresponding to the major version so that dld.sl refuses to
11326 # link against other versions.
11330 case "$host_cpu" in
11333 hardcode_into_libs=yes
11334 dynamic_linker="$host_os dld.so"
11335 shlibpath_var=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338 soname_spec='${libname}${release}${shared_ext}$major'
11339 if test "X$HPUX_IA64_MODE" = X32; then
11340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11348 hardcode_into_libs=yes
11349 dynamic_linker="$host_os dld.sl"
11350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 soname_spec='${libname}${release}${shared_ext}$major'
11354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11359 dynamic_linker="$host_os dld.sl"
11360 shlibpath_var=SHLIB_PATH
11361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11366 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11367 postinstall_cmds='chmod 555 $lib'
11370 irix5* | irix6* | nonstopux*)
11372 nonstopux*) version_type=nonstopux ;;
11374 if test "$lt_cv_prog_gnu_ld" = yes; then
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11385 irix5* | nonstopux*)
11386 libsuff= shlibsuff=
11389 case $LD in # libtool.m4 will add one of these switches to LD
11390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11391 libsuff= shlibsuff= libmagic=32-bit;;
11392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11393 libsuff=32 shlibsuff=N32 libmagic=N32;;
11394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11396 *) libsuff= shlibsuff= libmagic=never-match;;
11400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11401 shlibpath_overrides_runpath=no
11402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11404 hardcode_into_libs=yes
11407 # No shared lib support for Linux oldld, aout, or coff.
11408 linux*oldld* | linux*aout* | linux*coff*)
11412 # This must be Linux ELF.
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=no
11422 # This implies no fast_install, which is unacceptable.
11423 # Some rework will be needed to allow for fast_install
11424 # before this can be enabled.
11425 hardcode_into_libs=yes
11427 # We used to test for /lib/ld.so.1 and disable shared libraries on
11428 # powerpc, because MkLinux only supported shared libraries with the
11429 # GNU dynamic linker. Since this was broken with cross compilers,
11430 # most powerpc-linux boxes support dynamic linking these days and
11431 # people can always --disable-shared, the test was removed, and we
11432 # assume the GNU/Linux dynamic linker is in use.
11433 dynamic_linker='GNU/Linux ld.so'
11440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11443 dynamic_linker='NetBSD (a.out) ld.so'
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 dynamic_linker='NetBSD ld.elf_so'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath=yes
11451 hardcode_into_libs=yes
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=yes
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=yes
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11480 openbsd2.[89] | openbsd2.[89].*)
11481 shlibpath_overrides_runpath=no
11484 shlibpath_overrides_runpath=yes
11488 shlibpath_overrides_runpath=yes
11493 libname_spec='$name'
11496 library_names_spec='$libname${shared_ext} $libname.a'
11497 dynamic_linker='OS/2 ld.exe'
11498 shlibpath_var=LIBPATH
11501 osf3* | osf4* | osf5*)
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11509 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 shlibpath_var=LD_LIBRARY_PATH
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=yes
11527 hardcode_into_libs=yes
11528 # ldd complains unless libraries are executable
11529 postinstall_cmds='chmod +x $lib'
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=yes
11538 if test "$with_gnu_ld" = yes; then
11544 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 case $host_vendor in
11551 shlibpath_overrides_runpath=no
11553 export_dynamic_flag_spec='${wl}-Blargedynsym'
11554 runpath_var=LD_RUN_PATH
11562 shlibpath_overrides_runpath=no
11563 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11569 if test -d /usr/nec ;then
11571 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11572 soname_spec='$libname${shared_ext}.$major'
11573 shlibpath_var=LD_LIBRARY_PATH
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 shlibpath_var=LD_LIBRARY_PATH
11588 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11589 echo "${ECHO_T}$dynamic_linker" >&6
11590 test "$dynamic_linker" = no && can_build_shared=no
11592 if test "x$enable_dlopen" != xyes; then
11593 enable_dlopen=unknown
11594 enable_dlopen_self=unknown
11595 enable_dlopen_self_static=unknown
11602 lt_cv_dlopen="load_add_on"
11604 lt_cv_dlopen_self=yes
11608 lt_cv_dlopen="LoadLibrary"
11613 lt_cv_dlopen="dlopen"
11618 # if libdl is installed we need to link against it
11619 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11620 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 ac_check_lib_save_LIBS=$LIBS
11626 cat >conftest.$ac_ext <<_ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 /* Override any gcc2 internal prototype to avoid an error. */
11637 /* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>conftest.er1
11652 grep -v '^ *+' conftest.er1 >conftest.err
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_cxx_werror_flag"
11658 || test ! -s conftest.err'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest$ac_exeext'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 ac_cv_lib_dl_dlopen=yes
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 ac_cv_lib_dl_dlopen=no
11677 rm -f conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_check_lib_save_LIBS
11681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11683 if test $ac_cv_lib_dl_dlopen = yes; then
11684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11687 lt_cv_dlopen="dyld"
11689 lt_cv_dlopen_self=yes
11696 echo "$as_me:$LINENO: checking for shl_load" >&5
11697 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11698 if test "${ac_cv_func_shl_load+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 cat >conftest.$ac_ext <<_ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11707 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11709 #define shl_load innocuous_shl_load
11711 /* System header to define __stub macros and hopefully few prototypes,
11712 which can conflict with char shl_load (); below.
11713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11714 <limits.h> exists even on freestanding compilers. */
11717 # include <limits.h>
11719 # include <assert.h>
11724 /* Override any gcc2 internal prototype to avoid an error. */
11729 /* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11732 /* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11738 char (*f) () = shl_load;
11747 return f != shl_load;
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>conftest.er1
11756 grep -v '^ *+' conftest.er1 >conftest.err
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_cxx_werror_flag"
11762 || test ! -s conftest.err'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest$ac_exeext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 ac_cv_func_shl_load=yes
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11779 ac_cv_func_shl_load=no
11781 rm -f conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
11784 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11785 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11786 if test $ac_cv_func_shl_load = yes; then
11787 lt_cv_dlopen="shl_load"
11789 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11790 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 ac_check_lib_save_LIBS=$LIBS
11796 cat >conftest.$ac_ext <<_ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11803 /* Override any gcc2 internal prototype to avoid an error. */
11807 /* We use char because int might match the return type of a gcc2
11808 builtin and then its argument prototype would still apply. */
11818 rm -f conftest.$ac_objext conftest$ac_exeext
11819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11820 (eval $ac_link) 2>conftest.er1
11822 grep -v '^ *+' conftest.er1 >conftest.err
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
11827 { ac_try='test -z "$ac_cxx_werror_flag"
11828 || test ! -s conftest.err'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest$ac_exeext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_cv_lib_dld_shl_load=yes
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 ac_cv_lib_dld_shl_load=no
11847 rm -f conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849 LIBS=$ac_check_lib_save_LIBS
11851 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11852 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11853 if test $ac_cv_lib_dld_shl_load = yes; then
11854 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11856 echo "$as_me:$LINENO: checking for dlopen" >&5
11857 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11858 if test "${ac_cv_func_dlopen+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11869 #define dlopen innocuous_dlopen
11871 /* System header to define __stub macros and hopefully few prototypes,
11872 which can conflict with char dlopen (); below.
11873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11874 <limits.h> exists even on freestanding compilers. */
11877 # include <limits.h>
11879 # include <assert.h>
11884 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11892 /* The GNU C library defines this for functions which it implements
11893 to always fail with ENOSYS. Some functions are actually named
11894 something starting with __ and the normal name is an alias. */
11895 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11898 char (*f) () = dlopen;
11907 return f != dlopen;
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914 (eval $ac_link) 2>conftest.er1
11916 grep -v '^ *+' conftest.er1 >conftest.err
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -z "$ac_cxx_werror_flag"
11922 || test ! -s conftest.err'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_cv_func_dlopen=yes
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_func_dlopen=no
11941 rm -f conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11944 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11945 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11946 if test $ac_cv_func_dlopen = yes; then
11947 lt_cv_dlopen="dlopen"
11949 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11950 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 ac_check_lib_save_LIBS=$LIBS
11956 cat >conftest.$ac_ext <<_ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11963 /* Override any gcc2 internal prototype to avoid an error. */
11967 /* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980 (eval $ac_link) 2>conftest.er1
11982 grep -v '^ *+' conftest.er1 >conftest.err
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -z "$ac_cxx_werror_flag"
11988 || test ! -s conftest.err'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest$ac_exeext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_cv_lib_dl_dlopen=yes
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 ac_cv_lib_dl_dlopen=no
12007 rm -f conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 LIBS=$ac_check_lib_save_LIBS
12011 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12012 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12013 if test $ac_cv_lib_dl_dlopen = yes; then
12014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12016 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12017 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 ac_check_lib_save_LIBS=$LIBS
12022 LIBS="-lsvld $LIBS"
12023 cat >conftest.$ac_ext <<_ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12030 /* Override any gcc2 internal prototype to avoid an error. */
12034 /* We use char because int might match the return type of a gcc2
12035 builtin and then its argument prototype would still apply. */
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12047 (eval $ac_link) 2>conftest.er1
12049 grep -v '^ *+' conftest.er1 >conftest.err
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -z "$ac_cxx_werror_flag"
12055 || test ! -s conftest.err'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest$ac_exeext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_cv_lib_svld_dlopen=yes
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 ac_cv_lib_svld_dlopen=no
12074 rm -f conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12078 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12079 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12080 if test $ac_cv_lib_svld_dlopen = yes; then
12081 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12083 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12084 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12085 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 ac_check_lib_save_LIBS=$LIBS
12090 cat >conftest.$ac_ext <<_ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12097 /* Override any gcc2 internal prototype to avoid an error. */
12101 /* We use char because int might match the return type of a gcc2
12102 builtin and then its argument prototype would still apply. */
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_cxx_werror_flag"
12122 || test ! -s conftest.err'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest$ac_exeext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_cv_lib_dld_dld_link=yes
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 ac_cv_lib_dld_dld_link=no
12141 rm -f conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12145 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12146 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12147 if test $ac_cv_lib_dld_dld_link = yes; then
12148 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12169 if test "x$lt_cv_dlopen" != xno; then
12175 case $lt_cv_dlopen in
12177 save_CPPFLAGS="$CPPFLAGS"
12178 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12180 save_LDFLAGS="$LDFLAGS"
12181 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12184 LIBS="$lt_cv_dlopen_libs $LIBS"
12186 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12187 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12188 if test "${lt_cv_dlopen_self+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 if test "$cross_compiling" = yes; then :
12192 lt_cv_dlopen_self=cross
12194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12195 lt_status=$lt_dlunknown
12196 cat > conftest.$ac_ext <<EOF
12197 #line 12197 "configure"
12198 #include "confdefs.h"
12207 # define LT_DLGLOBAL RTLD_GLOBAL
12210 # define LT_DLGLOBAL DL_GLOBAL
12212 # define LT_DLGLOBAL 0
12216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12217 find out it does not work in some platform. */
12218 #ifndef LT_DLLAZY_OR_NOW
12220 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12223 # define LT_DLLAZY_OR_NOW DL_LAZY
12226 # define LT_DLLAZY_OR_NOW RTLD_NOW
12229 # define LT_DLLAZY_OR_NOW DL_NOW
12231 # define LT_DLLAZY_OR_NOW 0
12239 extern "C" void exit (int);
12242 void fnord() { int i=42;}
12245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12246 int status = $lt_dlunknown;
12250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12251 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12252 /* dlclose (self); */
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12263 (./conftest; exit; ) 2>/dev/null
12265 case x$lt_status in
12266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12268 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12271 # compilation failed
12272 lt_cv_dlopen_self=no
12279 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12280 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12282 if test "x$lt_cv_dlopen_self" = xyes; then
12283 LDFLAGS="$LDFLAGS $link_static_flag"
12284 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12285 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12286 if test "${lt_cv_dlopen_self_static+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 if test "$cross_compiling" = yes; then :
12290 lt_cv_dlopen_self_static=cross
12292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12293 lt_status=$lt_dlunknown
12294 cat > conftest.$ac_ext <<EOF
12295 #line 12295 "configure"
12296 #include "confdefs.h"
12305 # define LT_DLGLOBAL RTLD_GLOBAL
12308 # define LT_DLGLOBAL DL_GLOBAL
12310 # define LT_DLGLOBAL 0
12314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12315 find out it does not work in some platform. */
12316 #ifndef LT_DLLAZY_OR_NOW
12318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12321 # define LT_DLLAZY_OR_NOW DL_LAZY
12324 # define LT_DLLAZY_OR_NOW RTLD_NOW
12327 # define LT_DLLAZY_OR_NOW DL_NOW
12329 # define LT_DLLAZY_OR_NOW 0
12337 extern "C" void exit (int);
12340 void fnord() { int i=42;}
12343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12344 int status = $lt_dlunknown;
12348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12350 /* dlclose (self); */
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357 (eval $ac_link) 2>&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12361 (./conftest; exit; ) 2>/dev/null
12363 case x$lt_status in
12364 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12365 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12366 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12369 # compilation failed
12370 lt_cv_dlopen_self_static=no
12377 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12378 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12381 CPPFLAGS="$save_CPPFLAGS"
12382 LDFLAGS="$save_LDFLAGS"
12387 case $lt_cv_dlopen_self in
12388 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12389 *) enable_dlopen_self=unknown ;;
12392 case $lt_cv_dlopen_self_static in
12393 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12394 *) enable_dlopen_self_static=unknown ;;
12399 # The else clause should only fire when bootstrapping the
12400 # libtool distribution, otherwise you forgot to ship ltmain.sh
12401 # with your package, and you will get complaints that there are
12402 # no rules to generate ltmain.sh.
12403 if test -f "$ltmain"; then
12404 # See if we are running on zsh, and set the options which allow our commands through
12405 # without removal of \ escapes.
12406 if test -n "${ZSH_VERSION+set}" ; then
12407 setopt NO_GLOB_SUBST
12409 # Now quote all the things that may contain metacharacters while being
12410 # careful not to overquote the AC_SUBSTed values. We take copies of the
12411 # variables and quote the copies for generation of the libtool script.
12412 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12413 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12414 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12415 deplibs_check_method reload_flag reload_cmds need_locks \
12416 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12417 lt_cv_sys_global_symbol_to_c_name_address \
12418 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12419 old_postinstall_cmds old_postuninstall_cmds \
12423 lt_prog_compiler_wl_CXX \
12424 lt_prog_compiler_pic_CXX \
12425 lt_prog_compiler_static_CXX \
12426 lt_prog_compiler_no_builtin_flag_CXX \
12427 export_dynamic_flag_spec_CXX \
12428 thread_safe_flag_spec_CXX \
12429 whole_archive_flag_spec_CXX \
12430 enable_shared_with_static_runtimes_CXX \
12431 old_archive_cmds_CXX \
12432 old_archive_from_new_cmds_CXX \
12433 predep_objects_CXX \
12434 postdep_objects_CXX \
12437 compiler_lib_search_path_CXX \
12439 archive_expsym_cmds_CXX \
12440 postinstall_cmds_CXX \
12441 postuninstall_cmds_CXX \
12442 old_archive_from_expsyms_cmds_CXX \
12443 allow_undefined_flag_CXX \
12444 no_undefined_flag_CXX \
12445 export_symbols_cmds_CXX \
12446 hardcode_libdir_flag_spec_CXX \
12447 hardcode_libdir_flag_spec_ld_CXX \
12448 hardcode_libdir_separator_CXX \
12449 hardcode_automatic_CXX \
12451 module_expsym_cmds_CXX \
12452 lt_cv_prog_compiler_c_o_CXX \
12453 exclude_expsyms_CXX \
12454 include_expsyms_CXX; do
12457 old_archive_cmds_CXX | \
12458 old_archive_from_new_cmds_CXX | \
12459 archive_cmds_CXX | \
12460 archive_expsym_cmds_CXX | \
12461 module_cmds_CXX | \
12462 module_expsym_cmds_CXX | \
12463 old_archive_from_expsyms_cmds_CXX | \
12464 export_symbols_cmds_CXX | \
12465 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12466 postinstall_cmds | postuninstall_cmds | \
12467 old_postinstall_cmds | old_postuninstall_cmds | \
12468 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12469 # Double-quote double-evaled strings.
12470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12479 *'\$0 --fallback-echo"')
12480 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12486 cat <<__EOF__ >> "$cfgfile"
12487 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12489 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12491 # Shell to use when invoking shell scripts.
12494 # Whether or not to build shared libraries.
12495 build_libtool_libs=$enable_shared
12497 # Whether or not to build static libraries.
12498 build_old_libs=$enable_static
12500 # Whether or not to add -lc for building shared libraries.
12501 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12503 # Whether or not to disallow shared libs when runtime libs are static
12504 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12506 # Whether or not to optimize for fast installation.
12507 fast_install=$enable_fast_install
12510 host_alias=$host_alias
12513 # An echo program that does not interpret backslashes.
12518 AR_FLAGS=$lt_AR_FLAGS
12523 # A language-specific compiler.
12524 CC=$lt_compiler_CXX
12526 # Is the compiler the GNU C compiler?
12532 # The linker used to build libraries.
12535 # Whether we need hard or soft links.
12538 # A BSD-compatible nm program.
12541 # A symbol stripping program
12544 # Used to examine libraries when file_magic_cmd begins "file"
12545 MAGIC_CMD=$MAGIC_CMD
12547 # Used on cygwin: DLL creation program.
12550 # Used on cygwin: object dumper.
12553 # Used on cygwin: assembler.
12556 # The name of the directory that contains temporary libtool files.
12559 # How to create reloadable object files.
12560 reload_flag=$lt_reload_flag
12561 reload_cmds=$lt_reload_cmds
12563 # How to pass a linker flag through the compiler.
12564 wl=$lt_lt_prog_compiler_wl_CXX
12566 # Object file suffix (normally "o").
12567 objext="$ac_objext"
12569 # Old archive suffix (normally "a").
12572 # Shared library suffix (normally ".so").
12575 # Executable file suffix (normally "").
12578 # Additional compiler flags for building library objects.
12579 pic_flag=$lt_lt_prog_compiler_pic_CXX
12582 # What is the maximum length of a command?
12583 max_cmd_len=$lt_cv_sys_max_cmd_len
12585 # Does compiler simultaneously support -c and -o options?
12586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12588 # Must we lock files when doing compilation ?
12589 need_locks=$lt_need_locks
12591 # Do we need the lib prefix for modules?
12592 need_lib_prefix=$need_lib_prefix
12594 # Do we need a version for libraries?
12595 need_version=$need_version
12597 # Whether dlopen is supported.
12598 dlopen_support=$enable_dlopen
12600 # Whether dlopen of programs is supported.
12601 dlopen_self=$enable_dlopen_self
12603 # Whether dlopen of statically linked programs is supported.
12604 dlopen_self_static=$enable_dlopen_self_static
12606 # Compiler flag to prevent dynamic linking.
12607 link_static_flag=$lt_lt_prog_compiler_static_CXX
12609 # Compiler flag to turn off builtin functions.
12610 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12612 # Compiler flag to allow reflexive dlopens.
12613 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12615 # Compiler flag to generate shared objects directly from archives.
12616 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12618 # Compiler flag to generate thread-safe objects.
12619 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12621 # Library versioning type.
12622 version_type=$version_type
12624 # Format of library name prefix.
12625 libname_spec=$lt_libname_spec
12627 # List of archive names. First name is the real one, the rest are links.
12628 # The last name is the one that the linker finds with -lNAME.
12629 library_names_spec=$lt_library_names_spec
12631 # The coded name of the library, if different from the real name.
12632 soname_spec=$lt_soname_spec
12634 # Commands used to build and install an old-style archive.
12636 old_archive_cmds=$lt_old_archive_cmds_CXX
12637 old_postinstall_cmds=$lt_old_postinstall_cmds
12638 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12640 # Create an old-style archive from a shared archive.
12641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12643 # Create a temporary old-style archive to link instead of a shared archive.
12644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12646 # Commands used to build and install a shared archive.
12647 archive_cmds=$lt_archive_cmds_CXX
12648 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12649 postinstall_cmds=$lt_postinstall_cmds
12650 postuninstall_cmds=$lt_postuninstall_cmds
12652 # Commands used to build a loadable module (assumed same as above if empty)
12653 module_cmds=$lt_module_cmds_CXX
12654 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12656 # Commands to strip libraries.
12657 old_striplib=$lt_old_striplib
12658 striplib=$lt_striplib
12660 # Dependencies to place before the objects being linked to create a
12662 predep_objects=$lt_predep_objects_CXX
12664 # Dependencies to place after the objects being linked to create a
12666 postdep_objects=$lt_postdep_objects_CXX
12668 # Dependencies to place before the objects being linked to create a
12670 predeps=$lt_predeps_CXX
12672 # Dependencies to place after the objects being linked to create a
12674 postdeps=$lt_postdeps_CXX
12676 # The library search path used internally by the compiler when linking
12677 # a shared library.
12678 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12680 # Method to check whether dependent libraries are shared objects.
12681 deplibs_check_method=$lt_deplibs_check_method
12683 # Command to use when deplibs_check_method == file_magic.
12684 file_magic_cmd=$lt_file_magic_cmd
12686 # Flag that allows shared libraries with undefined symbols to be built.
12687 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12689 # Flag that forces no undefined symbols.
12690 no_undefined_flag=$lt_no_undefined_flag_CXX
12692 # Commands used to finish a libtool library installation in a directory.
12693 finish_cmds=$lt_finish_cmds
12695 # Same as above, but a single script fragment to be evaled but not shown.
12696 finish_eval=$lt_finish_eval
12698 # Take the output of nm and produce a listing of raw symbols and C names.
12699 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12701 # Transform the output of nm in a proper C declaration
12702 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12704 # Transform the output of nm in a C name address pair
12705 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12707 # This is the shared library runtime path variable.
12708 runpath_var=$runpath_var
12710 # This is the shared library path variable.
12711 shlibpath_var=$shlibpath_var
12713 # Is shlibpath searched before the hard-coded library search path?
12714 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12716 # How to hardcode a shared library path into an executable.
12717 hardcode_action=$hardcode_action_CXX
12719 # Whether we should hardcode library paths into libraries.
12720 hardcode_into_libs=$hardcode_into_libs
12722 # Flag to hardcode \$libdir into a binary during linking.
12723 # This must work even if \$libdir does not exist.
12724 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12726 # If ld is used when linking, flag to hardcode \$libdir into
12727 # a binary during linking. This must work even if \$libdir does
12729 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12731 # Whether we need a single -rpath flag with a separated argument.
12732 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12734 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12735 # resulting binary.
12736 hardcode_direct=$hardcode_direct_CXX
12738 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12739 # resulting binary.
12740 hardcode_minus_L=$hardcode_minus_L_CXX
12742 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12743 # the resulting binary.
12744 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12746 # Set to yes if building a shared library automatically hardcodes DIR into the library
12747 # and all subsequent libraries and executables linked against it.
12748 hardcode_automatic=$hardcode_automatic_CXX
12750 # Variables whose values should be saved in libtool wrapper scripts and
12751 # restored at relink time.
12752 variables_saved_for_relink="$variables_saved_for_relink"
12754 # Whether libtool must link a program against all its dependency libraries.
12755 link_all_deplibs=$link_all_deplibs_CXX
12757 # Compile-time system search path for libraries
12758 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12760 # Run-time system search path for libraries
12761 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12763 # Fix the shell variable \$srcfile for the compiler.
12764 fix_srcfile_path="$fix_srcfile_path_CXX"
12766 # Set to yes if exported symbols are required.
12767 always_export_symbols=$always_export_symbols_CXX
12769 # The commands to list exported symbols.
12770 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12772 # The commands to extract the exported symbol list from a shared archive.
12773 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12775 # Symbols that should not be listed in the preloaded symbols.
12776 exclude_expsyms=$lt_exclude_expsyms_CXX
12778 # Symbols that must always be exported.
12779 include_expsyms=$lt_include_expsyms_CXX
12781 # ### END LIBTOOL TAG CONFIG: $tagname
12787 # If there is no Makefile yet, we rely on a make rule to execute
12788 # `config.status --recheck' to rerun these tests and create the
12789 # libtool script then.
12790 test -f Makefile && make "$ltmain"
12795 ac_cpp='$CPP $CPPFLAGS'
12796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12804 with_gnu_ldcxx=$with_gnu_ld
12805 with_gnu_ld=$lt_save_with_gnu_ld
12806 lt_cv_path_LDCXX=$lt_cv_path_LD
12807 lt_cv_path_LD=$lt_save_path_LD
12808 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12809 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12817 if test -n "$F77" && test "X$F77" != "Xno"; then
12820 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12821 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12822 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12825 archive_cmds_need_lc_F77=no
12826 allow_undefined_flag_F77=
12827 always_export_symbols_F77=no
12828 archive_expsym_cmds_F77=
12829 export_dynamic_flag_spec_F77=
12830 hardcode_direct_F77=no
12831 hardcode_libdir_flag_spec_F77=
12832 hardcode_libdir_flag_spec_ld_F77=
12833 hardcode_libdir_separator_F77=
12834 hardcode_minus_L_F77=no
12835 hardcode_automatic_F77=no
12837 module_expsym_cmds_F77=
12838 link_all_deplibs_F77=unknown
12839 old_archive_cmds_F77=$old_archive_cmds
12840 no_undefined_flag_F77=
12841 whole_archive_flag_spec_F77=
12842 enable_shared_with_static_runtimes_F77=no
12844 # Source file extension for f77 test sources.
12847 # Object file extension for compiled f77 test sources.
12851 # Code to be used in simple compile tests
12852 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12854 # Code to be used in simple link tests
12855 lt_simple_link_test_code=" program t\n end\n"
12857 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12859 # If no C compiler was specified, use CC.
12862 # Allow CC to be a program name with arguments.
12866 # Allow CC to be a program name with arguments.
12871 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12873 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12874 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12875 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12876 echo "${ECHO_T}$can_build_shared" >&6
12878 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12879 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12880 test "$can_build_shared" = "no" && enable_shared=no
12882 # On AIX, shared libraries and static libraries use the same namespace, and
12883 # are all built from PIC.
12886 test "$enable_shared" = yes && enable_static=no
12887 if test -n "$RANLIB"; then
12888 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12889 postinstall_cmds='$RANLIB $lib'
12893 test "$enable_shared" = yes && enable_static=no
12896 echo "$as_me:$LINENO: result: $enable_shared" >&5
12897 echo "${ECHO_T}$enable_shared" >&6
12899 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12900 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12901 # Make sure either enable_shared or enable_static is yes.
12902 test "$enable_shared" = yes || enable_static=yes
12903 echo "$as_me:$LINENO: result: $enable_static" >&5
12904 echo "${ECHO_T}$enable_static" >&6
12906 test "$ld_shlibs_F77" = no && can_build_shared=no
12911 lt_prog_compiler_wl_F77=
12912 lt_prog_compiler_pic_F77=
12913 lt_prog_compiler_static_F77=
12915 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12916 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12918 if test "$GCC" = yes; then
12919 lt_prog_compiler_wl_F77='-Wl,'
12920 lt_prog_compiler_static_F77='-static'
12924 # All AIX code is PIC.
12925 if test "$host_cpu" = ia64; then
12926 # AIX 5 now supports IA64 processor
12927 lt_prog_compiler_static_F77='-Bstatic'
12932 # FIXME: we need at least 68020 code to build shared libraries, but
12933 # adding the `-m68020' flag to GCC prevents building anything better,
12935 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12938 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12939 # PIC is the default for these OSes.
12942 mingw* | pw32* | os2*)
12943 # This hack is so that the source file can tell whether it is being
12944 # built for inclusion in a dll (and should export symbols for example).
12945 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12948 darwin* | rhapsody*)
12949 # PIC is the default on this platform
12950 # Common symbols not allowed in MH_DYLIB files
12951 lt_prog_compiler_pic_F77='-fno-common'
12955 # Just because we use GCC doesn't mean we suddenly get shared libraries
12956 # on systems that don't support them.
12957 lt_prog_compiler_can_build_shared_F77=no
12962 if test -d /usr/nec; then
12963 lt_prog_compiler_pic_F77=-Kconform_pic
12968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12969 # not for PA HP-UX.
12970 case "$host_cpu" in
12975 lt_prog_compiler_pic_F77='-fPIC'
12981 lt_prog_compiler_pic_F77='-fPIC'
12985 # PORTME Check for flag to pass linker flags through the system compiler.
12988 lt_prog_compiler_wl_F77='-Wl,'
12989 if test "$host_cpu" = ia64; then
12990 # AIX 5 now supports IA64 processor
12991 lt_prog_compiler_static_F77='-Bstatic'
12993 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12997 mingw* | pw32* | os2*)
12998 # This hack is so that the source file can tell whether it is being
12999 # built for inclusion in a dll (and should export symbols for example).
13000 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13003 hpux9* | hpux10* | hpux11*)
13004 lt_prog_compiler_wl_F77='-Wl,'
13005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13006 # not for PA HP-UX.
13007 case "$host_cpu" in
13012 lt_prog_compiler_pic_F77='+Z'
13015 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13016 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13019 irix5* | irix6* | nonstopux*)
13020 lt_prog_compiler_wl_F77='-Wl,'
13021 # PIC (with -KPIC) is the default.
13022 lt_prog_compiler_static_F77='-non_shared'
13026 lt_prog_compiler_pic_F77='-KPIC'
13027 lt_prog_compiler_static_F77='-Bstatic'
13033 lt_prog_compiler_wl_F77='-Wl,'
13034 lt_prog_compiler_pic_F77='-KPIC'
13035 lt_prog_compiler_static_F77='-static'
13038 lt_prog_compiler_wl_F77='-Wl,'
13039 # All Alpha code is PIC.
13040 lt_prog_compiler_static_F77='-non_shared'
13045 osf3* | osf4* | osf5*)
13046 lt_prog_compiler_wl_F77='-Wl,'
13047 # All OSF/1 code is PIC.
13048 lt_prog_compiler_static_F77='-non_shared'
13052 lt_prog_compiler_pic_F77='-Kpic'
13053 lt_prog_compiler_static_F77='-dn'
13057 lt_prog_compiler_wl_F77='-Wl,'
13058 lt_prog_compiler_pic_F77='-KPIC'
13059 lt_prog_compiler_static_F77='-Bstatic'
13063 lt_prog_compiler_wl_F77='-Qoption ld '
13064 lt_prog_compiler_pic_F77='-PIC'
13065 lt_prog_compiler_static_F77='-Bstatic'
13068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13069 lt_prog_compiler_wl_F77='-Wl,'
13070 lt_prog_compiler_pic_F77='-KPIC'
13071 lt_prog_compiler_static_F77='-Bstatic'
13075 if test -d /usr/nec ;then
13076 lt_prog_compiler_pic_F77='-Kconform_pic'
13077 lt_prog_compiler_static_F77='-Bstatic'
13082 lt_prog_compiler_pic_F77='-pic'
13083 lt_prog_compiler_static_F77='-Bstatic'
13087 lt_prog_compiler_can_build_shared_F77=no
13092 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13093 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13096 # Check to make sure the PIC flag actually works.
13098 if test -n "$lt_prog_compiler_pic_F77"; then
13099 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13100 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13101 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 lt_prog_compiler_pic_works_F77=no
13105 ac_outfile=conftest.$ac_objext
13106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13107 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13108 # Insert the option either (1) after the last *FLAGS variable, or
13109 # (2) before a word containing "conftest.", or (3) at the end.
13110 # Note that $ac_compile itself does not contain backslashes and begins
13111 # with a dollar sign (not a hyphen), so the echo should work correctly.
13112 # The option is referenced via a variable to avoid confusing sed.
13113 lt_compile=`echo "$ac_compile" | $SED \
13114 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13116 -e 's:$: $lt_compiler_flag:'`
13117 (eval echo "\"\$as_me:13117: $lt_compile\"" >&5)
13118 (eval "$lt_compile" 2>conftest.err)
13120 cat conftest.err >&5
13121 echo "$as_me:13121: \$? = $ac_status" >&5
13122 if (exit $ac_status) && test -s "$ac_outfile"; then
13123 # The compiler can only warn and ignore the option if not recognized
13124 # So say no if there are warnings
13125 if test ! -s conftest.err; then
13126 lt_prog_compiler_pic_works_F77=yes
13132 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13133 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13135 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13136 case $lt_prog_compiler_pic_F77 in
13138 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13141 lt_prog_compiler_pic_F77=
13142 lt_prog_compiler_can_build_shared_F77=no
13147 # For platforms which do not support PIC, -DPIC is meaningless:
13149 lt_prog_compiler_pic_F77=
13152 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13156 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13157 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13158 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 lt_cv_prog_compiler_c_o_F77=no
13162 $rm -r conftest 2>/dev/null
13166 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13168 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13169 # that will create temporary files in the current directory regardless of
13170 # the output directory. Thus, making CWD read-only will cause this test
13171 # to fail, enabling locking or at least warning the user not to do parallel
13175 lt_compiler_flag="-o out/conftest2.$ac_objext"
13176 # Insert the option either (1) after the last *FLAGS variable, or
13177 # (2) before a word containing "conftest.", or (3) at the end.
13178 # Note that $ac_compile itself does not contain backslashes and begins
13179 # with a dollar sign (not a hyphen), so the echo should work correctly.
13180 lt_compile=`echo "$ac_compile" | $SED \
13181 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13183 -e 's:$: $lt_compiler_flag:'`
13184 (eval echo "\"\$as_me:13184: $lt_compile\"" >&5)
13185 (eval "$lt_compile" 2>out/conftest.err)
13187 cat out/conftest.err >&5
13188 echo "$as_me:13188: \$? = $ac_status" >&5
13189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13191 # The compiler can only warn and ignore the option if not recognized
13192 # So say no if there are warnings
13193 if test ! -s out/conftest.err; then
13194 lt_cv_prog_compiler_c_o_F77=yes
13198 $rm conftest* out/*
13205 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13206 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13209 hard_links="nottested"
13210 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13211 # do not overwrite the value of need_locks provided by the user
13212 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13213 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13218 ln conftest.a conftest.b 2>&5 || hard_links=no
13219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13220 echo "$as_me:$LINENO: result: $hard_links" >&5
13221 echo "${ECHO_T}$hard_links" >&6
13222 if test "$hard_links" = no; then
13223 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13224 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13231 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13232 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13235 allow_undefined_flag_F77=
13236 enable_shared_with_static_runtimes_F77=no
13238 archive_expsym_cmds_F77=
13239 old_archive_From_new_cmds_F77=
13240 old_archive_from_expsyms_cmds_F77=
13241 export_dynamic_flag_spec_F77=
13242 whole_archive_flag_spec_F77=
13243 thread_safe_flag_spec_F77=
13244 hardcode_libdir_flag_spec_F77=
13245 hardcode_libdir_flag_spec_ld_F77=
13246 hardcode_libdir_separator_F77=
13247 hardcode_direct_F77=no
13248 hardcode_minus_L_F77=no
13249 hardcode_shlibpath_var_F77=unsupported
13250 link_all_deplibs_F77=unknown
13251 hardcode_automatic_F77=no
13253 module_expsym_cmds_F77=
13254 always_export_symbols_F77=no
13255 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13256 # include_expsyms should be a list of space-separated symbols to be *always*
13257 # included in the symbol list
13258 include_expsyms_F77=
13259 # exclude_expsyms can be an extended regexp of symbols to exclude
13260 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13261 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13262 # as well as any symbol that contains `d'.
13263 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13264 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13265 # platforms (ab)use it in PIC code, but their linkers get confused if
13266 # the symbol is explicitly referenced. Since portable code cannot
13267 # rely on this symbol name, it's probably fine to never include it in
13268 # preloaded symbol tables.
13269 extract_expsyms_cmds=
13272 cygwin* | mingw* | pw32*)
13273 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13274 # When not using gcc, we currently assume that we are using
13275 # Microsoft Visual C++.
13276 if test "$GCC" != yes; then
13286 if test "$with_gnu_ld" = yes; then
13287 # If archive_cmds runs LD, not CC, wlarc should be empty
13290 # See if GNU ld supports shared libraries.
13292 aix3* | aix4* | aix5*)
13293 # On AIX/PPC, the GNU linker is very broken
13294 if test "$host_cpu" != ia64; then
13298 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13299 *** to be unable to reliably create shared libraries on AIX.
13300 *** Therefore, libtool is disabling shared libraries support. If you
13301 *** really care for shared libraries, you may want to modify your PATH
13302 *** so that a non-GNU linker is found, and then restart.
13309 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)'
13310 hardcode_libdir_flag_spec_F77='-L$libdir'
13311 hardcode_minus_L_F77=yes
13313 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13314 # that the semantics of dynamic libraries on AmigaOS, at least up
13315 # to version 4, is to share data among multiple programs linked
13316 # with the same dynamic library. Since this doesn't match the
13317 # behavior of shared libraries on other platforms, we can't use
13323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13324 allow_undefined_flag_F77=unsupported
13325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13326 # support --undefined. This deserves some investigation. FIXME
13327 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13333 cygwin* | mingw* | pw32*)
13334 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13335 # as there is no search path for DLLs.
13336 hardcode_libdir_flag_spec_F77='-L$libdir'
13337 allow_undefined_flag_F77=unsupported
13338 always_export_symbols_F77=no
13339 enable_shared_with_static_runtimes_F77=yes
13340 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13342 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13343 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13344 # If the export-symbols file already is a .def file (1st line
13345 # is EXPORTS), use it as is; otherwise, prepend...
13346 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13347 cp $export_symbols $output_objdir/$soname.def;
13349 echo EXPORTS > $output_objdir/$soname.def;
13350 cat $export_symbols >> $output_objdir/$soname.def;
13352 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13360 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13363 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13364 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13369 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13374 *** create shared libraries on Solaris systems. Therefore, libtool
13375 *** is disabling shared libraries support. We urge you to upgrade GNU
13376 *** binutils to release 2.9.1 or newer. Another option is to modify
13377 *** your PATH or compiler configuration so that the native linker is
13378 *** used, and then restart.
13381 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13382 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13383 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13390 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13392 hardcode_direct_F77=yes
13393 hardcode_shlibpath_var_F77=no
13397 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13398 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13399 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13406 if test "$ld_shlibs_F77" = yes; then
13407 runpath_var=LD_RUN_PATH
13408 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13409 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13410 # ancient GNU ld didn't support --whole-archive et. al.
13411 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13412 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13414 whole_archive_flag_spec_F77=
13418 # PORTME fill in a description of your system's linker (not GNU ld)
13421 allow_undefined_flag_F77=unsupported
13422 always_export_symbols_F77=yes
13423 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'
13424 # Note: this linker hardcodes the directories in LIBPATH if there
13425 # are no directories specified by -L.
13426 hardcode_minus_L_F77=yes
13427 if test "$GCC" = yes && test -z "$link_static_flag"; then
13428 # Neither direct hardcoding nor static linking is supported with a
13430 hardcode_direct_F77=unsupported
13435 if test "$host_cpu" = ia64; then
13436 # On IA64, the linker does run time linking by default, so we don't
13437 # have to do anything special.
13438 aix_use_runtimelinking=no
13439 exp_sym_flag='-Bexport'
13442 # If we're using GNU nm, then we don't want the "-C" option.
13443 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13444 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13445 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'
13447 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'
13449 aix_use_runtimelinking=no
13451 # Test if we are trying to use run time linking or normal
13452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13453 # need to do runtime linking.
13454 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13455 for ld_flag in $LDFLAGS; do
13456 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13457 aix_use_runtimelinking=yes
13463 exp_sym_flag='-bexport'
13464 no_entry_flag='-bnoentry'
13467 # When large executables or shared objects are built, AIX ld can
13468 # have problems creating the table of contents. If linking a library
13469 # or program results in "error TOC overflow" add -mminimal-toc to
13470 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13471 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13473 archive_cmds_F77=''
13474 hardcode_direct_F77=yes
13475 hardcode_libdir_separator_F77=':'
13476 link_all_deplibs_F77=yes
13478 if test "$GCC" = yes; then
13479 case $host_os in aix4.012|aix4.012.*)
13480 # We only want to do this on AIX 4.2 and lower, the check
13481 # below for broken collect2 doesn't work under 4.3+
13482 collect2name=`${CC} -print-prog-name=collect2`
13483 if test -f "$collect2name" && \
13484 strings "$collect2name" | grep resolve_lib_name >/dev/null
13486 # We have reworked collect2
13487 hardcode_direct_F77=yes
13489 # We have old collect2
13490 hardcode_direct_F77=unsupported
13491 # It fails to find uninstalled libraries when the uninstalled
13492 # path is not listed in the libpath. Setting hardcode_minus_L
13493 # to unsupported forces relinking
13494 hardcode_minus_L_F77=yes
13495 hardcode_libdir_flag_spec_F77='-L$libdir'
13496 hardcode_libdir_separator_F77=
13499 shared_flag='-shared'
13502 if test "$host_cpu" = ia64; then
13503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13504 # chokes on -Wl,-G. The following line is correct:
13507 if test "$aix_use_runtimelinking" = yes; then
13508 shared_flag='${wl}-G'
13510 shared_flag='${wl}-bM:SRE'
13515 # It seems that -bexpall does not export symbols beginning with
13516 # underscore (_), so it is better to generate a list of symbols to export.
13517 always_export_symbols_F77=yes
13518 if test "$aix_use_runtimelinking" = yes; then
13519 # Warning - without using the other runtime loading flags (-brtl),
13520 # -berok will link without error, but may produce a broken library.
13521 allow_undefined_flag_F77='-berok'
13522 # Determine the default libpath from the value encoded in an empty executable.
13523 cat >conftest.$ac_ext <<_ACEOF
13528 rm -f conftest.$ac_objext conftest$ac_exeext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13530 (eval $ac_link) 2>conftest.er1
13532 grep -v '^ *+' conftest.er1 >conftest.err
13534 cat conftest.err >&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try='test -z "$ac_f77_werror_flag"
13538 || test ! -s conftest.err'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; } &&
13544 { ac_try='test -s conftest$ac_exeext'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13553 # Check for a 64-bit object if we didn't find anything.
13554 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; }
13557 echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13561 rm -f conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
13563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13565 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13566 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"
13568 if test "$host_cpu" = ia64; then
13569 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13570 allow_undefined_flag_F77="-z nodefs"
13571 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"
13573 # Determine the default libpath from the value encoded in an empty executable.
13574 cat >conftest.$ac_ext <<_ACEOF
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13581 (eval $ac_link) 2>conftest.er1
13583 grep -v '^ *+' conftest.er1 >conftest.err
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } &&
13588 { ac_try='test -z "$ac_f77_werror_flag"
13589 || test ! -s conftest.err'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; } &&
13595 { ac_try='test -s conftest$ac_exeext'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13604 # Check for a 64-bit object if we didn't find anything.
13605 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; }
13608 echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13612 rm -f conftest.err conftest.$ac_objext \
13613 conftest$ac_exeext conftest.$ac_ext
13614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13616 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13617 # Warning - without using the other run time loading flags,
13618 # -berok will link without error, but may produce a broken library.
13619 no_undefined_flag_F77=' ${wl}-bernotok'
13620 allow_undefined_flag_F77=' ${wl}-berok'
13621 # -bexpall does not export symbols beginning with underscore (_)
13622 always_export_symbols_F77=yes
13623 # Exported symbols can be pulled into shared objects from archives
13624 whole_archive_flag_spec_F77=' '
13625 archive_cmds_need_lc_F77=yes
13626 # This is similar to how AIX traditionally builds it's shared libraries.
13627 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'
13633 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)'
13634 hardcode_libdir_flag_spec_F77='-L$libdir'
13635 hardcode_minus_L_F77=yes
13636 # see comment about different semantics on the GNU ld section
13641 export_dynamic_flag_spec_F77=-rdynamic
13644 cygwin* | mingw* | pw32*)
13645 # When not using gcc, we currently assume that we are using
13646 # Microsoft Visual C++.
13647 # hardcode_libdir_flag_spec is actually meaningless, as there is
13648 # no search path for DLLs.
13649 hardcode_libdir_flag_spec_F77=' '
13650 allow_undefined_flag_F77=unsupported
13651 # Tell ltmain to make .lib files, not .a files.
13653 # Tell ltmain to make .dll files, not .so files.
13655 # FIXME: Setting linknames here is a bad hack.
13656 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13657 # The linker will automatically build a .lib file if we build a DLL.
13658 old_archive_From_new_cmds_F77='true'
13659 # FIXME: Should let the user specify the lib program.
13660 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13661 fix_srcfile_path='`cygpath -w "$srcfile"`'
13662 enable_shared_with_static_runtimes_F77=yes
13665 darwin* | rhapsody*)
13666 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13667 archive_cmds_need_lc_F77=no
13669 rhapsody* | darwin1.[012])
13670 allow_undefined_flag_F77='-undefined suppress'
13673 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13676 # FIXME: Relying on posixy $() will cause problems for
13677 # cross-compilation, but unfortunately the echo tests do not
13678 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13679 # `"' quotes if we put them in here... so don't!
13680 lt_int_apple_cc_single_mod=no
13681 output_verbose_link_cmd='echo'
13682 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13683 lt_int_apple_cc_single_mod=yes
13685 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13686 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13688 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'
13690 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13691 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13692 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13693 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}'
13695 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}'
13697 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}'
13698 hardcode_direct_F77=no
13699 hardcode_automatic_F77=yes
13700 hardcode_shlibpath_var_F77=unsupported
13701 whole_archive_flag_spec_F77='-all_load $convenience'
13702 link_all_deplibs_F77=yes
13707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13708 hardcode_libdir_flag_spec_F77='-L$libdir'
13709 hardcode_shlibpath_var_F77=no
13716 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13717 # support. Future versions do this automatically, but an explicit c++rt0.o
13718 # does not break anything, and helps significantly (at the cost of a little
13721 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13722 hardcode_libdir_flag_spec_F77='-R$libdir'
13723 hardcode_direct_F77=yes
13724 hardcode_shlibpath_var_F77=no
13727 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13729 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13730 hardcode_direct_F77=yes
13731 hardcode_minus_L_F77=yes
13732 hardcode_shlibpath_var_F77=no
13735 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13737 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13738 hardcode_libdir_flag_spec_F77='-R$libdir'
13739 hardcode_direct_F77=yes
13740 hardcode_shlibpath_var_F77=no
13744 if test "$GCC" = yes; then
13745 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'
13747 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'
13749 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13750 hardcode_libdir_separator_F77=:
13751 hardcode_direct_F77=yes
13753 # hardcode_minus_L: Not really in the search PATH,
13754 # but as the default location of the library.
13755 hardcode_minus_L_F77=yes
13756 export_dynamic_flag_spec_F77='${wl}-E'
13760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13761 case "$host_cpu" in
13763 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13766 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13770 case "$host_cpu" in
13772 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13775 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13779 if test "$with_gnu_ld" = no; then
13780 case "$host_cpu" in
13782 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13783 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13784 hardcode_libdir_separator_F77=:
13785 hardcode_direct_F77=no
13786 hardcode_shlibpath_var_F77=no
13789 hardcode_libdir_flag_spec_F77='-L$libdir'
13790 hardcode_direct_F77=no
13791 hardcode_shlibpath_var_F77=no
13793 # hardcode_minus_L: Not really in the search PATH,
13794 # but as the default location of the library.
13795 hardcode_minus_L_F77=yes
13798 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13799 hardcode_libdir_separator_F77=:
13800 hardcode_direct_F77=yes
13801 export_dynamic_flag_spec_F77='${wl}-E'
13803 # hardcode_minus_L: Not really in the search PATH,
13804 # but as the default location of the library.
13805 hardcode_minus_L_F77=yes
13811 irix5* | irix6* | nonstopux*)
13812 if test "$GCC" = yes; then
13813 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'
13815 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'
13816 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13818 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13819 hardcode_libdir_separator_F77=:
13820 link_all_deplibs_F77=yes
13824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13825 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13827 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13829 hardcode_libdir_flag_spec_F77='-R$libdir'
13830 hardcode_direct_F77=yes
13831 hardcode_shlibpath_var_F77=no
13835 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13836 hardcode_direct_F77=yes
13837 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13838 hardcode_libdir_separator_F77=:
13839 hardcode_shlibpath_var_F77=no
13843 hardcode_direct_F77=yes
13844 hardcode_shlibpath_var_F77=no
13845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13846 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13847 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13848 export_dynamic_flag_spec_F77='${wl}-E'
13851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13852 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13853 hardcode_libdir_flag_spec_F77='-R$libdir'
13856 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13857 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13864 hardcode_libdir_flag_spec_F77='-L$libdir'
13865 hardcode_minus_L_F77=yes
13866 allow_undefined_flag_F77=unsupported
13867 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'
13868 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13872 if test "$GCC" = yes; then
13873 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13874 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'
13876 allow_undefined_flag_F77=' -expect_unresolved \*'
13877 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'
13879 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13880 hardcode_libdir_separator_F77=:
13883 osf4* | osf5*) # as osf3* with the addition of -msym flag
13884 if test "$GCC" = yes; then
13885 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13886 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'
13887 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13889 allow_undefined_flag_F77=' -expect_unresolved \*'
13890 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'
13891 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~
13892 $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'
13894 # Both c and cxx compiler support -rpath directly
13895 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13897 hardcode_libdir_separator_F77=:
13901 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902 hardcode_shlibpath_var_F77=no
13903 export_dynamic_flag_spec_F77='${wl}-Bexport'
13904 runpath_var=LD_RUN_PATH
13905 hardcode_runpath_var=yes
13909 no_undefined_flag_F77=' -z text'
13910 if test "$GCC" = yes; then
13911 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13912 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13913 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13915 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13916 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13919 hardcode_libdir_flag_spec_F77='-R$libdir'
13920 hardcode_shlibpath_var_F77=no
13922 solaris2.[0-5] | solaris2.[0-5].*) ;;
13923 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13924 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13926 link_all_deplibs_F77=yes
13930 if test "x$host_vendor" = xsequent; then
13931 # Use $CC to link under sequent, because it throws in some extra .o
13932 # files that make .init and .fini sections work.
13933 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13935 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13937 hardcode_libdir_flag_spec_F77='-L$libdir'
13938 hardcode_direct_F77=yes
13939 hardcode_minus_L_F77=yes
13940 hardcode_shlibpath_var_F77=no
13944 case $host_vendor in
13946 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13947 hardcode_direct_F77=yes # is this really true???
13950 ## LD is ld it makes a PLAMLIB
13951 ## CC just makes a GrossModule.
13952 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13953 reload_cmds_F77='$CC -r -o $output$reload_objs'
13954 hardcode_direct_F77=no
13957 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13958 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13961 runpath_var='LD_RUN_PATH'
13962 hardcode_shlibpath_var_F77=no
13966 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13967 hardcode_shlibpath_var_F77=no
13968 export_dynamic_flag_spec_F77='-Bexport'
13972 if test -d /usr/nec; then
13973 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13974 hardcode_shlibpath_var_F77=no
13975 runpath_var=LD_RUN_PATH
13976 hardcode_runpath_var=yes
13982 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13983 hardcode_direct_F77=yes
13984 hardcode_minus_L_F77=no
13985 hardcode_shlibpath_var_F77=no
13986 hardcode_runpath_var=yes
13987 runpath_var=LD_RUN_PATH
13990 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13991 no_undefined_flag_F77='${wl}-z ${wl}text'
13992 if test "$GCC" = yes; then
13993 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13995 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13997 runpath_var='LD_RUN_PATH'
13998 hardcode_shlibpath_var_F77=no
14002 no_undefined_flag_F77=' -z text'
14003 # $CC -shared without GNU ld will not create a library from C++
14004 # object files and a static libstdc++, better avoid it by now
14005 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14006 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14008 hardcode_libdir_flag_spec_F77=
14009 hardcode_shlibpath_var_F77=no
14010 runpath_var='LD_RUN_PATH'
14014 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14015 hardcode_libdir_flag_spec_F77='-L$libdir'
14016 hardcode_shlibpath_var_F77=no
14025 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14026 echo "${ECHO_T}$ld_shlibs_F77" >&6
14027 test "$ld_shlibs_F77" = no && can_build_shared=no
14029 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14030 if test "$GCC" = yes; then
14031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14035 # Do we need to explicitly link libc?
14037 case "x$archive_cmds_need_lc_F77" in
14039 # Assume -lc should be added
14040 archive_cmds_need_lc_F77=yes
14042 if test "$enable_shared" = yes && test "$GCC" = yes; then
14043 case $archive_cmds_F77 in
14045 # FIXME: we may have to deal with multi-command sequences.
14048 # Test whether the compiler implicitly links with -lc since on some
14049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14050 # to ld, don't add -lc before -lgcc.
14051 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14057 (eval $ac_compile) 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } 2>conftest.err; then
14063 libobjs=conftest.$ac_objext
14065 wl=$lt_prog_compiler_wl_F77
14071 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14072 allow_undefined_flag_F77=
14073 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14074 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }
14079 archive_cmds_need_lc_F77=no
14081 archive_cmds_need_lc_F77=yes
14083 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14085 cat conftest.err 1>&5
14088 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14089 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14098 hardcode_action_F77=
14099 if test -n "$hardcode_libdir_flag_spec_F77" || \
14100 test -n "$runpath_var F77" || \
14101 test "X$hardcode_automatic_F77"="Xyes" ; then
14103 # We can hardcode non-existant directories.
14104 if test "$hardcode_direct_F77" != no &&
14105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14106 # have to relink, otherwise we might link with an installed library
14107 # when we should be linking with a yet-to-be-installed one
14108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14109 test "$hardcode_minus_L_F77" != no; then
14110 # Linking always hardcodes the temporary library directory.
14111 hardcode_action_F77=relink
14113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14114 hardcode_action_F77=immediate
14117 # We cannot hardcode anything, or else we can only hardcode existing
14119 hardcode_action_F77=unsupported
14121 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14122 echo "${ECHO_T}$hardcode_action_F77" >&6
14124 if test "$hardcode_action_F77" = relink; then
14125 # Fast installation is not supported
14126 enable_fast_install=no
14127 elif test "$shlibpath_overrides_runpath" = yes ||
14128 test "$enable_shared" = no; then
14129 # Fast installation is not necessary
14130 enable_fast_install=needless
14135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14137 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14139 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14140 echo "$as_me:$LINENO: result: yes" >&5
14141 echo "${ECHO_T}yes" >&6
14143 # FIXME - insert some real tests, host_os isn't really good enough
14146 if test -n "$STRIP" ; then
14147 striplib="$STRIP -x"
14148 echo "$as_me:$LINENO: result: yes" >&5
14149 echo "${ECHO_T}yes" >&6
14151 echo "$as_me:$LINENO: result: no" >&5
14152 echo "${ECHO_T}no" >&6
14156 echo "$as_me:$LINENO: result: no" >&5
14157 echo "${ECHO_T}no" >&6
14162 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14163 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14164 library_names_spec=
14165 libname_spec='lib$name'
14169 postuninstall_cmds=
14173 shlibpath_overrides_runpath=unknown
14175 dynamic_linker="$host_os ld.so"
14176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14177 if test "$GCC" = yes; then
14178 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14179 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14180 # if the path contains ";" then we assume it to be the separator
14181 # otherwise default to the standard path separator (i.e. ":") - it is
14182 # assumed that no part of a normal pathname contains ";" but that should
14183 # okay in the real world where ";" in dirpaths is itself problematic.
14184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14191 need_lib_prefix=unknown
14192 hardcode_into_libs=no
14194 # when you set need_version to no, make sure it does not cause -set_version
14195 # flags to be left without arguments
14196 need_version=unknown
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14202 shlibpath_var=LIBPATH
14204 # AIX 3 has no versioning support, so we append a major version to the name.
14205 soname_spec='${libname}${release}${shared_ext}$major'
14212 hardcode_into_libs=yes
14213 if test "$host_cpu" = ia64; then
14214 # AIX 5 supports IA64
14215 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14216 shlibpath_var=LD_LIBRARY_PATH
14218 # With GCC up to 2.95.x, collect2 would create an import file
14219 # for dependence libraries. The import file would start with
14220 # the line `#! .'. This would cause the generated library to
14221 # depend on `.', always an invalid library. This was fixed in
14222 # development snapshots of GCC prior to 3.0.
14224 aix4 | aix4.[01] | aix4.[01].*)
14225 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14227 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14230 can_build_shared=no
14234 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14235 # soname into executable. Probably we can add versioning support to
14236 # collect2, so additional links can be useful in future.
14237 if test "$aix_use_runtimelinking" = yes; then
14238 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14239 # instead of lib<name>.a to let people know that these are not
14240 # typical AIX shared libraries.
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14243 # We preserve .a as extension for shared libraries through AIX4.2
14244 # and later when we are not doing run time linking.
14245 library_names_spec='${libname}${release}.a $libname.a'
14246 soname_spec='${libname}${release}${shared_ext}$major'
14248 shlibpath_var=LIBPATH
14253 library_names_spec='$libname.ixlibrary $libname.a'
14254 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14255 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'
14259 library_names_spec='${libname}${shared_ext}'
14260 dynamic_linker="$host_os ld.so"
14261 shlibpath_var=LIBRARY_PATH
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268 soname_spec='${libname}${release}${shared_ext}$major'
14269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14273 # the default ld.so.conf also contains /usr/contrib/lib and
14274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14275 # libtool to hard-code these into programs
14278 cygwin* | mingw* | pw32*)
14279 version_type=windows
14284 case $GCC,$host_os in
14285 yes,cygwin* | yes,mingw* | yes,pw32*)
14286 library_names_spec='$libname.dll.a'
14287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14288 postinstall_cmds='base_file=`basename \${file}`~
14289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14290 dldir=$destdir/`dirname \$dlpath`~
14291 test -d \$dldir || mkdir -p \$dldir~
14292 $install_prog $dir/$dlname \$dldir/$dlname'
14293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14294 dlpath=$dir/\$dldll~
14296 shlibpath_overrides_runpath=yes
14300 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14301 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14302 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14305 # MinGW DLLs use traditional 'lib' prefix
14306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14307 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14308 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14309 # It is most probably a Windows format PATH printed by
14310 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14311 # path with ; separators, and with drive letters. We can handle the
14312 # drive letters (cygwin fileutils understands them), so leave them,
14313 # especially as we might pass files found there to a mingw objdump,
14314 # which wouldn't understand a cygwinified path. Ahh.
14315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14321 # pw32 DLLs use 'pw' prefix rather than 'lib'
14322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14331 dynamic_linker='Win32 ld.exe'
14332 # FIXME: first we should search . and the directory the executable is in
14336 darwin* | rhapsody*)
14337 dynamic_linker="$host_os dyld"
14338 version_type=darwin
14341 # FIXME: Relying on posixy $() will cause problems for
14342 # cross-compilation, but unfortunately the echo tests do not
14343 # yet detect zsh echo's removal of \ escapes.
14344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14345 soname_spec='${libname}${release}${major}$shared_ext'
14346 shlibpath_overrides_runpath=yes
14347 shlibpath_var=DYLD_LIBRARY_PATH
14348 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14349 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14350 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14351 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"`
14353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14361 soname_spec='${libname}${release}${shared_ext}$major'
14362 shlibpath_var=LD_LIBRARY_PATH
14370 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14371 version_type=freebsd-$objformat
14372 case $version_type in
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14383 shlibpath_var=LD_LIBRARY_PATH
14386 shlibpath_overrides_runpath=yes
14388 freebsd3.01* | freebsdelf3.01*)
14389 shlibpath_overrides_runpath=yes
14390 hardcode_into_libs=yes
14393 shlibpath_overrides_runpath=no
14394 hardcode_into_libs=yes
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14404 soname_spec='${libname}${release}${shared_ext}$major'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 hardcode_into_libs=yes
14409 hpux9* | hpux10* | hpux11*)
14410 # Give a soname corresponding to the major version so that dld.sl refuses to
14411 # link against other versions.
14415 case "$host_cpu" in
14418 hardcode_into_libs=yes
14419 dynamic_linker="$host_os dld.so"
14420 shlibpath_var=LD_LIBRARY_PATH
14421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14423 soname_spec='${libname}${release}${shared_ext}$major'
14424 if test "X$HPUX_IA64_MODE" = X32; then
14425 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14427 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14433 hardcode_into_libs=yes
14434 dynamic_linker="$host_os dld.sl"
14435 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14444 dynamic_linker="$host_os dld.sl"
14445 shlibpath_var=SHLIB_PATH
14446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14451 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14452 postinstall_cmds='chmod 555 $lib'
14455 irix5* | irix6* | nonstopux*)
14457 nonstopux*) version_type=nonstopux ;;
14459 if test "$lt_cv_prog_gnu_ld" = yes; then
14467 soname_spec='${libname}${release}${shared_ext}$major'
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14470 irix5* | nonstopux*)
14471 libsuff= shlibsuff=
14474 case $LD in # libtool.m4 will add one of these switches to LD
14475 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14476 libsuff= shlibsuff= libmagic=32-bit;;
14477 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14478 libsuff=32 shlibsuff=N32 libmagic=N32;;
14479 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14480 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14481 *) libsuff= shlibsuff= libmagic=never-match;;
14485 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14486 shlibpath_overrides_runpath=no
14487 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14488 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14489 hardcode_into_libs=yes
14492 # No shared lib support for Linux oldld, aout, or coff.
14493 linux*oldld* | linux*aout* | linux*coff*)
14497 # This must be Linux ELF.
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 shlibpath_overrides_runpath=no
14507 # This implies no fast_install, which is unacceptable.
14508 # Some rework will be needed to allow for fast_install
14509 # before this can be enabled.
14510 hardcode_into_libs=yes
14512 # We used to test for /lib/ld.so.1 and disable shared libraries on
14513 # powerpc, because MkLinux only supported shared libraries with the
14514 # GNU dynamic linker. Since this was broken with cross compilers,
14515 # most powerpc-linux boxes support dynamic linking these days and
14516 # people can always --disable-shared, the test was removed, and we
14517 # assume the GNU/Linux dynamic linker is in use.
14518 dynamic_linker='GNU/Linux ld.so'
14525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14528 dynamic_linker='NetBSD (a.out) ld.so'
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 dynamic_linker='NetBSD ld.elf_so'
14534 shlibpath_var=LD_LIBRARY_PATH
14535 shlibpath_overrides_runpath=yes
14536 hardcode_into_libs=yes
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 shlibpath_overrides_runpath=yes
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551 soname_spec='${libname}${release}${shared_ext}$major'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 shlibpath_overrides_runpath=yes
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14565 openbsd2.[89] | openbsd2.[89].*)
14566 shlibpath_overrides_runpath=no
14569 shlibpath_overrides_runpath=yes
14573 shlibpath_overrides_runpath=yes
14578 libname_spec='$name'
14581 library_names_spec='$libname${shared_ext} $libname.a'
14582 dynamic_linker='OS/2 ld.exe'
14583 shlibpath_var=LIBPATH
14586 osf3* | osf4* | osf5*)
14590 soname_spec='${libname}${release}${shared_ext}$major'
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 shlibpath_var=LD_LIBRARY_PATH
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 soname_spec='${libname}${release}${shared_ext}$major'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath=yes
14612 hardcode_into_libs=yes
14613 # ldd complains unless libraries are executable
14614 postinstall_cmds='chmod +x $lib'
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=yes
14623 if test "$with_gnu_ld" = yes; then
14629 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 shlibpath_var=LD_LIBRARY_PATH
14634 case $host_vendor in
14636 shlibpath_overrides_runpath=no
14638 export_dynamic_flag_spec='${wl}-Blargedynsym'
14639 runpath_var=LD_RUN_PATH
14647 shlibpath_overrides_runpath=no
14648 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14654 if test -d /usr/nec ;then
14656 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14657 soname_spec='$libname${shared_ext}.$major'
14658 shlibpath_var=LD_LIBRARY_PATH
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 shlibpath_var=LD_LIBRARY_PATH
14673 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14674 echo "${ECHO_T}$dynamic_linker" >&6
14675 test "$dynamic_linker" = no && can_build_shared=no
14678 # The else clause should only fire when bootstrapping the
14679 # libtool distribution, otherwise you forgot to ship ltmain.sh
14680 # with your package, and you will get complaints that there are
14681 # no rules to generate ltmain.sh.
14682 if test -f "$ltmain"; then
14683 # See if we are running on zsh, and set the options which allow our commands through
14684 # without removal of \ escapes.
14685 if test -n "${ZSH_VERSION+set}" ; then
14686 setopt NO_GLOB_SUBST
14688 # Now quote all the things that may contain metacharacters while being
14689 # careful not to overquote the AC_SUBSTed values. We take copies of the
14690 # variables and quote the copies for generation of the libtool script.
14691 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14694 deplibs_check_method reload_flag reload_cmds need_locks \
14695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14696 lt_cv_sys_global_symbol_to_c_name_address \
14697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14698 old_postinstall_cmds old_postuninstall_cmds \
14702 lt_prog_compiler_wl_F77 \
14703 lt_prog_compiler_pic_F77 \
14704 lt_prog_compiler_static_F77 \
14705 lt_prog_compiler_no_builtin_flag_F77 \
14706 export_dynamic_flag_spec_F77 \
14707 thread_safe_flag_spec_F77 \
14708 whole_archive_flag_spec_F77 \
14709 enable_shared_with_static_runtimes_F77 \
14710 old_archive_cmds_F77 \
14711 old_archive_from_new_cmds_F77 \
14712 predep_objects_F77 \
14713 postdep_objects_F77 \
14716 compiler_lib_search_path_F77 \
14718 archive_expsym_cmds_F77 \
14719 postinstall_cmds_F77 \
14720 postuninstall_cmds_F77 \
14721 old_archive_from_expsyms_cmds_F77 \
14722 allow_undefined_flag_F77 \
14723 no_undefined_flag_F77 \
14724 export_symbols_cmds_F77 \
14725 hardcode_libdir_flag_spec_F77 \
14726 hardcode_libdir_flag_spec_ld_F77 \
14727 hardcode_libdir_separator_F77 \
14728 hardcode_automatic_F77 \
14730 module_expsym_cmds_F77 \
14731 lt_cv_prog_compiler_c_o_F77 \
14732 exclude_expsyms_F77 \
14733 include_expsyms_F77; do
14736 old_archive_cmds_F77 | \
14737 old_archive_from_new_cmds_F77 | \
14738 archive_cmds_F77 | \
14739 archive_expsym_cmds_F77 | \
14740 module_cmds_F77 | \
14741 module_expsym_cmds_F77 | \
14742 old_archive_from_expsyms_cmds_F77 | \
14743 export_symbols_cmds_F77 | \
14744 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14745 postinstall_cmds | postuninstall_cmds | \
14746 old_postinstall_cmds | old_postuninstall_cmds | \
14747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14748 # Double-quote double-evaled strings.
14749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14758 *'\$0 --fallback-echo"')
14759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14765 cat <<__EOF__ >> "$cfgfile"
14766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14770 # Shell to use when invoking shell scripts.
14773 # Whether or not to build shared libraries.
14774 build_libtool_libs=$enable_shared
14776 # Whether or not to build static libraries.
14777 build_old_libs=$enable_static
14779 # Whether or not to add -lc for building shared libraries.
14780 build_libtool_need_lc=$archive_cmds_need_lc_F77
14782 # Whether or not to disallow shared libs when runtime libs are static
14783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14785 # Whether or not to optimize for fast installation.
14786 fast_install=$enable_fast_install
14789 host_alias=$host_alias
14792 # An echo program that does not interpret backslashes.
14797 AR_FLAGS=$lt_AR_FLAGS
14802 # A language-specific compiler.
14803 CC=$lt_compiler_F77
14805 # Is the compiler the GNU C compiler?
14811 # The linker used to build libraries.
14814 # Whether we need hard or soft links.
14817 # A BSD-compatible nm program.
14820 # A symbol stripping program
14823 # Used to examine libraries when file_magic_cmd begins "file"
14824 MAGIC_CMD=$MAGIC_CMD
14826 # Used on cygwin: DLL creation program.
14829 # Used on cygwin: object dumper.
14832 # Used on cygwin: assembler.
14835 # The name of the directory that contains temporary libtool files.
14838 # How to create reloadable object files.
14839 reload_flag=$lt_reload_flag
14840 reload_cmds=$lt_reload_cmds
14842 # How to pass a linker flag through the compiler.
14843 wl=$lt_lt_prog_compiler_wl_F77
14845 # Object file suffix (normally "o").
14846 objext="$ac_objext"
14848 # Old archive suffix (normally "a").
14851 # Shared library suffix (normally ".so").
14854 # Executable file suffix (normally "").
14857 # Additional compiler flags for building library objects.
14858 pic_flag=$lt_lt_prog_compiler_pic_F77
14861 # What is the maximum length of a command?
14862 max_cmd_len=$lt_cv_sys_max_cmd_len
14864 # Does compiler simultaneously support -c and -o options?
14865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14867 # Must we lock files when doing compilation ?
14868 need_locks=$lt_need_locks
14870 # Do we need the lib prefix for modules?
14871 need_lib_prefix=$need_lib_prefix
14873 # Do we need a version for libraries?
14874 need_version=$need_version
14876 # Whether dlopen is supported.
14877 dlopen_support=$enable_dlopen
14879 # Whether dlopen of programs is supported.
14880 dlopen_self=$enable_dlopen_self
14882 # Whether dlopen of statically linked programs is supported.
14883 dlopen_self_static=$enable_dlopen_self_static
14885 # Compiler flag to prevent dynamic linking.
14886 link_static_flag=$lt_lt_prog_compiler_static_F77
14888 # Compiler flag to turn off builtin functions.
14889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14891 # Compiler flag to allow reflexive dlopens.
14892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14894 # Compiler flag to generate shared objects directly from archives.
14895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14897 # Compiler flag to generate thread-safe objects.
14898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14900 # Library versioning type.
14901 version_type=$version_type
14903 # Format of library name prefix.
14904 libname_spec=$lt_libname_spec
14906 # List of archive names. First name is the real one, the rest are links.
14907 # The last name is the one that the linker finds with -lNAME.
14908 library_names_spec=$lt_library_names_spec
14910 # The coded name of the library, if different from the real name.
14911 soname_spec=$lt_soname_spec
14913 # Commands used to build and install an old-style archive.
14915 old_archive_cmds=$lt_old_archive_cmds_F77
14916 old_postinstall_cmds=$lt_old_postinstall_cmds
14917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14919 # Create an old-style archive from a shared archive.
14920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14922 # Create a temporary old-style archive to link instead of a shared archive.
14923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14925 # Commands used to build and install a shared archive.
14926 archive_cmds=$lt_archive_cmds_F77
14927 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14928 postinstall_cmds=$lt_postinstall_cmds
14929 postuninstall_cmds=$lt_postuninstall_cmds
14931 # Commands used to build a loadable module (assumed same as above if empty)
14932 module_cmds=$lt_module_cmds_F77
14933 module_expsym_cmds=$lt_module_expsym_cmds_F77
14935 # Commands to strip libraries.
14936 old_striplib=$lt_old_striplib
14937 striplib=$lt_striplib
14939 # Dependencies to place before the objects being linked to create a
14941 predep_objects=$lt_predep_objects_F77
14943 # Dependencies to place after the objects being linked to create a
14945 postdep_objects=$lt_postdep_objects_F77
14947 # Dependencies to place before the objects being linked to create a
14949 predeps=$lt_predeps_F77
14951 # Dependencies to place after the objects being linked to create a
14953 postdeps=$lt_postdeps_F77
14955 # The library search path used internally by the compiler when linking
14956 # a shared library.
14957 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14959 # Method to check whether dependent libraries are shared objects.
14960 deplibs_check_method=$lt_deplibs_check_method
14962 # Command to use when deplibs_check_method == file_magic.
14963 file_magic_cmd=$lt_file_magic_cmd
14965 # Flag that allows shared libraries with undefined symbols to be built.
14966 allow_undefined_flag=$lt_allow_undefined_flag_F77
14968 # Flag that forces no undefined symbols.
14969 no_undefined_flag=$lt_no_undefined_flag_F77
14971 # Commands used to finish a libtool library installation in a directory.
14972 finish_cmds=$lt_finish_cmds
14974 # Same as above, but a single script fragment to be evaled but not shown.
14975 finish_eval=$lt_finish_eval
14977 # Take the output of nm and produce a listing of raw symbols and C names.
14978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14980 # Transform the output of nm in a proper C declaration
14981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14983 # Transform the output of nm in a C name address pair
14984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14986 # This is the shared library runtime path variable.
14987 runpath_var=$runpath_var
14989 # This is the shared library path variable.
14990 shlibpath_var=$shlibpath_var
14992 # Is shlibpath searched before the hard-coded library search path?
14993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14995 # How to hardcode a shared library path into an executable.
14996 hardcode_action=$hardcode_action_F77
14998 # Whether we should hardcode library paths into libraries.
14999 hardcode_into_libs=$hardcode_into_libs
15001 # Flag to hardcode \$libdir into a binary during linking.
15002 # This must work even if \$libdir does not exist.
15003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15005 # If ld is used when linking, flag to hardcode \$libdir into
15006 # a binary during linking. This must work even if \$libdir does
15008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15010 # Whether we need a single -rpath flag with a separated argument.
15011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15014 # resulting binary.
15015 hardcode_direct=$hardcode_direct_F77
15017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15018 # resulting binary.
15019 hardcode_minus_L=$hardcode_minus_L_F77
15021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15022 # the resulting binary.
15023 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15025 # Set to yes if building a shared library automatically hardcodes DIR into the library
15026 # and all subsequent libraries and executables linked against it.
15027 hardcode_automatic=$hardcode_automatic_F77
15029 # Variables whose values should be saved in libtool wrapper scripts and
15030 # restored at relink time.
15031 variables_saved_for_relink="$variables_saved_for_relink"
15033 # Whether libtool must link a program against all its dependency libraries.
15034 link_all_deplibs=$link_all_deplibs_F77
15036 # Compile-time system search path for libraries
15037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15039 # Run-time system search path for libraries
15040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15042 # Fix the shell variable \$srcfile for the compiler.
15043 fix_srcfile_path="$fix_srcfile_path_F77"
15045 # Set to yes if exported symbols are required.
15046 always_export_symbols=$always_export_symbols_F77
15048 # The commands to list exported symbols.
15049 export_symbols_cmds=$lt_export_symbols_cmds_F77
15051 # The commands to extract the exported symbol list from a shared archive.
15052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15054 # Symbols that should not be listed in the preloaded symbols.
15055 exclude_expsyms=$lt_exclude_expsyms_F77
15057 # Symbols that must always be exported.
15058 include_expsyms=$lt_include_expsyms_F77
15060 # ### END LIBTOOL TAG CONFIG: $tagname
15066 # If there is no Makefile yet, we rely on a make rule to execute
15067 # `config.status --recheck' to rerun these tests and create the
15068 # libtool script then.
15069 test -f Makefile && make "$ltmain"
15074 ac_cpp='$CPP $CPPFLAGS'
15075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15087 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15091 # Source file extension for Java test sources.
15094 # Object file extension for compiled Java test sources.
15098 # Code to be used in simple compile tests
15099 lt_simple_compile_test_code="class foo {}\n"
15101 # Code to be used in simple link tests
15102 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15106 # If no C compiler was specified, use CC.
15109 # Allow CC to be a program name with arguments.
15113 # Allow CC to be a program name with arguments.
15119 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15120 archive_cmds_need_lc_GCJ=no
15123 ## There is no encapsulation within the following macros, do not change
15124 ## the running order or otherwise move them around unless you know exactly
15125 ## what you are doing...
15127 lt_prog_compiler_no_builtin_flag_GCJ=
15129 if test "$GCC" = yes; then
15130 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15132 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15133 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15134 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 lt_cv_prog_compiler_rtti_exceptions=no
15138 ac_outfile=conftest.$ac_objext
15139 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15140 lt_compiler_flag="-fno-rtti -fno-exceptions"
15141 # Insert the option either (1) after the last *FLAGS variable, or
15142 # (2) before a word containing "conftest.", or (3) at the end.
15143 # Note that $ac_compile itself does not contain backslashes and begins
15144 # with a dollar sign (not a hyphen), so the echo should work correctly.
15145 # The option is referenced via a variable to avoid confusing sed.
15146 lt_compile=`echo "$ac_compile" | $SED \
15147 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15149 -e 's:$: $lt_compiler_flag:'`
15150 (eval echo "\"\$as_me:15150: $lt_compile\"" >&5)
15151 (eval "$lt_compile" 2>conftest.err)
15153 cat conftest.err >&5
15154 echo "$as_me:15154: \$? = $ac_status" >&5
15155 if (exit $ac_status) && test -s "$ac_outfile"; then
15156 # The compiler can only warn and ignore the option if not recognized
15157 # So say no if there are warnings
15158 if test ! -s conftest.err; then
15159 lt_cv_prog_compiler_rtti_exceptions=yes
15165 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15166 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15168 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15169 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15176 lt_prog_compiler_wl_GCJ=
15177 lt_prog_compiler_pic_GCJ=
15178 lt_prog_compiler_static_GCJ=
15180 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15181 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15183 if test "$GCC" = yes; then
15184 lt_prog_compiler_wl_GCJ='-Wl,'
15185 lt_prog_compiler_static_GCJ='-static'
15189 # All AIX code is PIC.
15190 if test "$host_cpu" = ia64; then
15191 # AIX 5 now supports IA64 processor
15192 lt_prog_compiler_static_GCJ='-Bstatic'
15197 # FIXME: we need at least 68020 code to build shared libraries, but
15198 # adding the `-m68020' flag to GCC prevents building anything better,
15200 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15203 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15204 # PIC is the default for these OSes.
15207 mingw* | pw32* | os2*)
15208 # This hack is so that the source file can tell whether it is being
15209 # built for inclusion in a dll (and should export symbols for example).
15210 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15213 darwin* | rhapsody*)
15214 # PIC is the default on this platform
15215 # Common symbols not allowed in MH_DYLIB files
15216 lt_prog_compiler_pic_GCJ='-fno-common'
15220 # Just because we use GCC doesn't mean we suddenly get shared libraries
15221 # on systems that don't support them.
15222 lt_prog_compiler_can_build_shared_GCJ=no
15227 if test -d /usr/nec; then
15228 lt_prog_compiler_pic_GCJ=-Kconform_pic
15233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15234 # not for PA HP-UX.
15235 case "$host_cpu" in
15240 lt_prog_compiler_pic_GCJ='-fPIC'
15246 lt_prog_compiler_pic_GCJ='-fPIC'
15250 # PORTME Check for flag to pass linker flags through the system compiler.
15253 lt_prog_compiler_wl_GCJ='-Wl,'
15254 if test "$host_cpu" = ia64; then
15255 # AIX 5 now supports IA64 processor
15256 lt_prog_compiler_static_GCJ='-Bstatic'
15258 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15262 mingw* | pw32* | os2*)
15263 # This hack is so that the source file can tell whether it is being
15264 # built for inclusion in a dll (and should export symbols for example).
15265 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15268 hpux9* | hpux10* | hpux11*)
15269 lt_prog_compiler_wl_GCJ='-Wl,'
15270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15271 # not for PA HP-UX.
15272 case "$host_cpu" in
15277 lt_prog_compiler_pic_GCJ='+Z'
15280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15281 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15284 irix5* | irix6* | nonstopux*)
15285 lt_prog_compiler_wl_GCJ='-Wl,'
15286 # PIC (with -KPIC) is the default.
15287 lt_prog_compiler_static_GCJ='-non_shared'
15291 lt_prog_compiler_pic_GCJ='-KPIC'
15292 lt_prog_compiler_static_GCJ='-Bstatic'
15298 lt_prog_compiler_wl_GCJ='-Wl,'
15299 lt_prog_compiler_pic_GCJ='-KPIC'
15300 lt_prog_compiler_static_GCJ='-static'
15303 lt_prog_compiler_wl_GCJ='-Wl,'
15304 # All Alpha code is PIC.
15305 lt_prog_compiler_static_GCJ='-non_shared'
15310 osf3* | osf4* | osf5*)
15311 lt_prog_compiler_wl_GCJ='-Wl,'
15312 # All OSF/1 code is PIC.
15313 lt_prog_compiler_static_GCJ='-non_shared'
15317 lt_prog_compiler_pic_GCJ='-Kpic'
15318 lt_prog_compiler_static_GCJ='-dn'
15322 lt_prog_compiler_wl_GCJ='-Wl,'
15323 lt_prog_compiler_pic_GCJ='-KPIC'
15324 lt_prog_compiler_static_GCJ='-Bstatic'
15328 lt_prog_compiler_wl_GCJ='-Qoption ld '
15329 lt_prog_compiler_pic_GCJ='-PIC'
15330 lt_prog_compiler_static_GCJ='-Bstatic'
15333 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15334 lt_prog_compiler_wl_GCJ='-Wl,'
15335 lt_prog_compiler_pic_GCJ='-KPIC'
15336 lt_prog_compiler_static_GCJ='-Bstatic'
15340 if test -d /usr/nec ;then
15341 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15342 lt_prog_compiler_static_GCJ='-Bstatic'
15347 lt_prog_compiler_pic_GCJ='-pic'
15348 lt_prog_compiler_static_GCJ='-Bstatic'
15352 lt_prog_compiler_can_build_shared_GCJ=no
15357 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15358 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15361 # Check to make sure the PIC flag actually works.
15363 if test -n "$lt_prog_compiler_pic_GCJ"; then
15364 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15365 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15366 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 lt_prog_compiler_pic_works_GCJ=no
15370 ac_outfile=conftest.$ac_objext
15371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15372 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15373 # Insert the option either (1) after the last *FLAGS variable, or
15374 # (2) before a word containing "conftest.", or (3) at the end.
15375 # Note that $ac_compile itself does not contain backslashes and begins
15376 # with a dollar sign (not a hyphen), so the echo should work correctly.
15377 # The option is referenced via a variable to avoid confusing sed.
15378 lt_compile=`echo "$ac_compile" | $SED \
15379 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15381 -e 's:$: $lt_compiler_flag:'`
15382 (eval echo "\"\$as_me:15382: $lt_compile\"" >&5)
15383 (eval "$lt_compile" 2>conftest.err)
15385 cat conftest.err >&5
15386 echo "$as_me:15386: \$? = $ac_status" >&5
15387 if (exit $ac_status) && test -s "$ac_outfile"; then
15388 # The compiler can only warn and ignore the option if not recognized
15389 # So say no if there are warnings
15390 if test ! -s conftest.err; then
15391 lt_prog_compiler_pic_works_GCJ=yes
15397 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15398 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15400 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15401 case $lt_prog_compiler_pic_GCJ in
15403 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15406 lt_prog_compiler_pic_GCJ=
15407 lt_prog_compiler_can_build_shared_GCJ=no
15412 # For platforms which do not support PIC, -DPIC is meaningless:
15414 lt_prog_compiler_pic_GCJ=
15417 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15421 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15423 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 lt_cv_prog_compiler_c_o_GCJ=no
15427 $rm -r conftest 2>/dev/null
15431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15433 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15434 # that will create temporary files in the current directory regardless of
15435 # the output directory. Thus, making CWD read-only will cause this test
15436 # to fail, enabling locking or at least warning the user not to do parallel
15440 lt_compiler_flag="-o out/conftest2.$ac_objext"
15441 # Insert the option either (1) after the last *FLAGS variable, or
15442 # (2) before a word containing "conftest.", or (3) at the end.
15443 # Note that $ac_compile itself does not contain backslashes and begins
15444 # with a dollar sign (not a hyphen), so the echo should work correctly.
15445 lt_compile=`echo "$ac_compile" | $SED \
15446 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15448 -e 's:$: $lt_compiler_flag:'`
15449 (eval echo "\"\$as_me:15449: $lt_compile\"" >&5)
15450 (eval "$lt_compile" 2>out/conftest.err)
15452 cat out/conftest.err >&5
15453 echo "$as_me:15453: \$? = $ac_status" >&5
15454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15456 # The compiler can only warn and ignore the option if not recognized
15457 # So say no if there are warnings
15458 if test ! -s out/conftest.err; then
15459 lt_cv_prog_compiler_c_o_GCJ=yes
15463 $rm conftest* out/*
15470 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15471 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15474 hard_links="nottested"
15475 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15476 # do not overwrite the value of need_locks provided by the user
15477 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15483 ln conftest.a conftest.b 2>&5 || hard_links=no
15484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15485 echo "$as_me:$LINENO: result: $hard_links" >&5
15486 echo "${ECHO_T}$hard_links" >&6
15487 if test "$hard_links" = no; then
15488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15496 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15500 allow_undefined_flag_GCJ=
15501 enable_shared_with_static_runtimes_GCJ=no
15503 archive_expsym_cmds_GCJ=
15504 old_archive_From_new_cmds_GCJ=
15505 old_archive_from_expsyms_cmds_GCJ=
15506 export_dynamic_flag_spec_GCJ=
15507 whole_archive_flag_spec_GCJ=
15508 thread_safe_flag_spec_GCJ=
15509 hardcode_libdir_flag_spec_GCJ=
15510 hardcode_libdir_flag_spec_ld_GCJ=
15511 hardcode_libdir_separator_GCJ=
15512 hardcode_direct_GCJ=no
15513 hardcode_minus_L_GCJ=no
15514 hardcode_shlibpath_var_GCJ=unsupported
15515 link_all_deplibs_GCJ=unknown
15516 hardcode_automatic_GCJ=no
15518 module_expsym_cmds_GCJ=
15519 always_export_symbols_GCJ=no
15520 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15521 # include_expsyms should be a list of space-separated symbols to be *always*
15522 # included in the symbol list
15523 include_expsyms_GCJ=
15524 # exclude_expsyms can be an extended regexp of symbols to exclude
15525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15527 # as well as any symbol that contains `d'.
15528 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15530 # platforms (ab)use it in PIC code, but their linkers get confused if
15531 # the symbol is explicitly referenced. Since portable code cannot
15532 # rely on this symbol name, it's probably fine to never include it in
15533 # preloaded symbol tables.
15534 extract_expsyms_cmds=
15537 cygwin* | mingw* | pw32*)
15538 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15539 # When not using gcc, we currently assume that we are using
15540 # Microsoft Visual C++.
15541 if test "$GCC" != yes; then
15551 if test "$with_gnu_ld" = yes; then
15552 # If archive_cmds runs LD, not CC, wlarc should be empty
15555 # See if GNU ld supports shared libraries.
15557 aix3* | aix4* | aix5*)
15558 # On AIX/PPC, the GNU linker is very broken
15559 if test "$host_cpu" != ia64; then
15563 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15564 *** to be unable to reliably create shared libraries on AIX.
15565 *** Therefore, libtool is disabling shared libraries support. If you
15566 *** really care for shared libraries, you may want to modify your PATH
15567 *** so that a non-GNU linker is found, and then restart.
15574 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)'
15575 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15576 hardcode_minus_L_GCJ=yes
15578 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15579 # that the semantics of dynamic libraries on AmigaOS, at least up
15580 # to version 4, is to share data among multiple programs linked
15581 # with the same dynamic library. Since this doesn't match the
15582 # behavior of shared libraries on other platforms, we can't use
15588 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15589 allow_undefined_flag_GCJ=unsupported
15590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15591 # support --undefined. This deserves some investigation. FIXME
15592 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15598 cygwin* | mingw* | pw32*)
15599 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15600 # as there is no search path for DLLs.
15601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15602 allow_undefined_flag_GCJ=unsupported
15603 always_export_symbols_GCJ=no
15604 enable_shared_with_static_runtimes_GCJ=yes
15605 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15607 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15608 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15609 # If the export-symbols file already is a .def file (1st line
15610 # is EXPORTS), use it as is; otherwise, prepend...
15611 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15612 cp $export_symbols $output_objdir/$soname.def;
15614 echo EXPORTS > $output_objdir/$soname.def;
15615 cat $export_symbols >> $output_objdir/$soname.def;
15617 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15625 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15628 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15634 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15639 *** create shared libraries on Solaris systems. Therefore, libtool
15640 *** is disabling shared libraries support. We urge you to upgrade GNU
15641 *** binutils to release 2.9.1 or newer. Another option is to modify
15642 *** your PATH or compiler configuration so that the native linker is
15643 *** used, and then restart.
15646 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15655 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15657 hardcode_direct_GCJ=yes
15658 hardcode_shlibpath_var_GCJ=no
15662 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15663 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15664 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15671 if test "$ld_shlibs_GCJ" = yes; then
15672 runpath_var=LD_RUN_PATH
15673 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15674 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15675 # ancient GNU ld didn't support --whole-archive et. al.
15676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15677 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15679 whole_archive_flag_spec_GCJ=
15683 # PORTME fill in a description of your system's linker (not GNU ld)
15686 allow_undefined_flag_GCJ=unsupported
15687 always_export_symbols_GCJ=yes
15688 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'
15689 # Note: this linker hardcodes the directories in LIBPATH if there
15690 # are no directories specified by -L.
15691 hardcode_minus_L_GCJ=yes
15692 if test "$GCC" = yes && test -z "$link_static_flag"; then
15693 # Neither direct hardcoding nor static linking is supported with a
15695 hardcode_direct_GCJ=unsupported
15700 if test "$host_cpu" = ia64; then
15701 # On IA64, the linker does run time linking by default, so we don't
15702 # have to do anything special.
15703 aix_use_runtimelinking=no
15704 exp_sym_flag='-Bexport'
15707 # If we're using GNU nm, then we don't want the "-C" option.
15708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15709 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15710 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'
15712 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'
15714 aix_use_runtimelinking=no
15716 # Test if we are trying to use run time linking or normal
15717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15718 # need to do runtime linking.
15719 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15720 for ld_flag in $LDFLAGS; do
15721 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15722 aix_use_runtimelinking=yes
15728 exp_sym_flag='-bexport'
15729 no_entry_flag='-bnoentry'
15732 # When large executables or shared objects are built, AIX ld can
15733 # have problems creating the table of contents. If linking a library
15734 # or program results in "error TOC overflow" add -mminimal-toc to
15735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15738 archive_cmds_GCJ=''
15739 hardcode_direct_GCJ=yes
15740 hardcode_libdir_separator_GCJ=':'
15741 link_all_deplibs_GCJ=yes
15743 if test "$GCC" = yes; then
15744 case $host_os in aix4.012|aix4.012.*)
15745 # We only want to do this on AIX 4.2 and lower, the check
15746 # below for broken collect2 doesn't work under 4.3+
15747 collect2name=`${CC} -print-prog-name=collect2`
15748 if test -f "$collect2name" && \
15749 strings "$collect2name" | grep resolve_lib_name >/dev/null
15751 # We have reworked collect2
15752 hardcode_direct_GCJ=yes
15754 # We have old collect2
15755 hardcode_direct_GCJ=unsupported
15756 # It fails to find uninstalled libraries when the uninstalled
15757 # path is not listed in the libpath. Setting hardcode_minus_L
15758 # to unsupported forces relinking
15759 hardcode_minus_L_GCJ=yes
15760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761 hardcode_libdir_separator_GCJ=
15764 shared_flag='-shared'
15767 if test "$host_cpu" = ia64; then
15768 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15769 # chokes on -Wl,-G. The following line is correct:
15772 if test "$aix_use_runtimelinking" = yes; then
15773 shared_flag='${wl}-G'
15775 shared_flag='${wl}-bM:SRE'
15780 # It seems that -bexpall does not export symbols beginning with
15781 # underscore (_), so it is better to generate a list of symbols to export.
15782 always_export_symbols_GCJ=yes
15783 if test "$aix_use_runtimelinking" = yes; then
15784 # Warning - without using the other runtime loading flags (-brtl),
15785 # -berok will link without error, but may produce a broken library.
15786 allow_undefined_flag_GCJ='-berok'
15787 # Determine the default libpath from the value encoded in an empty executable.
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15803 rm -f conftest.$ac_objext conftest$ac_exeext
15804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805 (eval $ac_link) 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
15812 { ac_try='test -z "$ac_c_werror_flag"
15813 || test ! -s conftest.err'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest$ac_exeext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15828 # Check for a 64-bit object if we didn't find anything.
15829 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; }
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15836 rm -f conftest.err conftest.$ac_objext \
15837 conftest$ac_exeext conftest.$ac_ext
15838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15840 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15841 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"
15843 if test "$host_cpu" = ia64; then
15844 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15845 allow_undefined_flag_GCJ="-z nodefs"
15846 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"
15848 # Determine the default libpath from the value encoded in an empty executable.
15849 cat >conftest.$ac_ext <<_ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15864 rm -f conftest.$ac_objext conftest$ac_exeext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866 (eval $ac_link) 2>conftest.er1
15868 grep -v '^ *+' conftest.er1 >conftest.err
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
15873 { ac_try='test -z "$ac_c_werror_flag"
15874 || test ! -s conftest.err'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest$ac_exeext'
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15889 # Check for a 64-bit object if we didn't find anything.
15890 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; }
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15897 rm -f conftest.err conftest.$ac_objext \
15898 conftest$ac_exeext conftest.$ac_ext
15899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15901 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15902 # Warning - without using the other run time loading flags,
15903 # -berok will link without error, but may produce a broken library.
15904 no_undefined_flag_GCJ=' ${wl}-bernotok'
15905 allow_undefined_flag_GCJ=' ${wl}-berok'
15906 # -bexpall does not export symbols beginning with underscore (_)
15907 always_export_symbols_GCJ=yes
15908 # Exported symbols can be pulled into shared objects from archives
15909 whole_archive_flag_spec_GCJ=' '
15910 archive_cmds_need_lc_GCJ=yes
15911 # This is similar to how AIX traditionally builds it's shared libraries.
15912 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'
15918 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)'
15919 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15920 hardcode_minus_L_GCJ=yes
15921 # see comment about different semantics on the GNU ld section
15926 export_dynamic_flag_spec_GCJ=-rdynamic
15929 cygwin* | mingw* | pw32*)
15930 # When not using gcc, we currently assume that we are using
15931 # Microsoft Visual C++.
15932 # hardcode_libdir_flag_spec is actually meaningless, as there is
15933 # no search path for DLLs.
15934 hardcode_libdir_flag_spec_GCJ=' '
15935 allow_undefined_flag_GCJ=unsupported
15936 # Tell ltmain to make .lib files, not .a files.
15938 # Tell ltmain to make .dll files, not .so files.
15940 # FIXME: Setting linknames here is a bad hack.
15941 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15942 # The linker will automatically build a .lib file if we build a DLL.
15943 old_archive_From_new_cmds_GCJ='true'
15944 # FIXME: Should let the user specify the lib program.
15945 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15946 fix_srcfile_path='`cygpath -w "$srcfile"`'
15947 enable_shared_with_static_runtimes_GCJ=yes
15950 darwin* | rhapsody*)
15951 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15952 archive_cmds_need_lc_GCJ=no
15954 rhapsody* | darwin1.[012])
15955 allow_undefined_flag_GCJ='-undefined suppress'
15958 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15961 # FIXME: Relying on posixy $() will cause problems for
15962 # cross-compilation, but unfortunately the echo tests do not
15963 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15964 # `"' quotes if we put them in here... so don't!
15965 lt_int_apple_cc_single_mod=no
15966 output_verbose_link_cmd='echo'
15967 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15968 lt_int_apple_cc_single_mod=yes
15970 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15971 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15973 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'
15975 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15976 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15977 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15978 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}'
15980 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}'
15982 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}'
15983 hardcode_direct_GCJ=no
15984 hardcode_automatic_GCJ=yes
15985 hardcode_shlibpath_var_GCJ=unsupported
15986 whole_archive_flag_spec_GCJ='-all_load $convenience'
15987 link_all_deplibs_GCJ=yes
15992 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15994 hardcode_shlibpath_var_GCJ=no
16001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16002 # support. Future versions do this automatically, but an explicit c++rt0.o
16003 # does not break anything, and helps significantly (at the cost of a little
16006 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16007 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16008 hardcode_direct_GCJ=yes
16009 hardcode_shlibpath_var_GCJ=no
16012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16014 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16015 hardcode_direct_GCJ=yes
16016 hardcode_minus_L_GCJ=yes
16017 hardcode_shlibpath_var_GCJ=no
16020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16022 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16024 hardcode_direct_GCJ=yes
16025 hardcode_shlibpath_var_GCJ=no
16029 if test "$GCC" = yes; then
16030 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'
16032 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'
16034 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16035 hardcode_libdir_separator_GCJ=:
16036 hardcode_direct_GCJ=yes
16038 # hardcode_minus_L: Not really in the search PATH,
16039 # but as the default location of the library.
16040 hardcode_minus_L_GCJ=yes
16041 export_dynamic_flag_spec_GCJ='${wl}-E'
16045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16046 case "$host_cpu" in
16048 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16051 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16055 case "$host_cpu" in
16057 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16064 if test "$with_gnu_ld" = no; then
16065 case "$host_cpu" in
16067 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16068 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16069 hardcode_libdir_separator_GCJ=:
16070 hardcode_direct_GCJ=no
16071 hardcode_shlibpath_var_GCJ=no
16074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16075 hardcode_direct_GCJ=no
16076 hardcode_shlibpath_var_GCJ=no
16078 # hardcode_minus_L: Not really in the search PATH,
16079 # but as the default location of the library.
16080 hardcode_minus_L_GCJ=yes
16083 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16084 hardcode_libdir_separator_GCJ=:
16085 hardcode_direct_GCJ=yes
16086 export_dynamic_flag_spec_GCJ='${wl}-E'
16088 # hardcode_minus_L: Not really in the search PATH,
16089 # but as the default location of the library.
16090 hardcode_minus_L_GCJ=yes
16096 irix5* | irix6* | nonstopux*)
16097 if test "$GCC" = yes; then
16098 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'
16100 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'
16101 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16103 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16104 hardcode_libdir_separator_GCJ=:
16105 link_all_deplibs_GCJ=yes
16109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16110 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16112 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16114 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16115 hardcode_direct_GCJ=yes
16116 hardcode_shlibpath_var_GCJ=no
16120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_direct_GCJ=yes
16122 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16123 hardcode_libdir_separator_GCJ=:
16124 hardcode_shlibpath_var_GCJ=no
16128 hardcode_direct_GCJ=yes
16129 hardcode_shlibpath_var_GCJ=no
16130 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16131 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16132 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16133 export_dynamic_flag_spec_GCJ='${wl}-E'
16136 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16137 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16138 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16141 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16142 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16149 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16150 hardcode_minus_L_GCJ=yes
16151 allow_undefined_flag_GCJ=unsupported
16152 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'
16153 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16157 if test "$GCC" = yes; then
16158 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16159 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'
16161 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16162 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'
16164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16165 hardcode_libdir_separator_GCJ=:
16168 osf4* | osf5*) # as osf3* with the addition of -msym flag
16169 if test "$GCC" = yes; then
16170 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16171 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'
16172 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16174 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16175 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'
16176 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~
16177 $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'
16179 # Both c and cxx compiler support -rpath directly
16180 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16182 hardcode_libdir_separator_GCJ=:
16186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_shlibpath_var_GCJ=no
16188 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16189 runpath_var=LD_RUN_PATH
16190 hardcode_runpath_var=yes
16194 no_undefined_flag_GCJ=' -z text'
16195 if test "$GCC" = yes; then
16196 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16197 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16198 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16200 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16201 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16202 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16204 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16205 hardcode_shlibpath_var_GCJ=no
16207 solaris2.[0-5] | solaris2.[0-5].*) ;;
16208 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16209 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16211 link_all_deplibs_GCJ=yes
16215 if test "x$host_vendor" = xsequent; then
16216 # Use $CC to link under sequent, because it throws in some extra .o
16217 # files that make .init and .fini sections work.
16218 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16222 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16223 hardcode_direct_GCJ=yes
16224 hardcode_minus_L_GCJ=yes
16225 hardcode_shlibpath_var_GCJ=no
16229 case $host_vendor in
16231 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16232 hardcode_direct_GCJ=yes # is this really true???
16235 ## LD is ld it makes a PLAMLIB
16236 ## CC just makes a GrossModule.
16237 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16238 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16239 hardcode_direct_GCJ=no
16242 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16243 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16246 runpath_var='LD_RUN_PATH'
16247 hardcode_shlibpath_var_GCJ=no
16251 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16252 hardcode_shlibpath_var_GCJ=no
16253 export_dynamic_flag_spec_GCJ='-Bexport'
16257 if test -d /usr/nec; then
16258 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259 hardcode_shlibpath_var_GCJ=no
16260 runpath_var=LD_RUN_PATH
16261 hardcode_runpath_var=yes
16267 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16268 hardcode_direct_GCJ=yes
16269 hardcode_minus_L_GCJ=no
16270 hardcode_shlibpath_var_GCJ=no
16271 hardcode_runpath_var=yes
16272 runpath_var=LD_RUN_PATH
16275 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16276 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16277 if test "$GCC" = yes; then
16278 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16280 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16282 runpath_var='LD_RUN_PATH'
16283 hardcode_shlibpath_var_GCJ=no
16287 no_undefined_flag_GCJ=' -z text'
16288 # $CC -shared without GNU ld will not create a library from C++
16289 # object files and a static libstdc++, better avoid it by now
16290 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16291 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16293 hardcode_libdir_flag_spec_GCJ=
16294 hardcode_shlibpath_var_GCJ=no
16295 runpath_var='LD_RUN_PATH'
16299 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16300 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16301 hardcode_shlibpath_var_GCJ=no
16310 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16311 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16312 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16314 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16315 if test "$GCC" = yes; then
16316 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16320 # Do we need to explicitly link libc?
16322 case "x$archive_cmds_need_lc_GCJ" in
16324 # Assume -lc should be added
16325 archive_cmds_need_lc_GCJ=yes
16327 if test "$enable_shared" = yes && test "$GCC" = yes; then
16328 case $archive_cmds_GCJ in
16330 # FIXME: we may have to deal with multi-command sequences.
16333 # Test whether the compiler implicitly links with -lc since on some
16334 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16335 # to ld, don't add -lc before -lgcc.
16336 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16337 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16339 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } 2>conftest.err; then
16348 libobjs=conftest.$ac_objext
16350 wl=$lt_prog_compiler_wl_GCJ
16356 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16357 allow_undefined_flag_GCJ=
16358 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16359 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }
16364 archive_cmds_need_lc_GCJ=no
16366 archive_cmds_need_lc_GCJ=yes
16368 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16370 cat conftest.err 1>&5
16373 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16374 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16381 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16382 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16383 hardcode_action_GCJ=
16384 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16385 test -n "$runpath_var GCJ" || \
16386 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16388 # We can hardcode non-existant directories.
16389 if test "$hardcode_direct_GCJ" != no &&
16390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16391 # have to relink, otherwise we might link with an installed library
16392 # when we should be linking with a yet-to-be-installed one
16393 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16394 test "$hardcode_minus_L_GCJ" != no; then
16395 # Linking always hardcodes the temporary library directory.
16396 hardcode_action_GCJ=relink
16398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16399 hardcode_action_GCJ=immediate
16402 # We cannot hardcode anything, or else we can only hardcode existing
16404 hardcode_action_GCJ=unsupported
16406 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16407 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16409 if test "$hardcode_action_GCJ" = relink; then
16410 # Fast installation is not supported
16411 enable_fast_install=no
16412 elif test "$shlibpath_overrides_runpath" = yes ||
16413 test "$enable_shared" = no; then
16414 # Fast installation is not necessary
16415 enable_fast_install=needless
16420 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16421 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16422 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16423 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16424 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16425 echo "$as_me:$LINENO: result: yes" >&5
16426 echo "${ECHO_T}yes" >&6
16428 # FIXME - insert some real tests, host_os isn't really good enough
16431 if test -n "$STRIP" ; then
16432 striplib="$STRIP -x"
16433 echo "$as_me:$LINENO: result: yes" >&5
16434 echo "${ECHO_T}yes" >&6
16436 echo "$as_me:$LINENO: result: no" >&5
16437 echo "${ECHO_T}no" >&6
16441 echo "$as_me:$LINENO: result: no" >&5
16442 echo "${ECHO_T}no" >&6
16447 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16448 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16449 library_names_spec=
16450 libname_spec='lib$name'
16454 postuninstall_cmds=
16458 shlibpath_overrides_runpath=unknown
16460 dynamic_linker="$host_os ld.so"
16461 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16462 if test "$GCC" = yes; then
16463 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16464 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16465 # if the path contains ";" then we assume it to be the separator
16466 # otherwise default to the standard path separator (i.e. ":") - it is
16467 # assumed that no part of a normal pathname contains ";" but that should
16468 # okay in the real world where ";" in dirpaths is itself problematic.
16469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16476 need_lib_prefix=unknown
16477 hardcode_into_libs=no
16479 # when you set need_version to no, make sure it does not cause -set_version
16480 # flags to be left without arguments
16481 need_version=unknown
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16487 shlibpath_var=LIBPATH
16489 # AIX 3 has no versioning support, so we append a major version to the name.
16490 soname_spec='${libname}${release}${shared_ext}$major'
16497 hardcode_into_libs=yes
16498 if test "$host_cpu" = ia64; then
16499 # AIX 5 supports IA64
16500 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16501 shlibpath_var=LD_LIBRARY_PATH
16503 # With GCC up to 2.95.x, collect2 would create an import file
16504 # for dependence libraries. The import file would start with
16505 # the line `#! .'. This would cause the generated library to
16506 # depend on `.', always an invalid library. This was fixed in
16507 # development snapshots of GCC prior to 3.0.
16509 aix4 | aix4.[01] | aix4.[01].*)
16510 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16512 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16515 can_build_shared=no
16519 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16520 # soname into executable. Probably we can add versioning support to
16521 # collect2, so additional links can be useful in future.
16522 if test "$aix_use_runtimelinking" = yes; then
16523 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16524 # instead of lib<name>.a to let people know that these are not
16525 # typical AIX shared libraries.
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528 # We preserve .a as extension for shared libraries through AIX4.2
16529 # and later when we are not doing run time linking.
16530 library_names_spec='${libname}${release}.a $libname.a'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16533 shlibpath_var=LIBPATH
16538 library_names_spec='$libname.ixlibrary $libname.a'
16539 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16540 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'
16544 library_names_spec='${libname}${shared_ext}'
16545 dynamic_linker="$host_os ld.so"
16546 shlibpath_var=LIBRARY_PATH
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16558 # the default ld.so.conf also contains /usr/contrib/lib and
16559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16560 # libtool to hard-code these into programs
16563 cygwin* | mingw* | pw32*)
16564 version_type=windows
16569 case $GCC,$host_os in
16570 yes,cygwin* | yes,mingw* | yes,pw32*)
16571 library_names_spec='$libname.dll.a'
16572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16573 postinstall_cmds='base_file=`basename \${file}`~
16574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16575 dldir=$destdir/`dirname \$dlpath`~
16576 test -d \$dldir || mkdir -p \$dldir~
16577 $install_prog $dir/$dlname \$dldir/$dlname'
16578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16579 dlpath=$dir/\$dldll~
16581 shlibpath_overrides_runpath=yes
16585 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16586 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16587 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16590 # MinGW DLLs use traditional 'lib' prefix
16591 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16592 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16593 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16594 # It is most probably a Windows format PATH printed by
16595 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16596 # path with ; separators, and with drive letters. We can handle the
16597 # drive letters (cygwin fileutils understands them), so leave them,
16598 # especially as we might pass files found there to a mingw objdump,
16599 # which wouldn't understand a cygwinified path. Ahh.
16600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16602 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16606 # pw32 DLLs use 'pw' prefix rather than 'lib'
16607 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16616 dynamic_linker='Win32 ld.exe'
16617 # FIXME: first we should search . and the directory the executable is in
16621 darwin* | rhapsody*)
16622 dynamic_linker="$host_os dyld"
16623 version_type=darwin
16626 # FIXME: Relying on posixy $() will cause problems for
16627 # cross-compilation, but unfortunately the echo tests do not
16628 # yet detect zsh echo's removal of \ escapes.
16629 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16630 soname_spec='${libname}${release}${major}$shared_ext'
16631 shlibpath_overrides_runpath=yes
16632 shlibpath_var=DYLD_LIBRARY_PATH
16633 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16634 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16635 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16636 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"`
16638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16646 soname_spec='${libname}${release}${shared_ext}$major'
16647 shlibpath_var=LD_LIBRARY_PATH
16655 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16656 version_type=freebsd-$objformat
16657 case $version_type in
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16668 shlibpath_var=LD_LIBRARY_PATH
16671 shlibpath_overrides_runpath=yes
16673 freebsd3.01* | freebsdelf3.01*)
16674 shlibpath_overrides_runpath=yes
16675 hardcode_into_libs=yes
16678 shlibpath_overrides_runpath=no
16679 hardcode_into_libs=yes
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16689 soname_spec='${libname}${release}${shared_ext}$major'
16690 shlibpath_var=LD_LIBRARY_PATH
16691 hardcode_into_libs=yes
16694 hpux9* | hpux10* | hpux11*)
16695 # Give a soname corresponding to the major version so that dld.sl refuses to
16696 # link against other versions.
16700 case "$host_cpu" in
16703 hardcode_into_libs=yes
16704 dynamic_linker="$host_os dld.so"
16705 shlibpath_var=LD_LIBRARY_PATH
16706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16708 soname_spec='${libname}${release}${shared_ext}$major'
16709 if test "X$HPUX_IA64_MODE" = X32; then
16710 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16712 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16718 hardcode_into_libs=yes
16719 dynamic_linker="$host_os dld.sl"
16720 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723 soname_spec='${libname}${release}${shared_ext}$major'
16724 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16729 dynamic_linker="$host_os dld.sl"
16730 shlibpath_var=SHLIB_PATH
16731 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16733 soname_spec='${libname}${release}${shared_ext}$major'
16736 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16737 postinstall_cmds='chmod 555 $lib'
16740 irix5* | irix6* | nonstopux*)
16742 nonstopux*) version_type=nonstopux ;;
16744 if test "$lt_cv_prog_gnu_ld" = yes; then
16752 soname_spec='${libname}${release}${shared_ext}$major'
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16755 irix5* | nonstopux*)
16756 libsuff= shlibsuff=
16759 case $LD in # libtool.m4 will add one of these switches to LD
16760 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16761 libsuff= shlibsuff= libmagic=32-bit;;
16762 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16763 libsuff=32 shlibsuff=N32 libmagic=N32;;
16764 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16765 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16766 *) libsuff= shlibsuff= libmagic=never-match;;
16770 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16771 shlibpath_overrides_runpath=no
16772 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16773 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16774 hardcode_into_libs=yes
16777 # No shared lib support for Linux oldld, aout, or coff.
16778 linux*oldld* | linux*aout* | linux*coff*)
16782 # This must be Linux ELF.
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 soname_spec='${libname}${release}${shared_ext}$major'
16789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16790 shlibpath_var=LD_LIBRARY_PATH
16791 shlibpath_overrides_runpath=no
16792 # This implies no fast_install, which is unacceptable.
16793 # Some rework will be needed to allow for fast_install
16794 # before this can be enabled.
16795 hardcode_into_libs=yes
16797 # We used to test for /lib/ld.so.1 and disable shared libraries on
16798 # powerpc, because MkLinux only supported shared libraries with the
16799 # GNU dynamic linker. Since this was broken with cross compilers,
16800 # most powerpc-linux boxes support dynamic linking these days and
16801 # people can always --disable-shared, the test was removed, and we
16802 # assume the GNU/Linux dynamic linker is in use.
16803 dynamic_linker='GNU/Linux ld.so'
16810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16813 dynamic_linker='NetBSD (a.out) ld.so'
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16816 soname_spec='${libname}${release}${shared_ext}$major'
16817 dynamic_linker='NetBSD ld.elf_so'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 shlibpath_overrides_runpath=yes
16821 hardcode_into_libs=yes
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=yes
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 soname_spec='${libname}${release}${shared_ext}$major'
16837 shlibpath_var=LD_LIBRARY_PATH
16838 shlibpath_overrides_runpath=yes
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16847 shlibpath_var=LD_LIBRARY_PATH
16848 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16850 openbsd2.[89] | openbsd2.[89].*)
16851 shlibpath_overrides_runpath=no
16854 shlibpath_overrides_runpath=yes
16858 shlibpath_overrides_runpath=yes
16863 libname_spec='$name'
16866 library_names_spec='$libname${shared_ext} $libname.a'
16867 dynamic_linker='OS/2 ld.exe'
16868 shlibpath_var=LIBPATH
16871 osf3* | osf4* | osf5*)
16875 soname_spec='${libname}${release}${shared_ext}$major'
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16879 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 shlibpath_var=LD_LIBRARY_PATH
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 shlibpath_overrides_runpath=yes
16897 hardcode_into_libs=yes
16898 # ldd complains unless libraries are executable
16899 postinstall_cmds='chmod +x $lib'
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16905 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16906 shlibpath_var=LD_LIBRARY_PATH
16907 shlibpath_overrides_runpath=yes
16908 if test "$with_gnu_ld" = yes; then
16914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 shlibpath_var=LD_LIBRARY_PATH
16919 case $host_vendor in
16921 shlibpath_overrides_runpath=no
16923 export_dynamic_flag_spec='${wl}-Blargedynsym'
16924 runpath_var=LD_RUN_PATH
16932 shlibpath_overrides_runpath=no
16933 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16939 if test -d /usr/nec ;then
16941 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16942 soname_spec='$libname${shared_ext}.$major'
16943 shlibpath_var=LD_LIBRARY_PATH
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LD_LIBRARY_PATH
16958 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16959 echo "${ECHO_T}$dynamic_linker" >&6
16960 test "$dynamic_linker" = no && can_build_shared=no
16962 if test "x$enable_dlopen" != xyes; then
16963 enable_dlopen=unknown
16964 enable_dlopen_self=unknown
16965 enable_dlopen_self_static=unknown
16972 lt_cv_dlopen="load_add_on"
16974 lt_cv_dlopen_self=yes
16978 lt_cv_dlopen="LoadLibrary"
16983 lt_cv_dlopen="dlopen"
16988 # if libdl is installed we need to link against it
16989 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16990 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16991 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 ac_check_lib_save_LIBS=$LIBS
16996 cat >conftest.$ac_ext <<_ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17003 /* Override any gcc2 internal prototype to avoid an error. */
17007 /* We use char because int might match the return type of a gcc2
17008 builtin and then its argument prototype would still apply. */
17018 rm -f conftest.$ac_objext conftest$ac_exeext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17020 (eval $ac_link) 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_lib_dl_dlopen=yes
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_cv_lib_dl_dlopen=no
17047 rm -f conftest.err conftest.$ac_objext \
17048 conftest$ac_exeext conftest.$ac_ext
17049 LIBS=$ac_check_lib_save_LIBS
17051 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17052 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17053 if test $ac_cv_lib_dl_dlopen = yes; then
17054 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17057 lt_cv_dlopen="dyld"
17059 lt_cv_dlopen_self=yes
17066 echo "$as_me:$LINENO: checking for shl_load" >&5
17067 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17068 if test "${ac_cv_func_shl_load+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 cat >conftest.$ac_ext <<_ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17079 #define shl_load innocuous_shl_load
17081 /* System header to define __stub macros and hopefully few prototypes,
17082 which can conflict with char shl_load (); below.
17083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17084 <limits.h> exists even on freestanding compilers. */
17087 # include <limits.h>
17089 # include <assert.h>
17094 /* Override any gcc2 internal prototype to avoid an error. */
17099 /* We use char because int might match the return type of a gcc2
17100 builtin and then its argument prototype would still apply. */
17102 /* The GNU C library defines this for functions which it implements
17103 to always fail with ENOSYS. Some functions are actually named
17104 something starting with __ and the normal name is an alias. */
17105 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17108 char (*f) () = shl_load;
17117 return f != shl_load;
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17124 (eval $ac_link) 2>conftest.er1
17126 grep -v '^ *+' conftest.er1 >conftest.err
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
17131 { ac_try='test -z "$ac_c_werror_flag"
17132 || test ! -s conftest.err'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; } &&
17138 { ac_try='test -s conftest$ac_exeext'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144 ac_cv_func_shl_load=yes
17146 echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17149 ac_cv_func_shl_load=no
17151 rm -f conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17154 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17155 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17156 if test $ac_cv_func_shl_load = yes; then
17157 lt_cv_dlopen="shl_load"
17159 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17160 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17161 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 ac_check_lib_save_LIBS=$LIBS
17166 cat >conftest.$ac_ext <<_ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h. */
17173 /* Override any gcc2 internal prototype to avoid an error. */
17177 /* We use char because int might match the return type of a gcc2
17178 builtin and then its argument prototype would still apply. */
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17190 (eval $ac_link) 2>conftest.er1
17192 grep -v '^ *+' conftest.er1 >conftest.err
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -z "$ac_c_werror_flag"
17198 || test ! -s conftest.err'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest$ac_exeext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 ac_cv_lib_dld_shl_load=yes
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 ac_cv_lib_dld_shl_load=no
17217 rm -f conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_check_lib_save_LIBS
17221 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17222 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17223 if test $ac_cv_lib_dld_shl_load = yes; then
17224 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17226 echo "$as_me:$LINENO: checking for dlopen" >&5
17227 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17228 if test "${ac_cv_func_dlopen+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 cat >conftest.$ac_ext <<_ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17239 #define dlopen innocuous_dlopen
17241 /* System header to define __stub macros and hopefully few prototypes,
17242 which can conflict with char dlopen (); below.
17243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17244 <limits.h> exists even on freestanding compilers. */
17247 # include <limits.h>
17249 # include <assert.h>
17254 /* Override any gcc2 internal prototype to avoid an error. */
17259 /* We use char because int might match the return type of a gcc2
17260 builtin and then its argument prototype would still apply. */
17262 /* The GNU C library defines this for functions which it implements
17263 to always fail with ENOSYS. Some functions are actually named
17264 something starting with __ and the normal name is an alias. */
17265 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17268 char (*f) () = dlopen;
17277 return f != dlopen;
17282 rm -f conftest.$ac_objext conftest$ac_exeext
17283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17284 (eval $ac_link) 2>conftest.er1
17286 grep -v '^ *+' conftest.er1 >conftest.err
17288 cat conftest.err >&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } &&
17291 { ac_try='test -z "$ac_c_werror_flag"
17292 || test ! -s conftest.err'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; } &&
17298 { ac_try='test -s conftest$ac_exeext'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_func_dlopen=yes
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 ac_cv_func_dlopen=no
17311 rm -f conftest.err conftest.$ac_objext \
17312 conftest$ac_exeext conftest.$ac_ext
17314 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17315 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17316 if test $ac_cv_func_dlopen = yes; then
17317 lt_cv_dlopen="dlopen"
17319 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17320 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17321 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 ac_check_lib_save_LIBS=$LIBS
17326 cat >conftest.$ac_ext <<_ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17333 /* Override any gcc2 internal prototype to avoid an error. */
17337 /* We use char because int might match the return type of a gcc2
17338 builtin and then its argument prototype would still apply. */
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17350 (eval $ac_link) 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest$ac_exeext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_lib_dl_dlopen=yes
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 ac_cv_lib_dl_dlopen=no
17377 rm -f conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
17379 LIBS=$ac_check_lib_save_LIBS
17381 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17382 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17383 if test $ac_cv_lib_dl_dlopen = yes; then
17384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17386 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17387 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17388 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17391 ac_check_lib_save_LIBS=$LIBS
17392 LIBS="-lsvld $LIBS"
17393 cat >conftest.$ac_ext <<_ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17400 /* Override any gcc2 internal prototype to avoid an error. */
17404 /* We use char because int might match the return type of a gcc2
17405 builtin and then its argument prototype would still apply. */
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17417 (eval $ac_link) 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag"
17425 || test ! -s conftest.err'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest$ac_exeext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_lib_svld_dlopen=yes
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_cv_lib_svld_dlopen=no
17444 rm -f conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17446 LIBS=$ac_check_lib_save_LIBS
17448 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17449 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17450 if test $ac_cv_lib_svld_dlopen = yes; then
17451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17453 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17454 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17455 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 ac_check_lib_save_LIBS=$LIBS
17460 cat >conftest.$ac_ext <<_ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17467 /* Override any gcc2 internal prototype to avoid an error. */
17471 /* We use char because int might match the return type of a gcc2
17472 builtin and then its argument prototype would still apply. */
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>conftest.er1
17486 grep -v '^ *+' conftest.er1 >conftest.err
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 ac_cv_lib_dld_dld_link=yes
17506 echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17509 ac_cv_lib_dld_dld_link=no
17511 rm -f conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513 LIBS=$ac_check_lib_save_LIBS
17515 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17516 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17517 if test $ac_cv_lib_dld_dld_link = yes; then
17518 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17539 if test "x$lt_cv_dlopen" != xno; then
17545 case $lt_cv_dlopen in
17547 save_CPPFLAGS="$CPPFLAGS"
17548 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17550 save_LDFLAGS="$LDFLAGS"
17551 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17554 LIBS="$lt_cv_dlopen_libs $LIBS"
17556 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17557 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17558 if test "${lt_cv_dlopen_self+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 if test "$cross_compiling" = yes; then :
17562 lt_cv_dlopen_self=cross
17564 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17565 lt_status=$lt_dlunknown
17566 cat > conftest.$ac_ext <<EOF
17567 #line 17567 "configure"
17568 #include "confdefs.h"
17577 # define LT_DLGLOBAL RTLD_GLOBAL
17580 # define LT_DLGLOBAL DL_GLOBAL
17582 # define LT_DLGLOBAL 0
17586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17587 find out it does not work in some platform. */
17588 #ifndef LT_DLLAZY_OR_NOW
17590 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17593 # define LT_DLLAZY_OR_NOW DL_LAZY
17596 # define LT_DLLAZY_OR_NOW RTLD_NOW
17599 # define LT_DLLAZY_OR_NOW DL_NOW
17601 # define LT_DLLAZY_OR_NOW 0
17609 extern "C" void exit (int);
17612 void fnord() { int i=42;}
17615 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17616 int status = $lt_dlunknown;
17620 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17621 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17622 /* dlclose (self); */
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17633 (./conftest; exit; ) 2>/dev/null
17635 case x$lt_status in
17636 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17637 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17638 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17641 # compilation failed
17642 lt_cv_dlopen_self=no
17649 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17650 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17652 if test "x$lt_cv_dlopen_self" = xyes; then
17653 LDFLAGS="$LDFLAGS $link_static_flag"
17654 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17655 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17656 if test "${lt_cv_dlopen_self_static+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 if test "$cross_compiling" = yes; then :
17660 lt_cv_dlopen_self_static=cross
17662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17663 lt_status=$lt_dlunknown
17664 cat > conftest.$ac_ext <<EOF
17665 #line 17665 "configure"
17666 #include "confdefs.h"
17675 # define LT_DLGLOBAL RTLD_GLOBAL
17678 # define LT_DLGLOBAL DL_GLOBAL
17680 # define LT_DLGLOBAL 0
17684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17685 find out it does not work in some platform. */
17686 #ifndef LT_DLLAZY_OR_NOW
17688 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17691 # define LT_DLLAZY_OR_NOW DL_LAZY
17694 # define LT_DLLAZY_OR_NOW RTLD_NOW
17697 # define LT_DLLAZY_OR_NOW DL_NOW
17699 # define LT_DLLAZY_OR_NOW 0
17707 extern "C" void exit (int);
17710 void fnord() { int i=42;}
17713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17714 int status = $lt_dlunknown;
17718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17719 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17720 /* dlclose (self); */
17726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17727 (eval $ac_link) 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17731 (./conftest; exit; ) 2>/dev/null
17733 case x$lt_status in
17734 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17735 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17736 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17739 # compilation failed
17740 lt_cv_dlopen_self_static=no
17747 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17748 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17751 CPPFLAGS="$save_CPPFLAGS"
17752 LDFLAGS="$save_LDFLAGS"
17757 case $lt_cv_dlopen_self in
17758 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17759 *) enable_dlopen_self=unknown ;;
17762 case $lt_cv_dlopen_self_static in
17763 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17764 *) enable_dlopen_self_static=unknown ;;
17769 # The else clause should only fire when bootstrapping the
17770 # libtool distribution, otherwise you forgot to ship ltmain.sh
17771 # with your package, and you will get complaints that there are
17772 # no rules to generate ltmain.sh.
17773 if test -f "$ltmain"; then
17774 # See if we are running on zsh, and set the options which allow our commands through
17775 # without removal of \ escapes.
17776 if test -n "${ZSH_VERSION+set}" ; then
17777 setopt NO_GLOB_SUBST
17779 # Now quote all the things that may contain metacharacters while being
17780 # careful not to overquote the AC_SUBSTed values. We take copies of the
17781 # variables and quote the copies for generation of the libtool script.
17782 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17783 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17784 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17785 deplibs_check_method reload_flag reload_cmds need_locks \
17786 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17787 lt_cv_sys_global_symbol_to_c_name_address \
17788 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17789 old_postinstall_cmds old_postuninstall_cmds \
17793 lt_prog_compiler_wl_GCJ \
17794 lt_prog_compiler_pic_GCJ \
17795 lt_prog_compiler_static_GCJ \
17796 lt_prog_compiler_no_builtin_flag_GCJ \
17797 export_dynamic_flag_spec_GCJ \
17798 thread_safe_flag_spec_GCJ \
17799 whole_archive_flag_spec_GCJ \
17800 enable_shared_with_static_runtimes_GCJ \
17801 old_archive_cmds_GCJ \
17802 old_archive_from_new_cmds_GCJ \
17803 predep_objects_GCJ \
17804 postdep_objects_GCJ \
17807 compiler_lib_search_path_GCJ \
17809 archive_expsym_cmds_GCJ \
17810 postinstall_cmds_GCJ \
17811 postuninstall_cmds_GCJ \
17812 old_archive_from_expsyms_cmds_GCJ \
17813 allow_undefined_flag_GCJ \
17814 no_undefined_flag_GCJ \
17815 export_symbols_cmds_GCJ \
17816 hardcode_libdir_flag_spec_GCJ \
17817 hardcode_libdir_flag_spec_ld_GCJ \
17818 hardcode_libdir_separator_GCJ \
17819 hardcode_automatic_GCJ \
17821 module_expsym_cmds_GCJ \
17822 lt_cv_prog_compiler_c_o_GCJ \
17823 exclude_expsyms_GCJ \
17824 include_expsyms_GCJ; do
17827 old_archive_cmds_GCJ | \
17828 old_archive_from_new_cmds_GCJ | \
17829 archive_cmds_GCJ | \
17830 archive_expsym_cmds_GCJ | \
17831 module_cmds_GCJ | \
17832 module_expsym_cmds_GCJ | \
17833 old_archive_from_expsyms_cmds_GCJ | \
17834 export_symbols_cmds_GCJ | \
17835 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17836 postinstall_cmds | postuninstall_cmds | \
17837 old_postinstall_cmds | old_postuninstall_cmds | \
17838 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17839 # Double-quote double-evaled strings.
17840 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17849 *'\$0 --fallback-echo"')
17850 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17856 cat <<__EOF__ >> "$cfgfile"
17857 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17859 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17861 # Shell to use when invoking shell scripts.
17864 # Whether or not to build shared libraries.
17865 build_libtool_libs=$enable_shared
17867 # Whether or not to build static libraries.
17868 build_old_libs=$enable_static
17870 # Whether or not to add -lc for building shared libraries.
17871 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17873 # Whether or not to disallow shared libs when runtime libs are static
17874 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17876 # Whether or not to optimize for fast installation.
17877 fast_install=$enable_fast_install
17880 host_alias=$host_alias
17883 # An echo program that does not interpret backslashes.
17888 AR_FLAGS=$lt_AR_FLAGS
17893 # A language-specific compiler.
17894 CC=$lt_compiler_GCJ
17896 # Is the compiler the GNU C compiler?
17902 # The linker used to build libraries.
17905 # Whether we need hard or soft links.
17908 # A BSD-compatible nm program.
17911 # A symbol stripping program
17914 # Used to examine libraries when file_magic_cmd begins "file"
17915 MAGIC_CMD=$MAGIC_CMD
17917 # Used on cygwin: DLL creation program.
17920 # Used on cygwin: object dumper.
17923 # Used on cygwin: assembler.
17926 # The name of the directory that contains temporary libtool files.
17929 # How to create reloadable object files.
17930 reload_flag=$lt_reload_flag
17931 reload_cmds=$lt_reload_cmds
17933 # How to pass a linker flag through the compiler.
17934 wl=$lt_lt_prog_compiler_wl_GCJ
17936 # Object file suffix (normally "o").
17937 objext="$ac_objext"
17939 # Old archive suffix (normally "a").
17942 # Shared library suffix (normally ".so").
17945 # Executable file suffix (normally "").
17948 # Additional compiler flags for building library objects.
17949 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17952 # What is the maximum length of a command?
17953 max_cmd_len=$lt_cv_sys_max_cmd_len
17955 # Does compiler simultaneously support -c and -o options?
17956 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17958 # Must we lock files when doing compilation ?
17959 need_locks=$lt_need_locks
17961 # Do we need the lib prefix for modules?
17962 need_lib_prefix=$need_lib_prefix
17964 # Do we need a version for libraries?
17965 need_version=$need_version
17967 # Whether dlopen is supported.
17968 dlopen_support=$enable_dlopen
17970 # Whether dlopen of programs is supported.
17971 dlopen_self=$enable_dlopen_self
17973 # Whether dlopen of statically linked programs is supported.
17974 dlopen_self_static=$enable_dlopen_self_static
17976 # Compiler flag to prevent dynamic linking.
17977 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17979 # Compiler flag to turn off builtin functions.
17980 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17982 # Compiler flag to allow reflexive dlopens.
17983 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17985 # Compiler flag to generate shared objects directly from archives.
17986 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17988 # Compiler flag to generate thread-safe objects.
17989 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17991 # Library versioning type.
17992 version_type=$version_type
17994 # Format of library name prefix.
17995 libname_spec=$lt_libname_spec
17997 # List of archive names. First name is the real one, the rest are links.
17998 # The last name is the one that the linker finds with -lNAME.
17999 library_names_spec=$lt_library_names_spec
18001 # The coded name of the library, if different from the real name.
18002 soname_spec=$lt_soname_spec
18004 # Commands used to build and install an old-style archive.
18006 old_archive_cmds=$lt_old_archive_cmds_GCJ
18007 old_postinstall_cmds=$lt_old_postinstall_cmds
18008 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18010 # Create an old-style archive from a shared archive.
18011 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18013 # Create a temporary old-style archive to link instead of a shared archive.
18014 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18016 # Commands used to build and install a shared archive.
18017 archive_cmds=$lt_archive_cmds_GCJ
18018 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18019 postinstall_cmds=$lt_postinstall_cmds
18020 postuninstall_cmds=$lt_postuninstall_cmds
18022 # Commands used to build a loadable module (assumed same as above if empty)
18023 module_cmds=$lt_module_cmds_GCJ
18024 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18026 # Commands to strip libraries.
18027 old_striplib=$lt_old_striplib
18028 striplib=$lt_striplib
18030 # Dependencies to place before the objects being linked to create a
18032 predep_objects=$lt_predep_objects_GCJ
18034 # Dependencies to place after the objects being linked to create a
18036 postdep_objects=$lt_postdep_objects_GCJ
18038 # Dependencies to place before the objects being linked to create a
18040 predeps=$lt_predeps_GCJ
18042 # Dependencies to place after the objects being linked to create a
18044 postdeps=$lt_postdeps_GCJ
18046 # The library search path used internally by the compiler when linking
18047 # a shared library.
18048 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18050 # Method to check whether dependent libraries are shared objects.
18051 deplibs_check_method=$lt_deplibs_check_method
18053 # Command to use when deplibs_check_method == file_magic.
18054 file_magic_cmd=$lt_file_magic_cmd
18056 # Flag that allows shared libraries with undefined symbols to be built.
18057 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18059 # Flag that forces no undefined symbols.
18060 no_undefined_flag=$lt_no_undefined_flag_GCJ
18062 # Commands used to finish a libtool library installation in a directory.
18063 finish_cmds=$lt_finish_cmds
18065 # Same as above, but a single script fragment to be evaled but not shown.
18066 finish_eval=$lt_finish_eval
18068 # Take the output of nm and produce a listing of raw symbols and C names.
18069 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18071 # Transform the output of nm in a proper C declaration
18072 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18074 # Transform the output of nm in a C name address pair
18075 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18077 # This is the shared library runtime path variable.
18078 runpath_var=$runpath_var
18080 # This is the shared library path variable.
18081 shlibpath_var=$shlibpath_var
18083 # Is shlibpath searched before the hard-coded library search path?
18084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18086 # How to hardcode a shared library path into an executable.
18087 hardcode_action=$hardcode_action_GCJ
18089 # Whether we should hardcode library paths into libraries.
18090 hardcode_into_libs=$hardcode_into_libs
18092 # Flag to hardcode \$libdir into a binary during linking.
18093 # This must work even if \$libdir does not exist.
18094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18096 # If ld is used when linking, flag to hardcode \$libdir into
18097 # a binary during linking. This must work even if \$libdir does
18099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18101 # Whether we need a single -rpath flag with a separated argument.
18102 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18104 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18105 # resulting binary.
18106 hardcode_direct=$hardcode_direct_GCJ
18108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18109 # resulting binary.
18110 hardcode_minus_L=$hardcode_minus_L_GCJ
18112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18113 # the resulting binary.
18114 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18116 # Set to yes if building a shared library automatically hardcodes DIR into the library
18117 # and all subsequent libraries and executables linked against it.
18118 hardcode_automatic=$hardcode_automatic_GCJ
18120 # Variables whose values should be saved in libtool wrapper scripts and
18121 # restored at relink time.
18122 variables_saved_for_relink="$variables_saved_for_relink"
18124 # Whether libtool must link a program against all its dependency libraries.
18125 link_all_deplibs=$link_all_deplibs_GCJ
18127 # Compile-time system search path for libraries
18128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18130 # Run-time system search path for libraries
18131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18133 # Fix the shell variable \$srcfile for the compiler.
18134 fix_srcfile_path="$fix_srcfile_path_GCJ"
18136 # Set to yes if exported symbols are required.
18137 always_export_symbols=$always_export_symbols_GCJ
18139 # The commands to list exported symbols.
18140 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18142 # The commands to extract the exported symbol list from a shared archive.
18143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18145 # Symbols that should not be listed in the preloaded symbols.
18146 exclude_expsyms=$lt_exclude_expsyms_GCJ
18148 # Symbols that must always be exported.
18149 include_expsyms=$lt_include_expsyms_GCJ
18151 # ### END LIBTOOL TAG CONFIG: $tagname
18157 # If there is no Makefile yet, we rely on a make rule to execute
18158 # `config.status --recheck' to rerun these tests and create the
18159 # libtool script then.
18160 test -f Makefile && make "$ltmain"
18165 ac_cpp='$CPP $CPPFLAGS'
18166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18181 # Source file extension for RC test sources.
18184 # Object file extension for compiled RC test sources.
18188 # Code to be used in simple compile tests
18189 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18191 # Code to be used in simple link tests
18192 lt_simple_link_test_code="$lt_simple_compile_test_code"
18194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18196 # If no C compiler was specified, use CC.
18199 # Allow CC to be a program name with arguments.
18203 # Allow CC to be a program name with arguments.
18208 lt_cv_prog_compiler_c_o_RC=yes
18210 # The else clause should only fire when bootstrapping the
18211 # libtool distribution, otherwise you forgot to ship ltmain.sh
18212 # with your package, and you will get complaints that there are
18213 # no rules to generate ltmain.sh.
18214 if test -f "$ltmain"; then
18215 # See if we are running on zsh, and set the options which allow our commands through
18216 # without removal of \ escapes.
18217 if test -n "${ZSH_VERSION+set}" ; then
18218 setopt NO_GLOB_SUBST
18220 # Now quote all the things that may contain metacharacters while being
18221 # careful not to overquote the AC_SUBSTed values. We take copies of the
18222 # variables and quote the copies for generation of the libtool script.
18223 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18224 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18225 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18226 deplibs_check_method reload_flag reload_cmds need_locks \
18227 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18228 lt_cv_sys_global_symbol_to_c_name_address \
18229 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18230 old_postinstall_cmds old_postuninstall_cmds \
18234 lt_prog_compiler_wl_RC \
18235 lt_prog_compiler_pic_RC \
18236 lt_prog_compiler_static_RC \
18237 lt_prog_compiler_no_builtin_flag_RC \
18238 export_dynamic_flag_spec_RC \
18239 thread_safe_flag_spec_RC \
18240 whole_archive_flag_spec_RC \
18241 enable_shared_with_static_runtimes_RC \
18242 old_archive_cmds_RC \
18243 old_archive_from_new_cmds_RC \
18244 predep_objects_RC \
18245 postdep_objects_RC \
18248 compiler_lib_search_path_RC \
18250 archive_expsym_cmds_RC \
18251 postinstall_cmds_RC \
18252 postuninstall_cmds_RC \
18253 old_archive_from_expsyms_cmds_RC \
18254 allow_undefined_flag_RC \
18255 no_undefined_flag_RC \
18256 export_symbols_cmds_RC \
18257 hardcode_libdir_flag_spec_RC \
18258 hardcode_libdir_flag_spec_ld_RC \
18259 hardcode_libdir_separator_RC \
18260 hardcode_automatic_RC \
18262 module_expsym_cmds_RC \
18263 lt_cv_prog_compiler_c_o_RC \
18264 exclude_expsyms_RC \
18265 include_expsyms_RC; do
18268 old_archive_cmds_RC | \
18269 old_archive_from_new_cmds_RC | \
18270 archive_cmds_RC | \
18271 archive_expsym_cmds_RC | \
18273 module_expsym_cmds_RC | \
18274 old_archive_from_expsyms_cmds_RC | \
18275 export_symbols_cmds_RC | \
18276 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18277 postinstall_cmds | postuninstall_cmds | \
18278 old_postinstall_cmds | old_postuninstall_cmds | \
18279 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18280 # Double-quote double-evaled strings.
18281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18284 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18290 *'\$0 --fallback-echo"')
18291 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18297 cat <<__EOF__ >> "$cfgfile"
18298 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18302 # Shell to use when invoking shell scripts.
18305 # Whether or not to build shared libraries.
18306 build_libtool_libs=$enable_shared
18308 # Whether or not to build static libraries.
18309 build_old_libs=$enable_static
18311 # Whether or not to add -lc for building shared libraries.
18312 build_libtool_need_lc=$archive_cmds_need_lc_RC
18314 # Whether or not to disallow shared libs when runtime libs are static
18315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18317 # Whether or not to optimize for fast installation.
18318 fast_install=$enable_fast_install
18321 host_alias=$host_alias
18324 # An echo program that does not interpret backslashes.
18329 AR_FLAGS=$lt_AR_FLAGS
18334 # A language-specific compiler.
18337 # Is the compiler the GNU C compiler?
18343 # The linker used to build libraries.
18346 # Whether we need hard or soft links.
18349 # A BSD-compatible nm program.
18352 # A symbol stripping program
18355 # Used to examine libraries when file_magic_cmd begins "file"
18356 MAGIC_CMD=$MAGIC_CMD
18358 # Used on cygwin: DLL creation program.
18361 # Used on cygwin: object dumper.
18364 # Used on cygwin: assembler.
18367 # The name of the directory that contains temporary libtool files.
18370 # How to create reloadable object files.
18371 reload_flag=$lt_reload_flag
18372 reload_cmds=$lt_reload_cmds
18374 # How to pass a linker flag through the compiler.
18375 wl=$lt_lt_prog_compiler_wl_RC
18377 # Object file suffix (normally "o").
18378 objext="$ac_objext"
18380 # Old archive suffix (normally "a").
18383 # Shared library suffix (normally ".so").
18386 # Executable file suffix (normally "").
18389 # Additional compiler flags for building library objects.
18390 pic_flag=$lt_lt_prog_compiler_pic_RC
18393 # What is the maximum length of a command?
18394 max_cmd_len=$lt_cv_sys_max_cmd_len
18396 # Does compiler simultaneously support -c and -o options?
18397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18399 # Must we lock files when doing compilation ?
18400 need_locks=$lt_need_locks
18402 # Do we need the lib prefix for modules?
18403 need_lib_prefix=$need_lib_prefix
18405 # Do we need a version for libraries?
18406 need_version=$need_version
18408 # Whether dlopen is supported.
18409 dlopen_support=$enable_dlopen
18411 # Whether dlopen of programs is supported.
18412 dlopen_self=$enable_dlopen_self
18414 # Whether dlopen of statically linked programs is supported.
18415 dlopen_self_static=$enable_dlopen_self_static
18417 # Compiler flag to prevent dynamic linking.
18418 link_static_flag=$lt_lt_prog_compiler_static_RC
18420 # Compiler flag to turn off builtin functions.
18421 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18423 # Compiler flag to allow reflexive dlopens.
18424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18426 # Compiler flag to generate shared objects directly from archives.
18427 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18429 # Compiler flag to generate thread-safe objects.
18430 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18432 # Library versioning type.
18433 version_type=$version_type
18435 # Format of library name prefix.
18436 libname_spec=$lt_libname_spec
18438 # List of archive names. First name is the real one, the rest are links.
18439 # The last name is the one that the linker finds with -lNAME.
18440 library_names_spec=$lt_library_names_spec
18442 # The coded name of the library, if different from the real name.
18443 soname_spec=$lt_soname_spec
18445 # Commands used to build and install an old-style archive.
18447 old_archive_cmds=$lt_old_archive_cmds_RC
18448 old_postinstall_cmds=$lt_old_postinstall_cmds
18449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18451 # Create an old-style archive from a shared archive.
18452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18454 # Create a temporary old-style archive to link instead of a shared archive.
18455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18457 # Commands used to build and install a shared archive.
18458 archive_cmds=$lt_archive_cmds_RC
18459 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18460 postinstall_cmds=$lt_postinstall_cmds
18461 postuninstall_cmds=$lt_postuninstall_cmds
18463 # Commands used to build a loadable module (assumed same as above if empty)
18464 module_cmds=$lt_module_cmds_RC
18465 module_expsym_cmds=$lt_module_expsym_cmds_RC
18467 # Commands to strip libraries.
18468 old_striplib=$lt_old_striplib
18469 striplib=$lt_striplib
18471 # Dependencies to place before the objects being linked to create a
18473 predep_objects=$lt_predep_objects_RC
18475 # Dependencies to place after the objects being linked to create a
18477 postdep_objects=$lt_postdep_objects_RC
18479 # Dependencies to place before the objects being linked to create a
18481 predeps=$lt_predeps_RC
18483 # Dependencies to place after the objects being linked to create a
18485 postdeps=$lt_postdeps_RC
18487 # The library search path used internally by the compiler when linking
18488 # a shared library.
18489 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18491 # Method to check whether dependent libraries are shared objects.
18492 deplibs_check_method=$lt_deplibs_check_method
18494 # Command to use when deplibs_check_method == file_magic.
18495 file_magic_cmd=$lt_file_magic_cmd
18497 # Flag that allows shared libraries with undefined symbols to be built.
18498 allow_undefined_flag=$lt_allow_undefined_flag_RC
18500 # Flag that forces no undefined symbols.
18501 no_undefined_flag=$lt_no_undefined_flag_RC
18503 # Commands used to finish a libtool library installation in a directory.
18504 finish_cmds=$lt_finish_cmds
18506 # Same as above, but a single script fragment to be evaled but not shown.
18507 finish_eval=$lt_finish_eval
18509 # Take the output of nm and produce a listing of raw symbols and C names.
18510 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18512 # Transform the output of nm in a proper C declaration
18513 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18515 # Transform the output of nm in a C name address pair
18516 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18518 # This is the shared library runtime path variable.
18519 runpath_var=$runpath_var
18521 # This is the shared library path variable.
18522 shlibpath_var=$shlibpath_var
18524 # Is shlibpath searched before the hard-coded library search path?
18525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18527 # How to hardcode a shared library path into an executable.
18528 hardcode_action=$hardcode_action_RC
18530 # Whether we should hardcode library paths into libraries.
18531 hardcode_into_libs=$hardcode_into_libs
18533 # Flag to hardcode \$libdir into a binary during linking.
18534 # This must work even if \$libdir does not exist.
18535 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18537 # If ld is used when linking, flag to hardcode \$libdir into
18538 # a binary during linking. This must work even if \$libdir does
18540 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18542 # Whether we need a single -rpath flag with a separated argument.
18543 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18545 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18546 # resulting binary.
18547 hardcode_direct=$hardcode_direct_RC
18549 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18550 # resulting binary.
18551 hardcode_minus_L=$hardcode_minus_L_RC
18553 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18554 # the resulting binary.
18555 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18557 # Set to yes if building a shared library automatically hardcodes DIR into the library
18558 # and all subsequent libraries and executables linked against it.
18559 hardcode_automatic=$hardcode_automatic_RC
18561 # Variables whose values should be saved in libtool wrapper scripts and
18562 # restored at relink time.
18563 variables_saved_for_relink="$variables_saved_for_relink"
18565 # Whether libtool must link a program against all its dependency libraries.
18566 link_all_deplibs=$link_all_deplibs_RC
18568 # Compile-time system search path for libraries
18569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18571 # Run-time system search path for libraries
18572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18574 # Fix the shell variable \$srcfile for the compiler.
18575 fix_srcfile_path="$fix_srcfile_path_RC"
18577 # Set to yes if exported symbols are required.
18578 always_export_symbols=$always_export_symbols_RC
18580 # The commands to list exported symbols.
18581 export_symbols_cmds=$lt_export_symbols_cmds_RC
18583 # The commands to extract the exported symbol list from a shared archive.
18584 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18586 # Symbols that should not be listed in the preloaded symbols.
18587 exclude_expsyms=$lt_exclude_expsyms_RC
18589 # Symbols that must always be exported.
18590 include_expsyms=$lt_include_expsyms_RC
18592 # ### END LIBTOOL TAG CONFIG: $tagname
18598 # If there is no Makefile yet, we rely on a make rule to execute
18599 # `config.status --recheck' to rerun these tests and create the
18600 # libtool script then.
18601 test -f Makefile && make "$ltmain"
18606 ac_cpp='$CPP $CPPFLAGS'
18607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18616 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18617 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18618 { (exit 1); exit 1; }; }
18622 # Append the new tag name to the list of available tags.
18623 if test -n "$tagname" ; then
18624 available_tags="$available_tags $tagname"
18630 # Now substitute the updated list of available tags.
18631 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18632 mv "${ofile}T" "$ofile"
18636 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18637 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18638 { (exit 1); exit 1; }; }
18644 # This can be used to rebuild libtool when needed
18645 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18647 # Always use our own libtool.
18648 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18650 # Prevent multiple expansion
18672 # Extract the first word of "dot", so it can be a program name with args.
18673 set dummy dot; ac_word=$2
18674 echo "$as_me:$LINENO: checking for $ac_word" >&5
18675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676 if test "${ac_cv_path_DOT+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18681 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685 for as_dir in $PATH
18688 test -z "$as_dir" && as_dir=.
18689 for ac_exec_ext in '' $ac_executable_extensions; do
18690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18698 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18702 DOT=$ac_cv_path_DOT
18704 if test -n "$DOT"; then
18705 echo "$as_me:$LINENO: result: $DOT" >&5
18706 echo "${ECHO_T}$DOT" >&6
18708 echo "$as_me:$LINENO: result: no" >&5
18709 echo "${ECHO_T}no" >&6
18712 # Extract the first word of "etags", so it can be a program name with args.
18713 set dummy etags; ac_word=$2
18714 echo "$as_me:$LINENO: checking for $ac_word" >&5
18715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18716 if test "${ac_cv_path_ETAGS+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18725 for as_dir in $PATH
18728 test -z "$as_dir" && as_dir=.
18729 for ac_exec_ext in '' $ac_executable_extensions; do
18730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18731 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18738 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18742 ETAGS=$ac_cv_path_ETAGS
18744 if test -n "$ETAGS"; then
18745 echo "$as_me:$LINENO: result: $ETAGS" >&5
18746 echo "${ECHO_T}$ETAGS" >&6
18748 echo "$as_me:$LINENO: result: no" >&5
18749 echo "${ECHO_T}no" >&6
18752 etags_version=`$ETAGS --version 2>&1`
18753 case "$etags_version" in
18754 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18755 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18756 *) ETAGSFLAGS="" ;;
18758 ETAGSFLAGS=$ETAGSFLAGS
18760 # Extract the first word of "python", so it can be a program name with args.
18761 set dummy python; ac_word=$2
18762 echo "$as_me:$LINENO: checking for $ac_word" >&5
18763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18764 if test "${ac_cv_path_PYTHON+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18773 for as_dir in $PATH
18776 test -z "$as_dir" && as_dir=.
18777 for ac_exec_ext in '' $ac_executable_extensions; do
18778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18779 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18786 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18790 PYTHON=$ac_cv_path_PYTHON
18792 if test -n "$PYTHON"; then
18793 echo "$as_me:$LINENO: result: $PYTHON" >&5
18794 echo "${ECHO_T}$PYTHON" >&6
18796 echo "$as_me:$LINENO: result: no" >&5
18797 echo "${ECHO_T}no" >&6
18800 if test "$PYTHON" = "false"
18802 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18803 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18805 # Extract the first word of "qmtest", so it can be a program name with args.
18806 set dummy qmtest; ac_word=$2
18807 echo "$as_me:$LINENO: checking for $ac_word" >&5
18808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18809 if test "${ac_cv_path_QMTEST+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18814 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18818 for as_dir in $PATH
18821 test -z "$as_dir" && as_dir=.
18822 for ac_exec_ext in '' $ac_executable_extensions; do
18823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18824 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18831 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18835 QMTEST=$ac_cv_path_QMTEST
18837 if test -n "$QMTEST"; then
18838 echo "$as_me:$LINENO: result: $QMTEST" >&5
18839 echo "${ECHO_T}$QMTEST" >&6
18841 echo "$as_me:$LINENO: result: no" >&5
18842 echo "${ECHO_T}no" >&6
18845 if test "$QMTEST" = "false"
18847 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18848 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18851 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18852 pymajor=`echo $pyversion | cut -d. -f1`
18853 pyminor=`echo $pyversion | cut -d. -f2`
18855 if test "$pymajor" -ge "2"
18857 if test "$pymajor" -eq "2"
18859 if test "$pyminor" -lt "2"
18861 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18862 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18866 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18867 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18873 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18874 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18875 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18878 ac_check_lib_save_LIBS=$LIBS
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18887 /* Override any gcc2 internal prototype to avoid an error. */
18891 /* We use char because int might match the return type of a gcc2
18892 builtin and then its argument prototype would still apply. */
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18904 (eval $ac_link) 2>conftest.er1
18906 grep -v '^ *+' conftest.er1 >conftest.err
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_c_werror_flag"
18912 || test ! -s conftest.err'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; } &&
18918 { ac_try='test -s conftest$ac_exeext'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
18924 ac_cv_lib_elf_elf_begin=yes
18926 echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18929 ac_cv_lib_elf_elf_begin=no
18931 rm -f conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
18933 LIBS=$ac_check_lib_save_LIBS
18935 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18936 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18937 if test $ac_cv_lib_elf_elf_begin = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939 #define HAVE_LIBELF 1
18947 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18948 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18949 if test "${ac_cv_search_dlopen+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 ac_func_search_save_LIBS=$LIBS
18953 ac_cv_search_dlopen=no
18954 cat >conftest.$ac_ext <<_ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18961 /* Override any gcc2 internal prototype to avoid an error. */
18965 /* We use char because int might match the return type of a gcc2
18966 builtin and then its argument prototype would still apply. */
18976 rm -f conftest.$ac_objext conftest$ac_exeext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18978 (eval $ac_link) 2>conftest.er1
18980 grep -v '^ *+' conftest.er1 >conftest.err
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
18985 { ac_try='test -z "$ac_c_werror_flag"
18986 || test ! -s conftest.err'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest$ac_exeext'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18998 ac_cv_search_dlopen="none required"
19000 echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.$ac_ext >&5
19004 rm -f conftest.err conftest.$ac_objext \
19005 conftest$ac_exeext conftest.$ac_ext
19006 if test "$ac_cv_search_dlopen" = no; then
19007 for ac_lib in dl; do
19008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19009 cat >conftest.$ac_ext <<_ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19016 /* Override any gcc2 internal prototype to avoid an error. */
19020 /* We use char because int might match the return type of a gcc2
19021 builtin and then its argument prototype would still apply. */
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19033 (eval $ac_link) 2>conftest.er1
19035 grep -v '^ *+' conftest.er1 >conftest.err
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try='test -z "$ac_c_werror_flag"
19041 || test ! -s conftest.err'
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 ac_cv_search_dlopen="-l$ac_lib"
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19060 rm -f conftest.err conftest.$ac_objext \
19061 conftest$ac_exeext conftest.$ac_ext
19064 LIBS=$ac_func_search_save_LIBS
19066 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19067 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19068 if test "$ac_cv_search_dlopen" != no; then
19069 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19071 cat >>confdefs.h <<\_ACEOF
19072 #define HAVE_DLOPEN 1
19076 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19077 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19081 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19082 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19083 if test "${ac_cv_search_mallinfo+set}" = set; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19086 ac_func_search_save_LIBS=$LIBS
19087 ac_cv_search_mallinfo=no
19088 cat >conftest.$ac_ext <<_ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19095 /* Override any gcc2 internal prototype to avoid an error. */
19099 /* We use char because int might match the return type of a gcc2
19100 builtin and then its argument prototype would still apply. */
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112 (eval $ac_link) 2>conftest.er1
19114 grep -v '^ *+' conftest.er1 >conftest.err
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try='test -z "$ac_c_werror_flag"
19120 || test ! -s conftest.err'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try='test -s conftest$ac_exeext'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 ac_cv_search_mallinfo="none required"
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19138 rm -f conftest.err conftest.$ac_objext \
19139 conftest$ac_exeext conftest.$ac_ext
19140 if test "$ac_cv_search_mallinfo" = no; then
19141 for ac_lib in malloc; do
19142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19143 cat >conftest.$ac_ext <<_ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19150 /* Override any gcc2 internal prototype to avoid an error. */
19154 /* We use char because int might match the return type of a gcc2
19155 builtin and then its argument prototype would still apply. */
19165 rm -f conftest.$ac_objext conftest$ac_exeext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19167 (eval $ac_link) 2>conftest.er1
19169 grep -v '^ *+' conftest.er1 >conftest.err
19171 cat conftest.err >&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
19174 { ac_try='test -z "$ac_c_werror_flag"
19175 || test ! -s conftest.err'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; } &&
19181 { ac_try='test -s conftest$ac_exeext'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 ac_cv_search_mallinfo="-l$ac_lib"
19190 echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19194 rm -f conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
19198 LIBS=$ac_func_search_save_LIBS
19200 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19201 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19202 if test "$ac_cv_search_mallinfo" != no; then
19203 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19205 cat >>confdefs.h <<\_ACEOF
19206 #define HAVE_MALLINFO 1
19212 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19213 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19214 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 ac_func_search_save_LIBS=$LIBS
19218 ac_cv_search_pthread_mutex_lock=no
19219 cat >conftest.$ac_ext <<_ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19226 /* Override any gcc2 internal prototype to avoid an error. */
19230 /* We use char because int might match the return type of a gcc2
19231 builtin and then its argument prototype would still apply. */
19232 char pthread_mutex_lock ();
19236 pthread_mutex_lock ();
19241 rm -f conftest.$ac_objext conftest$ac_exeext
19242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19243 (eval $ac_link) 2>conftest.er1
19245 grep -v '^ *+' conftest.er1 >conftest.err
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -z "$ac_c_werror_flag"
19251 || test ! -s conftest.err'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } &&
19257 { ac_try='test -s conftest$ac_exeext'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 ac_cv_search_pthread_mutex_lock="none required"
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19269 rm -f conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
19271 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19272 for ac_lib in pthread; do
19273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19274 cat >conftest.$ac_ext <<_ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19281 /* Override any gcc2 internal prototype to avoid an error. */
19285 /* We use char because int might match the return type of a gcc2
19286 builtin and then its argument prototype would still apply. */
19287 char pthread_mutex_lock ();
19291 pthread_mutex_lock ();
19296 rm -f conftest.$ac_objext conftest$ac_exeext
19297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19298 (eval $ac_link) 2>conftest.er1
19300 grep -v '^ *+' conftest.er1 >conftest.err
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -z "$ac_c_werror_flag"
19306 || test ! -s conftest.err'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest$ac_exeext'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19325 rm -f conftest.err conftest.$ac_objext \
19326 conftest$ac_exeext conftest.$ac_ext
19329 LIBS=$ac_func_search_save_LIBS
19331 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19332 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19333 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19334 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19335 HAVE_PTHREAD_MUTEX_LOCK=1
19337 HAVE_PTHREAD_MUTEX_LOCK=0
19342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19344 if test "${ac_cv_header_stdc+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 cat >conftest.$ac_ext <<_ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353 #include <stdlib.h>
19354 #include <stdarg.h>
19355 #include <string.h>
19366 rm -f conftest.$ac_objext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19368 (eval $ac_compile) 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try='test -z "$ac_c_werror_flag"
19376 || test ! -s conftest.err'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_header_stdc=yes
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 ac_cv_header_stdc=no
19395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19397 if test $ac_cv_header_stdc = yes; then
19398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19399 cat >conftest.$ac_ext <<_ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 #include <string.h>
19408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19409 $EGREP "memchr" >/dev/null 2>&1; then
19412 ac_cv_header_stdc=no
19418 if test $ac_cv_header_stdc = yes; then
19419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19420 cat >conftest.$ac_ext <<_ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 #include <stdlib.h>
19429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19430 $EGREP "free" >/dev/null 2>&1; then
19433 ac_cv_header_stdc=no
19439 if test $ac_cv_header_stdc = yes; then
19440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19441 if test "$cross_compiling" = yes; then
19444 cat >conftest.$ac_ext <<_ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h. */
19451 #if ((' ' & 0x0FF) == 0x020)
19452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19455 # define ISLOWER(c) \
19456 (('a' <= (c) && (c) <= 'i') \
19457 || ('j' <= (c) && (c) <= 'r') \
19458 || ('s' <= (c) && (c) <= 'z'))
19459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19467 for (i = 0; i < 256; i++)
19468 if (XOR (islower (i), ISLOWER (i))
19469 || toupper (i) != TOUPPER (i))
19474 rm -f conftest$ac_exeext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476 (eval $ac_link) 2>&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19487 echo "$as_me: program exited with status $ac_status" >&5
19488 echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19491 ( exit $ac_status )
19492 ac_cv_header_stdc=no
19494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19500 if test $ac_cv_header_stdc = yes; then
19502 cat >>confdefs.h <<\_ACEOF
19503 #define STDC_HEADERS 1
19508 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19509 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19510 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 cat >conftest.$ac_ext <<_ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19519 #include <sys/types.h>
19520 #include <sys/wait.h>
19521 #ifndef WEXITSTATUS
19522 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19525 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19533 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19542 grep -v '^ *+' conftest.er1 >conftest.err
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_cv_header_sys_wait_h=yes
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ac_cv_header_sys_wait_h=no
19567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19569 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19570 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19571 if test $ac_cv_header_sys_wait_h = yes; then
19573 cat >>confdefs.h <<\_ACEOF
19574 #define HAVE_SYS_WAIT_H 1
19591 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
19593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595 echo "$as_me:$LINENO: checking for $ac_header" >&5
19596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19603 # Is the header compilable?
19604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 $ac_includes_default
19613 #include <$ac_header>
19615 rm -f conftest.$ac_objext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617 (eval $ac_compile) 2>conftest.er1
19619 grep -v '^ *+' conftest.er1 >conftest.err
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -z "$ac_c_werror_flag"
19625 || test ! -s conftest.err'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try='test -s conftest.$ac_objext'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_header_compiler=yes
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ac_header_compiler=no
19644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19646 echo "${ECHO_T}$ac_header_compiler" >&6
19648 # Is the header present?
19649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19651 cat >conftest.$ac_ext <<_ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 #include <$ac_header>
19659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19662 grep -v '^ *+' conftest.er1 >conftest.err
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } >/dev/null; then
19667 if test -s conftest.err; then
19668 ac_cpp_err=$ac_c_preproc_warn_flag
19669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19676 if test -z "$ac_cpp_err"; then
19677 ac_header_preproc=yes
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19682 ac_header_preproc=no
19684 rm -f conftest.err conftest.$ac_ext
19685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19686 echo "${ECHO_T}$ac_header_preproc" >&6
19688 # So? What about this header?
19689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19695 ac_header_preproc=yes
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19712 ## ----------------------------------- ##
19713 ## Report this to llvmbugs@cs.uiuc.edu ##
19714 ## ----------------------------------- ##
19717 sed "s/^/$as_me: WARNING: /" >&2
19720 echo "$as_me:$LINENO: checking for $ac_header" >&5
19721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19725 eval "$as_ac_Header=\$ac_header_preproc"
19727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19732 cat >>confdefs.h <<_ACEOF
19733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19741 if test "${ac_cv_header_sys_types_h+set}" = set; then
19742 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19743 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19744 if test "${ac_cv_header_sys_types_h+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19748 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19750 # Is the header compilable?
19751 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19752 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19753 cat >conftest.$ac_ext <<_ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19759 $ac_includes_default
19760 #include <sys/types.h>
19762 rm -f conftest.$ac_objext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19764 (eval $ac_compile) 2>conftest.er1
19766 grep -v '^ *+' conftest.er1 >conftest.err
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest.$ac_objext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_header_compiler=yes
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 ac_header_compiler=no
19791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19793 echo "${ECHO_T}$ac_header_compiler" >&6
19795 # Is the header present?
19796 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19797 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19798 cat >conftest.$ac_ext <<_ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19804 #include <sys/types.h>
19806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } >/dev/null; then
19814 if test -s conftest.err; then
19815 ac_cpp_err=$ac_c_preproc_warn_flag
19816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19823 if test -z "$ac_cpp_err"; then
19824 ac_header_preproc=yes
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ac_header_preproc=no
19831 rm -f conftest.err conftest.$ac_ext
19832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19833 echo "${ECHO_T}$ac_header_preproc" >&6
19835 # So? What about this header?
19836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19838 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19839 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19840 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19841 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19842 ac_header_preproc=yes
19845 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19846 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19848 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19850 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19852 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19854 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19856 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19859 ## ----------------------------------- ##
19860 ## Report this to llvmbugs@cs.uiuc.edu ##
19861 ## ----------------------------------- ##
19864 sed "s/^/$as_me: WARNING: /" >&2
19867 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19868 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19869 if test "${ac_cv_header_sys_types_h+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 ac_cv_header_sys_types_h=$ac_header_preproc
19874 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19875 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19878 if test $ac_cv_header_sys_types_h = yes; then
19879 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19881 INCLUDE_SYS_TYPES_H=''
19886 if test "${ac_cv_header_inttypes_h+set}" = set; then
19887 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19888 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19889 if test "${ac_cv_header_inttypes_h+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19892 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19893 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19895 # Is the header compilable?
19896 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19897 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904 $ac_includes_default
19905 #include <inttypes.h>
19907 rm -f conftest.$ac_objext
19908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19909 (eval $ac_compile) 2>conftest.er1
19911 grep -v '^ *+' conftest.er1 >conftest.err
19913 cat conftest.err >&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } &&
19916 { ac_try='test -z "$ac_c_werror_flag"
19917 || test ! -s conftest.err'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; } &&
19923 { ac_try='test -s conftest.$ac_objext'
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929 ac_header_compiler=yes
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_header_compiler=no
19936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19938 echo "${ECHO_T}$ac_header_compiler" >&6
19940 # Is the header present?
19941 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19942 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 #include <inttypes.h>
19951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } >/dev/null; then
19959 if test -s conftest.err; then
19960 ac_cpp_err=$ac_c_preproc_warn_flag
19961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19968 if test -z "$ac_cpp_err"; then
19969 ac_header_preproc=yes
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19974 ac_header_preproc=no
19976 rm -f conftest.err conftest.$ac_ext
19977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978 echo "${ECHO_T}$ac_header_preproc" >&6
19980 # So? What about this header?
19981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19983 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19984 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19986 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19987 ac_header_preproc=yes
19990 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19991 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19993 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19995 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
19997 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19999 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20001 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20004 ## ----------------------------------- ##
20005 ## Report this to llvmbugs@cs.uiuc.edu ##
20006 ## ----------------------------------- ##
20009 sed "s/^/$as_me: WARNING: /" >&2
20012 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20013 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20014 if test "${ac_cv_header_inttypes_h+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20017 ac_cv_header_inttypes_h=$ac_header_preproc
20019 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20020 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20023 if test $ac_cv_header_inttypes_h = yes; then
20024 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20026 INCLUDE_INTTYPES_H=''
20031 if test "${ac_cv_header_stdint_h+set}" = set; then
20032 echo "$as_me:$LINENO: checking for stdint.h" >&5
20033 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20034 if test "${ac_cv_header_stdint_h+set}" = set; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20037 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20038 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20040 # Is the header compilable?
20041 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20042 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 $ac_includes_default
20050 #include <stdint.h>
20052 rm -f conftest.$ac_objext
20053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20054 (eval $ac_compile) 2>conftest.er1
20056 grep -v '^ *+' conftest.er1 >conftest.err
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } &&
20061 { ac_try='test -z "$ac_c_werror_flag"
20062 || test ! -s conftest.err'
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_header_compiler=yes
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_header_compiler=no
20081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20083 echo "${ECHO_T}$ac_header_compiler" >&6
20085 # Is the header present?
20086 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20087 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20088 cat >conftest.$ac_ext <<_ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 #include <stdint.h>
20096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20099 grep -v '^ *+' conftest.er1 >conftest.err
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } >/dev/null; then
20104 if test -s conftest.err; then
20105 ac_cpp_err=$ac_c_preproc_warn_flag
20106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20113 if test -z "$ac_cpp_err"; then
20114 ac_header_preproc=yes
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 ac_header_preproc=no
20121 rm -f conftest.err conftest.$ac_ext
20122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20123 echo "${ECHO_T}$ac_header_preproc" >&6
20125 # So? What about this header?
20126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20128 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20129 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20130 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20131 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20132 ac_header_preproc=yes
20135 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20136 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20138 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20140 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20142 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20143 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20144 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20146 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20149 ## ----------------------------------- ##
20150 ## Report this to llvmbugs@cs.uiuc.edu ##
20151 ## ----------------------------------- ##
20154 sed "s/^/$as_me: WARNING: /" >&2
20157 echo "$as_me:$LINENO: checking for stdint.h" >&5
20158 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20159 if test "${ac_cv_header_stdint_h+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 ac_cv_header_stdint_h=$ac_header_preproc
20164 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20165 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20168 if test $ac_cv_header_stdint_h = yes; then
20169 INCLUDE_STDINT_H='#include <stdint.h>'
20171 INCLUDE_STDINT_H=''
20178 echo "$as_me:$LINENO: checking for pid_t" >&5
20179 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20180 if test "${ac_cv_type_pid_t+set}" = set; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 $ac_includes_default
20195 if (sizeof (pid_t))
20201 rm -f conftest.$ac_objext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20203 (eval $ac_compile) 2>conftest.er1
20205 grep -v '^ *+' conftest.er1 >conftest.err
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -z "$ac_c_werror_flag"
20211 || test ! -s conftest.err'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; } &&
20217 { ac_try='test -s conftest.$ac_objext'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
20223 ac_cv_type_pid_t=yes
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_cv_type_pid_t=no
20230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20232 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20233 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20234 if test $ac_cv_type_pid_t = yes; then
20238 cat >>confdefs.h <<_ACEOF
20244 echo "$as_me:$LINENO: checking for size_t" >&5
20245 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20246 if test "${ac_cv_type_size_t+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20261 if (sizeof (size_t))
20267 rm -f conftest.$ac_objext
20268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20269 (eval $ac_compile) 2>conftest.er1
20271 grep -v '^ *+' conftest.er1 >conftest.err
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -z "$ac_c_werror_flag"
20277 || test ! -s conftest.err'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; } &&
20283 { ac_try='test -s conftest.$ac_objext'
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 ac_cv_type_size_t=yes
20291 echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20294 ac_cv_type_size_t=no
20296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20298 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20299 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20300 if test $ac_cv_type_size_t = yes; then
20304 cat >>confdefs.h <<_ACEOF
20305 #define size_t unsigned
20310 echo "$as_me:$LINENO: checking for int64_t" >&5
20311 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20312 if test "${ac_cv_type_int64_t+set}" = set; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 $ac_includes_default
20327 if (sizeof (int64_t))
20333 rm -f conftest.$ac_objext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20335 (eval $ac_compile) 2>conftest.er1
20337 grep -v '^ *+' conftest.er1 >conftest.err
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
20342 { ac_try='test -z "$ac_c_werror_flag"
20343 || test ! -s conftest.err'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; } &&
20349 { ac_try='test -s conftest.$ac_objext'
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 ac_cv_type_int64_t=yes
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 ac_cv_type_int64_t=no
20362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20364 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20365 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20366 if test $ac_cv_type_int64_t = yes; then
20368 cat >>confdefs.h <<_ACEOF
20369 #define HAVE_INT64_T 1
20374 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20375 echo "$as_me: error: Type int64_t required but not found" >&2;}
20376 { (exit 1); exit 1; }; }
20379 echo "$as_me:$LINENO: checking for uint64_t" >&5
20380 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20381 if test "${ac_cv_type_uint64_t+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20384 cat >conftest.$ac_ext <<_ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 $ac_includes_default
20394 if ((uint64_t *) 0)
20396 if (sizeof (uint64_t))
20402 rm -f conftest.$ac_objext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404 (eval $ac_compile) 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag"
20412 || test ! -s conftest.err'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest.$ac_objext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_type_uint64_t=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_type_uint64_t=no
20431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20433 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20434 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20435 if test $ac_cv_type_uint64_t = yes; then
20437 cat >>confdefs.h <<_ACEOF
20438 #define HAVE_UINT64_T 1
20443 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20444 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20445 { (exit 1); exit 1; }; }
20448 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20449 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20450 if test "${ac_cv_header_time+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20453 cat >conftest.$ac_ext <<_ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20459 #include <sys/types.h>
20460 #include <sys/time.h>
20466 if ((struct tm *) 0)
20472 rm -f conftest.$ac_objext
20473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20474 (eval $ac_compile) 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
20481 { ac_try='test -z "$ac_c_werror_flag"
20482 || test ! -s conftest.err'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest.$ac_objext'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 ac_cv_header_time=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_cv_header_time=no
20501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20503 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20504 echo "${ECHO_T}$ac_cv_header_time" >&6
20505 if test $ac_cv_header_time = yes; then
20507 cat >>confdefs.h <<\_ACEOF
20508 #define TIME_WITH_SYS_TIME 1
20513 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20514 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20515 if test "${ac_cv_struct_tm+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20518 cat >conftest.$ac_ext <<_ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20524 #include <sys/types.h>
20530 struct tm *tp; tp->tm_sec;
20535 rm -f conftest.$ac_objext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537 (eval $ac_compile) 2>conftest.er1
20539 grep -v '^ *+' conftest.er1 >conftest.err
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_c_werror_flag"
20545 || test ! -s conftest.err'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try='test -s conftest.$ac_objext'
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20557 ac_cv_struct_tm=time.h
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20562 ac_cv_struct_tm=sys/time.h
20564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20566 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20567 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20568 if test $ac_cv_struct_tm = sys/time.h; then
20570 cat >>confdefs.h <<\_ACEOF
20571 #define TM_IN_SYS_TIME 1
20578 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20579 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20583 ac_cpp='$CPP $CPPFLAGS'
20584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20588 if test "$cross_compiling" = yes; then
20589 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20590 See \`config.log' for more details." >&5
20591 echo "$as_me: error: cannot run test program while cross compiling
20592 See \`config.log' for more details." >&2;}
20593 { (exit 1); exit 1; }; }
20595 cat >conftest.$ac_ext <<_ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h. */
20602 #include <stdlib.h>
20607 volatile double A, B;
20611 sprintf(Buffer, "%a", A);
20615 if (A != 0x1.999999999999ap-4)
20622 rm -f conftest$ac_exeext
20623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20624 (eval $ac_link) 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20635 echo "$as_me: program exited with status $ac_status" >&5
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 ( exit $ac_status )
20642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20645 ac_cpp='$CPP $CPPFLAGS'
20646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20650 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20651 echo "${ECHO_T}$ac_c_printf_a" >&6
20652 if test "$ac_c_printf_a" = "yes"; then
20654 cat >>confdefs.h <<\_ACEOF
20655 #define HAVE_PRINTF_A 1
20661 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20662 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20663 if test "${ac_cv_c_bigendian+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 # See if sys/param.h defines the BYTE_ORDER macro.
20667 cat >conftest.$ac_ext <<_ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20673 #include <sys/types.h>
20674 #include <sys/param.h>
20679 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20680 bogus endian macros
20687 rm -f conftest.$ac_objext
20688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20689 (eval $ac_compile) 2>conftest.er1
20691 grep -v '^ *+' conftest.er1 >conftest.err
20693 cat conftest.err >&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } &&
20696 { ac_try='test -z "$ac_c_werror_flag"
20697 || test ! -s conftest.err'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; } &&
20703 { ac_try='test -s conftest.$ac_objext'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; }; then
20709 # It does; now see whether it defined to BIG_ENDIAN or not.
20710 cat >conftest.$ac_ext <<_ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20716 #include <sys/types.h>
20717 #include <sys/param.h>
20722 #if BYTE_ORDER != BIG_ENDIAN
20730 rm -f conftest.$ac_objext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732 (eval $ac_compile) 2>conftest.er1
20734 grep -v '^ *+' conftest.er1 >conftest.err
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
20739 { ac_try='test -z "$ac_c_werror_flag"
20740 || test ! -s conftest.err'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest.$ac_objext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_cv_c_bigendian=yes
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_cv_c_bigendian=no
20759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20764 # It does not; compile a test program.
20765 if test "$cross_compiling" = yes; then
20766 # try to guess the endianness by grepping values into an object file
20767 ac_cv_c_bigendian=unknown
20768 cat >conftest.$ac_ext <<_ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20774 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20775 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20776 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20777 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20778 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20779 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20783 _ascii (); _ebcdic ();
20788 rm -f conftest.$ac_objext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20790 (eval $ac_compile) 2>conftest.er1
20792 grep -v '^ *+' conftest.er1 >conftest.err
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } &&
20797 { ac_try='test -z "$ac_c_werror_flag"
20798 || test ! -s conftest.err'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20811 ac_cv_c_bigendian=yes
20813 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20814 if test "$ac_cv_c_bigendian" = unknown; then
20815 ac_cv_c_bigendian=no
20817 # finding both strings is unlikely to happen, but who knows?
20818 ac_cv_c_bigendian=unknown
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20828 cat >conftest.$ac_ext <<_ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h. */
20837 /* Are we little or big endian? From Harbison&Steele. */
20841 char c[sizeof (long)];
20844 exit (u.c[sizeof (long) - 1] == 1);
20847 rm -f conftest$ac_exeext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849 (eval $ac_link) 2>&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_cv_c_bigendian=no
20860 echo "$as_me: program exited with status $ac_status" >&5
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20864 ( exit $ac_status )
20865 ac_cv_c_bigendian=yes
20867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20872 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20873 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20874 case $ac_cv_c_bigendian in
20882 { { echo "$as_me:$LINENO: error: unknown endianness
20883 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20884 echo "$as_me: error: unknown endianness
20885 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20886 { (exit 1); exit 1; }; } ;;
20890 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20891 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20892 if test "${ac_cv_cxx_namespaces+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20898 ac_cpp='$CXXCPP $CPPFLAGS'
20899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20903 cat >conftest.$ac_ext <<_ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20909 namespace Outer { namespace Inner { int i = 0; }}
20913 using namespace Outer::Inner; return i;
20918 rm -f conftest.$ac_objext
20919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20920 (eval $ac_compile) 2>conftest.er1
20922 grep -v '^ *+' conftest.er1 >conftest.err
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try='test -z "$ac_cxx_werror_flag"
20928 || test ! -s conftest.err'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; } &&
20934 { ac_try='test -s conftest.$ac_objext'
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ac_cv_cxx_namespaces=yes
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_cv_cxx_namespaces=no
20947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20949 ac_cpp='$CPP $CPPFLAGS'
20950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20956 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20957 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20958 if test "$ac_cv_cxx_namespaces" = yes; then
20960 cat >>confdefs.h <<\_ACEOF
20961 #define HAVE_NAMESPACES
20966 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20967 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20968 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 ac_cpp='$CXXCPP $CPPFLAGS'
20976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20986 #include <ext/hash_map>
20987 #ifdef HAVE_NAMESPACES
20988 using namespace std;
20993 hash_map<int, int> t;
20998 rm -f conftest.$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000 (eval $ac_compile) 2>conftest.er1
21002 grep -v '^ *+' conftest.er1 >conftest.err
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try='test -z "$ac_cxx_werror_flag"
21008 || test ! -s conftest.err'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; } &&
21014 { ac_try='test -s conftest.$ac_objext'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
21020 ac_cv_cxx_have_std_ext_hash_map=yes
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_cv_cxx_have_std_ext_hash_map=no
21027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21029 ac_cpp='$CPP $CPPFLAGS'
21030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21035 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21036 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21037 HAVE_STD_EXT_HASH_MAP=0
21038 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21040 HAVE_STD_EXT_HASH_MAP=1
21043 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21044 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21045 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21046 echo $ECHO_N "(cached) $ECHO_C" >&6
21052 ac_cpp='$CXXCPP $CPPFLAGS'
21053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21057 cat >conftest.$ac_ext <<_ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21063 #include <ext/hash_map>
21064 #ifdef HAVE_NAMESPACES
21065 using namespace __gnu_cxx;
21070 hash_map<int,int> t;
21075 rm -f conftest.$ac_objext
21076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21077 (eval $ac_compile) 2>conftest.er1
21079 grep -v '^ *+' conftest.er1 >conftest.err
21081 cat conftest.err >&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } &&
21084 { ac_try='test -z "$ac_cxx_werror_flag"
21085 || test ! -s conftest.err'
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; } &&
21091 { ac_try='test -s conftest.$ac_objext'
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
21097 ac_cv_cxx_have_gnu_ext_hash_map=yes
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21102 ac_cv_cxx_have_gnu_ext_hash_map=no
21104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21106 ac_cpp='$CPP $CPPFLAGS'
21107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21112 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21113 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21114 HAVE_GNU_EXT_HASH_MAP=0
21115 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21117 HAVE_GNU_EXT_HASH_MAP=1
21120 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21121 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21122 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21129 ac_cpp='$CXXCPP $CPPFLAGS'
21130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21134 cat >conftest.$ac_ext <<_ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h. */
21140 #include <hash_map>
21144 hash_map<int,int> t;
21149 rm -f conftest.$ac_objext
21150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21151 (eval $ac_compile) 2>conftest.er1
21153 grep -v '^ *+' conftest.er1 >conftest.err
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
21158 { ac_try='test -z "$ac_cxx_werror_flag"
21159 || test ! -s conftest.err'
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; } &&
21165 { ac_try='test -s conftest.$ac_objext'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 ac_cv_cxx_have_global_hash_map=yes
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21176 ac_cv_cxx_have_global_hash_map=no
21178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21180 ac_cpp='$CPP $CPPFLAGS'
21181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21187 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21188 HAVE_GLOBAL_HASH_MAP=0
21189 if test "$ac_cv_cxx_have_global_hash_map" = yes
21191 HAVE_GLOBAL_HASH_MAP=1
21194 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21195 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21196 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21197 echo $ECHO_N "(cached) $ECHO_C" >&6
21203 ac_cpp='$CXXCPP $CPPFLAGS'
21204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21208 cat >conftest.$ac_ext <<_ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 #include <ext/hash_set>
21215 #ifdef HAVE_NAMESPACES
21216 using namespace std;
21226 rm -f conftest.$ac_objext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21228 (eval $ac_compile) 2>conftest.er1
21230 grep -v '^ *+' conftest.er1 >conftest.err
21232 cat conftest.err >&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } &&
21235 { ac_try='test -z "$ac_cxx_werror_flag"
21236 || test ! -s conftest.err'
21237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238 (eval $ac_try) 2>&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); }; } &&
21242 { ac_try='test -s conftest.$ac_objext'
21243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244 (eval $ac_try) 2>&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); }; }; then
21248 ac_cv_cxx_have_std_ext_hash_set=yes
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21253 ac_cv_cxx_have_std_ext_hash_set=no
21255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21257 ac_cpp='$CPP $CPPFLAGS'
21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21263 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21264 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21265 HAVE_STD_EXT_HASH_SET=0
21266 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21268 HAVE_STD_EXT_HASH_SET=1
21271 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21272 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21273 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 ac_cpp='$CXXCPP $CPPFLAGS'
21281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <ext/hash_set>
21292 #ifdef HAVE_NAMESPACES
21293 using namespace __gnu_cxx;
21303 rm -f conftest.$ac_objext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305 (eval $ac_compile) 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
21312 { ac_try='test -z "$ac_cxx_werror_flag"
21313 || test ! -s conftest.err'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; } &&
21319 { ac_try='test -s conftest.$ac_objext'
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; }; then
21325 ac_cv_cxx_have_gnu_ext_hash_set=yes
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_cv_cxx_have_gnu_ext_hash_set=no
21332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21334 ac_cpp='$CPP $CPPFLAGS'
21335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21340 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21341 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21342 HAVE_GNU_EXT_HASH_SET=0
21343 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21345 HAVE_GNU_EXT_HASH_SET=1
21348 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21349 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21350 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21357 ac_cpp='$CXXCPP $CPPFLAGS'
21358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21362 cat >conftest.$ac_ext <<_ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 #include <hash_set>
21372 hash_set<int> t; return 0;
21377 rm -f conftest.$ac_objext
21378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21379 (eval $ac_compile) 2>conftest.er1
21381 grep -v '^ *+' conftest.er1 >conftest.err
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } &&
21386 { ac_try='test -z "$ac_cxx_werror_flag"
21387 || test ! -s conftest.err'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } &&
21393 { ac_try='test -s conftest.$ac_objext'
21394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }; then
21399 ac_cv_cxx_have_global_hash_set=yes
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21404 ac_cv_cxx_have_global_hash_set=no
21406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21408 ac_cpp='$CPP $CPPFLAGS'
21409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21414 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21415 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21416 HAVE_GLOBAL_HASH_SET=0
21417 if test "$ac_cv_cxx_have_global_hash_set" = yes
21419 HAVE_GLOBAL_HASH_SET=1
21422 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21423 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21424 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 ac_cpp='$CXXCPP $CPPFLAGS'
21432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21436 cat >conftest.$ac_ext <<_ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <iterator>
21443 #ifdef HAVE_NAMESPACES
21444 using namespace std;
21449 iterator<int,int,int> t; return 0;
21454 rm -f conftest.$ac_objext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21456 (eval $ac_compile) 2>conftest.er1
21458 grep -v '^ *+' conftest.er1 >conftest.err
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -z "$ac_cxx_werror_flag"
21464 || test ! -s conftest.err'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest.$ac_objext'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_cv_cxx_have_std_iterator=yes
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 ac_cv_cxx_have_std_iterator=no
21483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21485 ac_cpp='$CPP $CPPFLAGS'
21486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21492 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21493 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21494 HAVE_STD_ITERATOR=0
21495 if test "$ac_cv_cxx_have_std_iterator" = yes
21497 HAVE_STD_ITERATOR=1
21500 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21501 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21502 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21509 ac_cpp='$CXXCPP $CPPFLAGS'
21510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21514 cat >conftest.$ac_ext <<_ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 #include <iterator>
21521 #ifdef HAVE_NAMESPACES
21522 using namespace std;
21527 bidirectional_iterator<int,int> t; return 0;
21532 rm -f conftest.$ac_objext
21533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21534 (eval $ac_compile) 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
21541 { ac_try='test -z "$ac_cxx_werror_flag"
21542 || test ! -s conftest.err'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try='test -s conftest.$ac_objext'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_cv_cxx_have_bi_iterator=yes
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 ac_cv_cxx_have_bi_iterator=no
21561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21563 ac_cpp='$CPP $CPPFLAGS'
21564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21570 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21571 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21573 if test "$ac_cv_cxx_have_bi_iterator" = yes
21578 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21579 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21580 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 ac_cpp='$CXXCPP $CPPFLAGS'
21588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21592 cat >conftest.$ac_ext <<_ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 #include <iterator>
21599 #ifdef HAVE_NAMESPACES
21600 using namespace std;
21605 forward_iterator<int,int> t; return 0;
21610 rm -f conftest.$ac_objext
21611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21612 (eval $ac_compile) 2>conftest.er1
21614 grep -v '^ *+' conftest.er1 >conftest.err
21616 cat conftest.err >&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } &&
21619 { ac_try='test -z "$ac_cxx_werror_flag"
21620 || test ! -s conftest.err'
21621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622 (eval $ac_try) 2>&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); }; } &&
21626 { ac_try='test -s conftest.$ac_objext'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; }; then
21632 ac_cv_cxx_have_fwd_iterator=yes
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21637 ac_cv_cxx_have_fwd_iterator=no
21639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21641 ac_cpp='$CPP $CPPFLAGS'
21642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21648 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21649 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21650 HAVE_FWD_ITERATOR=0
21651 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21653 HAVE_FWD_ITERATOR=1
21658 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21659 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21660 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 ac_cpp='$CXXCPP $CPPFLAGS'
21665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21669 cat >conftest.$ac_ext <<_ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h. */
21676 int foo(float f) {return isnan(f);}
21678 rm -f conftest.$ac_objext
21679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21680 (eval $ac_compile) 2>conftest.er1
21682 grep -v '^ *+' conftest.er1 >conftest.err
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
21687 { ac_try='test -z "$ac_cxx_werror_flag"
21688 || test ! -s conftest.err'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; } &&
21694 { ac_try='test -s conftest.$ac_objext'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 ac_cv_func_isnan_in_math_h=yes
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21705 ac_cv_func_isnan_in_math_h=no
21707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21709 ac_cpp='$CPP $CPPFLAGS'
21710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21715 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21716 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21717 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21720 cat >>confdefs.h <<\_ACEOF
21721 #define HAVE_ISNAN_IN_MATH_H 1
21725 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21726 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21727 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21728 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 ac_cpp='$CXXCPP $CPPFLAGS'
21732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21736 cat >conftest.$ac_ext <<_ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21743 int foo(float f) {return isnan(f);}
21745 rm -f conftest.$ac_objext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21747 (eval $ac_compile) 2>conftest.er1
21749 grep -v '^ *+' conftest.er1 >conftest.err
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
21754 { ac_try='test -z "$ac_cxx_werror_flag"
21755 || test ! -s conftest.err'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; } &&
21761 { ac_try='test -s conftest.$ac_objext'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; }; then
21767 ac_cv_func_isnan_in_cmath=yes
21769 echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21772 ac_cv_func_isnan_in_cmath=no
21774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21776 ac_cpp='$CPP $CPPFLAGS'
21777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21782 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21783 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21784 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21787 cat >>confdefs.h <<\_ACEOF
21788 #define HAVE_ISNAN_IN_CMATH 1
21792 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21793 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21794 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21798 ac_cpp='$CXXCPP $CPPFLAGS'
21799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21803 cat >conftest.$ac_ext <<_ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h. */
21810 using std::isnan; int foo(float f) {return isnan(f);}
21812 rm -f conftest.$ac_objext
21813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21814 (eval $ac_compile) 2>conftest.er1
21816 grep -v '^ *+' conftest.er1 >conftest.err
21818 cat conftest.err >&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } &&
21821 { ac_try='test -z "$ac_cxx_werror_flag"
21822 || test ! -s conftest.err'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; } &&
21828 { ac_try='test -s conftest.$ac_objext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ac_cv_func_std_isnan_in_cmath=yes
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21839 ac_cv_func_std_isnan_in_cmath=no
21841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21843 ac_cpp='$CPP $CPPFLAGS'
21844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21849 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21850 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21851 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21854 cat >>confdefs.h <<\_ACEOF
21855 #define HAVE_STD_ISNAN_IN_CMATH 1
21861 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21862 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21863 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21864 echo $ECHO_N "(cached) $ECHO_C" >&6
21867 ac_cpp='$CXXCPP $CPPFLAGS'
21868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21872 cat >conftest.$ac_ext <<_ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21879 int foo(float f) {return isinf(f);}
21881 rm -f conftest.$ac_objext
21882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21883 (eval $ac_compile) 2>conftest.er1
21885 grep -v '^ *+' conftest.er1 >conftest.err
21887 cat conftest.err >&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); } &&
21890 { ac_try='test -z "$ac_cxx_werror_flag"
21891 || test ! -s conftest.err'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; } &&
21897 { ac_try='test -s conftest.$ac_objext'
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }; then
21903 ac_cv_func_isinf_in_math_h=yes
21905 echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21908 ac_cv_func_isinf_in_math_h=no
21910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21912 ac_cpp='$CPP $CPPFLAGS'
21913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21918 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21919 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21920 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21923 cat >>confdefs.h <<\_ACEOF
21924 #define HAVE_ISINF_IN_MATH_H 1
21928 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21929 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21930 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
21934 ac_cpp='$CXXCPP $CPPFLAGS'
21935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21939 cat >conftest.$ac_ext <<_ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21946 int foo(float f) {return isinf(f);}
21948 rm -f conftest.$ac_objext
21949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21950 (eval $ac_compile) 2>conftest.er1
21952 grep -v '^ *+' conftest.er1 >conftest.err
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } &&
21957 { ac_try='test -z "$ac_cxx_werror_flag"
21958 || test ! -s conftest.err'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; } &&
21964 { ac_try='test -s conftest.$ac_objext'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 ac_cv_func_isinf_in_cmath=yes
21972 echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21975 ac_cv_func_isinf_in_cmath=no
21977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21979 ac_cpp='$CPP $CPPFLAGS'
21980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21985 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21986 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21987 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21990 cat >>confdefs.h <<\_ACEOF
21991 #define HAVE_ISINF_IN_CMATH 1
21995 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21996 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21997 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21998 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 ac_cpp='$CXXCPP $CPPFLAGS'
22002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22006 cat >conftest.$ac_ext <<_ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h. */
22013 using std::isinf; int foo(float f) {return isinf(f);}
22015 rm -f conftest.$ac_objext
22016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22017 (eval $ac_compile) 2>conftest.er1
22019 grep -v '^ *+' conftest.er1 >conftest.err
22021 cat conftest.err >&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } &&
22024 { ac_try='test -z "$ac_cxx_werror_flag"
22025 || test ! -s conftest.err'
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; } &&
22031 { ac_try='test -s conftest.$ac_objext'
22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; }; then
22037 ac_cv_func_std_isinf_in_cmath=yes
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22042 ac_cv_func_std_isinf_in_cmath=no
22044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22046 ac_cpp='$CPP $CPPFLAGS'
22047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22052 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22053 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22054 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22057 cat >>confdefs.h <<\_ACEOF
22058 #define HAVE_STD_ISINF_IN_CMATH 1
22062 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22063 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22064 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22065 echo $ECHO_N "(cached) $ECHO_C" >&6
22068 ac_cpp='$CXXCPP $CPPFLAGS'
22069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22073 cat >conftest.$ac_ext <<_ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h. */
22079 #include <ieeefp.h>
22080 int foo(float f) {return finite(f);}
22082 rm -f conftest.$ac_objext
22083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22084 (eval $ac_compile) 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } &&
22091 { ac_try='test -z "$ac_cxx_werror_flag"
22092 || test ! -s conftest.err'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest.$ac_objext'
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 ac_cv_func_finite_in_ieeefp_h=yes
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22109 ac_cv_func_finite_in_ieeefp_h=no
22111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22113 ac_cpp='$CPP $CPPFLAGS'
22114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22119 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22120 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22121 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22124 cat >>confdefs.h <<\_ACEOF
22125 #define HAVE_FINITE_IN_IEEEFP_H 1
22131 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22132 # for constant arguments. Useless!
22133 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22134 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22135 if test "${ac_cv_working_alloca_h+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include <alloca.h>
22148 char *p = (char *) alloca (2 * sizeof (int));
22153 rm -f conftest.$ac_objext conftest$ac_exeext
22154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22155 (eval $ac_link) 2>conftest.er1
22157 grep -v '^ *+' conftest.er1 >conftest.err
22159 cat conftest.err >&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); } &&
22162 { ac_try='test -z "$ac_c_werror_flag"
22163 || test ! -s conftest.err'
22164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165 (eval $ac_try) 2>&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; } &&
22169 { ac_try='test -s conftest$ac_exeext'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_working_alloca_h=yes
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 ac_cv_working_alloca_h=no
22182 rm -f conftest.err conftest.$ac_objext \
22183 conftest$ac_exeext conftest.$ac_ext
22185 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22186 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22187 if test $ac_cv_working_alloca_h = yes; then
22189 cat >>confdefs.h <<\_ACEOF
22190 #define HAVE_ALLOCA_H 1
22195 echo "$as_me:$LINENO: checking for alloca" >&5
22196 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22197 if test "${ac_cv_func_alloca_works+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 cat >conftest.$ac_ext <<_ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h. */
22207 # define alloca __builtin_alloca
22210 # include <malloc.h>
22211 # define alloca _alloca
22214 # include <alloca.h>
22219 # ifndef alloca /* predefined by HP cc +Olibcalls */
22230 char *p = (char *) alloca (1);
22235 rm -f conftest.$ac_objext conftest$ac_exeext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22237 (eval $ac_link) 2>conftest.er1
22239 grep -v '^ *+' conftest.er1 >conftest.err
22241 cat conftest.err >&5
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); } &&
22244 { ac_try='test -z "$ac_c_werror_flag"
22245 || test ! -s conftest.err'
22246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22247 (eval $ac_try) 2>&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; } &&
22251 { ac_try='test -s conftest$ac_exeext'
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; }; then
22257 ac_cv_func_alloca_works=yes
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 ac_cv_func_alloca_works=no
22264 rm -f conftest.err conftest.$ac_objext \
22265 conftest$ac_exeext conftest.$ac_ext
22267 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22268 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22270 if test $ac_cv_func_alloca_works = yes; then
22272 cat >>confdefs.h <<\_ACEOF
22273 #define HAVE_ALLOCA 1
22277 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22278 # that cause trouble. Some versions do not even contain alloca or
22279 # contain a buggy version. If you still want to use their alloca,
22280 # use ar to extract alloca.o from them instead of compiling alloca.c.
22282 ALLOCA=alloca.$ac_objext
22284 cat >>confdefs.h <<\_ACEOF
22289 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22290 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22291 if test "${ac_cv_os_cray+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22294 cat >conftest.$ac_ext <<_ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22300 #if defined(CRAY) && ! defined(CRAY2)
22307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22308 $EGREP "webecray" >/dev/null 2>&1; then
22316 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22317 echo "${ECHO_T}$ac_cv_os_cray" >&6
22318 if test $ac_cv_os_cray = yes; then
22319 for ac_func in _getb67 GETB67 getb67; do
22320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22321 echo "$as_me:$LINENO: checking for $ac_func" >&5
22322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22323 if eval "test \"\${$as_ac_var+set}\" = set"; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22326 cat >conftest.$ac_ext <<_ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22334 #define $ac_func innocuous_$ac_func
22336 /* System header to define __stub macros and hopefully few prototypes,
22337 which can conflict with char $ac_func (); below.
22338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22339 <limits.h> exists even on freestanding compilers. */
22342 # include <limits.h>
22344 # include <assert.h>
22349 /* Override any gcc2 internal prototype to avoid an error. */
22354 /* We use char because int might match the return type of a gcc2
22355 builtin and then its argument prototype would still apply. */
22357 /* The GNU C library defines this for functions which it implements
22358 to always fail with ENOSYS. Some functions are actually named
22359 something starting with __ and the normal name is an alias. */
22360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22363 char (*f) () = $ac_func;
22372 return f != $ac_func;
22377 rm -f conftest.$ac_objext conftest$ac_exeext
22378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22379 (eval $ac_link) 2>conftest.er1
22381 grep -v '^ *+' conftest.er1 >conftest.err
22383 cat conftest.err >&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); } &&
22386 { ac_try='test -z "$ac_c_werror_flag"
22387 || test ! -s conftest.err'
22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389 (eval $ac_try) 2>&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; } &&
22393 { ac_try='test -s conftest$ac_exeext'
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22399 eval "$as_ac_var=yes"
22401 echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22404 eval "$as_ac_var=no"
22406 rm -f conftest.err conftest.$ac_objext \
22407 conftest$ac_exeext conftest.$ac_ext
22409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22411 if test `eval echo '${'$as_ac_var'}'` = yes; then
22413 cat >>confdefs.h <<_ACEOF
22414 #define CRAY_STACKSEG_END $ac_func
22423 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22424 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22425 if test "${ac_cv_c_stack_direction+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 if test "$cross_compiling" = yes; then
22429 ac_cv_c_stack_direction=0
22431 cat >conftest.$ac_ext <<_ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22438 find_stack_direction ()
22440 static char *addr = 0;
22445 return find_stack_direction ();
22448 return (&dummy > addr) ? 1 : -1;
22454 exit (find_stack_direction () < 0);
22457 rm -f conftest$ac_exeext
22458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22459 (eval $ac_link) 2>&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; }; then
22468 ac_cv_c_stack_direction=1
22470 echo "$as_me: program exited with status $ac_status" >&5
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22474 ( exit $ac_status )
22475 ac_cv_c_stack_direction=-1
22477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22480 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22481 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22483 cat >>confdefs.h <<_ACEOF
22484 #define STACK_DIRECTION $ac_cv_c_stack_direction
22492 for ac_header in stdlib.h unistd.h
22494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22496 echo "$as_me:$LINENO: checking for $ac_header" >&5
22497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22499 echo $ECHO_N "(cached) $ECHO_C" >&6
22501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22504 # Is the header compilable?
22505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22507 cat >conftest.$ac_ext <<_ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22513 $ac_includes_default
22514 #include <$ac_header>
22516 rm -f conftest.$ac_objext
22517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22518 (eval $ac_compile) 2>conftest.er1
22520 grep -v '^ *+' conftest.er1 >conftest.err
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } &&
22525 { ac_try='test -z "$ac_c_werror_flag"
22526 || test ! -s conftest.err'
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; } &&
22532 { ac_try='test -s conftest.$ac_objext'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_header_compiler=yes
22540 echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22543 ac_header_compiler=no
22545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22547 echo "${ECHO_T}$ac_header_compiler" >&6
22549 # Is the header present?
22550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22552 cat >conftest.$ac_ext <<_ACEOF
22555 cat confdefs.h >>conftest.$ac_ext
22556 cat >>conftest.$ac_ext <<_ACEOF
22557 /* end confdefs.h. */
22558 #include <$ac_header>
22560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } >/dev/null; then
22568 if test -s conftest.err; then
22569 ac_cpp_err=$ac_c_preproc_warn_flag
22570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22577 if test -z "$ac_cpp_err"; then
22578 ac_header_preproc=yes
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22583 ac_header_preproc=no
22585 rm -f conftest.err conftest.$ac_ext
22586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22587 echo "${ECHO_T}$ac_header_preproc" >&6
22589 # So? What about this header?
22590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22596 ac_header_preproc=yes
22599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22613 ## ----------------------------------- ##
22614 ## Report this to llvmbugs@cs.uiuc.edu ##
22615 ## ----------------------------------- ##
22618 sed "s/^/$as_me: WARNING: /" >&2
22621 echo "$as_me:$LINENO: checking for $ac_header" >&5
22622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 eval "$as_ac_Header=\$ac_header_preproc"
22628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22633 cat >>confdefs.h <<_ACEOF
22634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22642 for ac_func in getpagesize
22644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22645 echo "$as_me:$LINENO: checking for $ac_func" >&5
22646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22647 if eval "test \"\${$as_ac_var+set}\" = set"; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22650 cat >conftest.$ac_ext <<_ACEOF
22653 cat confdefs.h >>conftest.$ac_ext
22654 cat >>conftest.$ac_ext <<_ACEOF
22655 /* end confdefs.h. */
22656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22658 #define $ac_func innocuous_$ac_func
22660 /* System header to define __stub macros and hopefully few prototypes,
22661 which can conflict with char $ac_func (); below.
22662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22663 <limits.h> exists even on freestanding compilers. */
22666 # include <limits.h>
22668 # include <assert.h>
22673 /* Override any gcc2 internal prototype to avoid an error. */
22678 /* We use char because int might match the return type of a gcc2
22679 builtin and then its argument prototype would still apply. */
22681 /* The GNU C library defines this for functions which it implements
22682 to always fail with ENOSYS. Some functions are actually named
22683 something starting with __ and the normal name is an alias. */
22684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22687 char (*f) () = $ac_func;
22696 return f != $ac_func;
22701 rm -f conftest.$ac_objext conftest$ac_exeext
22702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22703 (eval $ac_link) 2>conftest.er1
22705 grep -v '^ *+' conftest.er1 >conftest.err
22707 cat conftest.err >&5
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } &&
22710 { ac_try='test -z "$ac_c_werror_flag"
22711 || test ! -s conftest.err'
22712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713 (eval $ac_try) 2>&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); }; } &&
22717 { ac_try='test -s conftest$ac_exeext'
22718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719 (eval $ac_try) 2>&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); }; }; then
22723 eval "$as_ac_var=yes"
22725 echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22728 eval "$as_ac_var=no"
22730 rm -f conftest.err conftest.$ac_objext \
22731 conftest$ac_exeext conftest.$ac_ext
22733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22735 if test `eval echo '${'$as_ac_var'}'` = yes; then
22736 cat >>confdefs.h <<_ACEOF
22737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22743 echo "$as_me:$LINENO: checking for working mmap" >&5
22744 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22745 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22748 if test "$cross_compiling" = yes; then
22749 ac_cv_func_mmap_fixed_mapped=no
22751 cat >conftest.$ac_ext <<_ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22757 $ac_includes_default
22758 /* malloc might have been renamed as rpl_malloc. */
22761 /* Thanks to Mike Haertel and Jim Avera for this test.
22762 Here is a matrix of mmap possibilities:
22763 mmap private not fixed
22764 mmap private fixed at somewhere currently unmapped
22765 mmap private fixed at somewhere already mapped
22766 mmap shared not fixed
22767 mmap shared fixed at somewhere currently unmapped
22768 mmap shared fixed at somewhere already mapped
22769 For private mappings, we should verify that changes cannot be read()
22770 back from the file, nor mmap's back from the file at a different
22771 address. (There have been systems where private was not correctly
22772 implemented like the infamous i386 svr4.0, and systems where the
22773 VM page cache was not coherent with the file system buffer cache
22774 like early versions of FreeBSD and possibly contemporary NetBSD.)
22775 For shared mappings, we should conversely verify that changes get
22776 propagated back to all the places they're supposed to be.
22778 Grep wants private fixed already mapped.
22779 The main things grep needs to know about mmap are:
22780 * does it exist and is it safe to write into the mmap'd area
22781 * how to use it (BSD variants) */
22784 #include <sys/mman.h>
22786 #if !STDC_HEADERS && !HAVE_STDLIB_H
22790 /* This mess was copied from the GNU getpagesize.h. */
22791 #if !HAVE_GETPAGESIZE
22792 /* Assume that all systems that can run configure have sys/param.h. */
22793 # if !HAVE_SYS_PARAM_H
22794 # define HAVE_SYS_PARAM_H 1
22797 # ifdef _SC_PAGESIZE
22798 # define getpagesize() sysconf(_SC_PAGESIZE)
22799 # else /* no _SC_PAGESIZE */
22800 # if HAVE_SYS_PARAM_H
22801 # include <sys/param.h>
22802 # ifdef EXEC_PAGESIZE
22803 # define getpagesize() EXEC_PAGESIZE
22804 # else /* no EXEC_PAGESIZE */
22806 # define getpagesize() NBPG * CLSIZE
22809 # endif /* no CLSIZE */
22810 # else /* no NBPG */
22812 # define getpagesize() NBPC
22813 # else /* no NBPC */
22815 # define getpagesize() PAGESIZE
22816 # endif /* PAGESIZE */
22817 # endif /* no NBPC */
22818 # endif /* no NBPG */
22819 # endif /* no EXEC_PAGESIZE */
22820 # else /* no HAVE_SYS_PARAM_H */
22821 # define getpagesize() 8192 /* punt totally */
22822 # endif /* no HAVE_SYS_PARAM_H */
22823 # endif /* no _SC_PAGESIZE */
22825 #endif /* no HAVE_GETPAGESIZE */
22830 char *data, *data2, *data3;
22834 pagesize = getpagesize ();
22836 /* First, make a file with some known garbage in it. */
22837 data = (char *) malloc (pagesize);
22840 for (i = 0; i < pagesize; ++i)
22841 *(data + i) = rand ();
22843 fd = creat ("conftest.mmap", 0600);
22846 if (write (fd, data, pagesize) != pagesize)
22850 /* Next, try to mmap the file at a fixed address which already has
22851 something else allocated at it. If we can, also make sure that
22852 we see the same garbage. */
22853 fd = open ("conftest.mmap", O_RDWR);
22856 data2 = (char *) malloc (2 * pagesize);
22859 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22860 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22861 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22863 for (i = 0; i < pagesize; ++i)
22864 if (*(data + i) != *(data2 + i))
22867 /* Finally, make sure that changes to the mapped area do not
22868 percolate back to the file as seen by read(). (This is a bug on
22869 some variants of i386 svr4.0.) */
22870 for (i = 0; i < pagesize; ++i)
22871 *(data2 + i) = *(data2 + i) + 1;
22872 data3 = (char *) malloc (pagesize);
22875 if (read (fd, data3, pagesize) != pagesize)
22877 for (i = 0; i < pagesize; ++i)
22878 if (*(data + i) != *(data3 + i))
22884 rm -f conftest$ac_exeext
22885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22886 (eval $ac_link) 2>&5
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891 (eval $ac_try) 2>&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 ac_cv_func_mmap_fixed_mapped=yes
22897 echo "$as_me: program exited with status $ac_status" >&5
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 ( exit $ac_status )
22902 ac_cv_func_mmap_fixed_mapped=no
22904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22907 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22908 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22909 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22911 cat >>confdefs.h <<\_ACEOF
22912 #define HAVE_MMAP 1
22916 rm -f conftest.mmap
22918 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22920 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22921 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22923 echo "$as_me:$LINENO: checking for mmap of files" >&5
22924 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22925 if test "${ac_cv_func_mmap_file+set}" = set; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
22931 ac_cpp='$CPP $CPPFLAGS'
22932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22936 if test "$cross_compiling" = yes; then
22937 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22938 See \`config.log' for more details." >&5
22939 echo "$as_me: error: cannot run test program while cross compiling
22940 See \`config.log' for more details." >&2;}
22941 { (exit 1); exit 1; }; }
22943 cat >conftest.$ac_ext <<_ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22950 #ifdef HAVE_SYS_TYPES_H
22951 #include <sys/types.h>
22954 #ifdef HAVE_SYS_MMAN_H
22955 #include <sys/mman.h>
22958 #ifdef HAVE_FCNTL_H
22964 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22966 rm -f conftest$ac_exeext
22967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22968 (eval $ac_link) 2>&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 ac_cv_func_mmap_file=yes
22979 echo "$as_me: program exited with status $ac_status" >&5
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22983 ( exit $ac_status )
22984 ac_cv_func_mmap_file=no
22986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22989 ac_cpp='$CPP $CPPFLAGS'
22990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22996 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22997 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22998 if test "$ac_cv_func_mmap_file" = yes; then
23000 cat >>confdefs.h <<\_ACEOF
23001 #define HAVE_MMAP_FILE
23008 if test "$ac_cv_func_mmap_file" = "no"
23010 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23011 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23013 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23014 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23015 if test "${ac_cv_header_mmap_anon+set}" = set; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 ac_cpp='$CPP $CPPFLAGS'
23022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23026 cat >conftest.$ac_ext <<_ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h. */
23032 #include <sys/mman.h>
23033 #include <unistd.h>
23038 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23043 rm -f conftest.$ac_objext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23045 (eval $ac_compile) 2>conftest.er1
23047 grep -v '^ *+' conftest.er1 >conftest.err
23049 cat conftest.err >&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } &&
23052 { ac_try='test -z "$ac_c_werror_flag"
23053 || test ! -s conftest.err'
23054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055 (eval $ac_try) 2>&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); }; } &&
23059 { ac_try='test -s conftest.$ac_objext'
23060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061 (eval $ac_try) 2>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; }; then
23065 ac_cv_header_mmap_anon=yes
23067 echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23070 ac_cv_header_mmap_anon=no
23072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23074 ac_cpp='$CPP $CPPFLAGS'
23075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23081 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23082 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23083 if test "$ac_cv_header_mmap_anon" = yes; then
23085 cat >>confdefs.h <<\_ACEOF
23086 #define HAVE_MMAP_ANONYMOUS
23091 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23092 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23093 if test "${ac_cv_type_signal+set}" = set; then
23094 echo $ECHO_N "(cached) $ECHO_C" >&6
23096 cat >conftest.$ac_ext <<_ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h. */
23102 #include <sys/types.h>
23103 #include <signal.h>
23108 extern "C" void (*signal (int, void (*)(int)))(int);
23110 void (*signal ()) ();
23121 rm -f conftest.$ac_objext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23123 (eval $ac_compile) 2>conftest.er1
23125 grep -v '^ *+' conftest.er1 >conftest.err
23127 cat conftest.err >&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } &&
23130 { ac_try='test -z "$ac_c_werror_flag"
23131 || test ! -s conftest.err'
23132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133 (eval $ac_try) 2>&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); }; } &&
23137 { ac_try='test -s conftest.$ac_objext'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; }; then
23143 ac_cv_type_signal=void
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23148 ac_cv_type_signal=int
23150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23152 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23153 echo "${ECHO_T}$ac_cv_type_signal" >&6
23155 cat >>confdefs.h <<_ACEOF
23156 #define RETSIGTYPE $ac_cv_type_signal
23169 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23172 echo "$as_me:$LINENO: checking for $ac_func" >&5
23173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23174 if eval "test \"\${$as_ac_var+set}\" = set"; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23177 cat >conftest.$ac_ext <<_ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h. */
23183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23185 #define $ac_func innocuous_$ac_func
23187 /* System header to define __stub macros and hopefully few prototypes,
23188 which can conflict with char $ac_func (); below.
23189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23190 <limits.h> exists even on freestanding compilers. */
23193 # include <limits.h>
23195 # include <assert.h>
23200 /* Override any gcc2 internal prototype to avoid an error. */
23205 /* We use char because int might match the return type of a gcc2
23206 builtin and then its argument prototype would still apply. */
23208 /* The GNU C library defines this for functions which it implements
23209 to always fail with ENOSYS. Some functions are actually named
23210 something starting with __ and the normal name is an alias. */
23211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23214 char (*f) () = $ac_func;
23223 return f != $ac_func;
23228 rm -f conftest.$ac_objext conftest$ac_exeext
23229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23230 (eval $ac_link) 2>conftest.er1
23232 grep -v '^ *+' conftest.er1 >conftest.err
23234 cat conftest.err >&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } &&
23237 { ac_try='test -z "$ac_c_werror_flag"
23238 || test ! -s conftest.err'
23239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240 (eval $ac_try) 2>&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; } &&
23244 { ac_try='test -s conftest$ac_exeext'
23245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23246 (eval $ac_try) 2>&5
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); }; }; then
23250 eval "$as_ac_var=yes"
23252 echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23255 eval "$as_ac_var=no"
23257 rm -f conftest.err conftest.$ac_objext \
23258 conftest$ac_exeext conftest.$ac_ext
23260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23262 if test `eval echo '${'$as_ac_var'}'` = yes; then
23263 cat >>confdefs.h <<_ACEOF
23264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23270 echo "$as_me:$LINENO: checking for mprotect" >&5
23271 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23272 if test "${ac_cv_func_mprotect+set}" = set; then
23273 echo $ECHO_N "(cached) $ECHO_C" >&6
23275 cat >conftest.$ac_ext <<_ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23281 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23283 #define mprotect innocuous_mprotect
23285 /* System header to define __stub macros and hopefully few prototypes,
23286 which can conflict with char mprotect (); below.
23287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23288 <limits.h> exists even on freestanding compilers. */
23291 # include <limits.h>
23293 # include <assert.h>
23298 /* Override any gcc2 internal prototype to avoid an error. */
23303 /* We use char because int might match the return type of a gcc2
23304 builtin and then its argument prototype would still apply. */
23306 /* The GNU C library defines this for functions which it implements
23307 to always fail with ENOSYS. Some functions are actually named
23308 something starting with __ and the normal name is an alias. */
23309 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23312 char (*f) () = mprotect;
23321 return f != mprotect;
23326 rm -f conftest.$ac_objext conftest$ac_exeext
23327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23328 (eval $ac_link) 2>conftest.er1
23330 grep -v '^ *+' conftest.er1 >conftest.err
23332 cat conftest.err >&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } &&
23335 { ac_try='test -z "$ac_c_werror_flag"
23336 || test ! -s conftest.err'
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; } &&
23342 { ac_try='test -s conftest$ac_exeext'
23343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 ac_cv_func_mprotect=yes
23350 echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23353 ac_cv_func_mprotect=no
23355 rm -f conftest.err conftest.$ac_objext \
23356 conftest$ac_exeext conftest.$ac_ext
23358 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23359 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23360 if test $ac_cv_func_mprotect = yes; then
23363 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23364 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23365 { (exit 1); exit 1; }; }
23370 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23371 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23375 ac_cpp='$CPP $CPPFLAGS'
23376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23380 oldcflags="$CFLAGS"
23381 CFLAGS="$CFLAGS -Wl,-R."
23382 cat >conftest.$ac_ext <<_ACEOF
23383 int main() { return 0; }
23385 rm -f conftest.$ac_objext conftest$ac_exeext
23386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23387 (eval $ac_link) 2>conftest.er1
23389 grep -v '^ *+' conftest.er1 >conftest.err
23391 cat conftest.err >&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } &&
23394 { ac_try='test -z "$ac_c_werror_flag"
23395 || test ! -s conftest.err'
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; } &&
23401 { ac_try='test -s conftest$ac_exeext'
23402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403 (eval $ac_try) 2>&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); }; }; then
23407 ac_cv_link_use_r=yes
23409 echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23412 ac_cv_link_use_r=no
23414 rm -f conftest.err conftest.$ac_objext \
23415 conftest$ac_exeext conftest.$ac_ext
23416 CFLAGS="$oldcflags"
23418 ac_cpp='$CPP $CPPFLAGS'
23419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23423 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23424 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23425 if test "$ac_cv_link_use_r" = yes
23428 cat >>confdefs.h <<\_ACEOF
23429 #define HAVE_LINK_R 1
23435 # Check whether --enable-optimized or --disable-optimized was given.
23436 if test "${enable_optimized+set}" = set; then
23437 enableval="$enable_optimized"
23442 if test ${enableval} = "no"
23447 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23454 # Check whether --enable-spec95 or --disable-spec95 was given.
23455 if test "${enable_spec95+set}" = set; then
23456 enableval="$enable_spec95"
23457 checkresult=$enableval
23461 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23462 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23463 case "$checkresult" in
23465 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23466 if test -d "$defaultdir"
23468 SPEC95_ROOT=$defaultdir
23470 USE_SPEC95=USE_SPEC95=1
23472 checkresult="yes, found in $defaultdir"
23482 *) if test -d "$checkresult"
23484 SPEC95_ROOT="$checkresult"
23486 USE_SPEC95=USE_SPEC95=1
23488 checkresult="yes, in $checkresult"
23492 checkresult="no, not found in $checkresult"
23496 echo "$as_me:$LINENO: result: $checkresult" >&5
23497 echo "${ECHO_T}$checkresult" >&6
23501 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23502 if test "${enable_spec2000+set}" = set; then
23503 enableval="$enable_spec2000"
23504 checkresult=$enableval
23508 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23509 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23510 case "$checkresult" in
23512 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23513 if test -d "$defaultdir"
23515 SPEC2000_ROOT=$defaultdir
23517 USE_SPEC2000=USE_SPEC2000=1
23519 checkresult="yes, found in $defaultdir"
23529 *) if test -d "$checkresult"
23531 SPEC2000_ROOT="$checkresult"
23533 USE_SPEC2000=USE_SPEC2000=1
23535 checkresult="yes, in $checkresult"
23539 checkresult="no, not found in $checkresult"
23543 echo "$as_me:$LINENO: result: $checkresult" >&5
23544 echo "${ECHO_T}$checkresult" >&6
23548 # Check whether --enable-povray or --disable-povray was given.
23549 if test "${enable_povray+set}" = set; then
23550 enableval="$enable_povray"
23551 checkresult=$enableval
23555 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23556 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23557 case "$checkresult" in
23559 defaultdir=/home/vadve/shared/benchmarks/povray31
23560 if test -d "$defaultdir"
23562 POVRAY_ROOT=$defaultdir
23564 USE_POVRAY=USE_POVRAY=1
23566 checkresult="yes, found in $defaultdir"
23576 *) if test -d "$checkresult"
23578 POVRAY_ROOT="$checkresult"
23580 USE_POVRAY=USE_POVRAY=1
23582 checkresult="yes, in $checkresult"
23586 checkresult="no, not found in $checkresult"
23590 echo "$as_me:$LINENO: result: $checkresult" >&5
23591 echo "${ECHO_T}$checkresult" >&6
23595 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23596 if test "${enable_precompiled_bytecode+set}" = set; then
23597 enableval="$enable_precompiled_bytecode"
23602 if test ${enableval} = "no"
23607 UPB=USE_PRECOMPILED_BYTECODE=1
23611 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23612 if test "${enable_llc_diffs+set}" = set; then
23613 enableval="$enable_llc_diffs"
23618 if test ${enableval} = "no"
23620 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23627 # Check whether --enable-jit or --disable-jit was given.
23628 if test "${enable_jit+set}" = set; then
23629 enableval="$enable_jit"
23634 if test ${enableval} = "no"
23641 JIT=TARGET_HAS_JIT=1
23645 JIT=TARGET_HAS_JIT=1
23656 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23657 if test "${with_llvmgccdir+set}" = set; then
23658 withval="$with_llvmgccdir"
23659 LLVMGCCDIR=$withval
23662 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23663 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23665 if test -d "$LLVMGCCDIR"
23667 if test -x "$LLVMGCCDIR/bin/gcc"
23669 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23673 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23674 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23675 if test "$LLVM_GCC_CHECK" = "no"
23679 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23680 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23682 if test -x "$LLVM_GCC_CHECK"
23684 cp /dev/null conftest.c
23685 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23691 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23692 LLVMCC1=$llvmcc1path
23694 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23695 LLVMCC1PLUS=$llvmcc1pluspath
23698 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23699 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23700 if test "$LLVM_GCC_SANE" = "no"
23706 # Check whether --with-bcrepos or --without-bcrepos was given.
23707 if test "${with_bcrepos+set}" = set; then
23708 withval="$with_bcrepos"
23712 BCR=/home/vadve/lattner/LLVMPrograms
23717 # Check whether --with-papi or --without-papi was given.
23718 if test "${with_papi+set}" = set; then
23719 withval="$with_papi"
23723 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23727 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23728 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23729 eval "SHLIBEXT=$shrext"
23730 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23731 echo "${ECHO_T}$SHLIBEXT" >&6
23735 cat >>confdefs.h <<_ACEOF
23736 #define SHLIBEXT "$SHLIBEXT"
23740 # Translate the various configuration directories and other basic
23741 # information into substitutions that will end up in config.h.in so
23742 # that these configured values can be hard-wired into a program.
23743 eval LLVM_PREFIX="${prefix}";
23744 eval LLVM_BINDIR="${prefix}/bin";
23745 eval LLVM_LIBDIR="${prefix}/lib";
23746 eval LLVM_DATADIR="${prefix}/data";
23747 eval LLVM_DOCSDIR="${prefix}/docs";
23748 eval LLVM_ETCDIR="${prefix}/etc";
23749 eval LLVM_INCLUDEDIR="${prefix}/include";
23750 eval LLVM_INFODIR="${prefix}/info";
23751 eval LLVM_MANDIR="${prefix}/man";
23752 LLVM_CONFIGTIME=`date`
23764 cat >>confdefs.h <<_ACEOF
23765 #define LLVM_PREFIX "$LLVM_PREFIX"
23769 cat >>confdefs.h <<_ACEOF
23770 #define LLVM_BINDIR "$LLVM_BINDIR"
23774 cat >>confdefs.h <<_ACEOF
23775 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23779 cat >>confdefs.h <<_ACEOF
23780 #define LLVM_DATADIR "$LLVM_DATADIR"
23784 cat >>confdefs.h <<_ACEOF
23785 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23789 cat >>confdefs.h <<_ACEOF
23790 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23794 cat >>confdefs.h <<_ACEOF
23795 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23799 cat >>confdefs.h <<_ACEOF
23800 #define LLVM_INFODIR "$LLVM_INFODIR"
23804 cat >>confdefs.h <<_ACEOF
23805 #define LLVM_MANDIR "$LLVM_MANDIR"
23809 cat >>confdefs.h <<_ACEOF
23810 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23814 cat >confcache <<\_ACEOF
23815 # This file is a shell script that caches the results of configure
23816 # tests run on this system so they can be shared between configure
23817 # scripts and configure runs, see configure's option --config-cache.
23818 # It is not useful on other systems. If it contains results you don't
23819 # want to keep, you may remove or edit it.
23821 # config.status only pays attention to the cache file if you give it
23822 # the --recheck option to rerun configure.
23824 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23825 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23826 # following values.
23830 # The following way of writing the cache mishandles newlines in values,
23831 # but we know of no workaround that is simple, portable, and efficient.
23832 # So, don't put newlines in cache variables' values.
23833 # Ultrix sh set writes to stderr and can't be redirected directly,
23834 # and sets the high bit in the cache file unless we assign to the vars.
23837 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23839 # `set' does not quote correctly, so add quotes (double-quote
23840 # substitution turns \\\\ into \\, and sed turns \\ into \).
23843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23846 # `set' quotes correctly as required by POSIX, so do not add quotes.
23848 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23857 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23859 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23860 if test -w $cache_file; then
23861 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23862 cat confcache >$cache_file
23864 echo "not updating unwritable cache $cache_file"
23869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23870 # Let make expand exec_prefix.
23871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23873 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23874 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23875 # trailing colons and then remove the whole line if VPATH becomes empty
23876 # (actually we leave an empty line to preserve line numbers).
23877 if test "x$srcdir" = x.; then
23878 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23879 s/:*\$(srcdir):*/:/;
23880 s/:*\${srcdir}:*/:/;
23882 s/^\([^=]*=[ ]*\):*/\1/;
23888 DEFS=-DHAVE_CONFIG_H
23892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23893 # 1. Remove the extension, and $U if already installed.
23894 ac_i=`echo "$ac_i" |
23895 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23897 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23898 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23900 LIBOBJS=$ac_libobjs
23902 LTLIBOBJS=$ac_ltlibobjs
23906 : ${CONFIG_STATUS=./config.status}
23907 ac_clean_files_save=$ac_clean_files
23908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23909 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23910 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23911 cat >$CONFIG_STATUS <<_ACEOF
23913 # Generated by $as_me.
23914 # Run this file to recreate the current configuration.
23915 # Compiler output produced by configure, useful for debugging
23916 # configure, is in config.log if it exists.
23919 ac_cs_recheck=false
23921 SHELL=\${CONFIG_SHELL-$SHELL}
23924 cat >>$CONFIG_STATUS <<\_ACEOF
23925 ## --------------------- ##
23926 ## M4sh Initialization. ##
23927 ## --------------------- ##
23929 # Be Bourne compatible
23930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23933 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23934 # is contrary to our usage. Disable this feature.
23935 alias -g '${1+"$@"}'='"$@"'
23936 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23939 DUALCASE=1; export DUALCASE # for MKS sh
23941 # Support unset when possible.
23942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23949 # Work around bugs in pre-3.0 UWIN ksh.
23950 $as_unset ENV MAIL MAILPATH
23957 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23958 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23959 LC_TELEPHONE LC_TIME
23961 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23962 eval $as_var=C; export $as_var
23968 # Required to use basename.
23969 if expr a : '\(a\)' >/dev/null 2>&1; then
23975 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23976 as_basename=basename
23982 # Name of the executable.
23983 as_me=`$as_basename "$0" ||
23984 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23985 X"$0" : 'X\(//\)$' \| \
23986 X"$0" : 'X\(/\)$' \| \
23987 . : '\(.\)' 2>/dev/null ||
23989 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23990 /^X\/\(\/\/\)$/{ s//\1/; q; }
23991 /^X\/\(\/\).*/{ s//\1/; q; }
23995 # PATH needs CR, and LINENO needs CR and PATH.
23996 # Avoid depending upon Character Ranges.
23997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24000 as_cr_digits='0123456789'
24001 as_cr_alnum=$as_cr_Letters$as_cr_digits
24003 # The user is always right.
24004 if test "${PATH_SEPARATOR+set}" != set; then
24005 echo "#! /bin/sh" >conf$$.sh
24006 echo "exit 0" >>conf$$.sh
24008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24017 as_lineno_1=$LINENO
24018 as_lineno_2=$LINENO
24019 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24020 test "x$as_lineno_1" != "x$as_lineno_2" &&
24021 test "x$as_lineno_3" = "x$as_lineno_2" || {
24022 # Find who we are. Look in the path if we contain no path at all
24025 *[\\/]* ) as_myself=$0 ;;
24026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24027 for as_dir in $PATH
24030 test -z "$as_dir" && as_dir=.
24031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24036 # We did not find ourselves, most probably we were run as `sh COMMAND'
24037 # in which case we are not to be found in the path.
24038 if test "x$as_myself" = x; then
24041 if test ! -f "$as_myself"; then
24042 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24043 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24044 { (exit 1); exit 1; }; }
24046 case $CONFIG_SHELL in
24048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24049 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24052 test -z "$as_dir" && as_dir=.
24053 for as_base in sh bash ksh sh5; do
24056 if ("$as_dir/$as_base" -c '
24057 as_lineno_1=$LINENO
24058 as_lineno_2=$LINENO
24059 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24060 test "x$as_lineno_1" != "x$as_lineno_2" &&
24061 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24062 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24063 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24064 CONFIG_SHELL=$as_dir/$as_base
24065 export CONFIG_SHELL
24066 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24075 # uniformly replaced by the line number. The first 'sed' inserts a
24076 # line-number line before each line; the second 'sed' does the real
24077 # work. The second script uses 'N' to pair each line-number line
24078 # with the numbered line, and appends trailing '-' during
24079 # substitution so that $LINENO is not a special case at line end.
24080 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24081 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24082 sed '=' <$as_myself |
24087 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24090 s,^['$as_cr_digits']*\n,,
24091 ' >$as_me.lineno &&
24092 chmod +x $as_me.lineno ||
24093 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24094 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24095 { (exit 1); exit 1; }; }
24097 # Don't try to exec as it changes $[0], causing all sort of problems
24098 # (the dirname of $[0] is not the place where we might find the
24099 # original and so on. Autoconf is especially sensible to this).
24101 # Exit status is that of the last command.
24106 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24107 *c*,-n*) ECHO_N= ECHO_C='
24109 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24110 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24113 if expr a : '\(a\)' >/dev/null 2>&1; then
24119 rm -f conf$$ conf$$.exe conf$$.file
24121 if ln -s conf$$.file conf$$ 2>/dev/null; then
24122 # We could just check for DJGPP; but this test a) works b) is more generic
24123 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24124 if test -f conf$$.exe; then
24125 # Don't use ln at all; we don't have any links
24130 elif ln conf$$.file conf$$ 2>/dev/null; then
24135 rm -f conf$$ conf$$.exe conf$$.file
24137 if mkdir -p . 2>/dev/null; then
24140 test -d ./-p && rmdir ./-p
24144 as_executable_p="test -f"
24146 # Sed expression to map a string onto a valid CPP name.
24147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24149 # Sed expression to map a string onto a valid variable name.
24150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24154 # We need space, tab and new line, in precisely that order.
24164 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24165 # report actual input values of CONFIG_FILES etc. instead of their
24166 # values after options handling. Logging --version etc. is OK.
24170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24171 ## Running $as_me. ##
24176 This file was extended by LLVM $as_me 1.4, which was
24177 generated by GNU Autoconf 2.59. Invocation command line was
24179 CONFIG_FILES = $CONFIG_FILES
24180 CONFIG_HEADERS = $CONFIG_HEADERS
24181 CONFIG_LINKS = $CONFIG_LINKS
24182 CONFIG_COMMANDS = $CONFIG_COMMANDS
24186 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24190 # Files that config.status was made for.
24191 if test -n "$ac_config_files"; then
24192 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24195 if test -n "$ac_config_headers"; then
24196 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24199 if test -n "$ac_config_links"; then
24200 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24203 if test -n "$ac_config_commands"; then
24204 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24207 cat >>$CONFIG_STATUS <<\_ACEOF
24210 \`$as_me' instantiates files from templates according to the
24211 current configuration.
24213 Usage: $0 [OPTIONS] [FILE]...
24215 -h, --help print this help, then exit
24216 -V, --version print version number, then exit
24217 -q, --quiet do not print progress messages
24218 -d, --debug don't remove temporary files
24219 --recheck update $as_me by reconfiguring in the same conditions
24220 --file=FILE[:TEMPLATE]
24221 instantiate the configuration file FILE
24222 --header=FILE[:TEMPLATE]
24223 instantiate the configuration header FILE
24225 Configuration files:
24228 Configuration headers:
24231 Configuration commands:
24234 Report bugs to <bug-autoconf@gnu.org>."
24237 cat >>$CONFIG_STATUS <<_ACEOF
24239 LLVM config.status 1.4
24240 configured by $0, generated by GNU Autoconf 2.59,
24241 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24243 Copyright (C) 2003 Free Software Foundation, Inc.
24244 This config.status script is free software; the Free Software Foundation
24245 gives unlimited permission to copy, distribute and modify it."
24250 cat >>$CONFIG_STATUS <<\_ACEOF
24251 # If no file are specified by the user, then we need to provide default
24252 # value. By we need to know if files were specified by the user.
24258 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24259 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24267 *) # This is not an option, so the user has probably given explicit
24270 ac_need_defaults=false;;
24274 # Handling of the options.
24276 cat >>$CONFIG_STATUS <<\_ACEOF
24277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24279 --version | --vers* | -V )
24280 echo "$ac_cs_version"; exit 0 ;;
24282 # Conflict between --help and --header
24283 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24284 Try \`$0 --help' for more information." >&5
24285 echo "$as_me: error: ambiguous option: $1
24286 Try \`$0 --help' for more information." >&2;}
24287 { (exit 1); exit 1; }; };;
24288 --help | --hel | -h )
24289 echo "$ac_cs_usage"; exit 0 ;;
24290 --debug | --d* | -d )
24292 --file | --fil | --fi | --f )
24294 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24295 ac_need_defaults=false;;
24296 --header | --heade | --head | --hea )
24298 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24299 ac_need_defaults=false;;
24300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24304 # This is an error.
24305 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24306 Try \`$0 --help' for more information." >&5
24307 echo "$as_me: error: unrecognized option: $1
24308 Try \`$0 --help' for more information." >&2;}
24309 { (exit 1); exit 1; }; } ;;
24311 *) ac_config_targets="$ac_config_targets $1" ;;
24317 ac_configure_extra_args=
24319 if $ac_cs_silent; then
24321 ac_configure_extra_args="$ac_configure_extra_args --silent"
24325 cat >>$CONFIG_STATUS <<_ACEOF
24326 if \$ac_cs_recheck; then
24327 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24328 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24333 cat >>$CONFIG_STATUS <<_ACEOF
24335 # INIT-COMMANDS section.
24338 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24339 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24340 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24341 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24342 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24343 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24344 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24345 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24346 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24347 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24348 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24349 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24350 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24351 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24352 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24353 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24354 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24355 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24356 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24357 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24358 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24359 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24360 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24363 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24386 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24387 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24388 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24395 for ac_config_target in $ac_config_targets
24397 case "$ac_config_target" in
24398 # Handling of arguments.
24399 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24400 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24401 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
24402 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24403 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
24404 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
24405 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24406 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24407 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24408 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24409 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24410 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24411 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24412 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24413 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24414 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24415 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24416 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24417 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24418 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24419 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24420 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24421 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24422 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24423 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24424 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24425 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24426 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24427 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24428 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24429 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24430 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24431 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24432 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24433 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24434 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24435 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24436 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24437 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24438 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24439 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24440 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24441 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24442 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24443 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24444 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24445 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24446 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24447 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24448 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24449 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24450 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24451 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24452 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24453 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24454 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24455 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24456 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24457 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24458 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24459 { (exit 1); exit 1; }; };;
24463 # If the user did not use the arguments to specify the items to instantiate,
24464 # then the envvar interface is used. Set only those that are not.
24465 # We use the long form for the default assignment because of an extremely
24466 # bizarre bug on SunOS 4.1.3.
24467 if $ac_need_defaults; then
24468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24469 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24473 # Have a temporary directory for convenience. Make it in the build tree
24474 # simply because there is no reason to put it here, and in addition,
24475 # creating and moving files from /tmp can sometimes cause problems.
24476 # Create a temporary directory, and hook for its removal unless debugging.
24479 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24480 trap '{ (exit 1); exit 1; }' 1 2 13 15
24483 # Create a (secure) tmp directory for tmp files.
24486 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24487 test -n "$tmp" && test -d "$tmp"
24490 tmp=./confstat$$-$RANDOM
24491 (umask 077 && mkdir $tmp)
24494 echo "$me: cannot create a temporary directory in ." >&2
24495 { (exit 1); exit 1; }
24500 cat >>$CONFIG_STATUS <<_ACEOF
24503 # CONFIG_FILES section.
24506 # No need to generate the scripts if there are no CONFIG_FILES.
24507 # This happens for instance when ./config.status config.h
24508 if test -n "\$CONFIG_FILES"; then
24509 # Protect against being on the right side of a sed subst in config.status.
24510 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24511 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24512 s,@SHELL@,$SHELL,;t t
24513 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24514 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24515 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24516 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24517 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24518 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24519 s,@exec_prefix@,$exec_prefix,;t t
24520 s,@prefix@,$prefix,;t t
24521 s,@program_transform_name@,$program_transform_name,;t t
24522 s,@bindir@,$bindir,;t t
24523 s,@sbindir@,$sbindir,;t t
24524 s,@libexecdir@,$libexecdir,;t t
24525 s,@datadir@,$datadir,;t t
24526 s,@sysconfdir@,$sysconfdir,;t t
24527 s,@sharedstatedir@,$sharedstatedir,;t t
24528 s,@localstatedir@,$localstatedir,;t t
24529 s,@libdir@,$libdir,;t t
24530 s,@includedir@,$includedir,;t t
24531 s,@oldincludedir@,$oldincludedir,;t t
24532 s,@infodir@,$infodir,;t t
24533 s,@mandir@,$mandir,;t t
24534 s,@build_alias@,$build_alias,;t t
24535 s,@host_alias@,$host_alias,;t t
24536 s,@target_alias@,$target_alias,;t t
24537 s,@DEFS@,$DEFS,;t t
24538 s,@ECHO_C@,$ECHO_C,;t t
24539 s,@ECHO_N@,$ECHO_N,;t t
24540 s,@ECHO_T@,$ECHO_T,;t t
24541 s,@LIBS@,$LIBS,;t t
24542 s,@subdirs@,$subdirs,;t t
24543 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24544 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24545 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24546 s,@build@,$build,;t t
24547 s,@build_cpu@,$build_cpu,;t t
24548 s,@build_vendor@,$build_vendor,;t t
24549 s,@build_os@,$build_os,;t t
24550 s,@host@,$host,;t t
24551 s,@host_cpu@,$host_cpu,;t t
24552 s,@host_vendor@,$host_vendor,;t t
24553 s,@host_os@,$host_os,;t t
24554 s,@target@,$target,;t t
24555 s,@target_cpu@,$target_cpu,;t t
24556 s,@target_vendor@,$target_vendor,;t t
24557 s,@target_os@,$target_os,;t t
24559 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24560 s,@ARCH@,$ARCH,;t t
24562 s,@CXXFLAGS@,$CXXFLAGS,;t t
24563 s,@LDFLAGS@,$LDFLAGS,;t t
24564 s,@CPPFLAGS@,$CPPFLAGS,;t t
24565 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24566 s,@EXEEXT@,$EXEEXT,;t t
24567 s,@OBJEXT@,$OBJEXT,;t t
24569 s,@CFLAGS@,$CFLAGS,;t t
24570 s,@ac_ct_CC@,$ac_ct_CC,;t t
24572 s,@ifGNUmake@,$ifGNUmake,;t t
24574 s,@LEXLIB@,$LEXLIB,;t t
24575 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24576 s,@YACC@,$YACC,;t t
24577 s,@BISON@,$BISON,;t t
24578 s,@EGREP@,$EGREP,;t t
24579 s,@LN_S@,$LN_S,;t t
24580 s,@ECHO@,$ECHO,;t t
24582 s,@ac_ct_AR@,$ac_ct_AR,;t t
24583 s,@RANLIB@,$RANLIB,;t t
24584 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24585 s,@STRIP@,$STRIP,;t t
24586 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24587 s,@CXXCPP@,$CXXCPP,;t t
24589 s,@FFLAGS@,$FFLAGS,;t t
24590 s,@ac_ct_F77@,$ac_ct_F77,;t t
24591 s,@LIBTOOL@,$LIBTOOL,;t t
24593 s,@ETAGS@,$ETAGS,;t t
24594 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24595 s,@PYTHON@,$PYTHON,;t t
24596 s,@QMTEST@,$QMTEST,;t t
24597 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24598 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24599 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24600 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24601 s,@ENDIAN@,$ENDIAN,;t t
24602 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24603 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24604 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24605 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24606 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24607 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24608 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24609 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24610 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24611 s,@ALLOCA@,$ALLOCA,;t t
24612 s,@MMAP_FILE@,$MMAP_FILE,;t t
24613 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24614 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24615 s,@USE_SPEC95@,$USE_SPEC95,;t t
24616 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24617 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24618 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24619 s,@USE_POVRAY@,$USE_POVRAY,;t t
24621 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24623 s,@LLVMCC1@,$LLVMCC1,;t t
24624 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24626 s,@PAPIDIR@,$PAPIDIR,;t t
24627 s,@SHLIBEXT@,$SHLIBEXT,;t t
24628 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24629 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24630 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24631 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24632 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24633 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24634 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24635 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24636 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24637 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24638 s,@LIBOBJS@,$LIBOBJS,;t t
24639 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24644 cat >>$CONFIG_STATUS <<\_ACEOF
24645 # Split the substitutions into bite-sized pieces for seds with
24646 # small command number limits, like on Digital OSF/1 and HP-UX.
24647 ac_max_sed_lines=48
24648 ac_sed_frag=1 # Number of current file.
24649 ac_beg=1 # First line for current file.
24650 ac_end=$ac_max_sed_lines # Line after last line for current file.
24653 while $ac_more_lines; do
24654 if test $ac_beg -gt 1; then
24655 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24657 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24659 if test ! -s $tmp/subs.frag; then
24660 ac_more_lines=false
24662 # The purpose of the label and of the branching condition is to
24663 # speed up the sed processing (if there are no `@' at all, there
24664 # is no need to browse any of the substitutions).
24665 # These are the two extra sed commands mentioned above.
24667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24668 if test -z "$ac_sed_cmds"; then
24669 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24671 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24673 ac_sed_frag=`expr $ac_sed_frag + 1`
24675 ac_end=`expr $ac_end + $ac_max_sed_lines`
24678 if test -z "$ac_sed_cmds"; then
24681 fi # test -n "$CONFIG_FILES"
24684 cat >>$CONFIG_STATUS <<\_ACEOF
24685 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24686 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24688 - | *:- | *:-:* ) # input from stdin
24690 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24691 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24692 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24693 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24694 * ) ac_file_in=$ac_file.in ;;
24697 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24698 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24700 X"$ac_file" : 'X\(//\)[^/]' \| \
24701 X"$ac_file" : 'X\(//\)$' \| \
24702 X"$ac_file" : 'X\(/\)' \| \
24703 . : '\(.\)' 2>/dev/null ||
24705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24707 /^X\(\/\/\)$/{ s//\1/; q; }
24708 /^X\(\/\).*/{ s//\1/; q; }
24710 { if $as_mkdir_p; then
24715 while test ! -d "$as_dir"; do
24716 as_dirs="$as_dir $as_dirs"
24717 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24719 X"$as_dir" : 'X\(//\)[^/]' \| \
24720 X"$as_dir" : 'X\(//\)$' \| \
24721 X"$as_dir" : 'X\(/\)' \| \
24722 . : '\(.\)' 2>/dev/null ||
24724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24725 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24726 /^X\(\/\/\)$/{ s//\1/; q; }
24727 /^X\(\/\).*/{ s//\1/; q; }
24730 test ! -n "$as_dirs" || mkdir $as_dirs
24731 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24732 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24733 { (exit 1); exit 1; }; }; }
24737 if test "$ac_dir" != .; then
24738 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24739 # A "../" for each directory in $ac_dir_suffix.
24740 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24742 ac_dir_suffix= ac_top_builddir=
24746 .) # No --srcdir option. We are building in place.
24748 if test -z "$ac_top_builddir"; then
24751 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24753 [\\/]* | ?:[\\/]* ) # Absolute path.
24754 ac_srcdir=$srcdir$ac_dir_suffix;
24755 ac_top_srcdir=$srcdir ;;
24756 *) # Relative path.
24757 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24758 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24761 # Do not use `cd foo && pwd` to compute absolute paths, because
24762 # the directories may not exist.
24764 .) ac_abs_builddir="$ac_dir";;
24767 .) ac_abs_builddir=`pwd`;;
24768 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24769 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24772 case $ac_abs_builddir in
24773 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24775 case ${ac_top_builddir}. in
24776 .) ac_abs_top_builddir=$ac_abs_builddir;;
24777 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24778 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24781 case $ac_abs_builddir in
24782 .) ac_abs_srcdir=$ac_srcdir;;
24785 .) ac_abs_srcdir=$ac_abs_builddir;;
24786 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24787 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24790 case $ac_abs_builddir in
24791 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24793 case $ac_top_srcdir in
24794 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24795 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24796 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24803 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24806 if test x"$ac_file" != x-; then
24807 { echo "$as_me:$LINENO: creating $ac_file" >&5
24808 echo "$as_me: creating $ac_file" >&6;}
24811 # Let's still pretend it is `configure' which instantiates (i.e., don't
24812 # use $as_me), people would be surprised to read:
24813 # /* config.h. Generated by config.status. */
24814 if test x"$ac_file" = x-; then
24817 configure_input="$ac_file. "
24819 configure_input=$configure_input"Generated from `echo $ac_file_in |
24820 sed 's,.*/,,'` by configure."
24822 # First look for the input files in the build tree, otherwise in the
24824 ac_file_inputs=`IFS=:
24825 for f in $ac_file_in; do
24827 -) echo $tmp/stdin ;;
24829 # Absolute (can't be DOS-style, as IFS=:)
24830 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24831 echo "$as_me: error: cannot find input file: $f" >&2;}
24832 { (exit 1); exit 1; }; }
24835 if test -f "$f"; then
24838 elif test -f "$srcdir/$f"; then
24843 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24844 echo "$as_me: error: cannot find input file: $f" >&2;}
24845 { (exit 1); exit 1; }; }
24848 done` || { (exit 1); exit 1; }
24850 cat >>$CONFIG_STATUS <<_ACEOF
24854 cat >>$CONFIG_STATUS <<\_ACEOF
24856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24857 s,@configure_input@,$configure_input,;t t
24858 s,@srcdir@,$ac_srcdir,;t t
24859 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24860 s,@top_srcdir@,$ac_top_srcdir,;t t
24861 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24862 s,@builddir@,$ac_builddir,;t t
24863 s,@abs_builddir@,$ac_abs_builddir,;t t
24864 s,@top_builddir@,$ac_top_builddir,;t t
24865 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24866 s,@INSTALL@,$ac_INSTALL,;t t
24867 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24869 if test x"$ac_file" != x-; then
24870 mv $tmp/out $ac_file
24878 cat >>$CONFIG_STATUS <<\_ACEOF
24881 # CONFIG_HEADER section.
24884 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24885 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24887 # ac_d sets the value in "#define NAME VALUE" lines.
24888 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24889 ac_dB='[ ].*$,\1#\2'
24892 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24893 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24894 ac_uB='$,\1#\2define\3'
24898 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24901 - | *:- | *:-:* ) # input from stdin
24903 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24905 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24906 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24907 * ) ac_file_in=$ac_file.in ;;
24910 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24911 echo "$as_me: creating $ac_file" >&6;}
24913 # First look for the input files in the build tree, otherwise in the
24915 ac_file_inputs=`IFS=:
24916 for f in $ac_file_in; do
24918 -) echo $tmp/stdin ;;
24920 # Absolute (can't be DOS-style, as IFS=:)
24921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24922 echo "$as_me: error: cannot find input file: $f" >&2;}
24923 { (exit 1); exit 1; }; }
24924 # Do quote $f, to prevent DOS paths from being IFS'd.
24927 if test -f "$f"; then
24930 elif test -f "$srcdir/$f"; then
24935 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24936 echo "$as_me: error: cannot find input file: $f" >&2;}
24937 { (exit 1); exit 1; }; }
24940 done` || { (exit 1); exit 1; }
24941 # Remove the trailing spaces.
24942 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24946 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24947 # `conftest.undefs', that substitutes the proper values into
24948 # config.h.in to produce config.h. The first handles `#define'
24949 # templates, and the second `#undef' templates.
24950 # And first: Protect against being on the right side of a sed subst in
24951 # config.status. Protect against being in an unquoted here document
24952 # in config.status.
24953 rm -f conftest.defines conftest.undefs
24954 # Using a here document instead of a string reduces the quoting nightmare.
24955 # Putting comments in sed scripts is not portable.
24957 # `end' is used to avoid that the second main sed command (meant for
24958 # 0-ary CPP macros) applies to n-ary macro definitions.
24959 # See the Autoconf documentation for `clear'.
24960 cat >confdef2sed.sed <<\_ACEOF
24965 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24967 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24970 # If some macros were called several times there might be several times
24971 # the same #defines, which is useless. Nevertheless, we may not want to
24972 # sort them, since we want the *last* AC-DEFINE to be honored.
24973 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24974 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24975 rm -f confdef2sed.sed
24977 # This sed command replaces #undef with comments. This is necessary, for
24978 # example, in the case of _POSIX_SOURCE, which is predefined and required
24979 # on some systems where configure will not decide to define it.
24980 cat >>conftest.undefs <<\_ACEOF
24981 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24984 # Break up conftest.defines because some shells have a limit on the size
24985 # of here documents, and old seds have small limits too (100 cmds).
24986 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24987 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24988 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24989 echo ' :' >>$CONFIG_STATUS
24990 rm -f conftest.tail
24991 while grep . conftest.defines >/dev/null
24993 # Write a limited-size here document to $tmp/defines.sed.
24994 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24995 # Speed up: don't consider the non `#define' lines.
24996 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24997 # Work around the forget-to-reset-the-flag bug.
24998 echo 't clr' >>$CONFIG_STATUS
24999 echo ': clr' >>$CONFIG_STATUS
25000 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25002 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25004 mv $tmp/out $tmp/in
25006 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25007 rm -f conftest.defines
25008 mv conftest.tail conftest.defines
25010 rm -f conftest.defines
25011 echo ' fi # grep' >>$CONFIG_STATUS
25012 echo >>$CONFIG_STATUS
25014 # Break up conftest.undefs because some shells have a limit on the size
25015 # of here documents, and old seds have small limits too (100 cmds).
25016 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25017 rm -f conftest.tail
25018 while grep . conftest.undefs >/dev/null
25020 # Write a limited-size here document to $tmp/undefs.sed.
25021 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25022 # Speed up: don't consider the non `#undef'
25023 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25024 # Work around the forget-to-reset-the-flag bug.
25025 echo 't clr' >>$CONFIG_STATUS
25026 echo ': clr' >>$CONFIG_STATUS
25027 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25029 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25031 mv $tmp/out $tmp/in
25033 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25034 rm -f conftest.undefs
25035 mv conftest.tail conftest.undefs
25037 rm -f conftest.undefs
25039 cat >>$CONFIG_STATUS <<\_ACEOF
25040 # Let's still pretend it is `configure' which instantiates (i.e., don't
25041 # use $as_me), people would be surprised to read:
25042 # /* config.h. Generated by config.status. */
25043 if test x"$ac_file" = x-; then
25044 echo "/* Generated by configure. */" >$tmp/config.h
25046 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25048 cat $tmp/in >>$tmp/config.h
25050 if test x"$ac_file" != x-; then
25051 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25052 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25053 echo "$as_me: $ac_file is unchanged" >&6;}
25055 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25056 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25057 X"$ac_file" : 'X\(//\)[^/]' \| \
25058 X"$ac_file" : 'X\(//\)$' \| \
25059 X"$ac_file" : 'X\(/\)' \| \
25060 . : '\(.\)' 2>/dev/null ||
25062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25064 /^X\(\/\/\)$/{ s//\1/; q; }
25065 /^X\(\/\).*/{ s//\1/; q; }
25067 { if $as_mkdir_p; then
25072 while test ! -d "$as_dir"; do
25073 as_dirs="$as_dir $as_dirs"
25074 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25076 X"$as_dir" : 'X\(//\)[^/]' \| \
25077 X"$as_dir" : 'X\(//\)$' \| \
25078 X"$as_dir" : 'X\(/\)' \| \
25079 . : '\(.\)' 2>/dev/null ||
25081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25083 /^X\(\/\/\)$/{ s//\1/; q; }
25084 /^X\(\/\).*/{ s//\1/; q; }
25087 test ! -n "$as_dirs" || mkdir $as_dirs
25088 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25089 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25090 { (exit 1); exit 1; }; }; }
25093 mv $tmp/config.h $ac_file
25097 rm -f $tmp/config.h
25101 cat >>$CONFIG_STATUS <<\_ACEOF
25104 # CONFIG_COMMANDS section.
25106 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25107 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25108 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25109 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25110 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25111 X"$ac_dest" : 'X\(//\)[^/]' \| \
25112 X"$ac_dest" : 'X\(//\)$' \| \
25113 X"$ac_dest" : 'X\(/\)' \| \
25114 . : '\(.\)' 2>/dev/null ||
25116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25118 /^X\(\/\/\)$/{ s//\1/; q; }
25119 /^X\(\/\).*/{ s//\1/; q; }
25121 { if $as_mkdir_p; then
25126 while test ! -d "$as_dir"; do
25127 as_dirs="$as_dir $as_dirs"
25128 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25130 X"$as_dir" : 'X\(//\)[^/]' \| \
25131 X"$as_dir" : 'X\(//\)$' \| \
25132 X"$as_dir" : 'X\(/\)' \| \
25133 . : '\(.\)' 2>/dev/null ||
25135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25137 /^X\(\/\/\)$/{ s//\1/; q; }
25138 /^X\(\/\).*/{ s//\1/; q; }
25141 test ! -n "$as_dirs" || mkdir $as_dirs
25142 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25143 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25144 { (exit 1); exit 1; }; }; }
25148 if test "$ac_dir" != .; then
25149 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25150 # A "../" for each directory in $ac_dir_suffix.
25151 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25153 ac_dir_suffix= ac_top_builddir=
25157 .) # No --srcdir option. We are building in place.
25159 if test -z "$ac_top_builddir"; then
25162 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25164 [\\/]* | ?:[\\/]* ) # Absolute path.
25165 ac_srcdir=$srcdir$ac_dir_suffix;
25166 ac_top_srcdir=$srcdir ;;
25167 *) # Relative path.
25168 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25169 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25172 # Do not use `cd foo && pwd` to compute absolute paths, because
25173 # the directories may not exist.
25175 .) ac_abs_builddir="$ac_dir";;
25178 .) ac_abs_builddir=`pwd`;;
25179 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25180 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25183 case $ac_abs_builddir in
25184 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25186 case ${ac_top_builddir}. in
25187 .) ac_abs_top_builddir=$ac_abs_builddir;;
25188 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25189 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25192 case $ac_abs_builddir in
25193 .) ac_abs_srcdir=$ac_srcdir;;
25196 .) ac_abs_srcdir=$ac_abs_builddir;;
25197 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25198 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25201 case $ac_abs_builddir in
25202 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25204 case $ac_top_srcdir in
25205 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25206 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25207 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25212 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25213 echo "$as_me: executing $ac_dest commands" >&6;}
25215 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25216 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25217 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25218 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25219 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25220 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25221 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25222 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25223 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25224 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25225 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25226 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25227 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25228 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25229 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25230 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25231 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25232 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25233 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25234 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25235 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25236 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25237 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25238 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25239 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25240 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25241 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25242 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 ;;
25243 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 ;;
25244 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 ;;
25245 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25246 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25247 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 ;;
25248 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 ;;
25249 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 ;;
25250 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 ;;
25251 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 ;;
25252 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 ;;
25253 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 ;;
25254 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 ;;
25255 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 ;;
25256 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 ;;
25257 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 ;;
25258 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 ;;
25259 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 ;;
25260 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25261 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25262 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 ;;
25263 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25264 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25265 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25270 cat >>$CONFIG_STATUS <<\_ACEOF
25272 { (exit 0); exit 0; }
25274 chmod +x $CONFIG_STATUS
25275 ac_clean_files=$ac_clean_files_save
25278 # configure is writing to config.log, and then calls config.status.
25279 # config.status does its own redirection, appending to config.log.
25280 # Unfortunately, on DOS this fails, as config.log is still kept open
25281 # by configure, so config.status won't be able to write to it; its
25282 # output is simply discarded. So we exec the FD to /dev/null,
25283 # effectively closing config.log, so it can be properly (re)opened and
25284 # appended to by config.status. When coming back to configure, we
25285 # need to make the FD available again.
25286 if test "$no_create" != yes; then
25288 ac_config_status_args=
25289 test "$silent" = yes &&
25290 ac_config_status_args="$ac_config_status_args --quiet"
25292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25295 # would make configure fail if this is the last instruction.
25296 $ac_cs_success || { (exit 1); exit 1; }
25300 # CONFIG_SUBDIRS section.
25302 if test "$no_recursion" != yes; then
25304 # Remove --cache-file and --srcdir arguments so they do not pile up.
25305 ac_sub_configure_args=
25307 for ac_arg in $ac_configure_args; do
25308 if test -n "$ac_prev"; then
25313 -cache-file | --cache-file | --cache-fil | --cache-fi \
25314 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25315 ac_prev=cache_file ;;
25316 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25317 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25320 --config-cache | -C)
25322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25330 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25334 # Always prepend --prefix to ensure using the same prefix
25335 # in subdir configurations.
25336 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25339 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25341 # Do not complain, so a configure script can configure whichever
25342 # parts of a large source tree are present.
25343 test -d $srcdir/$ac_dir || continue
25345 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25346 echo "$as_me: configuring in $ac_dir" >&6;}
25347 { if $as_mkdir_p; then
25352 while test ! -d "$as_dir"; do
25353 as_dirs="$as_dir $as_dirs"
25354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25356 X"$as_dir" : 'X\(//\)[^/]' \| \
25357 X"$as_dir" : 'X\(//\)$' \| \
25358 X"$as_dir" : 'X\(/\)' \| \
25359 . : '\(.\)' 2>/dev/null ||
25361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25363 /^X\(\/\/\)$/{ s//\1/; q; }
25364 /^X\(\/\).*/{ s//\1/; q; }
25367 test ! -n "$as_dirs" || mkdir $as_dirs
25368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25370 { (exit 1); exit 1; }; }; }
25374 if test "$ac_dir" != .; then
25375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25376 # A "../" for each directory in $ac_dir_suffix.
25377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25379 ac_dir_suffix= ac_top_builddir=
25383 .) # No --srcdir option. We are building in place.
25385 if test -z "$ac_top_builddir"; then
25388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25390 [\\/]* | ?:[\\/]* ) # Absolute path.
25391 ac_srcdir=$srcdir$ac_dir_suffix;
25392 ac_top_srcdir=$srcdir ;;
25393 *) # Relative path.
25394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25398 # Do not use `cd foo && pwd` to compute absolute paths, because
25399 # the directories may not exist.
25401 .) ac_abs_builddir="$ac_dir";;
25404 .) ac_abs_builddir=`pwd`;;
25405 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25406 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25409 case $ac_abs_builddir in
25410 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25412 case ${ac_top_builddir}. in
25413 .) ac_abs_top_builddir=$ac_abs_builddir;;
25414 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25415 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25418 case $ac_abs_builddir in
25419 .) ac_abs_srcdir=$ac_srcdir;;
25422 .) ac_abs_srcdir=$ac_abs_builddir;;
25423 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25424 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25427 case $ac_abs_builddir in
25428 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25430 case $ac_top_srcdir in
25431 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25432 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25433 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25440 # Check for guested configure; otherwise get Cygnus style configure.
25441 if test -f $ac_srcdir/configure.gnu; then
25442 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25443 elif test -f $ac_srcdir/configure; then
25444 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25445 elif test -f $ac_srcdir/configure.in; then
25446 ac_sub_configure=$ac_configure
25448 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25449 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25453 # The recursion is here.
25454 if test -n "$ac_sub_configure"; then
25455 # Make the cache file name correct relative to the subdirectory.
25456 case $cache_file in
25457 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25458 *) # Relative path.
25459 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25462 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25463 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25464 # The eval makes quoting arguments work.
25465 eval $ac_sub_configure $ac_sub_configure_args \
25466 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25467 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25468 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25469 { (exit 1); exit 1; }; }
25477 if test $llvmgccwarn = yes
25479 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25480 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25481 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25482 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25483 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25484 echo "$as_me: WARNING: ***** " >&2;}
25485 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25486 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25487 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25488 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25489 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25490 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}