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}-
1893 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1894 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1904 platform_type="Cygwin"
1909 platform_type="Darwin"
1914 platform_type="FreeBSD"
1919 platform_type="Interix"
1924 platform_type="Linux"
1925 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1927 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1934 platform_type="SunOS"
1935 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1937 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1944 platform_type="Win32"
1949 platform_type="Unknown"
1953 if test "$platform_type" = "Unknown" ; then
1954 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1955 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1956 { (exit 1); exit 1; }; }
1959 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1962 echo "$as_me:$LINENO: result: $platform_type" >&5
1963 echo "${ECHO_T}$platform_type" >&6
1965 echo "$as_me:$LINENO: checking target architecture" >&5
1966 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1968 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1996 echo "$as_me:$LINENO: result: $ARCH" >&5
1997 echo "${ECHO_T}$ARCH" >&6
2000 ac_cpp='$CXXCPP $CPPFLAGS'
2001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2004 if test -n "$ac_tool_prefix"; then
2005 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CXX+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$CXX"; then
2015 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 if test -n "$CXX"; then
2035 echo "$as_me:$LINENO: result: $CXX" >&5
2036 echo "${ECHO_T}$CXX" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2042 test -n "$CXX" && break
2045 if test -z "$CXX"; then
2047 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2049 # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$ac_ct_CXX"; then
2057 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_ac_ct_CXX="$ac_prog"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2076 if test -n "$ac_ct_CXX"; then
2077 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2078 echo "${ECHO_T}$ac_ct_CXX" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2084 test -n "$ac_ct_CXX" && break
2086 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2092 # Provide some information about the compiler.
2093 echo "$as_me:$LINENO:" \
2094 "checking for C++ compiler version" >&5
2095 ac_compiler=`set X $ac_compile; echo $2`
2096 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2097 (eval $ac_compiler --version </dev/null >&5) 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2102 (eval $ac_compiler -v </dev/null >&5) 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2106 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2107 (eval $ac_compiler -V </dev/null >&5) 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2112 cat >conftest.$ac_ext <<_ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h. */
2127 ac_clean_files_save=$ac_clean_files
2128 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2129 # Try to create an executable without -o first, disregard a.out.
2130 # It will help us diagnose broken compilers, and finding out an intuition
2132 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2133 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2134 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2136 (eval $ac_link_default) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; then
2140 # Find the output, starting from the most likely. This scheme is
2141 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2144 # Be careful to initialize this variable, since it used to be cached.
2145 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2147 # b.out is created by i960 compilers.
2148 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2150 test -f "$ac_file" || continue
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2155 # This is the source file.
2158 # We found the default executable, but exeext='' is most
2162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163 # FIXME: I believe we export ac_cv_exeext for Libtool,
2164 # but it would be cool to find out if it's true. Does anybody
2165 # maintain Libtool? --akim.
2173 echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2176 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: C++ compiler cannot create executables
2179 See \`config.log' for more details." >&2;}
2180 { (exit 77); exit 77; }; }
2183 ac_exeext=$ac_cv_exeext
2184 echo "$as_me:$LINENO: result: $ac_file" >&5
2185 echo "${ECHO_T}$ac_file" >&6
2187 # Check the compiler produces executables we can run. If not, either
2188 # the compiler is broken, or we cross compile.
2189 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2190 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2191 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2192 # If not cross compiling, check that we can run a simple program.
2193 if test "$cross_compiling" != yes; then
2194 if { ac_try='./$ac_file'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2202 if test "$cross_compiling" = maybe; then
2205 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2206 If you meant to cross compile, use \`--host'.
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: cannot run C++ compiled programs.
2209 If you meant to cross compile, use \`--host'.
2210 See \`config.log' for more details." >&2;}
2211 { (exit 1); exit 1; }; }
2215 echo "$as_me:$LINENO: result: yes" >&5
2216 echo "${ECHO_T}yes" >&6
2218 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2219 ac_clean_files=$ac_clean_files_save
2220 # Check the compiler produces executables we can run. If not, either
2221 # the compiler is broken, or we cross compile.
2222 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2223 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2224 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2225 echo "${ECHO_T}$cross_compiling" >&6
2227 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2228 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2230 (eval $ac_link) 2>&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; then
2234 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2235 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2236 # work properly (i.e., refer to `conftest.exe'), while it won't with
2238 for ac_file in conftest.exe conftest conftest.*; do
2239 test -f "$ac_file" || continue
2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2242 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2249 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2256 rm -f conftest$ac_cv_exeext
2257 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2258 echo "${ECHO_T}$ac_cv_exeext" >&6
2260 rm -f conftest.$ac_ext
2261 EXEEXT=$ac_cv_exeext
2263 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2264 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2265 if test "${ac_cv_objext+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. */
2283 rm -f conftest.o conftest.obj
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; then
2289 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2297 echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2300 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2303 See \`config.log' for more details." >&2;}
2304 { (exit 1); exit 1; }; }
2307 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2309 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2310 echo "${ECHO_T}$ac_cv_objext" >&6
2311 OBJEXT=$ac_cv_objext
2313 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2314 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2315 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 cat >conftest.$ac_ext <<_ACEOF
2321 cat confdefs.h >>conftest.$ac_ext
2322 cat >>conftest.$ac_ext <<_ACEOF
2323 /* end confdefs.h. */
2336 rm -f conftest.$ac_objext
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>conftest.er1
2340 grep -v '^ *+' conftest.er1 >conftest.err
2342 cat conftest.err >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -z "$ac_cxx_werror_flag"
2346 || test ! -s conftest.err'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2366 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2369 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2370 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2371 GXX=`test $ac_compiler_gnu = yes && echo yes`
2372 ac_test_CXXFLAGS=${CXXFLAGS+set}
2373 ac_save_CXXFLAGS=$CXXFLAGS
2375 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2376 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2377 if test "${ac_cv_prog_cxx_g+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 cat >conftest.$ac_ext <<_ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2399 grep -v '^ *+' conftest.er1 >conftest.err
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_cxx_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 ac_cv_prog_cxx_g=yes
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2426 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2427 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2428 if test "$ac_test_CXXFLAGS" = set; then
2429 CXXFLAGS=$ac_save_CXXFLAGS
2430 elif test $ac_cv_prog_cxx_g = yes; then
2431 if test "$GXX" = yes; then
2437 if test "$GXX" = yes; then
2443 for ac_declaration in \
2445 'extern "C" void std::exit (int) throw (); using std::exit;' \
2446 'extern "C" void std::exit (int); using std::exit;' \
2447 'extern "C" void exit (int) throw ();' \
2448 'extern "C" void exit (int);' \
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>conftest.er1
2471 grep -v '^ *+' conftest.er1 >conftest.err
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -z "$ac_cxx_werror_flag"
2477 || test ! -s conftest.err'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514 (eval $ac_compile) 2>conftest.er1
2516 grep -v '^ *+' conftest.er1 >conftest.err
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -z "$ac_cxx_werror_flag"
2522 || test ! -s conftest.err'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 if test -n "$ac_declaration"; then
2544 echo '#ifdef __cplusplus' >>confdefs.h
2545 echo $ac_declaration >>confdefs.h
2546 echo '#endif' >>confdefs.h
2550 ac_cpp='$CPP $CPPFLAGS'
2551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 if test -n "$ac_tool_prefix"; then
2563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2565 echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2567 if test "${ac_cv_prog_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 if test -n "$CC"; then
2591 echo "$as_me:$LINENO: result: $CC" >&5
2592 echo "${ECHO_T}$CC" >&6
2594 echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6
2598 test -n "$CC" && break
2601 if test -z "$CC"; then
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy $ac_prog; ac_word=$2
2607 echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 if test -n "$ac_ct_CC"; then
2613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 ac_cv_prog_ac_ct_CC="$ac_prog"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632 if test -n "$ac_ct_CC"; then
2633 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2634 echo "${ECHO_T}$ac_ct_CC" >&6
2636 echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6
2640 test -n "$ac_ct_CC" && break
2647 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: no acceptable C compiler found in \$PATH
2650 See \`config.log' for more details." >&2;}
2651 { (exit 1); exit 1; }; }
2653 # Provide some information about the compiler.
2654 echo "$as_me:$LINENO:" \
2655 "checking for C compiler version" >&5
2656 ac_compiler=`set X $ac_compile; echo $2`
2657 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2658 (eval $ac_compiler --version </dev/null >&5) 2>&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2662 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2663 (eval $ac_compiler -v </dev/null >&5) 2>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2667 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2668 (eval $ac_compiler -V </dev/null >&5) 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2673 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2674 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2675 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2700 grep -v '^ *+' conftest.er1 >conftest.err
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -z "$ac_c_werror_flag"
2706 || test ! -s conftest.err'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2729 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2730 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2731 GCC=`test $ac_compiler_gnu = yes && echo yes`
2732 ac_test_CFLAGS=${CFLAGS+set}
2733 ac_save_CFLAGS=$CFLAGS
2735 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2736 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2737 if test "${ac_cv_prog_cc_g+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757 (eval $ac_compile) 2>conftest.er1
2759 grep -v '^ *+' conftest.er1 >conftest.err
2761 cat conftest.err >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 { ac_try='test -z "$ac_c_werror_flag"
2765 || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2788 if test "$ac_test_CFLAGS" = set; then
2789 CFLAGS=$ac_save_CFLAGS
2790 elif test $ac_cv_prog_cc_g = yes; then
2791 if test "$GCC" = yes; then
2797 if test "$GCC" = yes; then
2803 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2804 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2805 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 ac_cv_prog_cc_stdc=no
2810 cat >conftest.$ac_ext <<_ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2818 #include <sys/types.h>
2819 #include <sys/stat.h>
2820 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2821 struct buf { int x; };
2822 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2823 static char *e (p, i)
2829 static char *f (char * (*g) (char **, int), char **p, ...)
2834 s = g (p, va_arg (v,int));
2839 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2840 function prototypes and stuff, but not '\xHH' hex character constants.
2841 These don't provoke an error unfortunately, instead are silently treated
2842 as 'x'. The following induces an error, until -std1 is added to get
2843 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2844 array size at least. It's necessary to write '\x00'==0 to get something
2845 that's true only with -std1. */
2846 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2848 int test (int i, double x);
2849 struct s1 {int (*f) (int a);};
2850 struct s2 {int (*f) (double a);};
2851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2857 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2862 # Don't try gcc -ansi; that turns off useful extensions and
2863 # breaks some systems' header files.
2864 # AIX -qlanglvl=ansi
2865 # Ultrix and OSF/1 -std1
2866 # HP-UX 10.20 and later -Ae
2867 # HP-UX older versions -Aa -D_HPUX_SOURCE
2868 # SVR4 -Xc -D__EXTENSIONS__
2869 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2871 CC="$ac_save_CC $ac_arg"
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 ac_cv_prog_cc_stdc=$ac_arg
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2901 rm -f conftest.err conftest.$ac_objext
2903 rm -f conftest.$ac_ext conftest.$ac_objext
2908 case "x$ac_cv_prog_cc_stdc" in
2910 echo "$as_me:$LINENO: result: none needed" >&5
2911 echo "${ECHO_T}none needed" >&6 ;;
2913 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2914 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2915 CC="$CC $ac_cv_prog_cc_stdc" ;;
2918 # Some people use a C++ compiler to compile C. Since we use `exit',
2919 # in C++ we need to declare it. In case someone uses the same compiler
2920 # for both compiling C and C++ we need to have the C++ compiler decide
2921 # the declaration of exit, since it's the most demanding environment.
2922 cat >conftest.$ac_ext <<_ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1 >conftest.err
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 for ac_declaration in \
2951 'extern "C" void std::exit (int) throw (); using std::exit;' \
2952 'extern "C" void std::exit (int); using std::exit;' \
2953 'extern "C" void exit (int) throw ();' \
2954 'extern "C" void exit (int);' \
2957 cat >conftest.$ac_ext <<_ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag"
2983 || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest.$ac_objext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_c_werror_flag"
3028 || test ! -s conftest.err'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest.$ac_objext'
3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3049 if test -n "$ac_declaration"; then
3050 echo '#ifdef __cplusplus' >>confdefs.h
3051 echo $ac_declaration >>confdefs.h
3052 echo '#endif' >>confdefs.h
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cpp='$CPP $CPPFLAGS'
3063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3068 ac_cpp='$CPP $CPPFLAGS'
3069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3072 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3073 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3074 # On Suns, sometimes $CPP names a directory.
3075 if test -n "$CPP" && test -d "$CPP"; then
3078 if test -z "$CPP"; then
3079 if test "${ac_cv_prog_CPP+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 # Double quotes because CPP needs to be expanded
3083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3086 for ac_c_preproc_warn_flag in '' yes
3088 # Use a header file that comes with gcc, so configuring glibc
3089 # with a fresh cross-compiler works.
3090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3091 # <limits.h> exists even on freestanding compilers.
3092 # On the NeXT, cc -E runs the code through the compiler's parser,
3093 # not just through cpp. "Syntax error" is here to catch this case.
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3101 # include <limits.h>
3103 # include <assert.h>
3107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } >/dev/null; then
3115 if test -s conftest.err; then
3116 ac_cpp_err=$ac_c_preproc_warn_flag
3117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3124 if test -z "$ac_cpp_err"; then
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3130 # Broken: fails on valid input.
3133 rm -f conftest.err conftest.$ac_ext
3135 # OK, works on sane cases. Now check whether non-existent headers
3136 # can be detected and how.
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 #include <ac_nonexistent.h>
3145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3148 grep -v '^ *+' conftest.er1 >conftest.err
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag
3155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3162 if test -z "$ac_cpp_err"; then
3163 # Broken: success on invalid input.
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 # Passes both tests.
3173 rm -f conftest.err conftest.$ac_ext
3176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3177 rm -f conftest.err conftest.$ac_ext
3178 if $ac_preproc_ok; then
3190 echo "$as_me:$LINENO: result: $CPP" >&5
3191 echo "${ECHO_T}$CPP" >&6
3193 for ac_c_preproc_warn_flag in '' yes
3195 # Use a header file that comes with gcc, so configuring glibc
3196 # with a fresh cross-compiler works.
3197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3198 # <limits.h> exists even on freestanding compilers.
3199 # On the NeXT, cc -E runs the code through the compiler's parser,
3200 # not just through cpp. "Syntax error" is here to catch this case.
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3208 # include <limits.h>
3210 # include <assert.h>
3214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3217 grep -v '^ *+' conftest.er1 >conftest.err
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } >/dev/null; then
3222 if test -s conftest.err; then
3223 ac_cpp_err=$ac_c_preproc_warn_flag
3224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3231 if test -z "$ac_cpp_err"; then
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 # Broken: fails on valid input.
3240 rm -f conftest.err conftest.$ac_ext
3242 # OK, works on sane cases. Now check whether non-existent headers
3243 # can be detected and how.
3244 cat >conftest.$ac_ext <<_ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3250 #include <ac_nonexistent.h>
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3269 if test -z "$ac_cpp_err"; then
3270 # Broken: success on invalid input.
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 # Passes both tests.
3280 rm -f conftest.err conftest.$ac_ext
3283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3284 rm -f conftest.err conftest.$ac_ext
3285 if $ac_preproc_ok; then
3288 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3289 See \`config.log' for more details." >&5
3290 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3291 See \`config.log' for more details." >&2;}
3292 { (exit 1); exit 1; }; }
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 if test "$GCC" != "yes"
3304 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3305 echo "$as_me: error: gcc required but not found" >&2;}
3306 { (exit 1); exit 1; }; }
3308 if test "$GXX" != "yes"
3310 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3311 echo "$as_me: error: g++ required but not found" >&2;}
3312 { (exit 1); exit 1; }; }
3315 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3316 if test "$gccmajor" -lt "3"
3318 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3319 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3320 { (exit 1); exit 1; }; }
3323 echo "$as_me:$LINENO: checking for GNU make" >&5
3324 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3325 if test "${_cv_gnu_make_command+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 _cv_gnu_make_command='' ;
3329 for a in "$MAKE" make gmake gnumake ; do
3330 if test -z "$a" ; then continue ; fi ;
3331 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3332 _cv_gnu_make_command=$a ;
3338 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3339 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3340 if test "x$_cv_gnu_make_command" != "x" ; then
3344 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3345 echo "${ECHO_T}\"Not found\"" >&6;
3349 if test -z "$_cv_gnu_make_command"
3351 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3352 echo "$as_me: error: GNU Make required but not found" >&2;}
3353 { (exit 1); exit 1; }; }
3357 echo "$as_me:$LINENO: checking " >&5
3358 echo $ECHO_N "checking ... $ECHO_C" >&6
3359 if test "${ac_cv_has_flex+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 for ac_prog in flex lex
3364 # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy $ac_prog; ac_word=$2
3366 echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368 if test "${ac_cv_prog_LEX+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if test -n "$LEX"; then
3372 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_LEX="$ac_prog"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 if test -n "$LEX"; then
3392 echo "$as_me:$LINENO: result: $LEX" >&5
3393 echo "${ECHO_T}$LEX" >&6
3395 echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3399 test -n "$LEX" && break
3401 test -n "$LEX" || LEX=":"
3403 if test -z "$LEXLIB"
3405 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3406 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3407 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 ac_check_lib_save_LIBS=$LIBS
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3419 /* Override any gcc2 internal prototype to avoid an error. */
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3434 rm -f conftest.$ac_objext conftest$ac_exeext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3436 (eval $ac_link) 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
3443 { ac_try='test -z "$ac_c_werror_flag"
3444 || test ! -s conftest.err'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest$ac_exeext'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 ac_cv_lib_fl_yywrap=yes
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 ac_cv_lib_fl_yywrap=no
3463 rm -f conftest.err conftest.$ac_objext \
3464 conftest$ac_exeext conftest.$ac_ext
3465 LIBS=$ac_check_lib_save_LIBS
3467 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3468 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3469 if test $ac_cv_lib_fl_yywrap = yes; then
3472 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3473 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3474 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_check_lib_save_LIBS=$LIBS
3479 cat >conftest.$ac_ext <<_ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3486 /* Override any gcc2 internal prototype to avoid an error. */
3490 /* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3501 rm -f conftest.$ac_objext conftest$ac_exeext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503 (eval $ac_link) 2>conftest.er1
3505 grep -v '^ *+' conftest.er1 >conftest.err
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -z "$ac_c_werror_flag"
3511 || test ! -s conftest.err'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; } &&
3517 { ac_try='test -s conftest$ac_exeext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 ac_cv_lib_l_yywrap=yes
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 ac_cv_lib_l_yywrap=no
3530 rm -f conftest.err conftest.$ac_objext \
3531 conftest$ac_exeext conftest.$ac_ext
3532 LIBS=$ac_check_lib_save_LIBS
3534 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3535 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3536 if test $ac_cv_lib_l_yywrap = yes; then
3544 if test "x$LEX" != "x:"; then
3545 echo "$as_me:$LINENO: checking lex output file root" >&5
3546 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3547 if test "${ac_cv_prog_lex_root+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 # The minimal lex program is just a single line: %%. But some broken lexes
3551 # (Solaris, I think it was) want two %% lines, so accommodate them.
3552 cat >conftest.l <<_ACEOF
3556 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3557 (eval $LEX conftest.l) 2>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }
3561 if test -f lex.yy.c; then
3562 ac_cv_prog_lex_root=lex.yy
3563 elif test -f lexyy.c; then
3564 ac_cv_prog_lex_root=lexyy
3566 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3567 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3568 { (exit 1); exit 1; }; }
3571 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3572 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3574 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3576 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3577 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3578 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 # POSIX says lex can declare yytext either as a pointer or an array; the
3582 # default is implementation-dependent. Figure out which it is, since
3583 # not all implementations provide the %pointer and %array declarations.
3584 ac_cv_prog_lex_yytext_pointer=no
3585 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3587 LIBS="$LIBS $LEXLIB"
3588 cat >conftest.$ac_ext <<_ACEOF
3589 `cat $LEX_OUTPUT_ROOT.c`
3591 rm -f conftest.$ac_objext conftest$ac_exeext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3593 (eval $ac_link) 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -z "$ac_c_werror_flag"
3601 || test ! -s conftest.err'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; } &&
3607 { ac_try='test -s conftest$ac_exeext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_prog_lex_yytext_pointer=yes
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3619 rm -f conftest.err conftest.$ac_objext \
3620 conftest$ac_exeext conftest.$ac_ext
3622 rm -f "${LEX_OUTPUT_ROOT}.c"
3625 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3626 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3627 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3629 cat >>confdefs.h <<\_ACEOF
3630 #define YYTEXT_POINTER 1
3638 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3639 echo "${ECHO_T}$ac_cv_has_flex" >&6
3640 if test "$LEX" != "flex"; then
3641 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3642 echo "$as_me: error: flex not found but required" >&2;}
3643 { (exit 1); exit 1; }; }
3646 echo "$as_me:$LINENO: checking " >&5
3647 echo $ECHO_N "checking ... $ECHO_C" >&6
3648 if test "${ac_cv_has_bison+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 for ac_prog in 'bison -y' byacc
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy $ac_prog; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_YACC+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 if test -n "$YACC"; then
3661 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_YACC="$ac_prog"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 YACC=$ac_cv_prog_YACC
3680 if test -n "$YACC"; then
3681 echo "$as_me:$LINENO: result: $YACC" >&5
3682 echo "${ECHO_T}$YACC" >&6
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3688 test -n "$YACC" && break
3690 test -n "$YACC" || YACC="yacc"
3694 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3695 echo "${ECHO_T}$ac_cv_has_bison" >&6
3696 if test "$YACC" != "bison -y"; then
3697 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3698 echo "$as_me: error: bison not found but required" >&2;}
3699 { (exit 1); exit 1; }; }
3705 # Check whether --enable-shared or --disable-shared was given.
3706 if test "${enable_shared+set}" = set; then
3707 enableval="$enable_shared"
3708 p=${PACKAGE-default}
3710 yes) enable_shared=yes ;;
3711 no) enable_shared=no ;;
3714 # Look at the argument we got. We use all the common list separators.
3715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3716 for pkg in $enableval; do
3718 if test "X$pkg" = "X$p"; then
3729 # Check whether --enable-static or --disable-static was given.
3730 if test "${enable_static+set}" = set; then
3731 enableval="$enable_static"
3732 p=${PACKAGE-default}
3734 yes) enable_static=yes ;;
3735 no) enable_static=no ;;
3738 # Look at the argument we got. We use all the common list separators.
3739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3740 for pkg in $enableval; do
3742 if test "X$pkg" = "X$p"; then
3753 # Check whether --enable-fast-install or --disable-fast-install was given.
3754 if test "${enable_fast_install+set}" = set; then
3755 enableval="$enable_fast_install"
3756 p=${PACKAGE-default}
3758 yes) enable_fast_install=yes ;;
3759 no) enable_fast_install=no ;;
3761 enable_fast_install=no
3762 # Look at the argument we got. We use all the common list separators.
3763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3764 for pkg in $enableval; do
3766 if test "X$pkg" = "X$p"; then
3767 enable_fast_install=yes
3774 enable_fast_install=yes
3777 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3778 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3779 if test "${lt_cv_path_SED+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 # Loop through the user's path and test for sed and gsed.
3783 # Then use that list of sed's as ones to test for truncation.
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir=.
3789 for lt_ac_prog in sed gsed; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3792 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3799 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3800 # along with /bin/sed that truncates output.
3801 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3802 test ! -f $lt_ac_sed && break
3803 cat /dev/null > conftest.in
3805 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3806 # Check for GNU sed and select it if it is found.
3807 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3808 lt_cv_path_SED=$lt_ac_sed
3812 cat conftest.in conftest.in >conftest.tmp
3813 mv conftest.tmp conftest.in
3814 cp conftest.in conftest.nl
3816 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3817 cmp -s conftest.out conftest.nl || break
3818 # 10000 chars as input seems more than enough
3819 test $lt_ac_count -gt 10 && break
3820 lt_ac_count=`expr $lt_ac_count + 1`
3821 if test $lt_ac_count -gt $lt_ac_max; then
3822 lt_ac_max=$lt_ac_count
3823 lt_cv_path_SED=$lt_ac_sed
3831 echo "$as_me:$LINENO: result: $SED" >&5
3832 echo "${ECHO_T}$SED" >&6
3834 echo "$as_me:$LINENO: checking for egrep" >&5
3835 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3836 if test "${ac_cv_prog_egrep+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3840 then ac_cv_prog_egrep='grep -E'
3841 else ac_cv_prog_egrep='egrep'
3844 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3845 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3846 EGREP=$ac_cv_prog_egrep
3850 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3851 if test "${with_gnu_ld+set}" = set; then
3852 withval="$with_gnu_ld"
3853 test "$withval" = no || with_gnu_ld=yes
3858 if test "$GCC" = yes; then
3859 # Check if gcc -print-prog-name=ld gives a path.
3860 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3861 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3864 # gcc leaves a trailing carriage return which upsets mingw
3865 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3867 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3870 # Accept absolute paths.
3872 re_direlt='/[^/][^/]*/\.\./'
3873 # Canonicalize the path of ld
3874 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3875 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3876 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3878 test -z "$LD" && LD="$ac_prog"
3881 # If it fails, then pretend we aren't using GCC.
3885 # If it is relative, then search for the first ld in PATH.
3889 elif test "$with_gnu_ld" = yes; then
3890 echo "$as_me:$LINENO: checking for GNU ld" >&5
3891 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3893 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3894 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3896 if test "${lt_cv_path_LD+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 if test -z "$LD"; then
3900 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3901 for ac_dir in $PATH; do
3903 test -z "$ac_dir" && ac_dir=.
3904 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3905 lt_cv_path_LD="$ac_dir/$ac_prog"
3906 # Check to see if the program is GNU ld. I'd rather use --version,
3907 # but apparently some GNU ld's only accept -v.
3908 # Break only if it was the GNU/non-GNU ld that we prefer.
3909 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3910 *GNU* | *'with BFD'*)
3911 test "$with_gnu_ld" != no && break
3914 test "$with_gnu_ld" != yes && break
3921 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3926 if test -n "$LD"; then
3927 echo "$as_me:$LINENO: result: $LD" >&5
3928 echo "${ECHO_T}$LD" >&6
3930 echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3933 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3934 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3935 { (exit 1); exit 1; }; }
3936 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3937 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3938 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3942 case `"$LD" -v 2>&1 </dev/null` in
3943 *GNU* | *'with BFD'*)
3944 lt_cv_prog_gnu_ld=yes
3947 lt_cv_prog_gnu_ld=no
3951 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3952 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3953 with_gnu_ld=$lt_cv_prog_gnu_ld
3956 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3957 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3958 if test "${lt_cv_ld_reload_flag+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 lt_cv_ld_reload_flag='-r'
3963 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3964 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3965 reload_flag=$lt_cv_ld_reload_flag
3966 case $reload_flag in
3968 *) reload_flag=" $reload_flag" ;;
3970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3972 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3973 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3974 if test "${lt_cv_path_NM+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 if test -n "$NM"; then
3978 # Let the user override the test.
3981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3982 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3984 test -z "$ac_dir" && ac_dir=.
3985 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3986 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3987 # Check to see if the nm accepts a BSD-compat flag.
3988 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3989 # nm: unknown option "B" ignored
3990 # Tru64's nm complains that /dev/null is an invalid object file
3991 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3992 */dev/null* | *'Invalid file or object type'*)
3993 lt_cv_path_NM="$tmp_nm -B"
3997 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3999 lt_cv_path_NM="$tmp_nm -p"
4003 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4004 continue # so that we can try to find one that supports BSD flags
4011 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4014 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4015 echo "${ECHO_T}$lt_cv_path_NM" >&6
4018 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4019 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4021 if test "$LN_S" = "ln -s"; then
4022 echo "$as_me:$LINENO: result: yes" >&5
4023 echo "${ECHO_T}yes" >&6
4025 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4026 echo "${ECHO_T}no, using $LN_S" >&6
4029 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4030 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4031 if test "${lt_cv_deplibs_check_method+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 lt_cv_file_magic_cmd='$MAGIC_CMD'
4035 lt_cv_file_magic_test_file=
4036 lt_cv_deplibs_check_method='unknown'
4037 # Need to set the preceding variable on all platforms that support
4038 # interlibrary dependencies.
4039 # 'none' -- dependencies not supported.
4040 # `unknown' -- same as none, but documents that we really don't know.
4041 # 'pass_all' -- all dependencies passed with no checks.
4042 # 'test_compile' -- check by making test program.
4043 # 'file_magic [[regex]]' -- check by looking for files in library path
4044 # which responds to the $file_magic_cmd with a given extended regex.
4045 # If you have `file' or equivalent on your system and you're not sure
4046 # whether `pass_all' will *always* work, you probably want this one.
4050 lt_cv_deplibs_check_method=pass_all
4054 lt_cv_deplibs_check_method=pass_all
4058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4059 lt_cv_file_magic_cmd='/usr/bin/file -L'
4060 lt_cv_file_magic_test_file=/shlib/libc.so
4063 cygwin* | mingw* | pw32*)
4064 # win32_libid is a shell function defined in ltmain.sh
4065 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4066 lt_cv_file_magic_cmd='win32_libid'
4069 darwin* | rhapsody*)
4070 # this will be overwritten by pass_all, but leave it in just in case
4071 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4072 lt_cv_file_magic_cmd='/usr/bin/file -L'
4074 rhapsody* | darwin1.[012])
4075 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4078 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4081 lt_cv_deplibs_check_method=pass_all
4085 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4088 # Not sure whether the presence of OpenBSD here was a mistake.
4089 # Let's accept both of them until this is cleared up.
4090 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4091 lt_cv_file_magic_cmd=/usr/bin/file
4092 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4096 lt_cv_deplibs_check_method=pass_all
4101 lt_cv_deplibs_check_method=pass_all
4104 hpux10.20* | hpux11*)
4105 lt_cv_file_magic_cmd=/usr/bin/file
4108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4109 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4112 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]'
4113 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4117 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4122 irix5* | irix6* | nonstopux*)
4124 irix5* | nonstopux*)
4125 # this will be overridden with pass_all, but let us keep it just in case
4126 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4130 *-32|*"-32 ") libmagic=32-bit;;
4131 *-n32|*"-n32 ") libmagic=N32;;
4132 *-64|*"-64 ") libmagic=64-bit;;
4133 *) libmagic=never-match;;
4135 # this will be overridden with pass_all, but let us keep it just in case
4136 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4139 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4140 lt_cv_deplibs_check_method=pass_all
4143 # This must be Linux ELF.
4146 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4147 lt_cv_deplibs_check_method=pass_all ;;
4149 # glibc up to 2.1.1 does not perform some relocations on ARM
4150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4152 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4156 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4157 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4165 lt_cv_file_magic_cmd=/usr/bin/file
4166 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4170 lt_cv_deplibs_check_method=unknown
4174 lt_cv_file_magic_cmd=/usr/bin/file
4175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4179 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4183 osf3* | osf4* | osf5*)
4184 # this will be overridden with pass_all, but let us keep it just in case
4185 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4186 lt_cv_file_magic_test_file=/shlib/libc.so
4187 lt_cv_deplibs_check_method=pass_all
4191 lt_cv_deplibs_check_method=pass_all
4195 lt_cv_deplibs_check_method=pass_all
4196 lt_cv_file_magic_test_file=/lib/libc.so
4199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4200 case $host_vendor in
4202 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]'
4203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4206 lt_cv_deplibs_check_method=pass_all
4209 lt_cv_file_magic_cmd='/bin/file'
4210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4213 lt_cv_file_magic_cmd='/bin/file'
4214 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4215 lt_cv_file_magic_test_file=/lib/libc.so
4218 lt_cv_deplibs_check_method=pass_all
4223 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4224 lt_cv_deplibs_check_method=pass_all
4229 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4230 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4231 file_magic_cmd=$lt_cv_file_magic_cmd
4232 deplibs_check_method=$lt_cv_deplibs_check_method
4233 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4238 # If no C compiler was specified, use CC.
4241 # Allow CC to be a program name with arguments.
4244 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4245 if test "${enable_libtool_lock+set}" = set; then
4246 enableval="$enable_libtool_lock"
4249 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4251 # Some flags need to be propagated to the compiler or linker for good
4255 # Find out which ABI we are using.
4256 echo 'int i;' > conftest.$ac_ext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258 (eval $ac_compile) 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; then
4262 case `/usr/bin/file conftest.$ac_objext` in
4274 # Find out which ABI we are using.
4275 echo '#line 4275 "configure"' > conftest.$ac_ext
4276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4277 (eval $ac_compile) 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; then
4281 if test "$lt_cv_prog_gnu_ld" = yes; then
4282 case `/usr/bin/file conftest.$ac_objext` in
4284 LD="${LD-ld} -melf32bsmip"
4287 LD="${LD-ld} -melf32bmipn32"
4290 LD="${LD-ld} -melf64bmip"
4294 case `/usr/bin/file conftest.$ac_objext` in
4310 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4311 # Find out which ABI we are using.
4312 echo 'int i;' > conftest.$ac_ext
4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314 (eval $ac_compile) 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; then
4318 case "`/usr/bin/file conftest.o`" in
4322 LD="${LD-ld} -m elf_i386"
4325 LD="${LD-ld} -m elf32ppclinux"
4328 LD="${LD-ld} -m elf_s390"
4331 LD="${LD-ld} -m elf32_sparc"
4338 LD="${LD-ld} -m elf_x86_64"
4340 ppc*-*linux*|powerpc*-*linux*)
4341 LD="${LD-ld} -m elf64ppc"
4344 LD="${LD-ld} -m elf64_s390"
4347 LD="${LD-ld} -m elf64_sparc"
4357 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4358 SAVE_CFLAGS="$CFLAGS"
4359 CFLAGS="$CFLAGS -belf"
4360 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4361 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4362 if test "${lt_cv_cc_needs_belf+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4386 rm -f conftest.$ac_objext conftest$ac_exeext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388 (eval $ac_link) 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest$ac_exeext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 lt_cv_cc_needs_belf=yes
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 lt_cv_cc_needs_belf=no
4415 rm -f conftest.err conftest.$ac_objext \
4416 conftest$ac_exeext conftest.$ac_ext
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4424 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4425 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4426 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4427 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4428 CFLAGS="$SAVE_CFLAGS"
4434 need_locks="$enable_libtool_lock"
4438 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4439 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4440 if test "${ac_cv_header_stdc+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 cat >conftest.$ac_ext <<_ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_cv_header_stdc=yes
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 ac_cv_header_stdc=no
4491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4493 if test $ac_cv_header_stdc = yes; then
4494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4495 cat >conftest.$ac_ext <<_ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505 $EGREP "memchr" >/dev/null 2>&1; then
4508 ac_cv_header_stdc=no
4514 if test $ac_cv_header_stdc = yes; then
4515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4526 $EGREP "free" >/dev/null 2>&1; then
4529 ac_cv_header_stdc=no
4535 if test $ac_cv_header_stdc = yes; then
4536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4537 if test "$cross_compiling" = yes; then
4540 cat >conftest.$ac_ext <<_ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4547 #if ((' ' & 0x0FF) == 0x020)
4548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4551 # define ISLOWER(c) \
4552 (('a' <= (c) && (c) <= 'i') \
4553 || ('j' <= (c) && (c) <= 'r') \
4554 || ('s' <= (c) && (c) <= 'z'))
4555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4563 for (i = 0; i < 256; i++)
4564 if (XOR (islower (i), ISLOWER (i))
4565 || toupper (i) != TOUPPER (i))
4570 rm -f conftest$ac_exeext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4572 (eval $ac_link) 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4583 echo "$as_me: program exited with status $ac_status" >&5
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_cv_header_stdc=no
4590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4594 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4595 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4596 if test $ac_cv_header_stdc = yes; then
4598 cat >>confdefs.h <<\_ACEOF
4599 #define STDC_HEADERS 1
4604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4614 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4615 inttypes.h stdint.h unistd.h
4617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4618 echo "$as_me:$LINENO: checking for $ac_header" >&5
4619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 cat >conftest.$ac_ext <<_ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629 $ac_includes_default
4631 #include <$ac_header>
4633 rm -f conftest.$ac_objext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635 (eval $ac_compile) 2>conftest.er1
4637 grep -v '^ *+' conftest.er1 >conftest.err
4639 cat conftest.err >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } &&
4642 { ac_try='test -z "$ac_c_werror_flag"
4643 || test ! -s conftest.err'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; } &&
4649 { ac_try='test -s conftest.$ac_objext'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 eval "$as_ac_Header=yes"
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4660 eval "$as_ac_Header=no"
4662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4667 cat >>confdefs.h <<_ACEOF
4668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4677 for ac_header in dlfcn.h
4679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4681 echo "$as_me:$LINENO: checking for $ac_header" >&5
4682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4689 # Is the header compilable?
4690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4692 cat >conftest.$ac_ext <<_ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 $ac_includes_default
4699 #include <$ac_header>
4701 rm -f conftest.$ac_objext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>conftest.er1
4705 grep -v '^ *+' conftest.er1 >conftest.err
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_header_compiler=yes
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_header_compiler=no
4730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4732 echo "${ECHO_T}$ac_header_compiler" >&6
4734 # Is the header present?
4735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #include <$ac_header>
4745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null; then
4753 if test -s conftest.err; then
4754 ac_cpp_err=$ac_c_preproc_warn_flag
4755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4762 if test -z "$ac_cpp_err"; then
4763 ac_header_preproc=yes
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 ac_header_preproc=no
4770 rm -f conftest.err conftest.$ac_ext
4771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4772 echo "${ECHO_T}$ac_header_preproc" >&6
4774 # So? What about this header?
4775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4781 ac_header_preproc=yes
4784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4798 ## ----------------------------------- ##
4799 ## Report this to llvmbugs@cs.uiuc.edu ##
4800 ## ----------------------------------- ##
4803 sed "s/^/$as_me: WARNING: /" >&2
4806 echo "$as_me:$LINENO: checking for $ac_header" >&5
4807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 eval "$as_ac_Header=\$ac_header_preproc"
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4818 cat >>confdefs.h <<_ACEOF
4819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4827 ac_cpp='$CXXCPP $CPPFLAGS'
4828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4831 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4832 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4833 if test -z "$CXXCPP"; then
4834 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 # Double quotes because CXXCPP needs to be expanded
4838 for CXXCPP in "$CXX -E" "/lib/cpp"
4841 for ac_cxx_preproc_warn_flag in '' yes
4843 # Use a header file that comes with gcc, so configuring glibc
4844 # with a fresh cross-compiler works.
4845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846 # <limits.h> exists even on freestanding compilers.
4847 # On the NeXT, cc -E runs the code through the compiler's parser,
4848 # not just through cpp. "Syntax error" is here to catch this case.
4849 cat >conftest.$ac_ext <<_ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4856 # include <limits.h>
4858 # include <assert.h>
4862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4865 grep -v '^ *+' conftest.er1 >conftest.err
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev/null; then
4870 if test -s conftest.err; then
4871 ac_cpp_err=$ac_cxx_preproc_warn_flag
4872 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4879 if test -z "$ac_cpp_err"; then
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4885 # Broken: fails on valid input.
4888 rm -f conftest.err conftest.$ac_ext
4890 # OK, works on sane cases. Now check whether non-existent headers
4891 # can be detected and how.
4892 cat >conftest.$ac_ext <<_ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 #include <ac_nonexistent.h>
4900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4903 grep -v '^ *+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } >/dev/null; then
4908 if test -s conftest.err; then
4909 ac_cpp_err=$ac_cxx_preproc_warn_flag
4910 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4917 if test -z "$ac_cpp_err"; then
4918 # Broken: success on invalid input.
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 # Passes both tests.
4928 rm -f conftest.err conftest.$ac_ext
4931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4932 rm -f conftest.err conftest.$ac_ext
4933 if $ac_preproc_ok; then
4938 ac_cv_prog_CXXCPP=$CXXCPP
4941 CXXCPP=$ac_cv_prog_CXXCPP
4943 ac_cv_prog_CXXCPP=$CXXCPP
4945 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4946 echo "${ECHO_T}$CXXCPP" >&6
4948 for ac_cxx_preproc_warn_flag in '' yes
4950 # Use a header file that comes with gcc, so configuring glibc
4951 # with a fresh cross-compiler works.
4952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953 # <limits.h> exists even on freestanding compilers.
4954 # On the NeXT, cc -E runs the code through the compiler's parser,
4955 # not just through cpp. "Syntax error" is here to catch this case.
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4963 # include <limits.h>
4965 # include <assert.h>
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null; then
4977 if test -s conftest.err; then
4978 ac_cpp_err=$ac_cxx_preproc_warn_flag
4979 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4986 if test -z "$ac_cpp_err"; then
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 # Broken: fails on valid input.
4995 rm -f conftest.err conftest.$ac_ext
4997 # OK, works on sane cases. Now check whether non-existent headers
4998 # can be detected and how.
4999 cat >conftest.$ac_ext <<_ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 #include <ac_nonexistent.h>
5007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } >/dev/null; then
5015 if test -s conftest.err; then
5016 ac_cpp_err=$ac_cxx_preproc_warn_flag
5017 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5024 if test -z "$ac_cpp_err"; then
5025 # Broken: success on invalid input.
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 # Passes both tests.
5035 rm -f conftest.err conftest.$ac_ext
5038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039 rm -f conftest.err conftest.$ac_ext
5040 if $ac_preproc_ok; then
5043 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5044 See \`config.log' for more details." >&5
5045 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5046 See \`config.log' for more details." >&2;}
5047 { (exit 1); exit 1; }; }
5051 ac_cpp='$CXXCPP $CPPFLAGS'
5052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5058 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5059 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5061 if test -n "$ac_tool_prefix"; then
5062 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5066 echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068 if test "${ac_cv_prog_F77+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 if test -n "$F77"; then
5072 ac_cv_prog_F77="$F77" # Let the user override the test.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 if test -n "$F77"; then
5092 echo "$as_me:$LINENO: result: $F77" >&5
5093 echo "${ECHO_T}$F77" >&6
5095 echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5099 test -n "$F77" && break
5102 if test -z "$F77"; then
5104 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5106 # Extract the first word of "$ac_prog", so it can be a program name with args.
5107 set dummy $ac_prog; ac_word=$2
5108 echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 if test -n "$ac_ct_F77"; then
5114 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_ac_ct_F77="$ac_prog"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5133 if test -n "$ac_ct_F77"; then
5134 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5135 echo "${ECHO_T}$ac_ct_F77" >&6
5137 echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6
5141 test -n "$ac_ct_F77" && break
5148 # Provide some information about the compiler.
5149 echo "$as_me:5149:" \
5150 "checking for Fortran 77 compiler version" >&5
5151 ac_compiler=`set X $ac_compile; echo $2`
5152 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5153 (eval $ac_compiler --version </dev/null >&5) 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }
5157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5158 (eval $ac_compiler -v </dev/null >&5) 2>&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }
5162 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5163 (eval $ac_compiler -V </dev/null >&5) 2>&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }
5169 # If we don't use `.F' as extension, the preprocessor is not run on the
5170 # input file. (Note that this only needs to work for GNU compilers.)
5173 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5174 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5175 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 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
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
5216 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5219 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5220 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5222 ac_test_FFLAGS=${FFLAGS+set}
5223 ac_save_FFLAGS=$FFLAGS
5225 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5226 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5227 if test "${ac_cv_prog_f77_g+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 cat >conftest.$ac_ext <<_ACEOF
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>conftest.er1
5240 grep -v '^ *+' conftest.er1 >conftest.err
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_f77_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest.$ac_objext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_prog_f77_g=yes
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5268 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5269 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5270 if test "$ac_test_FFLAGS" = set; then
5271 FFLAGS=$ac_save_FFLAGS
5272 elif test $ac_cv_prog_f77_g = yes; then
5273 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5279 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5286 G77=`test $ac_compiler_gnu = yes && echo yes`
5288 ac_cpp='$CPP $CPPFLAGS'
5289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5295 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5297 # find the maximum length of command line arguments
5298 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5299 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5300 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 # On DJGPP, this test can blow up pretty badly due to problems in libc
5309 # (any single argument exceeding 2000 bytes causes a buffer overrun
5310 # during glob expansion). Even if it were fixed, the result of this
5311 # check would be larger than it should be.
5312 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5316 # Under GNU Hurd, this test is not required because there is
5317 # no limit to the length of command line arguments.
5318 # Libtool will interpret -1 as no limit whatsoever
5319 lt_cv_sys_max_cmd_len=-1;
5323 # On Win9x/ME, this test blows up -- it succeeds, but takes
5324 # about 5 minutes as the teststring grows exponentially.
5325 # Worse, since 9x/ME are not pre-emptively multitasking,
5326 # you end up with a "frozen" computer, even though with patience
5327 # the test eventually succeeds (with a max line length of 256k).
5328 # Instead, let's just punt: use the minimum linelength reported by
5329 # all of the supported platforms: 8192 (on NT/2K/XP).
5330 lt_cv_sys_max_cmd_len=8192;
5334 # If test is not a shell built-in, we'll probably end up computing a
5335 # maximum length that is only half of the actual maximum length, but
5337 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5338 = "XX$testring") >/dev/null 2>&1 &&
5339 new_result=`expr "X$testring" : ".*" 2>&1` &&
5340 lt_cv_sys_max_cmd_len=$new_result &&
5341 test $i != 17 # 1/2 MB should be enough
5344 testring=$testring$testring
5347 # Add a significant safety factor because C++ compilers can tack on massive
5348 # amounts of additional arguments before passing them to the linker.
5349 # It appears as though 1/2 is a usable value.
5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5356 if test -n $lt_cv_sys_max_cmd_len ; then
5357 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5358 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5360 echo "$as_me:$LINENO: result: none" >&5
5361 echo "${ECHO_T}none" >&6
5367 # Check for command to grab the raw symbol name followed by C symbol from nm.
5368 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5369 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5370 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 # These are sane defaults that work on at least a few old systems.
5375 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5377 # Character class describing NM global symbol codes.
5378 symcode='[BCDEGRST]'
5380 # Regexp to match symbols that can be accessed directly from C.
5381 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5383 # Transform the above into a raw symbol and a C symbol.
5384 symxfrm='\1 \2\3 \3'
5386 # Transform an extracted symbol line into a proper C declaration
5387 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5389 # Transform an extracted symbol line into symbol name and symbol address
5390 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'"
5392 # Define system-specific variables.
5397 cygwin* | mingw* | pw32*)
5398 symcode='[ABCDGISTW]'
5400 hpux*) # Its linker distinguishes data from code symbols
5401 if test "$host_cpu" = ia64; then
5402 symcode='[ABCDEGRST]'
5404 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5405 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'"
5408 symcode='[BCDEGRST]'
5411 symcode='[BCDEGQRST]'
5421 # Handle CRLF in mingw tool chain
5425 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5429 # If we're using GNU nm, then use its standard symbol codes.
5430 case `$NM -V 2>&1` in
5431 *GNU* | *'with BFD'*)
5432 symcode='[ABCDGISTW]' ;;
5435 # Try without a prefix undercore, then with it.
5436 for ac_symprfx in "" "_"; do
5438 # Write the raw and C identifiers.
5439 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5441 # Check to see that the pipe works correctly.
5445 cat > conftest.$ac_ext <<EOF
5450 void nm_test_func(){}
5454 int main(){nm_test_var='a';nm_test_func();return(0);}
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458 (eval $ac_compile) 2>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; then
5462 # Now try to grab the symbols.
5464 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5465 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && test -s "$nlist"; then
5469 # Try sorting and uniquifying the output.
5470 if sort "$nlist" | uniq > "$nlist"T; then
5471 mv -f "$nlist"T "$nlist"
5476 # Make sure that we snagged all the symbols we need.
5477 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5478 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5479 cat <<EOF > conftest.$ac_ext
5485 # Now generate the symbol file.
5486 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5488 cat <<EOF >> conftest.$ac_ext
5489 #if defined (__STDC__) && __STDC__
5490 # define lt_ptr_t void *
5492 # define lt_ptr_t char *
5496 /* The mapping between symbol names and symbols. */
5501 lt_preloaded_symbols[] =
5504 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5505 cat <<\EOF >> conftest.$ac_ext
5513 # Now try linking the two files.
5514 mv conftest.$ac_objext conftstm.$ac_objext
5515 lt_save_LIBS="$LIBS"
5516 lt_save_CFLAGS="$CFLAGS"
5517 LIBS="conftstm.$ac_objext"
5518 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5526 LIBS="$lt_save_LIBS"
5527 CFLAGS="$lt_save_CFLAGS"
5529 echo "cannot find nm_test_func in $nlist" >&5
5532 echo "cannot find nm_test_var in $nlist" >&5
5535 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5538 echo "$progname: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5541 rm -f conftest* conftst*
5543 # Do not use the global_symbol_pipe unless it works.
5544 if test "$pipe_works" = yes; then
5547 lt_cv_sys_global_symbol_pipe=
5553 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5554 lt_cv_sys_global_symbol_to_cdecl=
5556 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5557 echo "$as_me:$LINENO: result: failed" >&5
5558 echo "${ECHO_T}failed" >&6
5560 echo "$as_me:$LINENO: result: ok" >&5
5561 echo "${ECHO_T}ok" >&6
5564 echo "$as_me:$LINENO: checking for objdir" >&5
5565 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5566 if test "${lt_cv_objdir+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 rm -f .libs 2>/dev/null
5570 mkdir .libs 2>/dev/null
5571 if test -d .libs; then
5574 # MS-DOS does not allow filenames that begin with a dot.
5577 rmdir .libs 2>/dev/null
5579 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5580 echo "${ECHO_T}$lt_cv_objdir" >&6
5581 objdir=$lt_cv_objdir
5589 # AIX sometimes has problems with the GCC collect2 program. For some
5590 # reason, if we set the COLLECT_NAMES environment variable, the problems
5591 # vanish in a puff of smoke.
5592 if test "X${COLLECT_NAMES+set}" != Xset; then
5594 export COLLECT_NAMES
5599 # Sed substitution that helps us do robust quoting. It backslashifies
5600 # metacharacters that are still active within double-quoted strings.
5601 Xsed='sed -e s/^X//'
5602 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5604 # Same as above, but do not quote variable references.
5605 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5607 # Sed substitution to delay expansion of an escaped shell variable in a
5608 # double_quote_subst'ed string.
5609 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5611 # Sed substitution to avoid accidental globbing in evaled expressions
5612 no_glob_subst='s/\*/\\\*/g'
5619 can_build_shared=yes
5621 # All known linkers require a `.a' archive for static linking (except M$VC,
5622 # which needs '.lib').
5624 ltmain="$ac_aux_dir/ltmain.sh"
5625 ofile="$default_ofile"
5626 with_gnu_ld="$lt_cv_prog_gnu_ld"
5628 if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}ar; ac_word=$2
5631 echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633 if test "${ac_cv_prog_AR+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 if test -n "$AR"; then
5637 ac_cv_prog_AR="$AR" # Let the user override the test.
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_AR="${ac_tool_prefix}ar"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 if test -n "$AR"; then
5657 echo "$as_me:$LINENO: result: $AR" >&5
5658 echo "${ECHO_T}$AR" >&6
5660 echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6
5665 if test -z "$ac_cv_prog_AR"; then
5667 # Extract the first word of "ar", so it can be a program name with args.
5668 set dummy ar; ac_word=$2
5669 echo "$as_me:$LINENO: checking for $ac_word" >&5
5670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5671 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 if test -n "$ac_ct_AR"; then
5675 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_ac_ct_AR="ar"
5685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5694 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5695 if test -n "$ac_ct_AR"; then
5696 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5697 echo "${ECHO_T}$ac_ct_AR" >&6
5699 echo "$as_me:$LINENO: result: no" >&5
5700 echo "${ECHO_T}no" >&6
5708 if test -n "$ac_tool_prefix"; then
5709 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5711 echo "$as_me:$LINENO: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713 if test "${ac_cv_prog_RANLIB+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 if test -n "$RANLIB"; then
5717 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 RANLIB=$ac_cv_prog_RANLIB
5736 if test -n "$RANLIB"; then
5737 echo "$as_me:$LINENO: result: $RANLIB" >&5
5738 echo "${ECHO_T}$RANLIB" >&6
5740 echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6
5745 if test -z "$ac_cv_prog_RANLIB"; then
5746 ac_ct_RANLIB=$RANLIB
5747 # Extract the first word of "ranlib", so it can be a program name with args.
5748 set dummy ranlib; ac_word=$2
5749 echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 if test -n "$ac_ct_RANLIB"; then
5755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_ac_ct_RANLIB="ranlib"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5775 if test -n "$ac_ct_RANLIB"; then
5776 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5777 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5779 echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6
5783 RANLIB=$ac_ct_RANLIB
5785 RANLIB="$ac_cv_prog_RANLIB"
5788 if test -n "$ac_tool_prefix"; then
5789 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}strip; ac_word=$2
5791 echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5793 if test "${ac_cv_prog_STRIP+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 if test -n "$STRIP"; then
5797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 STRIP=$ac_cv_prog_STRIP
5816 if test -n "$STRIP"; then
5817 echo "$as_me:$LINENO: result: $STRIP" >&5
5818 echo "${ECHO_T}$STRIP" >&6
5820 echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6
5825 if test -z "$ac_cv_prog_STRIP"; then
5827 # Extract the first word of "strip", so it can be a program name with args.
5828 set dummy strip; ac_word=$2
5829 echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5831 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 if test -n "$ac_ct_STRIP"; then
5835 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844 ac_cv_prog_ac_ct_STRIP="strip"
5845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5854 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5855 if test -n "$ac_ct_STRIP"; then
5856 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5857 echo "${ECHO_T}$ac_ct_STRIP" >&6
5859 echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5865 STRIP="$ac_cv_prog_STRIP"
5870 old_CFLAGS="$CFLAGS"
5872 # Set sane defaults for various variables
5873 test -z "$AR" && AR=ar
5874 test -z "$AR_FLAGS" && AR_FLAGS=cru
5875 test -z "$AS" && AS=as
5876 test -z "$CC" && CC=cc
5877 test -z "$LTCC" && LTCC=$CC
5878 test -z "$DLLTOOL" && DLLTOOL=dlltool
5879 test -z "$LD" && LD=ld
5880 test -z "$LN_S" && LN_S="ln -s"
5881 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5882 test -z "$NM" && NM=nm
5883 test -z "$SED" && SED=sed
5884 test -z "$OBJDUMP" && OBJDUMP=objdump
5885 test -z "$RANLIB" && RANLIB=:
5886 test -z "$STRIP" && STRIP=:
5887 test -z "$ac_objext" && ac_objext=o
5889 # Determine commands to create old-style static archives.
5890 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5891 old_postinstall_cmds='chmod 644 $oldlib'
5892 old_postuninstall_cmds=
5894 if test -n "$RANLIB"; then
5897 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5900 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5903 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5906 # Only perform the check for file, if the check method requires it
5907 case $deplibs_check_method in
5909 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5910 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5911 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5912 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5920 lt_save_MAGIC_CMD="$MAGIC_CMD"
5921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5922 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5923 for ac_dir in $ac_dummy; do
5925 test -z "$ac_dir" && ac_dir=.
5926 if test -f $ac_dir/${ac_tool_prefix}file; then
5927 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5928 if test -n "$file_magic_test_file"; then
5929 case $deplibs_check_method in
5931 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5934 $EGREP "$file_magic_regex" > /dev/null; then
5939 *** Warning: the command libtool uses to detect shared libraries,
5940 *** $file_magic_cmd, produces output that libtool cannot recognize.
5941 *** The result is that libtool may fail to recognize shared libraries
5942 *** as such. This will affect the creation of libtool libraries that
5943 *** depend on shared libraries, but programs linked with such libtool
5944 *** libraries will work regardless of this problem. Nevertheless, you
5945 *** may want to report the problem to your system manager and/or to
5946 *** bug-libtool@gnu.org
5956 MAGIC_CMD="$lt_save_MAGIC_CMD"
5961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5962 if test -n "$MAGIC_CMD"; then
5963 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5964 echo "${ECHO_T}$MAGIC_CMD" >&6
5966 echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5970 if test -z "$lt_cv_path_MAGIC_CMD"; then
5971 if test -n "$ac_tool_prefix"; then
5972 echo "$as_me:$LINENO: checking for file" >&5
5973 echo $ECHO_N "checking for file... $ECHO_C" >&6
5974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5982 lt_save_MAGIC_CMD="$MAGIC_CMD"
5983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5985 for ac_dir in $ac_dummy; do
5987 test -z "$ac_dir" && ac_dir=.
5988 if test -f $ac_dir/file; then
5989 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5990 if test -n "$file_magic_test_file"; then
5991 case $deplibs_check_method in
5993 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5996 $EGREP "$file_magic_regex" > /dev/null; then
6001 *** Warning: the command libtool uses to detect shared libraries,
6002 *** $file_magic_cmd, produces output that libtool cannot recognize.
6003 *** The result is that libtool may fail to recognize shared libraries
6004 *** as such. This will affect the creation of libtool libraries that
6005 *** depend on shared libraries, but programs linked with such libtool
6006 *** libraries will work regardless of this problem. Nevertheless, you
6007 *** may want to report the problem to your system manager and/or to
6008 *** bug-libtool@gnu.org
6018 MAGIC_CMD="$lt_save_MAGIC_CMD"
6023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6024 if test -n "$MAGIC_CMD"; then
6025 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6026 echo "${ECHO_T}$MAGIC_CMD" >&6
6028 echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6044 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6045 if test "${enable_libtool_lock+set}" = set; then
6046 enableval="$enable_libtool_lock"
6049 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6052 # Check whether --with-pic or --without-pic was given.
6053 if test "${with_pic+set}" = set; then
6059 test -z "$pic_mode" && pic_mode=default
6061 # Use C for the default configuration in the libtool script
6065 ac_cpp='$CPP $CPPFLAGS'
6066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071 # Source file extension for C test sources.
6074 # Object file extension for compiled C test sources.
6078 # Code to be used in simple compile tests
6079 lt_simple_compile_test_code="int some_variable = 0;\n"
6081 # Code to be used in simple link tests
6082 lt_simple_link_test_code='int main(){return(0);}\n'
6085 # If no C compiler was specified, use CC.
6088 # Allow CC to be a program name with arguments.
6093 # Check for any special shared library compilation flags.
6096 if test "$GCC" = no; then
6099 lt_prog_cc_shlib='-belf'
6103 if test -n "$lt_prog_cc_shlib"; then
6104 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6105 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6106 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6108 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6109 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6110 lt_cv_prog_cc_can_build_shared=no
6116 # Check to make sure the static flag actually works.
6118 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6119 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6120 if test "${lt_prog_compiler_static_works+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 lt_prog_compiler_static_works=no
6124 save_LDFLAGS="$LDFLAGS"
6125 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6126 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6127 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6128 # The compiler can only warn and ignore the option if not recognized
6129 # So say no if there are warnings
6130 if test -s conftest.err; then
6131 # Append any errors to the config.log.
6132 cat conftest.err 1>&5
6134 lt_prog_compiler_static_works=yes
6138 LDFLAGS="$save_LDFLAGS"
6141 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6142 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6144 if test x"$lt_prog_compiler_static_works" = xyes; then
6147 lt_prog_compiler_static=
6153 ## There is no encapsulation within the following macros, do not change
6154 ## the running order or otherwise move them around unless you know exactly
6155 ## what you are doing...
6157 lt_prog_compiler_no_builtin_flag=
6159 if test "$GCC" = yes; then
6160 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6162 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6163 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6164 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 lt_cv_prog_compiler_rtti_exceptions=no
6168 ac_outfile=conftest.$ac_objext
6169 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6170 lt_compiler_flag="-fno-rtti -fno-exceptions"
6171 # Insert the option either (1) after the last *FLAGS variable, or
6172 # (2) before a word containing "conftest.", or (3) at the end.
6173 # Note that $ac_compile itself does not contain backslashes and begins
6174 # with a dollar sign (not a hyphen), so the echo should work correctly.
6175 # The option is referenced via a variable to avoid confusing sed.
6176 lt_compile=`echo "$ac_compile" | $SED \
6177 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6179 -e 's:$: $lt_compiler_flag:'`
6180 (eval echo "\"\$as_me:6180: $lt_compile\"" >&5)
6181 (eval "$lt_compile" 2>conftest.err)
6183 cat conftest.err >&5
6184 echo "$as_me:6184: \$? = $ac_status" >&5
6185 if (exit $ac_status) && test -s "$ac_outfile"; then
6186 # The compiler can only warn and ignore the option if not recognized
6187 # So say no if there are warnings
6188 if test ! -s conftest.err; then
6189 lt_cv_prog_compiler_rtti_exceptions=yes
6195 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6196 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6198 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6199 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6206 lt_prog_compiler_wl=
6207 lt_prog_compiler_pic=
6208 lt_prog_compiler_static=
6210 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6211 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6213 if test "$GCC" = yes; then
6214 lt_prog_compiler_wl='-Wl,'
6215 lt_prog_compiler_static='-static'
6219 # All AIX code is PIC.
6220 if test "$host_cpu" = ia64; then
6221 # AIX 5 now supports IA64 processor
6222 lt_prog_compiler_static='-Bstatic'
6227 # FIXME: we need at least 68020 code to build shared libraries, but
6228 # adding the `-m68020' flag to GCC prevents building anything better,
6230 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6233 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6234 # PIC is the default for these OSes.
6237 mingw* | pw32* | os2*)
6238 # This hack is so that the source file can tell whether it is being
6239 # built for inclusion in a dll (and should export symbols for example).
6240 lt_prog_compiler_pic='-DDLL_EXPORT'
6243 darwin* | rhapsody*)
6244 # PIC is the default on this platform
6245 # Common symbols not allowed in MH_DYLIB files
6246 lt_prog_compiler_pic='-fno-common'
6250 # Just because we use GCC doesn't mean we suddenly get shared libraries
6251 # on systems that don't support them.
6252 lt_prog_compiler_can_build_shared=no
6257 if test -d /usr/nec; then
6258 lt_prog_compiler_pic=-Kconform_pic
6263 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6270 lt_prog_compiler_pic='-fPIC'
6276 lt_prog_compiler_pic='-fPIC'
6280 # PORTME Check for flag to pass linker flags through the system compiler.
6283 lt_prog_compiler_wl='-Wl,'
6284 if test "$host_cpu" = ia64; then
6285 # AIX 5 now supports IA64 processor
6286 lt_prog_compiler_static='-Bstatic'
6288 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6292 mingw* | pw32* | os2*)
6293 # This hack is so that the source file can tell whether it is being
6294 # built for inclusion in a dll (and should export symbols for example).
6295 lt_prog_compiler_pic='-DDLL_EXPORT'
6298 hpux9* | hpux10* | hpux11*)
6299 lt_prog_compiler_wl='-Wl,'
6300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6307 lt_prog_compiler_pic='+Z'
6310 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6311 lt_prog_compiler_static='${wl}-a ${wl}archive'
6314 irix5* | irix6* | nonstopux*)
6315 lt_prog_compiler_wl='-Wl,'
6316 # PIC (with -KPIC) is the default.
6317 lt_prog_compiler_static='-non_shared'
6321 lt_prog_compiler_pic='-KPIC'
6322 lt_prog_compiler_static='-Bstatic'
6328 lt_prog_compiler_wl='-Wl,'
6329 lt_prog_compiler_pic='-KPIC'
6330 lt_prog_compiler_static='-static'
6333 lt_prog_compiler_wl='-Wl,'
6334 # All Alpha code is PIC.
6335 lt_prog_compiler_static='-non_shared'
6340 osf3* | osf4* | osf5*)
6341 lt_prog_compiler_wl='-Wl,'
6342 # All OSF/1 code is PIC.
6343 lt_prog_compiler_static='-non_shared'
6347 lt_prog_compiler_pic='-Kpic'
6348 lt_prog_compiler_static='-dn'
6352 lt_prog_compiler_wl='-Wl,'
6353 lt_prog_compiler_pic='-KPIC'
6354 lt_prog_compiler_static='-Bstatic'
6358 lt_prog_compiler_wl='-Qoption ld '
6359 lt_prog_compiler_pic='-PIC'
6360 lt_prog_compiler_static='-Bstatic'
6363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6364 lt_prog_compiler_wl='-Wl,'
6365 lt_prog_compiler_pic='-KPIC'
6366 lt_prog_compiler_static='-Bstatic'
6370 if test -d /usr/nec ;then
6371 lt_prog_compiler_pic='-Kconform_pic'
6372 lt_prog_compiler_static='-Bstatic'
6377 lt_prog_compiler_pic='-pic'
6378 lt_prog_compiler_static='-Bstatic'
6382 lt_prog_compiler_can_build_shared=no
6387 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6388 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6391 # Check to make sure the PIC flag actually works.
6393 if test -n "$lt_prog_compiler_pic"; then
6394 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6395 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6396 if test "${lt_prog_compiler_pic_works+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 lt_prog_compiler_pic_works=no
6400 ac_outfile=conftest.$ac_objext
6401 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6402 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6403 # Insert the option either (1) after the last *FLAGS variable, or
6404 # (2) before a word containing "conftest.", or (3) at the end.
6405 # Note that $ac_compile itself does not contain backslashes and begins
6406 # with a dollar sign (not a hyphen), so the echo should work correctly.
6407 # The option is referenced via a variable to avoid confusing sed.
6408 lt_compile=`echo "$ac_compile" | $SED \
6409 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6411 -e 's:$: $lt_compiler_flag:'`
6412 (eval echo "\"\$as_me:6412: $lt_compile\"" >&5)
6413 (eval "$lt_compile" 2>conftest.err)
6415 cat conftest.err >&5
6416 echo "$as_me:6416: \$? = $ac_status" >&5
6417 if (exit $ac_status) && test -s "$ac_outfile"; then
6418 # The compiler can only warn and ignore the option if not recognized
6419 # So say no if there are warnings
6420 if test ! -s conftest.err; then
6421 lt_prog_compiler_pic_works=yes
6427 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6428 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6430 if test x"$lt_prog_compiler_pic_works" = xyes; then
6431 case $lt_prog_compiler_pic in
6433 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6436 lt_prog_compiler_pic=
6437 lt_prog_compiler_can_build_shared=no
6442 # For platforms which do not support PIC, -DPIC is meaningless:
6444 lt_prog_compiler_pic=
6447 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6451 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6452 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6453 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 lt_cv_prog_compiler_c_o=no
6457 $rm -r conftest 2>/dev/null
6461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6463 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6464 # that will create temporary files in the current directory regardless of
6465 # the output directory. Thus, making CWD read-only will cause this test
6466 # to fail, enabling locking or at least warning the user not to do parallel
6470 lt_compiler_flag="-o out/conftest2.$ac_objext"
6471 # Insert the option either (1) after the last *FLAGS variable, or
6472 # (2) before a word containing "conftest.", or (3) at the end.
6473 # Note that $ac_compile itself does not contain backslashes and begins
6474 # with a dollar sign (not a hyphen), so the echo should work correctly.
6475 lt_compile=`echo "$ac_compile" | $SED \
6476 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6478 -e 's:$: $lt_compiler_flag:'`
6479 (eval echo "\"\$as_me:6479: $lt_compile\"" >&5)
6480 (eval "$lt_compile" 2>out/conftest.err)
6482 cat out/conftest.err >&5
6483 echo "$as_me:6483: \$? = $ac_status" >&5
6484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6486 # The compiler can only warn and ignore the option if not recognized
6487 # So say no if there are warnings
6488 if test ! -s out/conftest.err; then
6489 lt_cv_prog_compiler_c_o=yes
6500 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6501 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6504 hard_links="nottested"
6505 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6506 # do not overwrite the value of need_locks provided by the user
6507 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6508 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6513 ln conftest.a conftest.b 2>&5 || hard_links=no
6514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6515 echo "$as_me:$LINENO: result: $hard_links" >&5
6516 echo "${ECHO_T}$hard_links" >&6
6517 if test "$hard_links" = no; then
6518 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6519 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6526 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6527 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6530 allow_undefined_flag=
6531 enable_shared_with_static_runtimes=no
6533 archive_expsym_cmds=
6534 old_archive_From_new_cmds=
6535 old_archive_from_expsyms_cmds=
6536 export_dynamic_flag_spec=
6537 whole_archive_flag_spec=
6538 thread_safe_flag_spec=
6539 hardcode_libdir_flag_spec=
6540 hardcode_libdir_flag_spec_ld=
6541 hardcode_libdir_separator=
6544 hardcode_shlibpath_var=unsupported
6545 link_all_deplibs=unknown
6546 hardcode_automatic=no
6549 always_export_symbols=no
6550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6551 # include_expsyms should be a list of space-separated symbols to be *always*
6552 # included in the symbol list
6554 # exclude_expsyms can be an extended regexp of symbols to exclude
6555 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6556 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6557 # as well as any symbol that contains `d'.
6558 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6559 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6560 # platforms (ab)use it in PIC code, but their linkers get confused if
6561 # the symbol is explicitly referenced. Since portable code cannot
6562 # rely on this symbol name, it's probably fine to never include it in
6563 # preloaded symbol tables.
6564 extract_expsyms_cmds=
6567 cygwin* | mingw* | pw32*)
6568 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6569 # When not using gcc, we currently assume that we are using
6570 # Microsoft Visual C++.
6571 if test "$GCC" != yes; then
6581 if test "$with_gnu_ld" = yes; then
6582 # If archive_cmds runs LD, not CC, wlarc should be empty
6585 # See if GNU ld supports shared libraries.
6587 aix3* | aix4* | aix5*)
6588 # On AIX/PPC, the GNU linker is very broken
6589 if test "$host_cpu" != ia64; then
6593 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6594 *** to be unable to reliably create shared libraries on AIX.
6595 *** Therefore, libtool is disabling shared libraries support. If you
6596 *** really care for shared libraries, you may want to modify your PATH
6597 *** so that a non-GNU linker is found, and then restart.
6604 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)'
6605 hardcode_libdir_flag_spec='-L$libdir'
6606 hardcode_minus_L=yes
6608 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6609 # that the semantics of dynamic libraries on AmigaOS, at least up
6610 # to version 4, is to share data among multiple programs linked
6611 # with the same dynamic library. Since this doesn't match the
6612 # behavior of shared libraries on other platforms, we can't use
6618 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6619 allow_undefined_flag=unsupported
6620 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6621 # support --undefined. This deserves some investigation. FIXME
6622 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6628 cygwin* | mingw* | pw32*)
6629 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6630 # as there is no search path for DLLs.
6631 hardcode_libdir_flag_spec='-L$libdir'
6632 allow_undefined_flag=unsupported
6633 always_export_symbols=no
6634 enable_shared_with_static_runtimes=yes
6635 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6637 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6639 # If the export-symbols file already is a .def file (1st line
6640 # is EXPORTS), use it as is; otherwise, prepend...
6641 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6642 cp $export_symbols $output_objdir/$soname.def;
6644 echo EXPORTS > $output_objdir/$soname.def;
6645 cat $export_symbols >> $output_objdir/$soname.def;
6647 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6655 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6664 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6668 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6669 *** create shared libraries on Solaris systems. Therefore, libtool
6670 *** is disabling shared libraries support. We urge you to upgrade GNU
6671 *** binutils to release 2.9.1 or newer. Another option is to modify
6672 *** your PATH or compiler configuration so that the native linker is
6673 *** used, and then restart.
6676 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6685 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6688 hardcode_shlibpath_var=no
6692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6701 if test "$ld_shlibs" = yes; then
6702 runpath_var=LD_RUN_PATH
6703 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6704 export_dynamic_flag_spec='${wl}--export-dynamic'
6705 # ancient GNU ld didn't support --whole-archive et. al.
6706 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6707 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6709 whole_archive_flag_spec=
6713 # PORTME fill in a description of your system's linker (not GNU ld)
6716 allow_undefined_flag=unsupported
6717 always_export_symbols=yes
6718 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'
6719 # Note: this linker hardcodes the directories in LIBPATH if there
6720 # are no directories specified by -L.
6721 hardcode_minus_L=yes
6722 if test "$GCC" = yes && test -z "$link_static_flag"; then
6723 # Neither direct hardcoding nor static linking is supported with a
6725 hardcode_direct=unsupported
6730 if test "$host_cpu" = ia64; then
6731 # On IA64, the linker does run time linking by default, so we don't
6732 # have to do anything special.
6733 aix_use_runtimelinking=no
6734 exp_sym_flag='-Bexport'
6737 # If we're using GNU nm, then we don't want the "-C" option.
6738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6739 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6740 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'
6742 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'
6744 aix_use_runtimelinking=no
6746 # Test if we are trying to use run time linking or normal
6747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6748 # need to do runtime linking.
6749 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6750 for ld_flag in $LDFLAGS; do
6751 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6752 aix_use_runtimelinking=yes
6758 exp_sym_flag='-bexport'
6759 no_entry_flag='-bnoentry'
6762 # When large executables or shared objects are built, AIX ld can
6763 # have problems creating the table of contents. If linking a library
6764 # or program results in "error TOC overflow" add -mminimal-toc to
6765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6770 hardcode_libdir_separator=':'
6771 link_all_deplibs=yes
6773 if test "$GCC" = yes; then
6774 case $host_os in aix4.012|aix4.012.*)
6775 # We only want to do this on AIX 4.2 and lower, the check
6776 # below for broken collect2 doesn't work under 4.3+
6777 collect2name=`${CC} -print-prog-name=collect2`
6778 if test -f "$collect2name" && \
6779 strings "$collect2name" | grep resolve_lib_name >/dev/null
6781 # We have reworked collect2
6784 # We have old collect2
6785 hardcode_direct=unsupported
6786 # It fails to find uninstalled libraries when the uninstalled
6787 # path is not listed in the libpath. Setting hardcode_minus_L
6788 # to unsupported forces relinking
6789 hardcode_minus_L=yes
6790 hardcode_libdir_flag_spec='-L$libdir'
6791 hardcode_libdir_separator=
6794 shared_flag='-shared'
6797 if test "$host_cpu" = ia64; then
6798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6799 # chokes on -Wl,-G. The following line is correct:
6802 if test "$aix_use_runtimelinking" = yes; then
6803 shared_flag='${wl}-G'
6805 shared_flag='${wl}-bM:SRE'
6810 # It seems that -bexpall does not export symbols beginning with
6811 # underscore (_), so it is better to generate a list of symbols to export.
6812 always_export_symbols=yes
6813 if test "$aix_use_runtimelinking" = yes; then
6814 # Warning - without using the other runtime loading flags (-brtl),
6815 # -berok will link without error, but may produce a broken library.
6816 allow_undefined_flag='-berok'
6817 # Determine the default libpath from the value encoded in an empty executable.
6818 cat >conftest.$ac_ext <<_ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6833 rm -f conftest.$ac_objext conftest$ac_exeext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6835 (eval $ac_link) 2>conftest.er1
6837 grep -v '^ *+' conftest.er1 >conftest.err
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try='test -z "$ac_c_werror_flag"
6843 || test ! -s conftest.err'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; } &&
6849 { ac_try='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6856 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6858 # Check for a 64-bit object if we didn't find anything.
6859 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; }
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6866 rm -f conftest.err conftest.$ac_objext \
6867 conftest$ac_exeext conftest.$ac_ext
6868 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6870 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6871 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"
6873 if test "$host_cpu" = ia64; then
6874 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6875 allow_undefined_flag="-z nodefs"
6876 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"
6878 # Determine the default libpath from the value encoded in an empty executable.
6879 cat >conftest.$ac_ext <<_ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6896 (eval $ac_link) 2>conftest.er1
6898 grep -v '^ *+' conftest.er1 >conftest.err
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -z "$ac_c_werror_flag"
6904 || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try='test -s conftest$ac_exeext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6919 # Check for a 64-bit object if we didn't find anything.
6920 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; }
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6927 rm -f conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
6929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6932 # Warning - without using the other run time loading flags,
6933 # -berok will link without error, but may produce a broken library.
6934 no_undefined_flag=' ${wl}-bernotok'
6935 allow_undefined_flag=' ${wl}-berok'
6936 # -bexpall does not export symbols beginning with underscore (_)
6937 always_export_symbols=yes
6938 # Exported symbols can be pulled into shared objects from archives
6939 whole_archive_flag_spec=' '
6940 archive_cmds_need_lc=yes
6941 # This is similar to how AIX traditionally builds it's shared libraries.
6942 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'
6948 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)'
6949 hardcode_libdir_flag_spec='-L$libdir'
6950 hardcode_minus_L=yes
6951 # see comment about different semantics on the GNU ld section
6956 export_dynamic_flag_spec=-rdynamic
6959 cygwin* | mingw* | pw32*)
6960 # When not using gcc, we currently assume that we are using
6961 # Microsoft Visual C++.
6962 # hardcode_libdir_flag_spec is actually meaningless, as there is
6963 # no search path for DLLs.
6964 hardcode_libdir_flag_spec=' '
6965 allow_undefined_flag=unsupported
6966 # Tell ltmain to make .lib files, not .a files.
6968 # Tell ltmain to make .dll files, not .so files.
6970 # FIXME: Setting linknames here is a bad hack.
6971 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6972 # The linker will automatically build a .lib file if we build a DLL.
6973 old_archive_From_new_cmds='true'
6974 # FIXME: Should let the user specify the lib program.
6975 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6976 fix_srcfile_path='`cygpath -w "$srcfile"`'
6977 enable_shared_with_static_runtimes=yes
6980 darwin* | rhapsody*)
6981 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6982 archive_cmds_need_lc=no
6984 rhapsody* | darwin1.[012])
6985 allow_undefined_flag='-undefined suppress'
6988 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6991 # FIXME: Relying on posixy $() will cause problems for
6992 # cross-compilation, but unfortunately the echo tests do not
6993 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6994 # `"' quotes if we put them in here... so don't!
6995 lt_int_apple_cc_single_mod=no
6996 output_verbose_link_cmd='echo'
6997 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6998 lt_int_apple_cc_single_mod=yes
7000 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7001 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7003 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'
7005 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7006 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7007 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7008 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}'
7010 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}'
7012 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}'
7014 hardcode_automatic=yes
7015 hardcode_shlibpath_var=unsupported
7016 whole_archive_flag_spec='-all_load $convenience'
7017 link_all_deplibs=yes
7022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7023 hardcode_libdir_flag_spec='-L$libdir'
7024 hardcode_shlibpath_var=no
7031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7032 # support. Future versions do this automatically, but an explicit c++rt0.o
7033 # does not break anything, and helps significantly (at the cost of a little
7036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7037 hardcode_libdir_flag_spec='-R$libdir'
7039 hardcode_shlibpath_var=no
7042 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7046 hardcode_minus_L=yes
7047 hardcode_shlibpath_var=no
7050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7052 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7053 hardcode_libdir_flag_spec='-R$libdir'
7055 hardcode_shlibpath_var=no
7059 if test "$GCC" = yes; then
7060 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'
7062 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'
7064 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7065 hardcode_libdir_separator=:
7068 # hardcode_minus_L: Not really in the search PATH,
7069 # but as the default location of the library.
7070 hardcode_minus_L=yes
7071 export_dynamic_flag_spec='${wl}-E'
7075 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7078 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7081 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7087 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7090 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7094 if test "$with_gnu_ld" = no; then
7097 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7098 hardcode_libdir_flag_spec_ld='+b $libdir'
7099 hardcode_libdir_separator=:
7101 hardcode_shlibpath_var=no
7104 hardcode_libdir_flag_spec='-L$libdir'
7106 hardcode_shlibpath_var=no
7108 # hardcode_minus_L: Not really in the search PATH,
7109 # but as the default location of the library.
7110 hardcode_minus_L=yes
7113 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7114 hardcode_libdir_separator=:
7116 export_dynamic_flag_spec='${wl}-E'
7118 # hardcode_minus_L: Not really in the search PATH,
7119 # but as the default location of the library.
7120 hardcode_minus_L=yes
7126 irix5* | irix6* | nonstopux*)
7127 if test "$GCC" = yes; then
7128 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'
7130 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'
7131 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7134 hardcode_libdir_separator=:
7135 link_all_deplibs=yes
7139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7142 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7144 hardcode_libdir_flag_spec='-R$libdir'
7146 hardcode_shlibpath_var=no
7150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7153 hardcode_libdir_separator=:
7154 hardcode_shlibpath_var=no
7159 hardcode_shlibpath_var=no
7160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7163 export_dynamic_flag_spec='${wl}-E'
7166 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7168 hardcode_libdir_flag_spec='-R$libdir'
7171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7172 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7179 hardcode_libdir_flag_spec='-L$libdir'
7180 hardcode_minus_L=yes
7181 allow_undefined_flag=unsupported
7182 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'
7183 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7187 if test "$GCC" = yes; then
7188 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7189 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'
7191 allow_undefined_flag=' -expect_unresolved \*'
7192 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'
7194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7195 hardcode_libdir_separator=:
7198 osf4* | osf5*) # as osf3* with the addition of -msym flag
7199 if test "$GCC" = yes; then
7200 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7201 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'
7202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7204 allow_undefined_flag=' -expect_unresolved \*'
7205 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'
7206 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7207 $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'
7209 # Both c and cxx compiler support -rpath directly
7210 hardcode_libdir_flag_spec='-rpath $libdir'
7212 hardcode_libdir_separator=:
7216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7217 hardcode_shlibpath_var=no
7218 export_dynamic_flag_spec='${wl}-Bexport'
7219 runpath_var=LD_RUN_PATH
7220 hardcode_runpath_var=yes
7224 no_undefined_flag=' -z text'
7225 if test "$GCC" = yes; then
7226 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7227 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7228 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7230 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7231 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7232 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7234 hardcode_libdir_flag_spec='-R$libdir'
7235 hardcode_shlibpath_var=no
7237 solaris2.[0-5] | solaris2.[0-5].*) ;;
7238 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7239 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7241 link_all_deplibs=yes
7245 if test "x$host_vendor" = xsequent; then
7246 # Use $CC to link under sequent, because it throws in some extra .o
7247 # files that make .init and .fini sections work.
7248 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7250 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7252 hardcode_libdir_flag_spec='-L$libdir'
7254 hardcode_minus_L=yes
7255 hardcode_shlibpath_var=no
7259 case $host_vendor in
7261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7262 hardcode_direct=yes # is this really true???
7265 ## LD is ld it makes a PLAMLIB
7266 ## CC just makes a GrossModule.
7267 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7268 reload_cmds='$CC -r -o $output$reload_objs'
7272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7276 runpath_var='LD_RUN_PATH'
7277 hardcode_shlibpath_var=no
7281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7282 hardcode_shlibpath_var=no
7283 export_dynamic_flag_spec='-Bexport'
7287 if test -d /usr/nec; then
7288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7289 hardcode_shlibpath_var=no
7290 runpath_var=LD_RUN_PATH
7291 hardcode_runpath_var=yes
7297 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7300 hardcode_shlibpath_var=no
7301 hardcode_runpath_var=yes
7302 runpath_var=LD_RUN_PATH
7305 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7306 no_undefined_flag='${wl}-z ${wl}text'
7307 if test "$GCC" = yes; then
7308 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7310 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7312 runpath_var='LD_RUN_PATH'
7313 hardcode_shlibpath_var=no
7317 no_undefined_flag=' -z text'
7318 # $CC -shared without GNU ld will not create a library from C++
7319 # object files and a static libstdc++, better avoid it by now
7320 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7321 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7323 hardcode_libdir_flag_spec=
7324 hardcode_shlibpath_var=no
7325 runpath_var='LD_RUN_PATH'
7329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330 hardcode_libdir_flag_spec='-L$libdir'
7331 hardcode_shlibpath_var=no
7340 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7341 echo "${ECHO_T}$ld_shlibs" >&6
7342 test "$ld_shlibs" = no && can_build_shared=no
7344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7345 if test "$GCC" = yes; then
7346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7350 # Do we need to explicitly link libc?
7352 case "x$archive_cmds_need_lc" in
7354 # Assume -lc should be added
7355 archive_cmds_need_lc=yes
7357 if test "$enable_shared" = yes && test "$GCC" = yes; then
7358 case $archive_cmds in
7360 # FIXME: we may have to deal with multi-command sequences.
7363 # Test whether the compiler implicitly links with -lc since on some
7364 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7365 # to ld, don't add -lc before -lgcc.
7366 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7367 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7369 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7372 (eval $ac_compile) 2>&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } 2>conftest.err; then
7378 libobjs=conftest.$ac_objext
7380 wl=$lt_prog_compiler_wl
7386 lt_save_allow_undefined_flag=$allow_undefined_flag
7387 allow_undefined_flag=
7388 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7389 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }
7394 archive_cmds_need_lc=no
7396 archive_cmds_need_lc=yes
7398 allow_undefined_flag=$lt_save_allow_undefined_flag
7400 cat conftest.err 1>&5
7403 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7404 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7411 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7412 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7414 if test -n "$hardcode_libdir_flag_spec" || \
7415 test -n "$runpath_var " || \
7416 test "X$hardcode_automatic"="Xyes" ; then
7418 # We can hardcode non-existant directories.
7419 if test "$hardcode_direct" != no &&
7420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7421 # have to relink, otherwise we might link with an installed library
7422 # when we should be linking with a yet-to-be-installed one
7423 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7424 test "$hardcode_minus_L" != no; then
7425 # Linking always hardcodes the temporary library directory.
7426 hardcode_action=relink
7428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7429 hardcode_action=immediate
7432 # We cannot hardcode anything, or else we can only hardcode existing
7434 hardcode_action=unsupported
7436 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7437 echo "${ECHO_T}$hardcode_action" >&6
7439 if test "$hardcode_action" = relink; then
7440 # Fast installation is not supported
7441 enable_fast_install=no
7442 elif test "$shlibpath_overrides_runpath" = yes ||
7443 test "$enable_shared" = no; then
7444 # Fast installation is not necessary
7445 enable_fast_install=needless
7450 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7451 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7452 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7453 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7454 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7455 echo "$as_me:$LINENO: result: yes" >&5
7456 echo "${ECHO_T}yes" >&6
7458 # FIXME - insert some real tests, host_os isn't really good enough
7461 if test -n "$STRIP" ; then
7462 striplib="$STRIP -x"
7463 echo "$as_me:$LINENO: result: yes" >&5
7464 echo "${ECHO_T}yes" >&6
7466 echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6
7471 echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6
7477 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7478 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7480 libname_spec='lib$name'
7488 shlibpath_overrides_runpath=unknown
7490 dynamic_linker="$host_os ld.so"
7491 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7492 if test "$GCC" = yes; then
7493 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7494 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7495 # if the path contains ";" then we assume it to be the separator
7496 # otherwise default to the standard path separator (i.e. ":") - it is
7497 # assumed that no part of a normal pathname contains ";" but that should
7498 # okay in the real world where ";" in dirpaths is itself problematic.
7499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7506 need_lib_prefix=unknown
7507 hardcode_into_libs=no
7509 # when you set need_version to no, make sure it does not cause -set_version
7510 # flags to be left without arguments
7511 need_version=unknown
7516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7517 shlibpath_var=LIBPATH
7519 # AIX 3 has no versioning support, so we append a major version to the name.
7520 soname_spec='${libname}${release}${shared_ext}$major'
7527 hardcode_into_libs=yes
7528 if test "$host_cpu" = ia64; then
7529 # AIX 5 supports IA64
7530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7531 shlibpath_var=LD_LIBRARY_PATH
7533 # With GCC up to 2.95.x, collect2 would create an import file
7534 # for dependence libraries. The import file would start with
7535 # the line `#! .'. This would cause the generated library to
7536 # depend on `.', always an invalid library. This was fixed in
7537 # development snapshots of GCC prior to 3.0.
7539 aix4 | aix4.[01] | aix4.[01].*)
7540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7542 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7550 # soname into executable. Probably we can add versioning support to
7551 # collect2, so additional links can be useful in future.
7552 if test "$aix_use_runtimelinking" = yes; then
7553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7554 # instead of lib<name>.a to let people know that these are not
7555 # typical AIX shared libraries.
7556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7558 # We preserve .a as extension for shared libraries through AIX4.2
7559 # and later when we are not doing run time linking.
7560 library_names_spec='${libname}${release}.a $libname.a'
7561 soname_spec='${libname}${release}${shared_ext}$major'
7563 shlibpath_var=LIBPATH
7568 library_names_spec='$libname.ixlibrary $libname.a'
7569 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7570 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'
7574 library_names_spec='${libname}${shared_ext}'
7575 dynamic_linker="$host_os ld.so"
7576 shlibpath_var=LIBRARY_PATH
7582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7583 soname_spec='${libname}${release}${shared_ext}$major'
7584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7585 shlibpath_var=LD_LIBRARY_PATH
7586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7588 # the default ld.so.conf also contains /usr/contrib/lib and
7589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7590 # libtool to hard-code these into programs
7593 cygwin* | mingw* | pw32*)
7594 version_type=windows
7599 case $GCC,$host_os in
7600 yes,cygwin* | yes,mingw* | yes,pw32*)
7601 library_names_spec='$libname.dll.a'
7602 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7603 postinstall_cmds='base_file=`basename \${file}`~
7604 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7605 dldir=$destdir/`dirname \$dlpath`~
7606 test -d \$dldir || mkdir -p \$dldir~
7607 $install_prog $dir/$dlname \$dldir/$dlname'
7608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7609 dlpath=$dir/\$dldll~
7611 shlibpath_overrides_runpath=yes
7615 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7616 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7617 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7620 # MinGW DLLs use traditional 'lib' prefix
7621 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7622 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7623 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7624 # It is most probably a Windows format PATH printed by
7625 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7626 # path with ; separators, and with drive letters. We can handle the
7627 # drive letters (cygwin fileutils understands them), so leave them,
7628 # especially as we might pass files found there to a mingw objdump,
7629 # which wouldn't understand a cygwinified path. Ahh.
7630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7636 # pw32 DLLs use 'pw' prefix rather than 'lib'
7637 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7643 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7646 dynamic_linker='Win32 ld.exe'
7647 # FIXME: first we should search . and the directory the executable is in
7651 darwin* | rhapsody*)
7652 dynamic_linker="$host_os dyld"
7656 # FIXME: Relying on posixy $() will cause problems for
7657 # cross-compilation, but unfortunately the echo tests do not
7658 # yet detect zsh echo's removal of \ escapes.
7659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7660 soname_spec='${libname}${release}${major}$shared_ext'
7661 shlibpath_overrides_runpath=yes
7662 shlibpath_var=DYLD_LIBRARY_PATH
7663 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7665 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7666 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"`
7668 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7676 soname_spec='${libname}${release}${shared_ext}$major'
7677 shlibpath_var=LD_LIBRARY_PATH
7685 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7686 version_type=freebsd-$objformat
7687 case $version_type in
7689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7698 shlibpath_var=LD_LIBRARY_PATH
7701 shlibpath_overrides_runpath=yes
7703 freebsd3.01* | freebsdelf3.01*)
7704 shlibpath_overrides_runpath=yes
7705 hardcode_into_libs=yes
7708 shlibpath_overrides_runpath=no
7709 hardcode_into_libs=yes
7718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7719 soname_spec='${libname}${release}${shared_ext}$major'
7720 shlibpath_var=LD_LIBRARY_PATH
7721 hardcode_into_libs=yes
7724 hpux9* | hpux10* | hpux11*)
7725 # Give a soname corresponding to the major version so that dld.sl refuses to
7726 # link against other versions.
7733 hardcode_into_libs=yes
7734 dynamic_linker="$host_os dld.so"
7735 shlibpath_var=LD_LIBRARY_PATH
7736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7738 soname_spec='${libname}${release}${shared_ext}$major'
7739 if test "X$HPUX_IA64_MODE" = X32; then
7740 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7742 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7748 hardcode_into_libs=yes
7749 dynamic_linker="$host_os dld.sl"
7750 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7753 soname_spec='${libname}${release}${shared_ext}$major'
7754 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7759 dynamic_linker="$host_os dld.sl"
7760 shlibpath_var=SHLIB_PATH
7761 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7763 soname_spec='${libname}${release}${shared_ext}$major'
7766 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7767 postinstall_cmds='chmod 555 $lib'
7770 irix5* | irix6* | nonstopux*)
7772 nonstopux*) version_type=nonstopux ;;
7774 if test "$lt_cv_prog_gnu_ld" = yes; then
7782 soname_spec='${libname}${release}${shared_ext}$major'
7783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7785 irix5* | nonstopux*)
7789 case $LD in # libtool.m4 will add one of these switches to LD
7790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7791 libsuff= shlibsuff= libmagic=32-bit;;
7792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7793 libsuff=32 shlibsuff=N32 libmagic=N32;;
7794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7796 *) libsuff= shlibsuff= libmagic=never-match;;
7800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7801 shlibpath_overrides_runpath=no
7802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7804 hardcode_into_libs=yes
7807 # No shared lib support for Linux oldld, aout, or coff.
7808 linux*oldld* | linux*aout* | linux*coff*)
7812 # This must be Linux ELF.
7817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7818 soname_spec='${libname}${release}${shared_ext}$major'
7819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7820 shlibpath_var=LD_LIBRARY_PATH
7821 shlibpath_overrides_runpath=no
7822 # This implies no fast_install, which is unacceptable.
7823 # Some rework will be needed to allow for fast_install
7824 # before this can be enabled.
7825 hardcode_into_libs=yes
7827 # We used to test for /lib/ld.so.1 and disable shared libraries on
7828 # powerpc, because MkLinux only supported shared libraries with the
7829 # GNU dynamic linker. Since this was broken with cross compilers,
7830 # most powerpc-linux boxes support dynamic linking these days and
7831 # people can always --disable-shared, the test was removed, and we
7832 # assume the GNU/Linux dynamic linker is in use.
7833 dynamic_linker='GNU/Linux ld.so'
7840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7843 dynamic_linker='NetBSD (a.out) ld.so'
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7846 soname_spec='${libname}${release}${shared_ext}$major'
7847 dynamic_linker='NetBSD ld.elf_so'
7849 shlibpath_var=LD_LIBRARY_PATH
7850 shlibpath_overrides_runpath=yes
7851 hardcode_into_libs=yes
7856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7857 shlibpath_var=LD_LIBRARY_PATH
7858 shlibpath_overrides_runpath=yes
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866 soname_spec='${libname}${release}${shared_ext}$major'
7867 shlibpath_var=LD_LIBRARY_PATH
7868 shlibpath_overrides_runpath=yes
7875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7877 shlibpath_var=LD_LIBRARY_PATH
7878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7880 openbsd2.[89] | openbsd2.[89].*)
7881 shlibpath_overrides_runpath=no
7884 shlibpath_overrides_runpath=yes
7888 shlibpath_overrides_runpath=yes
7893 libname_spec='$name'
7896 library_names_spec='$libname${shared_ext} $libname.a'
7897 dynamic_linker='OS/2 ld.exe'
7898 shlibpath_var=LIBPATH
7901 osf3* | osf4* | osf5*)
7905 soname_spec='${libname}${release}${shared_ext}$major'
7906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7907 shlibpath_var=LD_LIBRARY_PATH
7908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7909 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7914 soname_spec='${libname}${release}${shared_ext}$major'
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7916 shlibpath_var=LD_LIBRARY_PATH
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924 soname_spec='${libname}${release}${shared_ext}$major'
7925 shlibpath_var=LD_LIBRARY_PATH
7926 shlibpath_overrides_runpath=yes
7927 hardcode_into_libs=yes
7928 # ldd complains unless libraries are executable
7929 postinstall_cmds='chmod +x $lib'
7934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7936 shlibpath_var=LD_LIBRARY_PATH
7937 shlibpath_overrides_runpath=yes
7938 if test "$with_gnu_ld" = yes; then
7944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947 soname_spec='${libname}${release}${shared_ext}$major'
7948 shlibpath_var=LD_LIBRARY_PATH
7949 case $host_vendor in
7951 shlibpath_overrides_runpath=no
7953 export_dynamic_flag_spec='${wl}-Blargedynsym'
7954 runpath_var=LD_RUN_PATH
7962 shlibpath_overrides_runpath=no
7963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7969 if test -d /usr/nec ;then
7971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7972 soname_spec='$libname${shared_ext}.$major'
7973 shlibpath_var=LD_LIBRARY_PATH
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980 soname_spec='${libname}${release}${shared_ext}$major'
7981 shlibpath_var=LD_LIBRARY_PATH
7988 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7989 echo "${ECHO_T}$dynamic_linker" >&6
7990 test "$dynamic_linker" = no && can_build_shared=no
7992 if test "x$enable_dlopen" != xyes; then
7993 enable_dlopen=unknown
7994 enable_dlopen_self=unknown
7995 enable_dlopen_self_static=unknown
8002 lt_cv_dlopen="load_add_on"
8004 lt_cv_dlopen_self=yes
8008 lt_cv_dlopen="LoadLibrary"
8013 lt_cv_dlopen="dlopen"
8018 # if libdl is installed we need to link against it
8019 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8020 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8021 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 ac_check_lib_save_LIBS=$LIBS
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8033 /* Override any gcc2 internal prototype to avoid an error. */
8037 /* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */
8048 rm -f conftest.$ac_objext conftest$ac_exeext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050 (eval $ac_link) 2>conftest.er1
8052 grep -v '^ *+' conftest.er1 >conftest.err
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest$ac_exeext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_lib_dl_dlopen=yes
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ac_cv_lib_dl_dlopen=no
8077 rm -f conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
8079 LIBS=$ac_check_lib_save_LIBS
8081 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8082 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8083 if test $ac_cv_lib_dl_dlopen = yes; then
8084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8089 lt_cv_dlopen_self=yes
8096 echo "$as_me:$LINENO: checking for shl_load" >&5
8097 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8098 if test "${ac_cv_func_shl_load+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8109 #define shl_load innocuous_shl_load
8111 /* System header to define __stub macros and hopefully few prototypes,
8112 which can conflict with char shl_load (); below.
8113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8114 <limits.h> exists even on freestanding compilers. */
8117 # include <limits.h>
8119 # include <assert.h>
8124 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8132 /* The GNU C library defines this for functions which it implements
8133 to always fail with ENOSYS. Some functions are actually named
8134 something starting with __ and the normal name is an alias. */
8135 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8138 char (*f) () = shl_load;
8147 return f != shl_load;
8152 rm -f conftest.$ac_objext conftest$ac_exeext
8153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8154 (eval $ac_link) 2>conftest.er1
8156 grep -v '^ *+' conftest.er1 >conftest.err
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
8161 { ac_try='test -z "$ac_c_werror_flag"
8162 || test ! -s conftest.err'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; } &&
8168 { ac_try='test -s conftest$ac_exeext'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 ac_cv_func_shl_load=yes
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 ac_cv_func_shl_load=no
8181 rm -f conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8185 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8186 if test $ac_cv_func_shl_load = yes; then
8187 lt_cv_dlopen="shl_load"
8189 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8190 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_check_lib_save_LIBS=$LIBS
8196 cat >conftest.$ac_ext <<_ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8203 /* Override any gcc2 internal prototype to avoid an error. */
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>conftest.er1
8222 grep -v '^ *+' conftest.er1 >conftest.err
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest$ac_exeext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_lib_dld_shl_load=yes
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8245 ac_cv_lib_dld_shl_load=no
8247 rm -f conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8251 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8252 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8253 if test $ac_cv_lib_dld_shl_load = yes; then
8254 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8256 echo "$as_me:$LINENO: checking for dlopen" >&5
8257 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8258 if test "${ac_cv_func_dlopen+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 cat >conftest.$ac_ext <<_ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8269 #define dlopen innocuous_dlopen
8271 /* System header to define __stub macros and hopefully few prototypes,
8272 which can conflict with char dlopen (); below.
8273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8274 <limits.h> exists even on freestanding compilers. */
8277 # include <limits.h>
8279 # include <assert.h>
8284 /* Override any gcc2 internal prototype to avoid an error. */
8289 /* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8298 char (*f) () = dlopen;
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314 (eval $ac_link) 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_func_dlopen=yes
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 ac_cv_func_dlopen=no
8341 rm -f conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8345 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8346 if test $ac_cv_func_dlopen = yes; then
8347 lt_cv_dlopen="dlopen"
8349 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8350 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 ac_check_lib_save_LIBS=$LIBS
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8363 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380 (eval $ac_link) 2>conftest.er1
8382 grep -v '^ *+' conftest.er1 >conftest.err
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -z "$ac_c_werror_flag"
8388 || test ! -s conftest.err'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest$ac_exeext'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; }; then
8400 ac_cv_lib_dl_dlopen=yes
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8405 ac_cv_lib_dl_dlopen=no
8407 rm -f conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
8409 LIBS=$ac_check_lib_save_LIBS
8411 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8412 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8413 if test $ac_cv_lib_dl_dlopen = yes; then
8414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8416 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8417 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8418 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 ac_check_lib_save_LIBS=$LIBS
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8430 /* Override any gcc2 internal prototype to avoid an error. */
8434 /* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447 (eval $ac_link) 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest$ac_exeext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_lib_svld_dlopen=yes
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_cv_lib_svld_dlopen=no
8474 rm -f conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476 LIBS=$ac_check_lib_save_LIBS
8478 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8479 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8480 if test $ac_cv_lib_svld_dlopen = yes; then
8481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8483 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8484 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8485 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 ac_check_lib_save_LIBS=$LIBS
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8497 /* Override any gcc2 internal prototype to avoid an error. */
8501 /* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514 (eval $ac_link) 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
8521 { ac_try='test -z "$ac_c_werror_flag"
8522 || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest$ac_exeext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_dld_dld_link=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_cv_lib_dld_dld_link=no
8541 rm -f conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543 LIBS=$ac_check_lib_save_LIBS
8545 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8546 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8547 if test $ac_cv_lib_dld_dld_link = yes; then
8548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8569 if test "x$lt_cv_dlopen" != xno; then
8575 case $lt_cv_dlopen in
8577 save_CPPFLAGS="$CPPFLAGS"
8578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8580 save_LDFLAGS="$LDFLAGS"
8581 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8584 LIBS="$lt_cv_dlopen_libs $LIBS"
8586 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8587 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8588 if test "${lt_cv_dlopen_self+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 if test "$cross_compiling" = yes; then :
8592 lt_cv_dlopen_self=cross
8594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8595 lt_status=$lt_dlunknown
8596 cat > conftest.$ac_ext <<EOF
8597 #line 8597 "configure"
8598 #include "confdefs.h"
8607 # define LT_DLGLOBAL RTLD_GLOBAL
8610 # define LT_DLGLOBAL DL_GLOBAL
8612 # define LT_DLGLOBAL 0
8616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8617 find out it does not work in some platform. */
8618 #ifndef LT_DLLAZY_OR_NOW
8620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8623 # define LT_DLLAZY_OR_NOW DL_LAZY
8626 # define LT_DLLAZY_OR_NOW RTLD_NOW
8629 # define LT_DLLAZY_OR_NOW DL_NOW
8631 # define LT_DLLAZY_OR_NOW 0
8639 extern "C" void exit (int);
8642 void fnord() { int i=42;}
8645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8646 int status = $lt_dlunknown;
8650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8652 /* dlclose (self); */
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8663 (./conftest; exit; ) 2>/dev/null
8666 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8667 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8668 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8671 # compilation failed
8672 lt_cv_dlopen_self=no
8679 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8680 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8682 if test "x$lt_cv_dlopen_self" = xyes; then
8683 LDFLAGS="$LDFLAGS $link_static_flag"
8684 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8685 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8686 if test "${lt_cv_dlopen_self_static+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 if test "$cross_compiling" = yes; then :
8690 lt_cv_dlopen_self_static=cross
8692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8693 lt_status=$lt_dlunknown
8694 cat > conftest.$ac_ext <<EOF
8695 #line 8695 "configure"
8696 #include "confdefs.h"
8705 # define LT_DLGLOBAL RTLD_GLOBAL
8708 # define LT_DLGLOBAL DL_GLOBAL
8710 # define LT_DLGLOBAL 0
8714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8715 find out it does not work in some platform. */
8716 #ifndef LT_DLLAZY_OR_NOW
8718 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8721 # define LT_DLLAZY_OR_NOW DL_LAZY
8724 # define LT_DLLAZY_OR_NOW RTLD_NOW
8727 # define LT_DLLAZY_OR_NOW DL_NOW
8729 # define LT_DLLAZY_OR_NOW 0
8737 extern "C" void exit (int);
8740 void fnord() { int i=42;}
8743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8744 int status = $lt_dlunknown;
8748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8749 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8750 /* dlclose (self); */
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8761 (./conftest; exit; ) 2>/dev/null
8764 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8765 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8766 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8769 # compilation failed
8770 lt_cv_dlopen_self_static=no
8777 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8778 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8781 CPPFLAGS="$save_CPPFLAGS"
8782 LDFLAGS="$save_LDFLAGS"
8787 case $lt_cv_dlopen_self in
8788 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8789 *) enable_dlopen_self=unknown ;;
8792 case $lt_cv_dlopen_self_static in
8793 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8794 *) enable_dlopen_self_static=unknown ;;
8799 # Report which librarie types wil actually be built
8800 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8801 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8802 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8803 echo "${ECHO_T}$can_build_shared" >&6
8805 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8806 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8807 test "$can_build_shared" = "no" && enable_shared=no
8809 # On AIX, shared libraries and static libraries use the same namespace, and
8810 # are all built from PIC.
8813 test "$enable_shared" = yes && enable_static=no
8814 if test -n "$RANLIB"; then
8815 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8816 postinstall_cmds='$RANLIB $lib'
8821 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8822 test "$enable_shared" = yes && enable_static=no
8825 darwin* | rhapsody*)
8826 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8827 archive_cmds_need_lc=no
8829 rhapsody* | darwin1.[012])
8830 allow_undefined_flag='-undefined suppress'
8833 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8836 # FIXME: Relying on posixy $() will cause problems for
8837 # cross-compilation, but unfortunately the echo tests do not
8838 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8839 # `"' quotes if we put them in here... so don't!
8840 output_verbose_link_cmd='echo'
8841 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8842 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8843 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8844 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}'
8845 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}'
8847 hardcode_automatic=yes
8848 hardcode_shlibpath_var=unsupported
8849 whole_archive_flag_spec='-all_load $convenience'
8850 link_all_deplibs=yes
8854 echo "$as_me:$LINENO: result: $enable_shared" >&5
8855 echo "${ECHO_T}$enable_shared" >&6
8857 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8858 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8859 # Make sure either enable_shared or enable_static is yes.
8860 test "$enable_shared" = yes || enable_static=yes
8861 echo "$as_me:$LINENO: result: $enable_static" >&5
8862 echo "${ECHO_T}$enable_static" >&6
8864 # The else clause should only fire when bootstrapping the
8865 # libtool distribution, otherwise you forgot to ship ltmain.sh
8866 # with your package, and you will get complaints that there are
8867 # no rules to generate ltmain.sh.
8868 if test -f "$ltmain"; then
8869 # See if we are running on zsh, and set the options which allow our commands through
8870 # without removal of \ escapes.
8871 if test -n "${ZSH_VERSION+set}" ; then
8872 setopt NO_GLOB_SUBST
8874 # Now quote all the things that may contain metacharacters while being
8875 # careful not to overquote the AC_SUBSTed values. We take copies of the
8876 # variables and quote the copies for generation of the libtool script.
8877 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8878 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8879 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8880 deplibs_check_method reload_flag reload_cmds need_locks \
8881 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8882 lt_cv_sys_global_symbol_to_c_name_address \
8883 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8884 old_postinstall_cmds old_postuninstall_cmds \
8888 lt_prog_compiler_wl \
8889 lt_prog_compiler_pic \
8890 lt_prog_compiler_static \
8891 lt_prog_compiler_no_builtin_flag \
8892 export_dynamic_flag_spec \
8893 thread_safe_flag_spec \
8894 whole_archive_flag_spec \
8895 enable_shared_with_static_runtimes \
8897 old_archive_from_new_cmds \
8902 compiler_lib_search_path \
8904 archive_expsym_cmds \
8906 postuninstall_cmds \
8907 old_archive_from_expsyms_cmds \
8908 allow_undefined_flag \
8910 export_symbols_cmds \
8911 hardcode_libdir_flag_spec \
8912 hardcode_libdir_flag_spec_ld \
8913 hardcode_libdir_separator \
8914 hardcode_automatic \
8916 module_expsym_cmds \
8917 lt_cv_prog_compiler_c_o \
8922 old_archive_cmds | \
8923 old_archive_from_new_cmds | \
8925 archive_expsym_cmds | \
8927 module_expsym_cmds | \
8928 old_archive_from_expsyms_cmds | \
8929 export_symbols_cmds | \
8930 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8931 postinstall_cmds | postuninstall_cmds | \
8932 old_postinstall_cmds | old_postuninstall_cmds | \
8933 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8934 # Double-quote double-evaled strings.
8935 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8938 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8944 *'\$0 --fallback-echo"')
8945 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8950 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8952 { echo "$as_me:$LINENO: creating $ofile" >&5
8953 echo "$as_me: creating $ofile" >&6;}
8955 cat <<__EOF__ >> "$cfgfile"
8958 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8959 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8960 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8962 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8963 # Free Software Foundation, Inc.
8965 # This file is part of GNU Libtool:
8966 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8968 # This program is free software; you can redistribute it and/or modify
8969 # it under the terms of the GNU General Public License as published by
8970 # the Free Software Foundation; either version 2 of the License, or
8971 # (at your option) any later version.
8973 # This program is distributed in the hope that it will be useful, but
8974 # WITHOUT ANY WARRANTY; without even the implied warranty of
8975 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8976 # General Public License for more details.
8978 # You should have received a copy of the GNU General Public License
8979 # along with this program; if not, write to the Free Software
8980 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8982 # As a special exception to the GNU General Public License, if you
8983 # distribute this file as part of a program that contains a
8984 # configuration script generated by Autoconf, you may include it under
8985 # the same distribution terms that you use for the rest of that program.
8987 # A sed program that does not truncate output.
8990 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8991 Xsed="$SED -e s/^X//"
8993 # The HP-UX ksh and POSIX shell print the target directory to stdout
8995 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8997 # The names of the tagged configurations supported by this script.
9000 # ### BEGIN LIBTOOL CONFIG
9002 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9004 # Shell to use when invoking shell scripts.
9007 # Whether or not to build shared libraries.
9008 build_libtool_libs=$enable_shared
9010 # Whether or not to build static libraries.
9011 build_old_libs=$enable_static
9013 # Whether or not to add -lc for building shared libraries.
9014 build_libtool_need_lc=$archive_cmds_need_lc
9016 # Whether or not to disallow shared libs when runtime libs are static
9017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9019 # Whether or not to optimize for fast installation.
9020 fast_install=$enable_fast_install
9023 host_alias=$host_alias
9026 # An echo program that does not interpret backslashes.
9031 AR_FLAGS=$lt_AR_FLAGS
9036 # A language-specific compiler.
9039 # Is the compiler the GNU C compiler?
9045 # The linker used to build libraries.
9048 # Whether we need hard or soft links.
9051 # A BSD-compatible nm program.
9054 # A symbol stripping program
9057 # Used to examine libraries when file_magic_cmd begins "file"
9058 MAGIC_CMD=$MAGIC_CMD
9060 # Used on cygwin: DLL creation program.
9063 # Used on cygwin: object dumper.
9066 # Used on cygwin: assembler.
9069 # The name of the directory that contains temporary libtool files.
9072 # How to create reloadable object files.
9073 reload_flag=$lt_reload_flag
9074 reload_cmds=$lt_reload_cmds
9076 # How to pass a linker flag through the compiler.
9077 wl=$lt_lt_prog_compiler_wl
9079 # Object file suffix (normally "o").
9082 # Old archive suffix (normally "a").
9085 # Shared library suffix (normally ".so").
9088 # Executable file suffix (normally "").
9091 # Additional compiler flags for building library objects.
9092 pic_flag=$lt_lt_prog_compiler_pic
9095 # What is the maximum length of a command?
9096 max_cmd_len=$lt_cv_sys_max_cmd_len
9098 # Does compiler simultaneously support -c and -o options?
9099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9101 # Must we lock files when doing compilation ?
9102 need_locks=$lt_need_locks
9104 # Do we need the lib prefix for modules?
9105 need_lib_prefix=$need_lib_prefix
9107 # Do we need a version for libraries?
9108 need_version=$need_version
9110 # Whether dlopen is supported.
9111 dlopen_support=$enable_dlopen
9113 # Whether dlopen of programs is supported.
9114 dlopen_self=$enable_dlopen_self
9116 # Whether dlopen of statically linked programs is supported.
9117 dlopen_self_static=$enable_dlopen_self_static
9119 # Compiler flag to prevent dynamic linking.
9120 link_static_flag=$lt_lt_prog_compiler_static
9122 # Compiler flag to turn off builtin functions.
9123 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9125 # Compiler flag to allow reflexive dlopens.
9126 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9128 # Compiler flag to generate shared objects directly from archives.
9129 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9131 # Compiler flag to generate thread-safe objects.
9132 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9134 # Library versioning type.
9135 version_type=$version_type
9137 # Format of library name prefix.
9138 libname_spec=$lt_libname_spec
9140 # List of archive names. First name is the real one, the rest are links.
9141 # The last name is the one that the linker finds with -lNAME.
9142 library_names_spec=$lt_library_names_spec
9144 # The coded name of the library, if different from the real name.
9145 soname_spec=$lt_soname_spec
9147 # Commands used to build and install an old-style archive.
9149 old_archive_cmds=$lt_old_archive_cmds
9150 old_postinstall_cmds=$lt_old_postinstall_cmds
9151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9153 # Create an old-style archive from a shared archive.
9154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9156 # Create a temporary old-style archive to link instead of a shared archive.
9157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9159 # Commands used to build and install a shared archive.
9160 archive_cmds=$lt_archive_cmds
9161 archive_expsym_cmds=$lt_archive_expsym_cmds
9162 postinstall_cmds=$lt_postinstall_cmds
9163 postuninstall_cmds=$lt_postuninstall_cmds
9165 # Commands used to build a loadable module (assumed same as above if empty)
9166 module_cmds=$lt_module_cmds
9167 module_expsym_cmds=$lt_module_expsym_cmds
9169 # Commands to strip libraries.
9170 old_striplib=$lt_old_striplib
9171 striplib=$lt_striplib
9173 # Dependencies to place before the objects being linked to create a
9175 predep_objects=$lt_predep_objects
9177 # Dependencies to place after the objects being linked to create a
9179 postdep_objects=$lt_postdep_objects
9181 # Dependencies to place before the objects being linked to create a
9185 # Dependencies to place after the objects being linked to create a
9187 postdeps=$lt_postdeps
9189 # The library search path used internally by the compiler when linking
9191 compiler_lib_search_path=$lt_compiler_lib_search_path
9193 # Method to check whether dependent libraries are shared objects.
9194 deplibs_check_method=$lt_deplibs_check_method
9196 # Command to use when deplibs_check_method == file_magic.
9197 file_magic_cmd=$lt_file_magic_cmd
9199 # Flag that allows shared libraries with undefined symbols to be built.
9200 allow_undefined_flag=$lt_allow_undefined_flag
9202 # Flag that forces no undefined symbols.
9203 no_undefined_flag=$lt_no_undefined_flag
9205 # Commands used to finish a libtool library installation in a directory.
9206 finish_cmds=$lt_finish_cmds
9208 # Same as above, but a single script fragment to be evaled but not shown.
9209 finish_eval=$lt_finish_eval
9211 # Take the output of nm and produce a listing of raw symbols and C names.
9212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9214 # Transform the output of nm in a proper C declaration
9215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9217 # Transform the output of nm in a C name address pair
9218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9220 # This is the shared library runtime path variable.
9221 runpath_var=$runpath_var
9223 # This is the shared library path variable.
9224 shlibpath_var=$shlibpath_var
9226 # Is shlibpath searched before the hard-coded library search path?
9227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9229 # How to hardcode a shared library path into an executable.
9230 hardcode_action=$hardcode_action
9232 # Whether we should hardcode library paths into libraries.
9233 hardcode_into_libs=$hardcode_into_libs
9235 # Flag to hardcode \$libdir into a binary during linking.
9236 # This must work even if \$libdir does not exist.
9237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9239 # If ld is used when linking, flag to hardcode \$libdir into
9240 # a binary during linking. This must work even if \$libdir does
9242 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9244 # Whether we need a single -rpath flag with a separated argument.
9245 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9247 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9249 hardcode_direct=$hardcode_direct
9251 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9253 hardcode_minus_L=$hardcode_minus_L
9255 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9256 # the resulting binary.
9257 hardcode_shlibpath_var=$hardcode_shlibpath_var
9259 # Set to yes if building a shared library automatically hardcodes DIR into the library
9260 # and all subsequent libraries and executables linked against it.
9261 hardcode_automatic=$hardcode_automatic
9263 # Variables whose values should be saved in libtool wrapper scripts and
9264 # restored at relink time.
9265 variables_saved_for_relink="$variables_saved_for_relink"
9267 # Whether libtool must link a program against all its dependency libraries.
9268 link_all_deplibs=$link_all_deplibs
9270 # Compile-time system search path for libraries
9271 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9273 # Run-time system search path for libraries
9274 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9276 # Fix the shell variable \$srcfile for the compiler.
9277 fix_srcfile_path="$fix_srcfile_path"
9279 # Set to yes if exported symbols are required.
9280 always_export_symbols=$always_export_symbols
9282 # The commands to list exported symbols.
9283 export_symbols_cmds=$lt_export_symbols_cmds
9285 # The commands to extract the exported symbol list from a shared archive.
9286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9288 # Symbols that should not be listed in the preloaded symbols.
9289 exclude_expsyms=$lt_exclude_expsyms
9291 # Symbols that must always be exported.
9292 include_expsyms=$lt_include_expsyms
9294 # ### END LIBTOOL CONFIG
9301 cat <<\EOF >> "$cfgfile"
9303 # AIX sometimes has problems with the GCC collect2 program. For some
9304 # reason, if we set the COLLECT_NAMES environment variable, the problems
9305 # vanish in a puff of smoke.
9306 if test "X${COLLECT_NAMES+set}" != Xset; then
9308 export COLLECT_NAMES
9314 # We use sed instead of cat because bash on DJGPP gets confused if
9315 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9316 # text mode, it properly converts lines to CR/LF. This bash problem
9317 # is reportedly fixed, but why not run on old versions too?
9318 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9320 mv -f "$cfgfile" "$ofile" || \
9321 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9325 # If there is no Makefile yet, we rely on a make rule to execute
9326 # `config.status --recheck' to rerun these tests and create the
9327 # libtool script then.
9328 test -f Makefile && make "$ltmain"
9333 ac_cpp='$CPP $CPPFLAGS'
9334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9341 # Check whether --with-tags or --without-tags was given.
9342 if test "${with_tags+set}" = set; then
9343 withval="$with_tags"
9347 if test -f "$ltmain" && test -n "$tagnames"; then
9348 if test ! -f "${ofile}"; then
9349 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9350 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9353 if test -z "$LTCC"; then
9354 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9355 if test -z "$LTCC"; then
9356 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9357 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9360 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9364 # Extract list of available tagged configurations in $ofile.
9365 # Note that this assumes the entire list is on one line.
9366 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9369 for tagname in $tagnames; do
9371 # Check whether tagname contains only valid characters
9372 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9374 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9375 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9376 { (exit 1); exit 1; }; }
9380 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9382 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9383 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9384 { (exit 1); exit 1; }; }
9387 # Update the list of available tags.
9388 if test -n "$tagname"; then
9389 echo appending configuration tag \"$tagname\" to $ofile
9393 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9395 ac_cpp='$CXXCPP $CPPFLAGS'
9396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9403 archive_cmds_need_lc_CXX=no
9404 allow_undefined_flag_CXX=
9405 always_export_symbols_CXX=no
9406 archive_expsym_cmds_CXX=
9407 export_dynamic_flag_spec_CXX=
9408 hardcode_direct_CXX=no
9409 hardcode_libdir_flag_spec_CXX=
9410 hardcode_libdir_flag_spec_ld_CXX=
9411 hardcode_libdir_separator_CXX=
9412 hardcode_minus_L_CXX=no
9413 hardcode_automatic_CXX=no
9415 module_expsym_cmds_CXX=
9416 link_all_deplibs_CXX=unknown
9417 old_archive_cmds_CXX=$old_archive_cmds
9418 no_undefined_flag_CXX=
9419 whole_archive_flag_spec_CXX=
9420 enable_shared_with_static_runtimes_CXX=no
9422 # Dependencies to place before and after the object being linked:
9424 postdep_objects_CXX=
9427 compiler_lib_search_path_CXX=
9429 # Source file extension for C++ test sources.
9432 # Object file extension for compiled C++ test sources.
9436 # Code to be used in simple compile tests
9437 lt_simple_compile_test_code="int some_variable = 0;\n"
9439 # Code to be used in simple link tests
9440 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9442 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9444 # If no C compiler was specified, use CC.
9447 # Allow CC to be a program name with arguments.
9451 # Allow CC to be a program name with arguments.
9456 lt_save_with_gnu_ld=$with_gnu_ld
9457 lt_save_path_LD=$lt_cv_path_LD
9458 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9459 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9461 unset lt_cv_prog_gnu_ld
9463 if test -n "${lt_cv_path_LDCXX+set}"; then
9464 lt_cv_path_LD=$lt_cv_path_LDCXX
9468 test -z "${LDCXX+set}" || LD=$LDCXX
9472 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9474 # We don't want -fno-exception wen compiling C++ code, so set the
9475 # no_builtin_flag separately
9476 if test "$GXX" = yes; then
9477 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9479 lt_prog_compiler_no_builtin_flag_CXX=
9482 if test "$GXX" = yes; then
9483 # Set up default GNU C++ configuration
9486 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9487 if test "${with_gnu_ld+set}" = set; then
9488 withval="$with_gnu_ld"
9489 test "$withval" = no || with_gnu_ld=yes
9494 if test "$GCC" = yes; then
9495 # Check if gcc -print-prog-name=ld gives a path.
9496 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9497 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9500 # gcc leaves a trailing carriage return which upsets mingw
9501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9506 # Accept absolute paths.
9508 re_direlt='/[^/][^/]*/\.\./'
9509 # Canonicalize the path of ld
9510 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9511 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9512 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9514 test -z "$LD" && LD="$ac_prog"
9517 # If it fails, then pretend we aren't using GCC.
9521 # If it is relative, then search for the first ld in PATH.
9525 elif test "$with_gnu_ld" = yes; then
9526 echo "$as_me:$LINENO: checking for GNU ld" >&5
9527 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9529 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9530 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9532 if test "${lt_cv_path_LD+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 if test -z "$LD"; then
9536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9537 for ac_dir in $PATH; do
9539 test -z "$ac_dir" && ac_dir=.
9540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9541 lt_cv_path_LD="$ac_dir/$ac_prog"
9542 # Check to see if the program is GNU ld. I'd rather use --version,
9543 # but apparently some GNU ld's only accept -v.
9544 # Break only if it was the GNU/non-GNU ld that we prefer.
9545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9546 *GNU* | *'with BFD'*)
9547 test "$with_gnu_ld" != no && break
9550 test "$with_gnu_ld" != yes && break
9557 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9562 if test -n "$LD"; then
9563 echo "$as_me:$LINENO: result: $LD" >&5
9564 echo "${ECHO_T}$LD" >&6
9566 echo "$as_me:$LINENO: result: no" >&5
9567 echo "${ECHO_T}no" >&6
9569 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9570 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9571 { (exit 1); exit 1; }; }
9572 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9573 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9574 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9578 case `"$LD" -v 2>&1 </dev/null` in
9579 *GNU* | *'with BFD'*)
9580 lt_cv_prog_gnu_ld=yes
9583 lt_cv_prog_gnu_ld=no
9587 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9588 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9589 with_gnu_ld=$lt_cv_prog_gnu_ld
9593 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9594 # archiving commands below assume that GNU ld is being used.
9595 if test "$with_gnu_ld" = yes; then
9596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 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'
9599 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9602 # If archive_cmds runs LD, not CC, wlarc should be empty
9603 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9604 # investigate it a little bit more. (MM)
9607 # ancient GNU ld didn't support --whole-archive et. al.
9608 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9609 grep 'no-whole-archive' > /dev/null; then
9610 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9612 whole_archive_flag_spec_CXX=
9618 # A generic and very simple default shared library creation
9619 # command for GNU C++ for the case where it uses the native
9620 # linker, instead of GNU ld. If possible, this setting should
9621 # overridden to take advantage of the native linker features on
9622 # the platform it is being used on.
9623 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9626 # Commands to make compiler produce verbose output that lists
9627 # what "hidden" libraries, object files and flags are used when
9628 # linking a shared library.
9629 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9637 # PORTME: fill in a description of your system's C++ link characteristics
9638 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9639 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9643 # FIXME: insert proper C++ library support
9647 if test "$host_cpu" = ia64; then
9648 # On IA64, the linker does run time linking by default, so we don't
9649 # have to do anything special.
9650 aix_use_runtimelinking=no
9651 exp_sym_flag='-Bexport'
9654 aix_use_runtimelinking=no
9656 # Test if we are trying to use run time linking or normal
9657 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9658 # need to do runtime linking.
9659 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9660 for ld_flag in $LDFLAGS; do
9663 aix_use_runtimelinking=yes
9670 exp_sym_flag='-bexport'
9671 no_entry_flag='-bnoentry'
9674 # When large executables or shared objects are built, AIX ld can
9675 # have problems creating the table of contents. If linking a library
9676 # or program results in "error TOC overflow" add -mminimal-toc to
9677 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9678 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9681 hardcode_direct_CXX=yes
9682 hardcode_libdir_separator_CXX=':'
9683 link_all_deplibs_CXX=yes
9685 if test "$GXX" = yes; then
9686 case $host_os in aix4.012|aix4.012.*)
9687 # We only want to do this on AIX 4.2 and lower, the check
9688 # below for broken collect2 doesn't work under 4.3+
9689 collect2name=`${CC} -print-prog-name=collect2`
9690 if test -f "$collect2name" && \
9691 strings "$collect2name" | grep resolve_lib_name >/dev/null
9693 # We have reworked collect2
9694 hardcode_direct_CXX=yes
9696 # We have old collect2
9697 hardcode_direct_CXX=unsupported
9698 # It fails to find uninstalled libraries when the uninstalled
9699 # path is not listed in the libpath. Setting hardcode_minus_L
9700 # to unsupported forces relinking
9701 hardcode_minus_L_CXX=yes
9702 hardcode_libdir_flag_spec_CXX='-L$libdir'
9703 hardcode_libdir_separator_CXX=
9706 shared_flag='-shared'
9709 if test "$host_cpu" = ia64; then
9710 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9711 # chokes on -Wl,-G. The following line is correct:
9714 if test "$aix_use_runtimelinking" = yes; then
9715 shared_flag='${wl}-G'
9717 shared_flag='${wl}-bM:SRE'
9722 # It seems that -bexpall does not export symbols beginning with
9723 # underscore (_), so it is better to generate a list of symbols to export.
9724 always_export_symbols_CXX=yes
9725 if test "$aix_use_runtimelinking" = yes; then
9726 # Warning - without using the other runtime loading flags (-brtl),
9727 # -berok will link without error, but may produce a broken library.
9728 allow_undefined_flag_CXX='-berok'
9729 # Determine the default libpath from the value encoded in an empty executable.
9730 cat >conftest.$ac_ext <<_ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>conftest.er1
9749 grep -v '^ *+' conftest.er1 >conftest.err
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_cxx_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9770 # Check for a 64-bit object if we didn't find anything.
9771 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; }
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9778 rm -f conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
9780 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9782 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9784 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"
9786 if test "$host_cpu" = ia64; then
9787 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9788 allow_undefined_flag_CXX="-z nodefs"
9789 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"
9791 # Determine the default libpath from the value encoded in an empty executable.
9792 cat >conftest.$ac_ext <<_ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9809 (eval $ac_link) 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_cxx_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest$ac_exeext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9832 # Check for a 64-bit object if we didn't find anything.
9833 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; }
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9840 rm -f conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9844 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9845 # Warning - without using the other run time loading flags,
9846 # -berok will link without error, but may produce a broken library.
9847 no_undefined_flag_CXX=' ${wl}-bernotok'
9848 allow_undefined_flag_CXX=' ${wl}-berok'
9849 # -bexpall does not export symbols beginning with underscore (_)
9850 always_export_symbols_CXX=yes
9851 # Exported symbols can be pulled into shared objects from archives
9852 whole_archive_flag_spec_CXX=' '
9853 archive_cmds_need_lc_CXX=yes
9854 # This is similar to how AIX traditionally builds it's shared libraries.
9855 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'
9860 case $cc_basename in
9862 # FIXME: insert proper C++ library support
9868 cygwin* | mingw* | pw32*)
9869 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9870 # as there is no search path for DLLs.
9871 hardcode_libdir_flag_spec_CXX='-L$libdir'
9872 allow_undefined_flag_CXX=unsupported
9873 always_export_symbols_CXX=no
9874 enable_shared_with_static_runtimes_CXX=yes
9876 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9877 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'
9878 # If the export-symbols file already is a .def file (1st line
9879 # is EXPORTS), use it as is; otherwise, prepend...
9880 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9881 cp $export_symbols $output_objdir/$soname.def;
9883 echo EXPORTS > $output_objdir/$soname.def;
9884 cat $export_symbols >> $output_objdir/$soname.def;
9886 $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'
9892 darwin* | rhapsody*)
9893 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9894 archive_cmds_need_lc_CXX=no
9896 rhapsody* | darwin1.[012])
9897 allow_undefined_flag_CXX='-undefined suppress'
9900 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9903 lt_int_apple_cc_single_mod=no
9904 output_verbose_link_cmd='echo'
9905 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9906 lt_int_apple_cc_single_mod=yes
9908 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9909 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9911 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'
9913 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9915 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9916 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9917 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}'
9919 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}'
9921 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}'
9922 hardcode_direct_CXX=no
9923 hardcode_automatic_CXX=yes
9924 hardcode_shlibpath_var_CXX=unsupported
9925 whole_archive_flag_spec_CXX='-all_load $convenience'
9926 link_all_deplibs_CXX=yes
9931 case $cc_basename in
9933 # FIXME: insert proper C++ library support
9937 # Green Hills C++ Compiler
9938 # FIXME: insert proper C++ library support
9942 # FIXME: insert proper C++ library support
9948 # C++ shared libraries reported to be fairly broken before switch to ELF
9952 archive_cmds_need_lc_CXX=no
9955 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9962 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9963 hardcode_libdir_separator_CXX=:
9964 export_dynamic_flag_spec_CXX='${wl}-E'
9965 hardcode_direct_CXX=yes
9966 hardcode_minus_L_CXX=yes # Not in the search PATH,
9967 # but as the default
9968 # location of the library.
9970 case $cc_basename in
9972 # FIXME: insert proper C++ library support
9976 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'
9977 # Commands to make compiler produce verbose output that lists
9978 # what "hidden" libraries, object files and flags are used when
9979 # linking a shared library.
9981 # There doesn't appear to be a way to prevent this compiler from
9982 # explicitly linking system object files so we need to strip them
9983 # from the output so that they don't get included in the library
9985 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'
9988 if test "$GXX" = yes; then
9989 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'
9991 # FIXME: insert proper C++ library support
9998 if test $with_gnu_ld = no; then
10001 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10002 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10003 hardcode_libdir_separator_CXX=:
10006 hardcode_libdir_flag_spec_CXX='-L$libdir'
10009 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10010 hardcode_libdir_separator_CXX=:
10011 export_dynamic_flag_spec_CXX='${wl}-E'
10015 case "$host_cpu" in
10017 hardcode_direct_CXX=no
10018 hardcode_shlibpath_var_CXX=no
10021 hardcode_direct_CXX=no
10022 hardcode_shlibpath_var_CXX=no
10023 hardcode_minus_L_CXX=yes # Not in the search PATH,
10024 # but as the default
10025 # location of the library.
10028 hardcode_direct_CXX=yes
10029 hardcode_minus_L_CXX=yes # Not in the search PATH,
10030 # but as the default
10031 # location of the library.
10035 case $cc_basename in
10037 # FIXME: insert proper C++ library support
10041 case "$host_cpu" in
10043 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10046 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10049 # Commands to make compiler produce verbose output that lists
10050 # what "hidden" libraries, object files and flags are used when
10051 # linking a shared library.
10053 # There doesn't appear to be a way to prevent this compiler from
10054 # explicitly linking system object files so we need to strip them
10055 # from the output so that they don't get included in the library
10057 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'
10060 if test "$GXX" = yes; then
10061 if test $with_gnu_ld = no; then
10062 case "$host_cpu" in
10064 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10067 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'
10072 # FIXME: insert proper C++ library support
10079 case $cc_basename in
10082 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'
10084 # Archives containing C++ object files must be created using
10085 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10086 # necessary to make sure instantiated templates are included
10088 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10091 if test "$GXX" = yes; then
10092 if test "$with_gnu_ld" = no; then
10093 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'
10095 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'
10098 link_all_deplibs_CXX=yes
10101 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10102 hardcode_libdir_separator_CXX=:
10105 case $cc_basename in
10107 # Kuck and Associates, Inc. (KAI) C++ Compiler
10109 # KCC will only create a shared library if the output file
10110 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10111 # to its proper name (with version) after linking.
10112 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'
10113 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'
10114 # Commands to make compiler produce verbose output that lists
10115 # what "hidden" libraries, object files and flags are used when
10116 # linking a shared library.
10118 # There doesn't appear to be a way to prevent this compiler from
10119 # explicitly linking system object files so we need to strip them
10120 # from the output so that they don't get included in the library
10122 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'
10124 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10125 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10127 # Archives containing C++ object files must be created using
10128 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10129 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10134 archive_cmds_need_lc_CXX=no
10135 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10136 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'
10137 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10138 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10139 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10143 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10144 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'
10146 runpath_var=LD_RUN_PATH
10147 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10148 hardcode_libdir_separator_CXX=:
10150 # Commands to make compiler produce verbose output that lists
10151 # what "hidden" libraries, object files and flags are used when
10152 # linking a shared library.
10154 # There doesn't appear to be a way to prevent this compiler from
10155 # explicitly linking system object files so we need to strip them
10156 # from the output so that they don't get included in the library
10158 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'
10163 # FIXME: insert proper C++ library support
10167 # FIXME: insert proper C++ library support
10171 case $cc_basename in
10173 # FIXME: insert proper C++ library support
10177 # FIXME: insert proper C++ library support
10183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10184 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10186 hardcode_libdir_flag_spec_CXX='-R$libdir'
10187 hardcode_direct_CXX=yes
10188 hardcode_shlibpath_var_CXX=no
10190 # Workaround some broken pre-1.5 toolchains
10191 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10194 case $cc_basename in
10196 # Kuck and Associates, Inc. (KAI) C++ Compiler
10198 # KCC will only create a shared library if the output file
10199 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10200 # to its proper name (with version) after linking.
10201 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'
10203 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10204 hardcode_libdir_separator_CXX=:
10206 # Archives containing C++ object files must be created using
10207 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10208 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10212 # Rational C++ 2.4.1
10213 # FIXME: insert proper C++ library support
10217 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10218 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'
10220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10221 hardcode_libdir_separator_CXX=:
10223 # Commands to make compiler produce verbose output that lists
10224 # what "hidden" libraries, object files and flags are used when
10225 # linking a shared library.
10227 # There doesn't appear to be a way to prevent this compiler from
10228 # explicitly linking system object files so we need to strip them
10229 # from the output so that they don't get included in the library
10231 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'
10234 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10235 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10236 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'
10238 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10239 hardcode_libdir_separator_CXX=:
10241 # Commands to make compiler produce verbose output that lists
10242 # what "hidden" libraries, object files and flags are used when
10243 # linking a shared library.
10244 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10247 # FIXME: insert proper C++ library support
10254 case $cc_basename in
10256 # Kuck and Associates, Inc. (KAI) C++ Compiler
10258 # KCC will only create a shared library if the output file
10259 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10260 # to its proper name (with version) after linking.
10261 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'
10263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10264 hardcode_libdir_separator_CXX=:
10266 # Archives containing C++ object files must be created using
10267 # the KAI C++ compiler.
10268 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10271 # Rational C++ 2.4.1
10272 # FIXME: insert proper C++ library support
10276 allow_undefined_flag_CXX=' -expect_unresolved \*'
10277 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'
10278 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10279 echo "-hidden">> $lib.exp~
10280 $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~
10283 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10284 hardcode_libdir_separator_CXX=:
10286 # Commands to make compiler produce verbose output that lists
10287 # what "hidden" libraries, object files and flags are used when
10288 # linking a shared library.
10290 # There doesn't appear to be a way to prevent this compiler from
10291 # explicitly linking system object files so we need to strip them
10292 # from the output so that they don't get included in the library
10294 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'
10297 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10298 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10299 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'
10301 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10302 hardcode_libdir_separator_CXX=:
10304 # Commands to make compiler produce verbose output that lists
10305 # what "hidden" libraries, object files and flags are used when
10306 # linking a shared library.
10307 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10310 # FIXME: insert proper C++ library support
10317 # FIXME: insert proper C++ library support
10321 archive_cmds_need_lc_CXX=no
10322 case $cc_basename in
10324 # FIXME: insert proper C++ library support
10328 # FIXME: insert proper C++ library support
10334 case $cc_basename in
10337 # FIXME: insert proper C++ library support
10342 # FIXME: insert proper C++ library support
10346 # FIXME: insert proper C++ library support
10352 case $cc_basename in
10354 # Sun C++ 4.2, 5.x and Centerline C++
10355 no_undefined_flag_CXX=' -zdefs'
10356 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10357 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10358 $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'
10360 hardcode_libdir_flag_spec_CXX='-R$libdir'
10361 hardcode_shlibpath_var_CXX=no
10363 solaris2.0-5 | solaris2.0-5.*) ;;
10365 # The C++ compiler is used as linker so we must use $wl
10366 # flag to pass the commands to the underlying system
10368 # Supported since Solaris 2.6 (maybe 2.5.1?)
10369 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10372 link_all_deplibs_CXX=yes
10374 # Commands to make compiler produce verbose output that lists
10375 # what "hidden" libraries, object files and flags are used when
10376 # linking a shared library.
10378 # There doesn't appear to be a way to prevent this compiler from
10379 # explicitly linking system object files so we need to strip them
10380 # from the output so that they don't get included in the library
10382 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'
10384 # Archives containing C++ object files must be created using
10385 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10386 # necessary to make sure instantiated templates are included
10388 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10391 # Green Hills C++ Compiler
10392 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10394 # The C++ compiler must be used to create the archive.
10395 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10398 # GNU C++ compiler with Solaris linker
10399 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10400 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10401 if $CC --version | grep -v '^2\.7' > /dev/null; then
10402 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10403 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10404 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10406 # Commands to make compiler produce verbose output that lists
10407 # what "hidden" libraries, object files and flags are used when
10408 # linking a shared library.
10409 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10411 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10413 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10414 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10415 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10417 # Commands to make compiler produce verbose output that lists
10418 # what "hidden" libraries, object files and flags are used when
10419 # linking a shared library.
10420 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10423 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10428 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10429 archive_cmds_need_lc_CXX=no
10432 case $cc_basename in
10434 # NonStop-UX NCC 3.20
10435 # FIXME: insert proper C++ library support
10439 # FIXME: insert proper C++ library support
10445 # FIXME: insert proper C++ library support
10449 # FIXME: insert proper C++ library support
10453 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10454 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10455 test "$ld_shlibs_CXX" = no && can_build_shared=no
10461 ## There is no encapsulation within the following macros, do not change
10462 ## the running order or otherwise move them around unless you know exactly
10463 ## what you are doing...
10465 cat > conftest.$ac_ext <<EOF
10469 Foo (void) { a = 0; }
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; then
10480 # Parse the compiler output and extract the necessary
10481 # objects, libraries and library flags.
10483 # Sentinel used to keep track of whether or not we are before
10484 # the conftest object file.
10485 pre_test_object_deps_done=no
10487 # The `*' in the case matches for architectures that use `case' in
10488 # $output_verbose_cmd can trigger glob expansion during the loop
10489 # eval without this substitution.
10490 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10492 for p in `eval $output_verbose_link_cmd`; do
10496 # Some compilers place space between "-{L,R}" and the path.
10497 # Remove the space.
10498 if test $p = "-L" \
10499 || test $p = "-R"; then
10506 if test "$pre_test_object_deps_done" = no; then
10509 # Internal compiler library paths should come after those
10510 # provided the user. The postdeps already come after the
10511 # user supplied libs so there is no need to process them.
10512 if test -z "$compiler_lib_search_path_CXX"; then
10513 compiler_lib_search_path_CXX="${prev}${p}"
10515 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10518 # The "-l" case would never come before the object being
10519 # linked, so don't bother handling this case.
10522 if test -z "$postdeps_CXX"; then
10523 postdeps_CXX="${prev}${p}"
10525 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10531 # This assumes that the test object file only shows up
10532 # once in the compiler output.
10533 if test "$p" = "conftest.$objext"; then
10534 pre_test_object_deps_done=yes
10538 if test "$pre_test_object_deps_done" = no; then
10539 if test -z "$predep_objects_CXX"; then
10540 predep_objects_CXX="$p"
10542 predep_objects_CXX="$predep_objects_CXX $p"
10545 if test -z "$postdep_objects_CXX"; then
10546 postdep_objects_CXX="$p"
10548 postdep_objects_CXX="$postdep_objects_CXX $p"
10553 *) ;; # Ignore the rest.
10561 echo "libtool.m4: error: problem compiling CXX test program"
10564 $rm -f confest.$objext
10566 case " $postdeps_CXX " in
10567 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10570 lt_prog_compiler_wl_CXX=
10571 lt_prog_compiler_pic_CXX=
10572 lt_prog_compiler_static_CXX=
10574 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10575 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10577 # C++ specific cases for pic, static, wl, etc.
10578 if test "$GXX" = yes; then
10579 lt_prog_compiler_wl_CXX='-Wl,'
10580 lt_prog_compiler_static_CXX='-static'
10584 # All AIX code is PIC.
10585 if test "$host_cpu" = ia64; then
10586 # AIX 5 now supports IA64 processor
10587 lt_prog_compiler_static_CXX='-Bstatic'
10591 # FIXME: we need at least 68020 code to build shared libraries, but
10592 # adding the `-m68020' flag to GCC prevents building anything better,
10594 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10596 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10597 # PIC is the default for these OSes.
10599 mingw* | os2* | pw32*)
10600 # This hack is so that the source file can tell whether it is being
10601 # built for inclusion in a dll (and should export symbols for example).
10602 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10604 darwin* | rhapsody*)
10605 # PIC is the default on this platform
10606 # Common symbols not allowed in MH_DYLIB files
10607 lt_prog_compiler_pic_CXX='-fno-common'
10610 # DJGPP does not support shared libraries at all
10611 lt_prog_compiler_pic_CXX=
10614 if test -d /usr/nec; then
10615 lt_prog_compiler_pic_CXX=-Kconform_pic
10619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10620 # not for PA HP-UX.
10621 case "$host_cpu" in
10625 lt_prog_compiler_pic_CXX='-fPIC'
10630 lt_prog_compiler_pic_CXX='-fPIC'
10636 # All AIX code is PIC.
10637 if test "$host_cpu" = ia64; then
10638 # AIX 5 now supports IA64 processor
10639 lt_prog_compiler_static_CXX='-Bstatic'
10641 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10645 case $cc_basename in
10647 # Green Hills C++ Compiler
10648 # _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"
10653 case $cc_basename in
10655 lt_prog_compiler_pic_CXX='-KPIC'
10658 # Green Hills C++ Compiler
10659 lt_prog_compiler_pic_CXX='-pic'
10666 # FreeBSD uses GNU C++
10668 hpux9* | hpux10* | hpux11*)
10669 case $cc_basename in
10671 lt_prog_compiler_wl_CXX='-Wl,'
10672 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10673 if test "$host_cpu" != ia64; then
10674 lt_prog_compiler_pic_CXX='+Z'
10678 lt_prog_compiler_wl_CXX='-Wl,'
10679 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10680 case "$host_cpu" in
10685 lt_prog_compiler_pic_CXX='+Z'
10693 irix5* | irix6* | nonstopux*)
10694 case $cc_basename in
10696 lt_prog_compiler_wl_CXX='-Wl,'
10697 lt_prog_compiler_static_CXX='-non_shared'
10698 # CC pic flag -KPIC is the default.
10705 case $cc_basename in
10708 lt_prog_compiler_wl_CXX='--backend -Wl,'
10709 lt_prog_compiler_pic_CXX='-fPIC'
10713 lt_prog_compiler_wl_CXX='-Wl,'
10714 lt_prog_compiler_pic_CXX='-KPIC'
10715 lt_prog_compiler_static_CXX='-static'
10719 # Make sure the PIC flag is empty. It appears that all Alpha
10720 # Linux and Compaq Tru64 Unix objects are PIC.
10721 lt_prog_compiler_pic_CXX=
10722 lt_prog_compiler_static_CXX='-non_shared'
10733 case $cc_basename in
10735 lt_prog_compiler_pic_CXX='-W c,exportall'
10743 osf3* | osf4* | osf5*)
10744 case $cc_basename in
10746 lt_prog_compiler_wl_CXX='--backend -Wl,'
10749 # Rational C++ 2.4.1
10750 lt_prog_compiler_pic_CXX='-pic'
10753 # Digital/Compaq C++
10754 lt_prog_compiler_wl_CXX='-Wl,'
10755 # Make sure the PIC flag is empty. It appears that all Alpha
10756 # Linux and Compaq Tru64 Unix objects are PIC.
10757 lt_prog_compiler_pic_CXX=
10758 lt_prog_compiler_static_CXX='-non_shared'
10767 case $cc_basename in
10769 lt_prog_compiler_pic_CXX='-fPIC'
10776 case $cc_basename in
10778 # Sun C++ 4.2, 5.x and Centerline C++
10779 lt_prog_compiler_pic_CXX='-KPIC'
10780 lt_prog_compiler_static_CXX='-Bstatic'
10781 lt_prog_compiler_wl_CXX='-Qoption ld '
10784 # Green Hills C++ Compiler
10785 lt_prog_compiler_pic_CXX='-PIC'
10792 case $cc_basename in
10795 lt_prog_compiler_pic_CXX='-pic'
10796 lt_prog_compiler_static_CXX='-Bstatic'
10800 lt_prog_compiler_pic_CXX='-pic'
10807 case $cc_basename in
10809 # NonStop-UX NCC 3.20
10810 lt_prog_compiler_pic_CXX='-KPIC'
10821 lt_prog_compiler_can_build_shared_CXX=no
10826 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10827 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10830 # Check to make sure the PIC flag actually works.
10832 if test -n "$lt_prog_compiler_pic_CXX"; then
10833 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10834 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10835 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 lt_prog_compiler_pic_works_CXX=no
10839 ac_outfile=conftest.$ac_objext
10840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10841 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10842 # Insert the option either (1) after the last *FLAGS variable, or
10843 # (2) before a word containing "conftest.", or (3) at the end.
10844 # Note that $ac_compile itself does not contain backslashes and begins
10845 # with a dollar sign (not a hyphen), so the echo should work correctly.
10846 # The option is referenced via a variable to avoid confusing sed.
10847 lt_compile=`echo "$ac_compile" | $SED \
10848 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10850 -e 's:$: $lt_compiler_flag:'`
10851 (eval echo "\"\$as_me:10851: $lt_compile\"" >&5)
10852 (eval "$lt_compile" 2>conftest.err)
10854 cat conftest.err >&5
10855 echo "$as_me:10855: \$? = $ac_status" >&5
10856 if (exit $ac_status) && test -s "$ac_outfile"; then
10857 # The compiler can only warn and ignore the option if not recognized
10858 # So say no if there are warnings
10859 if test ! -s conftest.err; then
10860 lt_prog_compiler_pic_works_CXX=yes
10866 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10867 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10869 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10870 case $lt_prog_compiler_pic_CXX in
10872 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10875 lt_prog_compiler_pic_CXX=
10876 lt_prog_compiler_can_build_shared_CXX=no
10881 # For platforms which do not support PIC, -DPIC is meaningless:
10883 lt_prog_compiler_pic_CXX=
10886 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10890 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10891 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10892 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 lt_cv_prog_compiler_c_o_CXX=no
10896 $rm -r conftest 2>/dev/null
10900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10902 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10903 # that will create temporary files in the current directory regardless of
10904 # the output directory. Thus, making CWD read-only will cause this test
10905 # to fail, enabling locking or at least warning the user not to do parallel
10909 lt_compiler_flag="-o out/conftest2.$ac_objext"
10910 # Insert the option either (1) after the last *FLAGS variable, or
10911 # (2) before a word containing "conftest.", or (3) at the end.
10912 # Note that $ac_compile itself does not contain backslashes and begins
10913 # with a dollar sign (not a hyphen), so the echo should work correctly.
10914 lt_compile=`echo "$ac_compile" | $SED \
10915 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10917 -e 's:$: $lt_compiler_flag:'`
10918 (eval echo "\"\$as_me:10918: $lt_compile\"" >&5)
10919 (eval "$lt_compile" 2>out/conftest.err)
10921 cat out/conftest.err >&5
10922 echo "$as_me:10922: \$? = $ac_status" >&5
10923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10925 # The compiler can only warn and ignore the option if not recognized
10926 # So say no if there are warnings
10927 if test ! -s out/conftest.err; then
10928 lt_cv_prog_compiler_c_o_CXX=yes
10932 $rm conftest* out/*
10939 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10940 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10943 hard_links="nottested"
10944 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10945 # do not overwrite the value of need_locks provided by the user
10946 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10947 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10952 ln conftest.a conftest.b 2>&5 || hard_links=no
10953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10954 echo "$as_me:$LINENO: result: $hard_links" >&5
10955 echo "${ECHO_T}$hard_links" >&6
10956 if test "$hard_links" = no; then
10957 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10958 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10965 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10966 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10968 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10971 # If we're using GNU nm, then we don't want the "-C" option.
10972 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10973 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10974 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'
10976 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'
10980 export_symbols_cmds_CXX="$ltdll_cmds"
10983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10986 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10990 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10991 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10992 test "$ld_shlibs_CXX" = no && can_build_shared=no
10994 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10995 if test "$GCC" = yes; then
10996 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11000 # Do we need to explicitly link libc?
11002 case "x$archive_cmds_need_lc_CXX" in
11004 # Assume -lc should be added
11005 archive_cmds_need_lc_CXX=yes
11007 if test "$enable_shared" = yes && test "$GCC" = yes; then
11008 case $archive_cmds_CXX in
11010 # FIXME: we may have to deal with multi-command sequences.
11013 # Test whether the compiler implicitly links with -lc since on some
11014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11015 # to ld, don't add -lc before -lgcc.
11016 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11017 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022 (eval $ac_compile) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } 2>conftest.err; then
11028 libobjs=conftest.$ac_objext
11030 wl=$lt_prog_compiler_wl_CXX
11036 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11037 allow_undefined_flag_CXX=
11038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11039 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }
11044 archive_cmds_need_lc_CXX=no
11046 archive_cmds_need_lc_CXX=yes
11048 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11050 cat conftest.err 1>&5
11053 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11054 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11061 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11062 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11063 hardcode_action_CXX=
11064 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11065 test -n "$runpath_var CXX" || \
11066 test "X$hardcode_automatic_CXX"="Xyes" ; then
11068 # We can hardcode non-existant directories.
11069 if test "$hardcode_direct_CXX" != no &&
11070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11071 # have to relink, otherwise we might link with an installed library
11072 # when we should be linking with a yet-to-be-installed one
11073 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11074 test "$hardcode_minus_L_CXX" != no; then
11075 # Linking always hardcodes the temporary library directory.
11076 hardcode_action_CXX=relink
11078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11079 hardcode_action_CXX=immediate
11082 # We cannot hardcode anything, or else we can only hardcode existing
11084 hardcode_action_CXX=unsupported
11086 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11087 echo "${ECHO_T}$hardcode_action_CXX" >&6
11089 if test "$hardcode_action_CXX" = relink; then
11090 # Fast installation is not supported
11091 enable_fast_install=no
11092 elif test "$shlibpath_overrides_runpath" = yes ||
11093 test "$enable_shared" = no; then
11094 # Fast installation is not necessary
11095 enable_fast_install=needless
11100 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11101 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11102 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11105 echo "$as_me:$LINENO: result: yes" >&5
11106 echo "${ECHO_T}yes" >&6
11108 # FIXME - insert some real tests, host_os isn't really good enough
11111 if test -n "$STRIP" ; then
11112 striplib="$STRIP -x"
11113 echo "$as_me:$LINENO: result: yes" >&5
11114 echo "${ECHO_T}yes" >&6
11116 echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6
11121 echo "$as_me:$LINENO: result: no" >&5
11122 echo "${ECHO_T}no" >&6
11127 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11128 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11129 library_names_spec=
11130 libname_spec='lib$name'
11134 postuninstall_cmds=
11138 shlibpath_overrides_runpath=unknown
11140 dynamic_linker="$host_os ld.so"
11141 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11142 if test "$GCC" = yes; then
11143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11144 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11145 # if the path contains ";" then we assume it to be the separator
11146 # otherwise default to the standard path separator (i.e. ":") - it is
11147 # assumed that no part of a normal pathname contains ";" but that should
11148 # okay in the real world where ";" in dirpaths is itself problematic.
11149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11154 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11156 need_lib_prefix=unknown
11157 hardcode_into_libs=no
11159 # when you set need_version to no, make sure it does not cause -set_version
11160 # flags to be left without arguments
11161 need_version=unknown
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11167 shlibpath_var=LIBPATH
11169 # AIX 3 has no versioning support, so we append a major version to the name.
11170 soname_spec='${libname}${release}${shared_ext}$major'
11177 hardcode_into_libs=yes
11178 if test "$host_cpu" = ia64; then
11179 # AIX 5 supports IA64
11180 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11181 shlibpath_var=LD_LIBRARY_PATH
11183 # With GCC up to 2.95.x, collect2 would create an import file
11184 # for dependence libraries. The import file would start with
11185 # the line `#! .'. This would cause the generated library to
11186 # depend on `.', always an invalid library. This was fixed in
11187 # development snapshots of GCC prior to 3.0.
11189 aix4 | aix4.[01] | aix4.[01].*)
11190 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11192 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11195 can_build_shared=no
11199 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11200 # soname into executable. Probably we can add versioning support to
11201 # collect2, so additional links can be useful in future.
11202 if test "$aix_use_runtimelinking" = yes; then
11203 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11204 # instead of lib<name>.a to let people know that these are not
11205 # typical AIX shared libraries.
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 # We preserve .a as extension for shared libraries through AIX4.2
11209 # and later when we are not doing run time linking.
11210 library_names_spec='${libname}${release}.a $libname.a'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11213 shlibpath_var=LIBPATH
11218 library_names_spec='$libname.ixlibrary $libname.a'
11219 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11220 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'
11224 library_names_spec='${libname}${shared_ext}'
11225 dynamic_linker="$host_os ld.so"
11226 shlibpath_var=LIBRARY_PATH
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233 soname_spec='${libname}${release}${shared_ext}$major'
11234 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11237 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11238 # the default ld.so.conf also contains /usr/contrib/lib and
11239 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11240 # libtool to hard-code these into programs
11243 cygwin* | mingw* | pw32*)
11244 version_type=windows
11249 case $GCC,$host_os in
11250 yes,cygwin* | yes,mingw* | yes,pw32*)
11251 library_names_spec='$libname.dll.a'
11252 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11253 postinstall_cmds='base_file=`basename \${file}`~
11254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11255 dldir=$destdir/`dirname \$dlpath`~
11256 test -d \$dldir || mkdir -p \$dldir~
11257 $install_prog $dir/$dlname \$dldir/$dlname'
11258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11259 dlpath=$dir/\$dldll~
11261 shlibpath_overrides_runpath=yes
11265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11266 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11267 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11270 # MinGW DLLs use traditional 'lib' prefix
11271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11272 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11273 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11274 # It is most probably a Windows format PATH printed by
11275 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11276 # path with ; separators, and with drive letters. We can handle the
11277 # drive letters (cygwin fileutils understands them), so leave them,
11278 # especially as we might pass files found there to a mingw objdump,
11279 # which wouldn't understand a cygwinified path. Ahh.
11280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11286 # pw32 DLLs use 'pw' prefix rather than 'lib'
11287 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11293 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11296 dynamic_linker='Win32 ld.exe'
11297 # FIXME: first we should search . and the directory the executable is in
11301 darwin* | rhapsody*)
11302 dynamic_linker="$host_os dyld"
11303 version_type=darwin
11306 # FIXME: Relying on posixy $() will cause problems for
11307 # cross-compilation, but unfortunately the echo tests do not
11308 # yet detect zsh echo's removal of \ escapes.
11309 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11310 soname_spec='${libname}${release}${major}$shared_ext'
11311 shlibpath_overrides_runpath=yes
11312 shlibpath_var=DYLD_LIBRARY_PATH
11313 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11314 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11315 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11316 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"`
11318 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 shlibpath_var=LD_LIBRARY_PATH
11335 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11336 version_type=freebsd-$objformat
11337 case $version_type in
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11348 shlibpath_var=LD_LIBRARY_PATH
11351 shlibpath_overrides_runpath=yes
11353 freebsd3.01* | freebsdelf3.01*)
11354 shlibpath_overrides_runpath=yes
11355 hardcode_into_libs=yes
11358 shlibpath_overrides_runpath=no
11359 hardcode_into_libs=yes
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11369 soname_spec='${libname}${release}${shared_ext}$major'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 hardcode_into_libs=yes
11374 hpux9* | hpux10* | hpux11*)
11375 # Give a soname corresponding to the major version so that dld.sl refuses to
11376 # link against other versions.
11380 case "$host_cpu" in
11383 hardcode_into_libs=yes
11384 dynamic_linker="$host_os dld.so"
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 if test "X$HPUX_IA64_MODE" = X32; then
11390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11392 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11398 hardcode_into_libs=yes
11399 dynamic_linker="$host_os dld.sl"
11400 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11409 dynamic_linker="$host_os dld.sl"
11410 shlibpath_var=SHLIB_PATH
11411 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413 soname_spec='${libname}${release}${shared_ext}$major'
11416 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11417 postinstall_cmds='chmod 555 $lib'
11420 irix5* | irix6* | nonstopux*)
11422 nonstopux*) version_type=nonstopux ;;
11424 if test "$lt_cv_prog_gnu_ld" = yes; then
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11435 irix5* | nonstopux*)
11436 libsuff= shlibsuff=
11439 case $LD in # libtool.m4 will add one of these switches to LD
11440 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11441 libsuff= shlibsuff= libmagic=32-bit;;
11442 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11443 libsuff=32 shlibsuff=N32 libmagic=N32;;
11444 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11445 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11446 *) libsuff= shlibsuff= libmagic=never-match;;
11450 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11451 shlibpath_overrides_runpath=no
11452 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11453 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11454 hardcode_into_libs=yes
11457 # No shared lib support for Linux oldld, aout, or coff.
11458 linux*oldld* | linux*aout* | linux*coff*)
11462 # This must be Linux ELF.
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11470 shlibpath_var=LD_LIBRARY_PATH
11471 shlibpath_overrides_runpath=no
11472 # This implies no fast_install, which is unacceptable.
11473 # Some rework will be needed to allow for fast_install
11474 # before this can be enabled.
11475 hardcode_into_libs=yes
11477 # We used to test for /lib/ld.so.1 and disable shared libraries on
11478 # powerpc, because MkLinux only supported shared libraries with the
11479 # GNU dynamic linker. Since this was broken with cross compilers,
11480 # most powerpc-linux boxes support dynamic linking these days and
11481 # people can always --disable-shared, the test was removed, and we
11482 # assume the GNU/Linux dynamic linker is in use.
11483 dynamic_linker='GNU/Linux ld.so'
11490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11493 dynamic_linker='NetBSD (a.out) ld.so'
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11497 dynamic_linker='NetBSD ld.elf_so'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=yes
11501 hardcode_into_libs=yes
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 soname_spec='${libname}${release}${shared_ext}$major'
11517 shlibpath_var=LD_LIBRARY_PATH
11518 shlibpath_overrides_runpath=yes
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11530 openbsd2.[89] | openbsd2.[89].*)
11531 shlibpath_overrides_runpath=no
11534 shlibpath_overrides_runpath=yes
11538 shlibpath_overrides_runpath=yes
11543 libname_spec='$name'
11546 library_names_spec='$libname${shared_ext} $libname.a'
11547 dynamic_linker='OS/2 ld.exe'
11548 shlibpath_var=LIBPATH
11551 osf3* | osf4* | osf5*)
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 shlibpath_var=LD_LIBRARY_PATH
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 shlibpath_var=LD_LIBRARY_PATH
11576 shlibpath_overrides_runpath=yes
11577 hardcode_into_libs=yes
11578 # ldd complains unless libraries are executable
11579 postinstall_cmds='chmod +x $lib'
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=yes
11588 if test "$with_gnu_ld" = yes; then
11594 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 case $host_vendor in
11601 shlibpath_overrides_runpath=no
11603 export_dynamic_flag_spec='${wl}-Blargedynsym'
11604 runpath_var=LD_RUN_PATH
11612 shlibpath_overrides_runpath=no
11613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11619 if test -d /usr/nec ;then
11621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11622 soname_spec='$libname${shared_ext}.$major'
11623 shlibpath_var=LD_LIBRARY_PATH
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 shlibpath_var=LD_LIBRARY_PATH
11638 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11639 echo "${ECHO_T}$dynamic_linker" >&6
11640 test "$dynamic_linker" = no && can_build_shared=no
11642 if test "x$enable_dlopen" != xyes; then
11643 enable_dlopen=unknown
11644 enable_dlopen_self=unknown
11645 enable_dlopen_self_static=unknown
11652 lt_cv_dlopen="load_add_on"
11654 lt_cv_dlopen_self=yes
11658 lt_cv_dlopen="LoadLibrary"
11663 lt_cv_dlopen="dlopen"
11668 # if libdl is installed we need to link against it
11669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 ac_check_lib_save_LIBS=$LIBS
11676 cat >conftest.$ac_ext <<_ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11683 /* Override any gcc2 internal prototype to avoid an error. */
11687 /* We use char because int might match the return type of a gcc2
11688 builtin and then its argument prototype would still apply. */
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700 (eval $ac_link) 2>conftest.er1
11702 grep -v '^ *+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_cxx_werror_flag"
11708 || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_lib_dl_dlopen=yes
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_cv_lib_dl_dlopen=no
11727 rm -f conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 LIBS=$ac_check_lib_save_LIBS
11731 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11732 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11733 if test $ac_cv_lib_dl_dlopen = yes; then
11734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11737 lt_cv_dlopen="dyld"
11739 lt_cv_dlopen_self=yes
11746 echo "$as_me:$LINENO: checking for shl_load" >&5
11747 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11748 if test "${ac_cv_func_shl_load+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11759 #define shl_load innocuous_shl_load
11761 /* System header to define __stub macros and hopefully few prototypes,
11762 which can conflict with char shl_load (); below.
11763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11764 <limits.h> exists even on freestanding compilers. */
11767 # include <limits.h>
11769 # include <assert.h>
11774 /* Override any gcc2 internal prototype to avoid an error. */
11779 /* We use char because int might match the return type of a gcc2
11780 builtin and then its argument prototype would still apply. */
11782 /* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11788 char (*f) () = shl_load;
11797 return f != shl_load;
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804 (eval $ac_link) 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_cxx_werror_flag"
11812 || test ! -s conftest.err'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; } &&
11818 { ac_try='test -s conftest$ac_exeext'
11819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 ac_cv_func_shl_load=yes
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 ac_cv_func_shl_load=no
11831 rm -f conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
11834 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11835 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11836 if test $ac_cv_func_shl_load = yes; then
11837 lt_cv_dlopen="shl_load"
11839 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11840 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11841 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 ac_check_lib_save_LIBS=$LIBS
11846 cat >conftest.$ac_ext <<_ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11853 /* Override any gcc2 internal prototype to avoid an error. */
11857 /* We use char because int might match the return type of a gcc2
11858 builtin and then its argument prototype would still apply. */
11868 rm -f conftest.$ac_objext conftest$ac_exeext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11870 (eval $ac_link) 2>conftest.er1
11872 grep -v '^ *+' conftest.er1 >conftest.err
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_cxx_werror_flag"
11878 || test ! -s conftest.err'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest$ac_exeext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 ac_cv_lib_dld_shl_load=yes
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11895 ac_cv_lib_dld_shl_load=no
11897 rm -f conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11901 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11902 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11903 if test $ac_cv_lib_dld_shl_load = yes; then
11904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11906 echo "$as_me:$LINENO: checking for dlopen" >&5
11907 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11908 if test "${ac_cv_func_dlopen+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 cat >conftest.$ac_ext <<_ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11919 #define dlopen innocuous_dlopen
11921 /* System header to define __stub macros and hopefully few prototypes,
11922 which can conflict with char dlopen (); below.
11923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924 <limits.h> exists even on freestanding compilers. */
11927 # include <limits.h>
11929 # include <assert.h>
11934 /* Override any gcc2 internal prototype to avoid an error. */
11939 /* We use char because int might match the return type of a gcc2
11940 builtin and then its argument prototype would still apply. */
11942 /* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11948 char (*f) () = dlopen;
11957 return f != dlopen;
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11964 (eval $ac_link) 2>conftest.er1
11966 grep -v '^ *+' conftest.er1 >conftest.err
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_cxx_werror_flag"
11972 || test ! -s conftest.err'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest$ac_exeext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_func_dlopen=yes
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 ac_cv_func_dlopen=no
11991 rm -f conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11994 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11995 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11996 if test $ac_cv_func_dlopen = yes; then
11997 lt_cv_dlopen="dlopen"
11999 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12000 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12001 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 ac_check_lib_save_LIBS=$LIBS
12006 cat >conftest.$ac_ext <<_ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12013 /* Override any gcc2 internal prototype to avoid an error. */
12017 /* We use char because int might match the return type of a gcc2
12018 builtin and then its argument prototype would still apply. */
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12030 (eval $ac_link) 2>conftest.er1
12032 grep -v '^ *+' conftest.er1 >conftest.err
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_cxx_werror_flag"
12038 || test ! -s conftest.err'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest$ac_exeext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_lib_dl_dlopen=yes
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12055 ac_cv_lib_dl_dlopen=no
12057 rm -f conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12061 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12063 if test $ac_cv_lib_dl_dlopen = yes; then
12064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12066 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12067 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-lsvld $LIBS"
12073 cat >conftest.$ac_ext <<_ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12080 /* Override any gcc2 internal prototype to avoid an error. */
12084 /* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097 (eval $ac_link) 2>conftest.er1
12099 grep -v '^ *+' conftest.er1 >conftest.err
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_cxx_werror_flag"
12105 || test ! -s conftest.err'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_cv_lib_svld_dlopen=yes
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 ac_cv_lib_svld_dlopen=no
12124 rm -f conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_lib_save_LIBS
12128 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12129 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12130 if test $ac_cv_lib_svld_dlopen = yes; then
12131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12133 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12134 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12135 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 ac_check_lib_save_LIBS=$LIBS
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12147 /* Override any gcc2 internal prototype to avoid an error. */
12151 /* We use char because int might match the return type of a gcc2
12152 builtin and then its argument prototype would still apply. */
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164 (eval $ac_link) 2>conftest.er1
12166 grep -v '^ *+' conftest.er1 >conftest.err
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
12171 { ac_try='test -z "$ac_cxx_werror_flag"
12172 || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_cv_lib_dld_dld_link=yes
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 ac_cv_lib_dld_dld_link=no
12191 rm -f conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12195 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12196 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12197 if test $ac_cv_lib_dld_dld_link = yes; then
12198 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12219 if test "x$lt_cv_dlopen" != xno; then
12225 case $lt_cv_dlopen in
12227 save_CPPFLAGS="$CPPFLAGS"
12228 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12230 save_LDFLAGS="$LDFLAGS"
12231 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12234 LIBS="$lt_cv_dlopen_libs $LIBS"
12236 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12237 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12238 if test "${lt_cv_dlopen_self+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 if test "$cross_compiling" = yes; then :
12242 lt_cv_dlopen_self=cross
12244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12245 lt_status=$lt_dlunknown
12246 cat > conftest.$ac_ext <<EOF
12247 #line 12247 "configure"
12248 #include "confdefs.h"
12257 # define LT_DLGLOBAL RTLD_GLOBAL
12260 # define LT_DLGLOBAL DL_GLOBAL
12262 # define LT_DLGLOBAL 0
12266 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12267 find out it does not work in some platform. */
12268 #ifndef LT_DLLAZY_OR_NOW
12270 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12273 # define LT_DLLAZY_OR_NOW DL_LAZY
12276 # define LT_DLLAZY_OR_NOW RTLD_NOW
12279 # define LT_DLLAZY_OR_NOW DL_NOW
12281 # define LT_DLLAZY_OR_NOW 0
12289 extern "C" void exit (int);
12292 void fnord() { int i=42;}
12295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296 int status = $lt_dlunknown;
12300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12302 /* dlclose (self); */
12308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12309 (eval $ac_link) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12313 (./conftest; exit; ) 2>/dev/null
12315 case x$lt_status in
12316 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12317 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12318 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12321 # compilation failed
12322 lt_cv_dlopen_self=no
12329 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12330 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12332 if test "x$lt_cv_dlopen_self" = xyes; then
12333 LDFLAGS="$LDFLAGS $link_static_flag"
12334 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12335 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12336 if test "${lt_cv_dlopen_self_static+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 if test "$cross_compiling" = yes; then :
12340 lt_cv_dlopen_self_static=cross
12342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12343 lt_status=$lt_dlunknown
12344 cat > conftest.$ac_ext <<EOF
12345 #line 12345 "configure"
12346 #include "confdefs.h"
12355 # define LT_DLGLOBAL RTLD_GLOBAL
12358 # define LT_DLGLOBAL DL_GLOBAL
12360 # define LT_DLGLOBAL 0
12364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12365 find out it does not work in some platform. */
12366 #ifndef LT_DLLAZY_OR_NOW
12368 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12371 # define LT_DLLAZY_OR_NOW DL_LAZY
12374 # define LT_DLLAZY_OR_NOW RTLD_NOW
12377 # define LT_DLLAZY_OR_NOW DL_NOW
12379 # define LT_DLLAZY_OR_NOW 0
12387 extern "C" void exit (int);
12390 void fnord() { int i=42;}
12393 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12394 int status = $lt_dlunknown;
12398 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12399 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12400 /* dlclose (self); */
12406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407 (eval $ac_link) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12411 (./conftest; exit; ) 2>/dev/null
12413 case x$lt_status in
12414 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12415 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12416 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12419 # compilation failed
12420 lt_cv_dlopen_self_static=no
12427 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12428 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12431 CPPFLAGS="$save_CPPFLAGS"
12432 LDFLAGS="$save_LDFLAGS"
12437 case $lt_cv_dlopen_self in
12438 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12439 *) enable_dlopen_self=unknown ;;
12442 case $lt_cv_dlopen_self_static in
12443 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12444 *) enable_dlopen_self_static=unknown ;;
12449 # The else clause should only fire when bootstrapping the
12450 # libtool distribution, otherwise you forgot to ship ltmain.sh
12451 # with your package, and you will get complaints that there are
12452 # no rules to generate ltmain.sh.
12453 if test -f "$ltmain"; then
12454 # See if we are running on zsh, and set the options which allow our commands through
12455 # without removal of \ escapes.
12456 if test -n "${ZSH_VERSION+set}" ; then
12457 setopt NO_GLOB_SUBST
12459 # Now quote all the things that may contain metacharacters while being
12460 # careful not to overquote the AC_SUBSTed values. We take copies of the
12461 # variables and quote the copies for generation of the libtool script.
12462 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12465 deplibs_check_method reload_flag reload_cmds need_locks \
12466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12467 lt_cv_sys_global_symbol_to_c_name_address \
12468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12469 old_postinstall_cmds old_postuninstall_cmds \
12473 lt_prog_compiler_wl_CXX \
12474 lt_prog_compiler_pic_CXX \
12475 lt_prog_compiler_static_CXX \
12476 lt_prog_compiler_no_builtin_flag_CXX \
12477 export_dynamic_flag_spec_CXX \
12478 thread_safe_flag_spec_CXX \
12479 whole_archive_flag_spec_CXX \
12480 enable_shared_with_static_runtimes_CXX \
12481 old_archive_cmds_CXX \
12482 old_archive_from_new_cmds_CXX \
12483 predep_objects_CXX \
12484 postdep_objects_CXX \
12487 compiler_lib_search_path_CXX \
12489 archive_expsym_cmds_CXX \
12490 postinstall_cmds_CXX \
12491 postuninstall_cmds_CXX \
12492 old_archive_from_expsyms_cmds_CXX \
12493 allow_undefined_flag_CXX \
12494 no_undefined_flag_CXX \
12495 export_symbols_cmds_CXX \
12496 hardcode_libdir_flag_spec_CXX \
12497 hardcode_libdir_flag_spec_ld_CXX \
12498 hardcode_libdir_separator_CXX \
12499 hardcode_automatic_CXX \
12501 module_expsym_cmds_CXX \
12502 lt_cv_prog_compiler_c_o_CXX \
12503 exclude_expsyms_CXX \
12504 include_expsyms_CXX; do
12507 old_archive_cmds_CXX | \
12508 old_archive_from_new_cmds_CXX | \
12509 archive_cmds_CXX | \
12510 archive_expsym_cmds_CXX | \
12511 module_cmds_CXX | \
12512 module_expsym_cmds_CXX | \
12513 old_archive_from_expsyms_cmds_CXX | \
12514 export_symbols_cmds_CXX | \
12515 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12516 postinstall_cmds | postuninstall_cmds | \
12517 old_postinstall_cmds | old_postuninstall_cmds | \
12518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12519 # Double-quote double-evaled strings.
12520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12529 *'\$0 --fallback-echo"')
12530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12536 cat <<__EOF__ >> "$cfgfile"
12537 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12539 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12541 # Shell to use when invoking shell scripts.
12544 # Whether or not to build shared libraries.
12545 build_libtool_libs=$enable_shared
12547 # Whether or not to build static libraries.
12548 build_old_libs=$enable_static
12550 # Whether or not to add -lc for building shared libraries.
12551 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12553 # Whether or not to disallow shared libs when runtime libs are static
12554 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12556 # Whether or not to optimize for fast installation.
12557 fast_install=$enable_fast_install
12560 host_alias=$host_alias
12563 # An echo program that does not interpret backslashes.
12568 AR_FLAGS=$lt_AR_FLAGS
12573 # A language-specific compiler.
12574 CC=$lt_compiler_CXX
12576 # Is the compiler the GNU C compiler?
12582 # The linker used to build libraries.
12585 # Whether we need hard or soft links.
12588 # A BSD-compatible nm program.
12591 # A symbol stripping program
12594 # Used to examine libraries when file_magic_cmd begins "file"
12595 MAGIC_CMD=$MAGIC_CMD
12597 # Used on cygwin: DLL creation program.
12600 # Used on cygwin: object dumper.
12603 # Used on cygwin: assembler.
12606 # The name of the directory that contains temporary libtool files.
12609 # How to create reloadable object files.
12610 reload_flag=$lt_reload_flag
12611 reload_cmds=$lt_reload_cmds
12613 # How to pass a linker flag through the compiler.
12614 wl=$lt_lt_prog_compiler_wl_CXX
12616 # Object file suffix (normally "o").
12617 objext="$ac_objext"
12619 # Old archive suffix (normally "a").
12622 # Shared library suffix (normally ".so").
12625 # Executable file suffix (normally "").
12628 # Additional compiler flags for building library objects.
12629 pic_flag=$lt_lt_prog_compiler_pic_CXX
12632 # What is the maximum length of a command?
12633 max_cmd_len=$lt_cv_sys_max_cmd_len
12635 # Does compiler simultaneously support -c and -o options?
12636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12638 # Must we lock files when doing compilation ?
12639 need_locks=$lt_need_locks
12641 # Do we need the lib prefix for modules?
12642 need_lib_prefix=$need_lib_prefix
12644 # Do we need a version for libraries?
12645 need_version=$need_version
12647 # Whether dlopen is supported.
12648 dlopen_support=$enable_dlopen
12650 # Whether dlopen of programs is supported.
12651 dlopen_self=$enable_dlopen_self
12653 # Whether dlopen of statically linked programs is supported.
12654 dlopen_self_static=$enable_dlopen_self_static
12656 # Compiler flag to prevent dynamic linking.
12657 link_static_flag=$lt_lt_prog_compiler_static_CXX
12659 # Compiler flag to turn off builtin functions.
12660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12662 # Compiler flag to allow reflexive dlopens.
12663 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12665 # Compiler flag to generate shared objects directly from archives.
12666 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12668 # Compiler flag to generate thread-safe objects.
12669 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12671 # Library versioning type.
12672 version_type=$version_type
12674 # Format of library name prefix.
12675 libname_spec=$lt_libname_spec
12677 # List of archive names. First name is the real one, the rest are links.
12678 # The last name is the one that the linker finds with -lNAME.
12679 library_names_spec=$lt_library_names_spec
12681 # The coded name of the library, if different from the real name.
12682 soname_spec=$lt_soname_spec
12684 # Commands used to build and install an old-style archive.
12686 old_archive_cmds=$lt_old_archive_cmds_CXX
12687 old_postinstall_cmds=$lt_old_postinstall_cmds
12688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12690 # Create an old-style archive from a shared archive.
12691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12693 # Create a temporary old-style archive to link instead of a shared archive.
12694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12696 # Commands used to build and install a shared archive.
12697 archive_cmds=$lt_archive_cmds_CXX
12698 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12699 postinstall_cmds=$lt_postinstall_cmds
12700 postuninstall_cmds=$lt_postuninstall_cmds
12702 # Commands used to build a loadable module (assumed same as above if empty)
12703 module_cmds=$lt_module_cmds_CXX
12704 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12706 # Commands to strip libraries.
12707 old_striplib=$lt_old_striplib
12708 striplib=$lt_striplib
12710 # Dependencies to place before the objects being linked to create a
12712 predep_objects=$lt_predep_objects_CXX
12714 # Dependencies to place after the objects being linked to create a
12716 postdep_objects=$lt_postdep_objects_CXX
12718 # Dependencies to place before the objects being linked to create a
12720 predeps=$lt_predeps_CXX
12722 # Dependencies to place after the objects being linked to create a
12724 postdeps=$lt_postdeps_CXX
12726 # The library search path used internally by the compiler when linking
12727 # a shared library.
12728 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12730 # Method to check whether dependent libraries are shared objects.
12731 deplibs_check_method=$lt_deplibs_check_method
12733 # Command to use when deplibs_check_method == file_magic.
12734 file_magic_cmd=$lt_file_magic_cmd
12736 # Flag that allows shared libraries with undefined symbols to be built.
12737 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12739 # Flag that forces no undefined symbols.
12740 no_undefined_flag=$lt_no_undefined_flag_CXX
12742 # Commands used to finish a libtool library installation in a directory.
12743 finish_cmds=$lt_finish_cmds
12745 # Same as above, but a single script fragment to be evaled but not shown.
12746 finish_eval=$lt_finish_eval
12748 # Take the output of nm and produce a listing of raw symbols and C names.
12749 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12751 # Transform the output of nm in a proper C declaration
12752 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12754 # Transform the output of nm in a C name address pair
12755 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12757 # This is the shared library runtime path variable.
12758 runpath_var=$runpath_var
12760 # This is the shared library path variable.
12761 shlibpath_var=$shlibpath_var
12763 # Is shlibpath searched before the hard-coded library search path?
12764 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12766 # How to hardcode a shared library path into an executable.
12767 hardcode_action=$hardcode_action_CXX
12769 # Whether we should hardcode library paths into libraries.
12770 hardcode_into_libs=$hardcode_into_libs
12772 # Flag to hardcode \$libdir into a binary during linking.
12773 # This must work even if \$libdir does not exist.
12774 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12776 # If ld is used when linking, flag to hardcode \$libdir into
12777 # a binary during linking. This must work even if \$libdir does
12779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12781 # Whether we need a single -rpath flag with a separated argument.
12782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12784 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12785 # resulting binary.
12786 hardcode_direct=$hardcode_direct_CXX
12788 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12789 # resulting binary.
12790 hardcode_minus_L=$hardcode_minus_L_CXX
12792 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12793 # the resulting binary.
12794 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12796 # Set to yes if building a shared library automatically hardcodes DIR into the library
12797 # and all subsequent libraries and executables linked against it.
12798 hardcode_automatic=$hardcode_automatic_CXX
12800 # Variables whose values should be saved in libtool wrapper scripts and
12801 # restored at relink time.
12802 variables_saved_for_relink="$variables_saved_for_relink"
12804 # Whether libtool must link a program against all its dependency libraries.
12805 link_all_deplibs=$link_all_deplibs_CXX
12807 # Compile-time system search path for libraries
12808 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12810 # Run-time system search path for libraries
12811 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12813 # Fix the shell variable \$srcfile for the compiler.
12814 fix_srcfile_path="$fix_srcfile_path_CXX"
12816 # Set to yes if exported symbols are required.
12817 always_export_symbols=$always_export_symbols_CXX
12819 # The commands to list exported symbols.
12820 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12822 # The commands to extract the exported symbol list from a shared archive.
12823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12825 # Symbols that should not be listed in the preloaded symbols.
12826 exclude_expsyms=$lt_exclude_expsyms_CXX
12828 # Symbols that must always be exported.
12829 include_expsyms=$lt_include_expsyms_CXX
12831 # ### END LIBTOOL TAG CONFIG: $tagname
12837 # If there is no Makefile yet, we rely on a make rule to execute
12838 # `config.status --recheck' to rerun these tests and create the
12839 # libtool script then.
12840 test -f Makefile && make "$ltmain"
12845 ac_cpp='$CPP $CPPFLAGS'
12846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12854 with_gnu_ldcxx=$with_gnu_ld
12855 with_gnu_ld=$lt_save_with_gnu_ld
12856 lt_cv_path_LDCXX=$lt_cv_path_LD
12857 lt_cv_path_LD=$lt_save_path_LD
12858 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12859 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12867 if test -n "$F77" && test "X$F77" != "Xno"; then
12870 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12871 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12872 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12875 archive_cmds_need_lc_F77=no
12876 allow_undefined_flag_F77=
12877 always_export_symbols_F77=no
12878 archive_expsym_cmds_F77=
12879 export_dynamic_flag_spec_F77=
12880 hardcode_direct_F77=no
12881 hardcode_libdir_flag_spec_F77=
12882 hardcode_libdir_flag_spec_ld_F77=
12883 hardcode_libdir_separator_F77=
12884 hardcode_minus_L_F77=no
12885 hardcode_automatic_F77=no
12887 module_expsym_cmds_F77=
12888 link_all_deplibs_F77=unknown
12889 old_archive_cmds_F77=$old_archive_cmds
12890 no_undefined_flag_F77=
12891 whole_archive_flag_spec_F77=
12892 enable_shared_with_static_runtimes_F77=no
12894 # Source file extension for f77 test sources.
12897 # Object file extension for compiled f77 test sources.
12901 # Code to be used in simple compile tests
12902 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12904 # Code to be used in simple link tests
12905 lt_simple_link_test_code=" program t\n end\n"
12907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12909 # If no C compiler was specified, use CC.
12912 # Allow CC to be a program name with arguments.
12916 # Allow CC to be a program name with arguments.
12921 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12923 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12924 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12925 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12926 echo "${ECHO_T}$can_build_shared" >&6
12928 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12929 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12930 test "$can_build_shared" = "no" && enable_shared=no
12932 # On AIX, shared libraries and static libraries use the same namespace, and
12933 # are all built from PIC.
12936 test "$enable_shared" = yes && enable_static=no
12937 if test -n "$RANLIB"; then
12938 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12939 postinstall_cmds='$RANLIB $lib'
12943 test "$enable_shared" = yes && enable_static=no
12946 echo "$as_me:$LINENO: result: $enable_shared" >&5
12947 echo "${ECHO_T}$enable_shared" >&6
12949 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12950 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12951 # Make sure either enable_shared or enable_static is yes.
12952 test "$enable_shared" = yes || enable_static=yes
12953 echo "$as_me:$LINENO: result: $enable_static" >&5
12954 echo "${ECHO_T}$enable_static" >&6
12956 test "$ld_shlibs_F77" = no && can_build_shared=no
12961 lt_prog_compiler_wl_F77=
12962 lt_prog_compiler_pic_F77=
12963 lt_prog_compiler_static_F77=
12965 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12966 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12968 if test "$GCC" = yes; then
12969 lt_prog_compiler_wl_F77='-Wl,'
12970 lt_prog_compiler_static_F77='-static'
12974 # All AIX code is PIC.
12975 if test "$host_cpu" = ia64; then
12976 # AIX 5 now supports IA64 processor
12977 lt_prog_compiler_static_F77='-Bstatic'
12982 # FIXME: we need at least 68020 code to build shared libraries, but
12983 # adding the `-m68020' flag to GCC prevents building anything better,
12985 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12988 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12989 # PIC is the default for these OSes.
12992 mingw* | pw32* | os2*)
12993 # This hack is so that the source file can tell whether it is being
12994 # built for inclusion in a dll (and should export symbols for example).
12995 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12998 darwin* | rhapsody*)
12999 # PIC is the default on this platform
13000 # Common symbols not allowed in MH_DYLIB files
13001 lt_prog_compiler_pic_F77='-fno-common'
13005 # Just because we use GCC doesn't mean we suddenly get shared libraries
13006 # on systems that don't support them.
13007 lt_prog_compiler_can_build_shared_F77=no
13012 if test -d /usr/nec; then
13013 lt_prog_compiler_pic_F77=-Kconform_pic
13018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13019 # not for PA HP-UX.
13020 case "$host_cpu" in
13025 lt_prog_compiler_pic_F77='-fPIC'
13031 lt_prog_compiler_pic_F77='-fPIC'
13035 # PORTME Check for flag to pass linker flags through the system compiler.
13038 lt_prog_compiler_wl_F77='-Wl,'
13039 if test "$host_cpu" = ia64; then
13040 # AIX 5 now supports IA64 processor
13041 lt_prog_compiler_static_F77='-Bstatic'
13043 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13047 mingw* | pw32* | os2*)
13048 # This hack is so that the source file can tell whether it is being
13049 # built for inclusion in a dll (and should export symbols for example).
13050 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13053 hpux9* | hpux10* | hpux11*)
13054 lt_prog_compiler_wl_F77='-Wl,'
13055 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13056 # not for PA HP-UX.
13057 case "$host_cpu" in
13062 lt_prog_compiler_pic_F77='+Z'
13065 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13066 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13069 irix5* | irix6* | nonstopux*)
13070 lt_prog_compiler_wl_F77='-Wl,'
13071 # PIC (with -KPIC) is the default.
13072 lt_prog_compiler_static_F77='-non_shared'
13076 lt_prog_compiler_pic_F77='-KPIC'
13077 lt_prog_compiler_static_F77='-Bstatic'
13083 lt_prog_compiler_wl_F77='-Wl,'
13084 lt_prog_compiler_pic_F77='-KPIC'
13085 lt_prog_compiler_static_F77='-static'
13088 lt_prog_compiler_wl_F77='-Wl,'
13089 # All Alpha code is PIC.
13090 lt_prog_compiler_static_F77='-non_shared'
13095 osf3* | osf4* | osf5*)
13096 lt_prog_compiler_wl_F77='-Wl,'
13097 # All OSF/1 code is PIC.
13098 lt_prog_compiler_static_F77='-non_shared'
13102 lt_prog_compiler_pic_F77='-Kpic'
13103 lt_prog_compiler_static_F77='-dn'
13107 lt_prog_compiler_wl_F77='-Wl,'
13108 lt_prog_compiler_pic_F77='-KPIC'
13109 lt_prog_compiler_static_F77='-Bstatic'
13113 lt_prog_compiler_wl_F77='-Qoption ld '
13114 lt_prog_compiler_pic_F77='-PIC'
13115 lt_prog_compiler_static_F77='-Bstatic'
13118 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13119 lt_prog_compiler_wl_F77='-Wl,'
13120 lt_prog_compiler_pic_F77='-KPIC'
13121 lt_prog_compiler_static_F77='-Bstatic'
13125 if test -d /usr/nec ;then
13126 lt_prog_compiler_pic_F77='-Kconform_pic'
13127 lt_prog_compiler_static_F77='-Bstatic'
13132 lt_prog_compiler_pic_F77='-pic'
13133 lt_prog_compiler_static_F77='-Bstatic'
13137 lt_prog_compiler_can_build_shared_F77=no
13142 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13143 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13146 # Check to make sure the PIC flag actually works.
13148 if test -n "$lt_prog_compiler_pic_F77"; then
13149 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13150 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13151 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 lt_prog_compiler_pic_works_F77=no
13155 ac_outfile=conftest.$ac_objext
13156 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13157 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13158 # Insert the option either (1) after the last *FLAGS variable, or
13159 # (2) before a word containing "conftest.", or (3) at the end.
13160 # Note that $ac_compile itself does not contain backslashes and begins
13161 # with a dollar sign (not a hyphen), so the echo should work correctly.
13162 # The option is referenced via a variable to avoid confusing sed.
13163 lt_compile=`echo "$ac_compile" | $SED \
13164 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13166 -e 's:$: $lt_compiler_flag:'`
13167 (eval echo "\"\$as_me:13167: $lt_compile\"" >&5)
13168 (eval "$lt_compile" 2>conftest.err)
13170 cat conftest.err >&5
13171 echo "$as_me:13171: \$? = $ac_status" >&5
13172 if (exit $ac_status) && test -s "$ac_outfile"; then
13173 # The compiler can only warn and ignore the option if not recognized
13174 # So say no if there are warnings
13175 if test ! -s conftest.err; then
13176 lt_prog_compiler_pic_works_F77=yes
13182 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13183 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13185 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13186 case $lt_prog_compiler_pic_F77 in
13188 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13191 lt_prog_compiler_pic_F77=
13192 lt_prog_compiler_can_build_shared_F77=no
13197 # For platforms which do not support PIC, -DPIC is meaningless:
13199 lt_prog_compiler_pic_F77=
13202 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13206 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13207 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13208 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 lt_cv_prog_compiler_c_o_F77=no
13212 $rm -r conftest 2>/dev/null
13216 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13218 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13219 # that will create temporary files in the current directory regardless of
13220 # the output directory. Thus, making CWD read-only will cause this test
13221 # to fail, enabling locking or at least warning the user not to do parallel
13225 lt_compiler_flag="-o out/conftest2.$ac_objext"
13226 # Insert the option either (1) after the last *FLAGS variable, or
13227 # (2) before a word containing "conftest.", or (3) at the end.
13228 # Note that $ac_compile itself does not contain backslashes and begins
13229 # with a dollar sign (not a hyphen), so the echo should work correctly.
13230 lt_compile=`echo "$ac_compile" | $SED \
13231 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13233 -e 's:$: $lt_compiler_flag:'`
13234 (eval echo "\"\$as_me:13234: $lt_compile\"" >&5)
13235 (eval "$lt_compile" 2>out/conftest.err)
13237 cat out/conftest.err >&5
13238 echo "$as_me:13238: \$? = $ac_status" >&5
13239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13241 # The compiler can only warn and ignore the option if not recognized
13242 # So say no if there are warnings
13243 if test ! -s out/conftest.err; then
13244 lt_cv_prog_compiler_c_o_F77=yes
13248 $rm conftest* out/*
13255 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13256 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13259 hard_links="nottested"
13260 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13261 # do not overwrite the value of need_locks provided by the user
13262 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13263 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13268 ln conftest.a conftest.b 2>&5 || hard_links=no
13269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13270 echo "$as_me:$LINENO: result: $hard_links" >&5
13271 echo "${ECHO_T}$hard_links" >&6
13272 if test "$hard_links" = no; then
13273 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13274 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13281 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13282 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13285 allow_undefined_flag_F77=
13286 enable_shared_with_static_runtimes_F77=no
13288 archive_expsym_cmds_F77=
13289 old_archive_From_new_cmds_F77=
13290 old_archive_from_expsyms_cmds_F77=
13291 export_dynamic_flag_spec_F77=
13292 whole_archive_flag_spec_F77=
13293 thread_safe_flag_spec_F77=
13294 hardcode_libdir_flag_spec_F77=
13295 hardcode_libdir_flag_spec_ld_F77=
13296 hardcode_libdir_separator_F77=
13297 hardcode_direct_F77=no
13298 hardcode_minus_L_F77=no
13299 hardcode_shlibpath_var_F77=unsupported
13300 link_all_deplibs_F77=unknown
13301 hardcode_automatic_F77=no
13303 module_expsym_cmds_F77=
13304 always_export_symbols_F77=no
13305 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13306 # include_expsyms should be a list of space-separated symbols to be *always*
13307 # included in the symbol list
13308 include_expsyms_F77=
13309 # exclude_expsyms can be an extended regexp of symbols to exclude
13310 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13311 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13312 # as well as any symbol that contains `d'.
13313 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13314 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13315 # platforms (ab)use it in PIC code, but their linkers get confused if
13316 # the symbol is explicitly referenced. Since portable code cannot
13317 # rely on this symbol name, it's probably fine to never include it in
13318 # preloaded symbol tables.
13319 extract_expsyms_cmds=
13322 cygwin* | mingw* | pw32*)
13323 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13324 # When not using gcc, we currently assume that we are using
13325 # Microsoft Visual C++.
13326 if test "$GCC" != yes; then
13336 if test "$with_gnu_ld" = yes; then
13337 # If archive_cmds runs LD, not CC, wlarc should be empty
13340 # See if GNU ld supports shared libraries.
13342 aix3* | aix4* | aix5*)
13343 # On AIX/PPC, the GNU linker is very broken
13344 if test "$host_cpu" != ia64; then
13348 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13349 *** to be unable to reliably create shared libraries on AIX.
13350 *** Therefore, libtool is disabling shared libraries support. If you
13351 *** really care for shared libraries, you may want to modify your PATH
13352 *** so that a non-GNU linker is found, and then restart.
13359 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)'
13360 hardcode_libdir_flag_spec_F77='-L$libdir'
13361 hardcode_minus_L_F77=yes
13363 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13364 # that the semantics of dynamic libraries on AmigaOS, at least up
13365 # to version 4, is to share data among multiple programs linked
13366 # with the same dynamic library. Since this doesn't match the
13367 # behavior of shared libraries on other platforms, we can't use
13373 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13374 allow_undefined_flag_F77=unsupported
13375 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13376 # support --undefined. This deserves some investigation. FIXME
13377 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13383 cygwin* | mingw* | pw32*)
13384 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13385 # as there is no search path for DLLs.
13386 hardcode_libdir_flag_spec_F77='-L$libdir'
13387 allow_undefined_flag_F77=unsupported
13388 always_export_symbols_F77=no
13389 enable_shared_with_static_runtimes_F77=yes
13390 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13392 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13393 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13394 # If the export-symbols file already is a .def file (1st line
13395 # is EXPORTS), use it as is; otherwise, prepend...
13396 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13397 cp $export_symbols $output_objdir/$soname.def;
13399 echo EXPORTS > $output_objdir/$soname.def;
13400 cat $export_symbols >> $output_objdir/$soname.def;
13402 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13410 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13413 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13414 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13419 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13423 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13424 *** create shared libraries on Solaris systems. Therefore, libtool
13425 *** is disabling shared libraries support. We urge you to upgrade GNU
13426 *** binutils to release 2.9.1 or newer. Another option is to modify
13427 *** your PATH or compiler configuration so that the native linker is
13428 *** used, and then restart.
13431 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13432 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13433 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13440 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13442 hardcode_direct_F77=yes
13443 hardcode_shlibpath_var_F77=no
13447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13448 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13449 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13456 if test "$ld_shlibs_F77" = yes; then
13457 runpath_var=LD_RUN_PATH
13458 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13459 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13460 # ancient GNU ld didn't support --whole-archive et. al.
13461 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13462 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13464 whole_archive_flag_spec_F77=
13468 # PORTME fill in a description of your system's linker (not GNU ld)
13471 allow_undefined_flag_F77=unsupported
13472 always_export_symbols_F77=yes
13473 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'
13474 # Note: this linker hardcodes the directories in LIBPATH if there
13475 # are no directories specified by -L.
13476 hardcode_minus_L_F77=yes
13477 if test "$GCC" = yes && test -z "$link_static_flag"; then
13478 # Neither direct hardcoding nor static linking is supported with a
13480 hardcode_direct_F77=unsupported
13485 if test "$host_cpu" = ia64; then
13486 # On IA64, the linker does run time linking by default, so we don't
13487 # have to do anything special.
13488 aix_use_runtimelinking=no
13489 exp_sym_flag='-Bexport'
13492 # If we're using GNU nm, then we don't want the "-C" option.
13493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13494 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13495 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'
13497 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'
13499 aix_use_runtimelinking=no
13501 # Test if we are trying to use run time linking or normal
13502 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13503 # need to do runtime linking.
13504 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13505 for ld_flag in $LDFLAGS; do
13506 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13507 aix_use_runtimelinking=yes
13513 exp_sym_flag='-bexport'
13514 no_entry_flag='-bnoentry'
13517 # When large executables or shared objects are built, AIX ld can
13518 # have problems creating the table of contents. If linking a library
13519 # or program results in "error TOC overflow" add -mminimal-toc to
13520 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13521 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13523 archive_cmds_F77=''
13524 hardcode_direct_F77=yes
13525 hardcode_libdir_separator_F77=':'
13526 link_all_deplibs_F77=yes
13528 if test "$GCC" = yes; then
13529 case $host_os in aix4.012|aix4.012.*)
13530 # We only want to do this on AIX 4.2 and lower, the check
13531 # below for broken collect2 doesn't work under 4.3+
13532 collect2name=`${CC} -print-prog-name=collect2`
13533 if test -f "$collect2name" && \
13534 strings "$collect2name" | grep resolve_lib_name >/dev/null
13536 # We have reworked collect2
13537 hardcode_direct_F77=yes
13539 # We have old collect2
13540 hardcode_direct_F77=unsupported
13541 # It fails to find uninstalled libraries when the uninstalled
13542 # path is not listed in the libpath. Setting hardcode_minus_L
13543 # to unsupported forces relinking
13544 hardcode_minus_L_F77=yes
13545 hardcode_libdir_flag_spec_F77='-L$libdir'
13546 hardcode_libdir_separator_F77=
13549 shared_flag='-shared'
13552 if test "$host_cpu" = ia64; then
13553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13554 # chokes on -Wl,-G. The following line is correct:
13557 if test "$aix_use_runtimelinking" = yes; then
13558 shared_flag='${wl}-G'
13560 shared_flag='${wl}-bM:SRE'
13565 # It seems that -bexpall does not export symbols beginning with
13566 # underscore (_), so it is better to generate a list of symbols to export.
13567 always_export_symbols_F77=yes
13568 if test "$aix_use_runtimelinking" = yes; then
13569 # Warning - without using the other runtime loading flags (-brtl),
13570 # -berok will link without error, but may produce a broken library.
13571 allow_undefined_flag_F77='-berok'
13572 # Determine the default libpath from the value encoded in an empty executable.
13573 cat >conftest.$ac_ext <<_ACEOF
13578 rm -f conftest.$ac_objext conftest$ac_exeext
13579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13580 (eval $ac_link) 2>conftest.er1
13582 grep -v '^ *+' conftest.er1 >conftest.err
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_f77_werror_flag"
13588 || test ! -s conftest.err'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; } &&
13594 { ac_try='test -s conftest$ac_exeext'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13603 # Check for a 64-bit object if we didn't find anything.
13604 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; }
13607 echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13611 rm -f conftest.err conftest.$ac_objext \
13612 conftest$ac_exeext conftest.$ac_ext
13613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13615 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13616 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"
13618 if test "$host_cpu" = ia64; then
13619 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13620 allow_undefined_flag_F77="-z nodefs"
13621 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"
13623 # Determine the default libpath from the value encoded in an empty executable.
13624 cat >conftest.$ac_ext <<_ACEOF
13629 rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631 (eval $ac_link) 2>conftest.er1
13633 grep -v '^ *+' conftest.er1 >conftest.err
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } &&
13638 { ac_try='test -z "$ac_f77_werror_flag"
13639 || test ! -s conftest.err'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest$ac_exeext'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }; then
13652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13654 # Check for a 64-bit object if we didn't find anything.
13655 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; }
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13662 rm -f conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13666 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13667 # Warning - without using the other run time loading flags,
13668 # -berok will link without error, but may produce a broken library.
13669 no_undefined_flag_F77=' ${wl}-bernotok'
13670 allow_undefined_flag_F77=' ${wl}-berok'
13671 # -bexpall does not export symbols beginning with underscore (_)
13672 always_export_symbols_F77=yes
13673 # Exported symbols can be pulled into shared objects from archives
13674 whole_archive_flag_spec_F77=' '
13675 archive_cmds_need_lc_F77=yes
13676 # This is similar to how AIX traditionally builds it's shared libraries.
13677 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'
13683 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)'
13684 hardcode_libdir_flag_spec_F77='-L$libdir'
13685 hardcode_minus_L_F77=yes
13686 # see comment about different semantics on the GNU ld section
13691 export_dynamic_flag_spec_F77=-rdynamic
13694 cygwin* | mingw* | pw32*)
13695 # When not using gcc, we currently assume that we are using
13696 # Microsoft Visual C++.
13697 # hardcode_libdir_flag_spec is actually meaningless, as there is
13698 # no search path for DLLs.
13699 hardcode_libdir_flag_spec_F77=' '
13700 allow_undefined_flag_F77=unsupported
13701 # Tell ltmain to make .lib files, not .a files.
13703 # Tell ltmain to make .dll files, not .so files.
13705 # FIXME: Setting linknames here is a bad hack.
13706 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13707 # The linker will automatically build a .lib file if we build a DLL.
13708 old_archive_From_new_cmds_F77='true'
13709 # FIXME: Should let the user specify the lib program.
13710 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13711 fix_srcfile_path='`cygpath -w "$srcfile"`'
13712 enable_shared_with_static_runtimes_F77=yes
13715 darwin* | rhapsody*)
13716 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13717 archive_cmds_need_lc_F77=no
13719 rhapsody* | darwin1.[012])
13720 allow_undefined_flag_F77='-undefined suppress'
13723 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13726 # FIXME: Relying on posixy $() will cause problems for
13727 # cross-compilation, but unfortunately the echo tests do not
13728 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13729 # `"' quotes if we put them in here... so don't!
13730 lt_int_apple_cc_single_mod=no
13731 output_verbose_link_cmd='echo'
13732 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13733 lt_int_apple_cc_single_mod=yes
13735 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13736 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13738 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'
13740 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13741 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13742 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13743 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}'
13745 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}'
13747 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}'
13748 hardcode_direct_F77=no
13749 hardcode_automatic_F77=yes
13750 hardcode_shlibpath_var_F77=unsupported
13751 whole_archive_flag_spec_F77='-all_load $convenience'
13752 link_all_deplibs_F77=yes
13757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13758 hardcode_libdir_flag_spec_F77='-L$libdir'
13759 hardcode_shlibpath_var_F77=no
13766 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13767 # support. Future versions do this automatically, but an explicit c++rt0.o
13768 # does not break anything, and helps significantly (at the cost of a little
13771 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13772 hardcode_libdir_flag_spec_F77='-R$libdir'
13773 hardcode_direct_F77=yes
13774 hardcode_shlibpath_var_F77=no
13777 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13779 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13780 hardcode_direct_F77=yes
13781 hardcode_minus_L_F77=yes
13782 hardcode_shlibpath_var_F77=no
13785 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13787 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13788 hardcode_libdir_flag_spec_F77='-R$libdir'
13789 hardcode_direct_F77=yes
13790 hardcode_shlibpath_var_F77=no
13794 if test "$GCC" = yes; then
13795 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'
13797 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'
13799 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13800 hardcode_libdir_separator_F77=:
13801 hardcode_direct_F77=yes
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
13806 export_dynamic_flag_spec_F77='${wl}-E'
13810 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13811 case "$host_cpu" in
13813 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13816 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13820 case "$host_cpu" in
13822 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13825 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13829 if test "$with_gnu_ld" = no; then
13830 case "$host_cpu" in
13832 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13833 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13834 hardcode_libdir_separator_F77=:
13835 hardcode_direct_F77=no
13836 hardcode_shlibpath_var_F77=no
13839 hardcode_libdir_flag_spec_F77='-L$libdir'
13840 hardcode_direct_F77=no
13841 hardcode_shlibpath_var_F77=no
13843 # hardcode_minus_L: Not really in the search PATH,
13844 # but as the default location of the library.
13845 hardcode_minus_L_F77=yes
13848 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13849 hardcode_libdir_separator_F77=:
13850 hardcode_direct_F77=yes
13851 export_dynamic_flag_spec_F77='${wl}-E'
13853 # hardcode_minus_L: Not really in the search PATH,
13854 # but as the default location of the library.
13855 hardcode_minus_L_F77=yes
13861 irix5* | irix6* | nonstopux*)
13862 if test "$GCC" = yes; then
13863 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'
13865 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'
13866 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13868 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13869 hardcode_libdir_separator_F77=:
13870 link_all_deplibs_F77=yes
13874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13875 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13877 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13879 hardcode_libdir_flag_spec_F77='-R$libdir'
13880 hardcode_direct_F77=yes
13881 hardcode_shlibpath_var_F77=no
13885 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886 hardcode_direct_F77=yes
13887 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13888 hardcode_libdir_separator_F77=:
13889 hardcode_shlibpath_var_F77=no
13893 hardcode_direct_F77=yes
13894 hardcode_shlibpath_var_F77=no
13895 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13896 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13897 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13898 export_dynamic_flag_spec_F77='${wl}-E'
13901 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13902 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13903 hardcode_libdir_flag_spec_F77='-R$libdir'
13906 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13907 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13914 hardcode_libdir_flag_spec_F77='-L$libdir'
13915 hardcode_minus_L_F77=yes
13916 allow_undefined_flag_F77=unsupported
13917 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'
13918 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13922 if test "$GCC" = yes; then
13923 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13924 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'
13926 allow_undefined_flag_F77=' -expect_unresolved \*'
13927 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'
13929 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13930 hardcode_libdir_separator_F77=:
13933 osf4* | osf5*) # as osf3* with the addition of -msym flag
13934 if test "$GCC" = yes; then
13935 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13936 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'
13937 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13939 allow_undefined_flag_F77=' -expect_unresolved \*'
13940 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'
13941 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~
13942 $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'
13944 # Both c and cxx compiler support -rpath directly
13945 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13947 hardcode_libdir_separator_F77=:
13951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13952 hardcode_shlibpath_var_F77=no
13953 export_dynamic_flag_spec_F77='${wl}-Bexport'
13954 runpath_var=LD_RUN_PATH
13955 hardcode_runpath_var=yes
13959 no_undefined_flag_F77=' -z text'
13960 if test "$GCC" = yes; then
13961 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13962 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13963 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13965 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13966 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13967 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13969 hardcode_libdir_flag_spec_F77='-R$libdir'
13970 hardcode_shlibpath_var_F77=no
13972 solaris2.[0-5] | solaris2.[0-5].*) ;;
13973 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13974 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13976 link_all_deplibs_F77=yes
13980 if test "x$host_vendor" = xsequent; then
13981 # Use $CC to link under sequent, because it throws in some extra .o
13982 # files that make .init and .fini sections work.
13983 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13985 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13987 hardcode_libdir_flag_spec_F77='-L$libdir'
13988 hardcode_direct_F77=yes
13989 hardcode_minus_L_F77=yes
13990 hardcode_shlibpath_var_F77=no
13994 case $host_vendor in
13996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13997 hardcode_direct_F77=yes # is this really true???
14000 ## LD is ld it makes a PLAMLIB
14001 ## CC just makes a GrossModule.
14002 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14003 reload_cmds_F77='$CC -r -o $output$reload_objs'
14004 hardcode_direct_F77=no
14007 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14008 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14011 runpath_var='LD_RUN_PATH'
14012 hardcode_shlibpath_var_F77=no
14016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14017 hardcode_shlibpath_var_F77=no
14018 export_dynamic_flag_spec_F77='-Bexport'
14022 if test -d /usr/nec; then
14023 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14024 hardcode_shlibpath_var_F77=no
14025 runpath_var=LD_RUN_PATH
14026 hardcode_runpath_var=yes
14032 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14033 hardcode_direct_F77=yes
14034 hardcode_minus_L_F77=no
14035 hardcode_shlibpath_var_F77=no
14036 hardcode_runpath_var=yes
14037 runpath_var=LD_RUN_PATH
14040 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14041 no_undefined_flag_F77='${wl}-z ${wl}text'
14042 if test "$GCC" = yes; then
14043 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14045 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14047 runpath_var='LD_RUN_PATH'
14048 hardcode_shlibpath_var_F77=no
14052 no_undefined_flag_F77=' -z text'
14053 # $CC -shared without GNU ld will not create a library from C++
14054 # object files and a static libstdc++, better avoid it by now
14055 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14057 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14058 hardcode_libdir_flag_spec_F77=
14059 hardcode_shlibpath_var_F77=no
14060 runpath_var='LD_RUN_PATH'
14064 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14065 hardcode_libdir_flag_spec_F77='-L$libdir'
14066 hardcode_shlibpath_var_F77=no
14075 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14076 echo "${ECHO_T}$ld_shlibs_F77" >&6
14077 test "$ld_shlibs_F77" = no && can_build_shared=no
14079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14080 if test "$GCC" = yes; then
14081 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14085 # Do we need to explicitly link libc?
14087 case "x$archive_cmds_need_lc_F77" in
14089 # Assume -lc should be added
14090 archive_cmds_need_lc_F77=yes
14092 if test "$enable_shared" = yes && test "$GCC" = yes; then
14093 case $archive_cmds_F77 in
14095 # FIXME: we may have to deal with multi-command sequences.
14098 # Test whether the compiler implicitly links with -lc since on some
14099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14100 # to ld, don't add -lc before -lgcc.
14101 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14102 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } 2>conftest.err; then
14113 libobjs=conftest.$ac_objext
14115 wl=$lt_prog_compiler_wl_F77
14121 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14122 allow_undefined_flag_F77=
14123 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14124 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }
14129 archive_cmds_need_lc_F77=no
14131 archive_cmds_need_lc_F77=yes
14133 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14135 cat conftest.err 1>&5
14138 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14139 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14146 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14147 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14148 hardcode_action_F77=
14149 if test -n "$hardcode_libdir_flag_spec_F77" || \
14150 test -n "$runpath_var F77" || \
14151 test "X$hardcode_automatic_F77"="Xyes" ; then
14153 # We can hardcode non-existant directories.
14154 if test "$hardcode_direct_F77" != no &&
14155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14156 # have to relink, otherwise we might link with an installed library
14157 # when we should be linking with a yet-to-be-installed one
14158 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14159 test "$hardcode_minus_L_F77" != no; then
14160 # Linking always hardcodes the temporary library directory.
14161 hardcode_action_F77=relink
14163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14164 hardcode_action_F77=immediate
14167 # We cannot hardcode anything, or else we can only hardcode existing
14169 hardcode_action_F77=unsupported
14171 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14172 echo "${ECHO_T}$hardcode_action_F77" >&6
14174 if test "$hardcode_action_F77" = relink; then
14175 # Fast installation is not supported
14176 enable_fast_install=no
14177 elif test "$shlibpath_overrides_runpath" = yes ||
14178 test "$enable_shared" = no; then
14179 # Fast installation is not necessary
14180 enable_fast_install=needless
14185 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14186 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14187 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14188 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14189 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14190 echo "$as_me:$LINENO: result: yes" >&5
14191 echo "${ECHO_T}yes" >&6
14193 # FIXME - insert some real tests, host_os isn't really good enough
14196 if test -n "$STRIP" ; then
14197 striplib="$STRIP -x"
14198 echo "$as_me:$LINENO: result: yes" >&5
14199 echo "${ECHO_T}yes" >&6
14201 echo "$as_me:$LINENO: result: no" >&5
14202 echo "${ECHO_T}no" >&6
14206 echo "$as_me:$LINENO: result: no" >&5
14207 echo "${ECHO_T}no" >&6
14212 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14213 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14214 library_names_spec=
14215 libname_spec='lib$name'
14219 postuninstall_cmds=
14223 shlibpath_overrides_runpath=unknown
14225 dynamic_linker="$host_os ld.so"
14226 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14227 if test "$GCC" = yes; then
14228 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14229 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14230 # if the path contains ";" then we assume it to be the separator
14231 # otherwise default to the standard path separator (i.e. ":") - it is
14232 # assumed that no part of a normal pathname contains ";" but that should
14233 # okay in the real world where ";" in dirpaths is itself problematic.
14234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14239 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14241 need_lib_prefix=unknown
14242 hardcode_into_libs=no
14244 # when you set need_version to no, make sure it does not cause -set_version
14245 # flags to be left without arguments
14246 need_version=unknown
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14252 shlibpath_var=LIBPATH
14254 # AIX 3 has no versioning support, so we append a major version to the name.
14255 soname_spec='${libname}${release}${shared_ext}$major'
14262 hardcode_into_libs=yes
14263 if test "$host_cpu" = ia64; then
14264 # AIX 5 supports IA64
14265 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14266 shlibpath_var=LD_LIBRARY_PATH
14268 # With GCC up to 2.95.x, collect2 would create an import file
14269 # for dependence libraries. The import file would start with
14270 # the line `#! .'. This would cause the generated library to
14271 # depend on `.', always an invalid library. This was fixed in
14272 # development snapshots of GCC prior to 3.0.
14274 aix4 | aix4.[01] | aix4.[01].*)
14275 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14277 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14280 can_build_shared=no
14284 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14285 # soname into executable. Probably we can add versioning support to
14286 # collect2, so additional links can be useful in future.
14287 if test "$aix_use_runtimelinking" = yes; then
14288 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14289 # instead of lib<name>.a to let people know that these are not
14290 # typical AIX shared libraries.
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293 # We preserve .a as extension for shared libraries through AIX4.2
14294 # and later when we are not doing run time linking.
14295 library_names_spec='${libname}${release}.a $libname.a'
14296 soname_spec='${libname}${release}${shared_ext}$major'
14298 shlibpath_var=LIBPATH
14303 library_names_spec='$libname.ixlibrary $libname.a'
14304 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14305 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'
14309 library_names_spec='${libname}${shared_ext}'
14310 dynamic_linker="$host_os ld.so"
14311 shlibpath_var=LIBRARY_PATH
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14320 shlibpath_var=LD_LIBRARY_PATH
14321 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14322 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14323 # the default ld.so.conf also contains /usr/contrib/lib and
14324 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14325 # libtool to hard-code these into programs
14328 cygwin* | mingw* | pw32*)
14329 version_type=windows
14334 case $GCC,$host_os in
14335 yes,cygwin* | yes,mingw* | yes,pw32*)
14336 library_names_spec='$libname.dll.a'
14337 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14338 postinstall_cmds='base_file=`basename \${file}`~
14339 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14340 dldir=$destdir/`dirname \$dlpath`~
14341 test -d \$dldir || mkdir -p \$dldir~
14342 $install_prog $dir/$dlname \$dldir/$dlname'
14343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14344 dlpath=$dir/\$dldll~
14346 shlibpath_overrides_runpath=yes
14350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14352 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14355 # MinGW DLLs use traditional 'lib' prefix
14356 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14357 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14358 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14359 # It is most probably a Windows format PATH printed by
14360 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14361 # path with ; separators, and with drive letters. We can handle the
14362 # drive letters (cygwin fileutils understands them), so leave them,
14363 # especially as we might pass files found there to a mingw objdump,
14364 # which wouldn't understand a cygwinified path. Ahh.
14365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14371 # pw32 DLLs use 'pw' prefix rather than 'lib'
14372 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14378 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14381 dynamic_linker='Win32 ld.exe'
14382 # FIXME: first we should search . and the directory the executable is in
14386 darwin* | rhapsody*)
14387 dynamic_linker="$host_os dyld"
14388 version_type=darwin
14391 # FIXME: Relying on posixy $() will cause problems for
14392 # cross-compilation, but unfortunately the echo tests do not
14393 # yet detect zsh echo's removal of \ escapes.
14394 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14395 soname_spec='${libname}${release}${major}$shared_ext'
14396 shlibpath_overrides_runpath=yes
14397 shlibpath_var=DYLD_LIBRARY_PATH
14398 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14399 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14400 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14401 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"`
14403 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 shlibpath_var=LD_LIBRARY_PATH
14420 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14421 version_type=freebsd-$objformat
14422 case $version_type in
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14433 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=yes
14438 freebsd3.01* | freebsdelf3.01*)
14439 shlibpath_overrides_runpath=yes
14440 hardcode_into_libs=yes
14443 shlibpath_overrides_runpath=no
14444 hardcode_into_libs=yes
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14454 soname_spec='${libname}${release}${shared_ext}$major'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 hardcode_into_libs=yes
14459 hpux9* | hpux10* | hpux11*)
14460 # Give a soname corresponding to the major version so that dld.sl refuses to
14461 # link against other versions.
14465 case "$host_cpu" in
14468 hardcode_into_libs=yes
14469 dynamic_linker="$host_os dld.so"
14470 shlibpath_var=LD_LIBRARY_PATH
14471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 if test "X$HPUX_IA64_MODE" = X32; then
14475 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14477 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14483 hardcode_into_libs=yes
14484 dynamic_linker="$host_os dld.sl"
14485 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14486 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14494 dynamic_linker="$host_os dld.sl"
14495 shlibpath_var=SHLIB_PATH
14496 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14501 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14502 postinstall_cmds='chmod 555 $lib'
14505 irix5* | irix6* | nonstopux*)
14507 nonstopux*) version_type=nonstopux ;;
14509 if test "$lt_cv_prog_gnu_ld" = yes; then
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14520 irix5* | nonstopux*)
14521 libsuff= shlibsuff=
14524 case $LD in # libtool.m4 will add one of these switches to LD
14525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14526 libsuff= shlibsuff= libmagic=32-bit;;
14527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14528 libsuff=32 shlibsuff=N32 libmagic=N32;;
14529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14531 *) libsuff= shlibsuff= libmagic=never-match;;
14535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14536 shlibpath_overrides_runpath=no
14537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14539 hardcode_into_libs=yes
14542 # No shared lib support for Linux oldld, aout, or coff.
14543 linux*oldld* | linux*aout* | linux*coff*)
14547 # This must be Linux ELF.
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14555 shlibpath_var=LD_LIBRARY_PATH
14556 shlibpath_overrides_runpath=no
14557 # This implies no fast_install, which is unacceptable.
14558 # Some rework will be needed to allow for fast_install
14559 # before this can be enabled.
14560 hardcode_into_libs=yes
14562 # We used to test for /lib/ld.so.1 and disable shared libraries on
14563 # powerpc, because MkLinux only supported shared libraries with the
14564 # GNU dynamic linker. Since this was broken with cross compilers,
14565 # most powerpc-linux boxes support dynamic linking these days and
14566 # people can always --disable-shared, the test was removed, and we
14567 # assume the GNU/Linux dynamic linker is in use.
14568 dynamic_linker='GNU/Linux ld.so'
14575 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14578 dynamic_linker='NetBSD (a.out) ld.so'
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14581 soname_spec='${libname}${release}${shared_ext}$major'
14582 dynamic_linker='NetBSD ld.elf_so'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 shlibpath_overrides_runpath=yes
14586 hardcode_into_libs=yes
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 shlibpath_overrides_runpath=yes
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=yes
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14615 openbsd2.[89] | openbsd2.[89].*)
14616 shlibpath_overrides_runpath=no
14619 shlibpath_overrides_runpath=yes
14623 shlibpath_overrides_runpath=yes
14628 libname_spec='$name'
14631 library_names_spec='$libname${shared_ext} $libname.a'
14632 dynamic_linker='OS/2 ld.exe'
14633 shlibpath_var=LIBPATH
14636 osf3* | osf4* | osf5*)
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 shlibpath_var=LD_LIBRARY_PATH
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=yes
14662 hardcode_into_libs=yes
14663 # ldd complains unless libraries are executable
14664 postinstall_cmds='chmod +x $lib'
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14673 if test "$with_gnu_ld" = yes; then
14679 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 case $host_vendor in
14686 shlibpath_overrides_runpath=no
14688 export_dynamic_flag_spec='${wl}-Blargedynsym'
14689 runpath_var=LD_RUN_PATH
14697 shlibpath_overrides_runpath=no
14698 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14704 if test -d /usr/nec ;then
14706 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14707 soname_spec='$libname${shared_ext}.$major'
14708 shlibpath_var=LD_LIBRARY_PATH
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 shlibpath_var=LD_LIBRARY_PATH
14723 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14724 echo "${ECHO_T}$dynamic_linker" >&6
14725 test "$dynamic_linker" = no && can_build_shared=no
14728 # The else clause should only fire when bootstrapping the
14729 # libtool distribution, otherwise you forgot to ship ltmain.sh
14730 # with your package, and you will get complaints that there are
14731 # no rules to generate ltmain.sh.
14732 if test -f "$ltmain"; then
14733 # See if we are running on zsh, and set the options which allow our commands through
14734 # without removal of \ escapes.
14735 if test -n "${ZSH_VERSION+set}" ; then
14736 setopt NO_GLOB_SUBST
14738 # Now quote all the things that may contain metacharacters while being
14739 # careful not to overquote the AC_SUBSTed values. We take copies of the
14740 # variables and quote the copies for generation of the libtool script.
14741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14742 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14743 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14744 deplibs_check_method reload_flag reload_cmds need_locks \
14745 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14746 lt_cv_sys_global_symbol_to_c_name_address \
14747 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14748 old_postinstall_cmds old_postuninstall_cmds \
14752 lt_prog_compiler_wl_F77 \
14753 lt_prog_compiler_pic_F77 \
14754 lt_prog_compiler_static_F77 \
14755 lt_prog_compiler_no_builtin_flag_F77 \
14756 export_dynamic_flag_spec_F77 \
14757 thread_safe_flag_spec_F77 \
14758 whole_archive_flag_spec_F77 \
14759 enable_shared_with_static_runtimes_F77 \
14760 old_archive_cmds_F77 \
14761 old_archive_from_new_cmds_F77 \
14762 predep_objects_F77 \
14763 postdep_objects_F77 \
14766 compiler_lib_search_path_F77 \
14768 archive_expsym_cmds_F77 \
14769 postinstall_cmds_F77 \
14770 postuninstall_cmds_F77 \
14771 old_archive_from_expsyms_cmds_F77 \
14772 allow_undefined_flag_F77 \
14773 no_undefined_flag_F77 \
14774 export_symbols_cmds_F77 \
14775 hardcode_libdir_flag_spec_F77 \
14776 hardcode_libdir_flag_spec_ld_F77 \
14777 hardcode_libdir_separator_F77 \
14778 hardcode_automatic_F77 \
14780 module_expsym_cmds_F77 \
14781 lt_cv_prog_compiler_c_o_F77 \
14782 exclude_expsyms_F77 \
14783 include_expsyms_F77; do
14786 old_archive_cmds_F77 | \
14787 old_archive_from_new_cmds_F77 | \
14788 archive_cmds_F77 | \
14789 archive_expsym_cmds_F77 | \
14790 module_cmds_F77 | \
14791 module_expsym_cmds_F77 | \
14792 old_archive_from_expsyms_cmds_F77 | \
14793 export_symbols_cmds_F77 | \
14794 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14795 postinstall_cmds | postuninstall_cmds | \
14796 old_postinstall_cmds | old_postuninstall_cmds | \
14797 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14798 # Double-quote double-evaled strings.
14799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14808 *'\$0 --fallback-echo"')
14809 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14815 cat <<__EOF__ >> "$cfgfile"
14816 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14820 # Shell to use when invoking shell scripts.
14823 # Whether or not to build shared libraries.
14824 build_libtool_libs=$enable_shared
14826 # Whether or not to build static libraries.
14827 build_old_libs=$enable_static
14829 # Whether or not to add -lc for building shared libraries.
14830 build_libtool_need_lc=$archive_cmds_need_lc_F77
14832 # Whether or not to disallow shared libs when runtime libs are static
14833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14835 # Whether or not to optimize for fast installation.
14836 fast_install=$enable_fast_install
14839 host_alias=$host_alias
14842 # An echo program that does not interpret backslashes.
14847 AR_FLAGS=$lt_AR_FLAGS
14852 # A language-specific compiler.
14853 CC=$lt_compiler_F77
14855 # Is the compiler the GNU C compiler?
14861 # The linker used to build libraries.
14864 # Whether we need hard or soft links.
14867 # A BSD-compatible nm program.
14870 # A symbol stripping program
14873 # Used to examine libraries when file_magic_cmd begins "file"
14874 MAGIC_CMD=$MAGIC_CMD
14876 # Used on cygwin: DLL creation program.
14879 # Used on cygwin: object dumper.
14882 # Used on cygwin: assembler.
14885 # The name of the directory that contains temporary libtool files.
14888 # How to create reloadable object files.
14889 reload_flag=$lt_reload_flag
14890 reload_cmds=$lt_reload_cmds
14892 # How to pass a linker flag through the compiler.
14893 wl=$lt_lt_prog_compiler_wl_F77
14895 # Object file suffix (normally "o").
14896 objext="$ac_objext"
14898 # Old archive suffix (normally "a").
14901 # Shared library suffix (normally ".so").
14904 # Executable file suffix (normally "").
14907 # Additional compiler flags for building library objects.
14908 pic_flag=$lt_lt_prog_compiler_pic_F77
14911 # What is the maximum length of a command?
14912 max_cmd_len=$lt_cv_sys_max_cmd_len
14914 # Does compiler simultaneously support -c and -o options?
14915 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14917 # Must we lock files when doing compilation ?
14918 need_locks=$lt_need_locks
14920 # Do we need the lib prefix for modules?
14921 need_lib_prefix=$need_lib_prefix
14923 # Do we need a version for libraries?
14924 need_version=$need_version
14926 # Whether dlopen is supported.
14927 dlopen_support=$enable_dlopen
14929 # Whether dlopen of programs is supported.
14930 dlopen_self=$enable_dlopen_self
14932 # Whether dlopen of statically linked programs is supported.
14933 dlopen_self_static=$enable_dlopen_self_static
14935 # Compiler flag to prevent dynamic linking.
14936 link_static_flag=$lt_lt_prog_compiler_static_F77
14938 # Compiler flag to turn off builtin functions.
14939 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14941 # Compiler flag to allow reflexive dlopens.
14942 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14944 # Compiler flag to generate shared objects directly from archives.
14945 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14947 # Compiler flag to generate thread-safe objects.
14948 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14950 # Library versioning type.
14951 version_type=$version_type
14953 # Format of library name prefix.
14954 libname_spec=$lt_libname_spec
14956 # List of archive names. First name is the real one, the rest are links.
14957 # The last name is the one that the linker finds with -lNAME.
14958 library_names_spec=$lt_library_names_spec
14960 # The coded name of the library, if different from the real name.
14961 soname_spec=$lt_soname_spec
14963 # Commands used to build and install an old-style archive.
14965 old_archive_cmds=$lt_old_archive_cmds_F77
14966 old_postinstall_cmds=$lt_old_postinstall_cmds
14967 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14969 # Create an old-style archive from a shared archive.
14970 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14972 # Create a temporary old-style archive to link instead of a shared archive.
14973 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14975 # Commands used to build and install a shared archive.
14976 archive_cmds=$lt_archive_cmds_F77
14977 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14978 postinstall_cmds=$lt_postinstall_cmds
14979 postuninstall_cmds=$lt_postuninstall_cmds
14981 # Commands used to build a loadable module (assumed same as above if empty)
14982 module_cmds=$lt_module_cmds_F77
14983 module_expsym_cmds=$lt_module_expsym_cmds_F77
14985 # Commands to strip libraries.
14986 old_striplib=$lt_old_striplib
14987 striplib=$lt_striplib
14989 # Dependencies to place before the objects being linked to create a
14991 predep_objects=$lt_predep_objects_F77
14993 # Dependencies to place after the objects being linked to create a
14995 postdep_objects=$lt_postdep_objects_F77
14997 # Dependencies to place before the objects being linked to create a
14999 predeps=$lt_predeps_F77
15001 # Dependencies to place after the objects being linked to create a
15003 postdeps=$lt_postdeps_F77
15005 # The library search path used internally by the compiler when linking
15006 # a shared library.
15007 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15009 # Method to check whether dependent libraries are shared objects.
15010 deplibs_check_method=$lt_deplibs_check_method
15012 # Command to use when deplibs_check_method == file_magic.
15013 file_magic_cmd=$lt_file_magic_cmd
15015 # Flag that allows shared libraries with undefined symbols to be built.
15016 allow_undefined_flag=$lt_allow_undefined_flag_F77
15018 # Flag that forces no undefined symbols.
15019 no_undefined_flag=$lt_no_undefined_flag_F77
15021 # Commands used to finish a libtool library installation in a directory.
15022 finish_cmds=$lt_finish_cmds
15024 # Same as above, but a single script fragment to be evaled but not shown.
15025 finish_eval=$lt_finish_eval
15027 # Take the output of nm and produce a listing of raw symbols and C names.
15028 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15030 # Transform the output of nm in a proper C declaration
15031 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15033 # Transform the output of nm in a C name address pair
15034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15036 # This is the shared library runtime path variable.
15037 runpath_var=$runpath_var
15039 # This is the shared library path variable.
15040 shlibpath_var=$shlibpath_var
15042 # Is shlibpath searched before the hard-coded library search path?
15043 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15045 # How to hardcode a shared library path into an executable.
15046 hardcode_action=$hardcode_action_F77
15048 # Whether we should hardcode library paths into libraries.
15049 hardcode_into_libs=$hardcode_into_libs
15051 # Flag to hardcode \$libdir into a binary during linking.
15052 # This must work even if \$libdir does not exist.
15053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15055 # If ld is used when linking, flag to hardcode \$libdir into
15056 # a binary during linking. This must work even if \$libdir does
15058 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15060 # Whether we need a single -rpath flag with a separated argument.
15061 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15063 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15064 # resulting binary.
15065 hardcode_direct=$hardcode_direct_F77
15067 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15068 # resulting binary.
15069 hardcode_minus_L=$hardcode_minus_L_F77
15071 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15072 # the resulting binary.
15073 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15075 # Set to yes if building a shared library automatically hardcodes DIR into the library
15076 # and all subsequent libraries and executables linked against it.
15077 hardcode_automatic=$hardcode_automatic_F77
15079 # Variables whose values should be saved in libtool wrapper scripts and
15080 # restored at relink time.
15081 variables_saved_for_relink="$variables_saved_for_relink"
15083 # Whether libtool must link a program against all its dependency libraries.
15084 link_all_deplibs=$link_all_deplibs_F77
15086 # Compile-time system search path for libraries
15087 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15089 # Run-time system search path for libraries
15090 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15092 # Fix the shell variable \$srcfile for the compiler.
15093 fix_srcfile_path="$fix_srcfile_path_F77"
15095 # Set to yes if exported symbols are required.
15096 always_export_symbols=$always_export_symbols_F77
15098 # The commands to list exported symbols.
15099 export_symbols_cmds=$lt_export_symbols_cmds_F77
15101 # The commands to extract the exported symbol list from a shared archive.
15102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15104 # Symbols that should not be listed in the preloaded symbols.
15105 exclude_expsyms=$lt_exclude_expsyms_F77
15107 # Symbols that must always be exported.
15108 include_expsyms=$lt_include_expsyms_F77
15110 # ### END LIBTOOL TAG CONFIG: $tagname
15116 # If there is no Makefile yet, we rely on a make rule to execute
15117 # `config.status --recheck' to rerun these tests and create the
15118 # libtool script then.
15119 test -f Makefile && make "$ltmain"
15124 ac_cpp='$CPP $CPPFLAGS'
15125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15137 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15141 # Source file extension for Java test sources.
15144 # Object file extension for compiled Java test sources.
15148 # Code to be used in simple compile tests
15149 lt_simple_compile_test_code="class foo {}\n"
15151 # Code to be used in simple link tests
15152 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15156 # If no C compiler was specified, use CC.
15159 # Allow CC to be a program name with arguments.
15163 # Allow CC to be a program name with arguments.
15169 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15170 archive_cmds_need_lc_GCJ=no
15173 ## There is no encapsulation within the following macros, do not change
15174 ## the running order or otherwise move them around unless you know exactly
15175 ## what you are doing...
15177 lt_prog_compiler_no_builtin_flag_GCJ=
15179 if test "$GCC" = yes; then
15180 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15182 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15183 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15184 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 lt_cv_prog_compiler_rtti_exceptions=no
15188 ac_outfile=conftest.$ac_objext
15189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15190 lt_compiler_flag="-fno-rtti -fno-exceptions"
15191 # Insert the option either (1) after the last *FLAGS variable, or
15192 # (2) before a word containing "conftest.", or (3) at the end.
15193 # Note that $ac_compile itself does not contain backslashes and begins
15194 # with a dollar sign (not a hyphen), so the echo should work correctly.
15195 # The option is referenced via a variable to avoid confusing sed.
15196 lt_compile=`echo "$ac_compile" | $SED \
15197 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15199 -e 's:$: $lt_compiler_flag:'`
15200 (eval echo "\"\$as_me:15200: $lt_compile\"" >&5)
15201 (eval "$lt_compile" 2>conftest.err)
15203 cat conftest.err >&5
15204 echo "$as_me:15204: \$? = $ac_status" >&5
15205 if (exit $ac_status) && test -s "$ac_outfile"; then
15206 # The compiler can only warn and ignore the option if not recognized
15207 # So say no if there are warnings
15208 if test ! -s conftest.err; then
15209 lt_cv_prog_compiler_rtti_exceptions=yes
15215 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15219 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15226 lt_prog_compiler_wl_GCJ=
15227 lt_prog_compiler_pic_GCJ=
15228 lt_prog_compiler_static_GCJ=
15230 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15233 if test "$GCC" = yes; then
15234 lt_prog_compiler_wl_GCJ='-Wl,'
15235 lt_prog_compiler_static_GCJ='-static'
15239 # All AIX code is PIC.
15240 if test "$host_cpu" = ia64; then
15241 # AIX 5 now supports IA64 processor
15242 lt_prog_compiler_static_GCJ='-Bstatic'
15247 # FIXME: we need at least 68020 code to build shared libraries, but
15248 # adding the `-m68020' flag to GCC prevents building anything better,
15250 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15253 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15254 # PIC is the default for these OSes.
15257 mingw* | pw32* | os2*)
15258 # This hack is so that the source file can tell whether it is being
15259 # built for inclusion in a dll (and should export symbols for example).
15260 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15263 darwin* | rhapsody*)
15264 # PIC is the default on this platform
15265 # Common symbols not allowed in MH_DYLIB files
15266 lt_prog_compiler_pic_GCJ='-fno-common'
15270 # Just because we use GCC doesn't mean we suddenly get shared libraries
15271 # on systems that don't support them.
15272 lt_prog_compiler_can_build_shared_GCJ=no
15277 if test -d /usr/nec; then
15278 lt_prog_compiler_pic_GCJ=-Kconform_pic
15283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15284 # not for PA HP-UX.
15285 case "$host_cpu" in
15290 lt_prog_compiler_pic_GCJ='-fPIC'
15296 lt_prog_compiler_pic_GCJ='-fPIC'
15300 # PORTME Check for flag to pass linker flags through the system compiler.
15303 lt_prog_compiler_wl_GCJ='-Wl,'
15304 if test "$host_cpu" = ia64; then
15305 # AIX 5 now supports IA64 processor
15306 lt_prog_compiler_static_GCJ='-Bstatic'
15308 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15312 mingw* | pw32* | os2*)
15313 # This hack is so that the source file can tell whether it is being
15314 # built for inclusion in a dll (and should export symbols for example).
15315 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15318 hpux9* | hpux10* | hpux11*)
15319 lt_prog_compiler_wl_GCJ='-Wl,'
15320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15321 # not for PA HP-UX.
15322 case "$host_cpu" in
15327 lt_prog_compiler_pic_GCJ='+Z'
15330 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15331 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15334 irix5* | irix6* | nonstopux*)
15335 lt_prog_compiler_wl_GCJ='-Wl,'
15336 # PIC (with -KPIC) is the default.
15337 lt_prog_compiler_static_GCJ='-non_shared'
15341 lt_prog_compiler_pic_GCJ='-KPIC'
15342 lt_prog_compiler_static_GCJ='-Bstatic'
15348 lt_prog_compiler_wl_GCJ='-Wl,'
15349 lt_prog_compiler_pic_GCJ='-KPIC'
15350 lt_prog_compiler_static_GCJ='-static'
15353 lt_prog_compiler_wl_GCJ='-Wl,'
15354 # All Alpha code is PIC.
15355 lt_prog_compiler_static_GCJ='-non_shared'
15360 osf3* | osf4* | osf5*)
15361 lt_prog_compiler_wl_GCJ='-Wl,'
15362 # All OSF/1 code is PIC.
15363 lt_prog_compiler_static_GCJ='-non_shared'
15367 lt_prog_compiler_pic_GCJ='-Kpic'
15368 lt_prog_compiler_static_GCJ='-dn'
15372 lt_prog_compiler_wl_GCJ='-Wl,'
15373 lt_prog_compiler_pic_GCJ='-KPIC'
15374 lt_prog_compiler_static_GCJ='-Bstatic'
15378 lt_prog_compiler_wl_GCJ='-Qoption ld '
15379 lt_prog_compiler_pic_GCJ='-PIC'
15380 lt_prog_compiler_static_GCJ='-Bstatic'
15383 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15384 lt_prog_compiler_wl_GCJ='-Wl,'
15385 lt_prog_compiler_pic_GCJ='-KPIC'
15386 lt_prog_compiler_static_GCJ='-Bstatic'
15390 if test -d /usr/nec ;then
15391 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15392 lt_prog_compiler_static_GCJ='-Bstatic'
15397 lt_prog_compiler_pic_GCJ='-pic'
15398 lt_prog_compiler_static_GCJ='-Bstatic'
15402 lt_prog_compiler_can_build_shared_GCJ=no
15407 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15408 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15411 # Check to make sure the PIC flag actually works.
15413 if test -n "$lt_prog_compiler_pic_GCJ"; then
15414 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15416 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 lt_prog_compiler_pic_works_GCJ=no
15420 ac_outfile=conftest.$ac_objext
15421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15422 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15423 # Insert the option either (1) after the last *FLAGS variable, or
15424 # (2) before a word containing "conftest.", or (3) at the end.
15425 # Note that $ac_compile itself does not contain backslashes and begins
15426 # with a dollar sign (not a hyphen), so the echo should work correctly.
15427 # The option is referenced via a variable to avoid confusing sed.
15428 lt_compile=`echo "$ac_compile" | $SED \
15429 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15431 -e 's:$: $lt_compiler_flag:'`
15432 (eval echo "\"\$as_me:15432: $lt_compile\"" >&5)
15433 (eval "$lt_compile" 2>conftest.err)
15435 cat conftest.err >&5
15436 echo "$as_me:15436: \$? = $ac_status" >&5
15437 if (exit $ac_status) && test -s "$ac_outfile"; then
15438 # The compiler can only warn and ignore the option if not recognized
15439 # So say no if there are warnings
15440 if test ! -s conftest.err; then
15441 lt_prog_compiler_pic_works_GCJ=yes
15447 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15448 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15450 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15451 case $lt_prog_compiler_pic_GCJ in
15453 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15456 lt_prog_compiler_pic_GCJ=
15457 lt_prog_compiler_can_build_shared_GCJ=no
15462 # For platforms which do not support PIC, -DPIC is meaningless:
15464 lt_prog_compiler_pic_GCJ=
15467 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15471 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15472 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15473 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 lt_cv_prog_compiler_c_o_GCJ=no
15477 $rm -r conftest 2>/dev/null
15481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15483 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15484 # that will create temporary files in the current directory regardless of
15485 # the output directory. Thus, making CWD read-only will cause this test
15486 # to fail, enabling locking or at least warning the user not to do parallel
15490 lt_compiler_flag="-o out/conftest2.$ac_objext"
15491 # Insert the option either (1) after the last *FLAGS variable, or
15492 # (2) before a word containing "conftest.", or (3) at the end.
15493 # Note that $ac_compile itself does not contain backslashes and begins
15494 # with a dollar sign (not a hyphen), so the echo should work correctly.
15495 lt_compile=`echo "$ac_compile" | $SED \
15496 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15498 -e 's:$: $lt_compiler_flag:'`
15499 (eval echo "\"\$as_me:15499: $lt_compile\"" >&5)
15500 (eval "$lt_compile" 2>out/conftest.err)
15502 cat out/conftest.err >&5
15503 echo "$as_me:15503: \$? = $ac_status" >&5
15504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15506 # The compiler can only warn and ignore the option if not recognized
15507 # So say no if there are warnings
15508 if test ! -s out/conftest.err; then
15509 lt_cv_prog_compiler_c_o_GCJ=yes
15513 $rm conftest* out/*
15520 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15521 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15524 hard_links="nottested"
15525 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15526 # do not overwrite the value of need_locks provided by the user
15527 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15528 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15533 ln conftest.a conftest.b 2>&5 || hard_links=no
15534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15535 echo "$as_me:$LINENO: result: $hard_links" >&5
15536 echo "${ECHO_T}$hard_links" >&6
15537 if test "$hard_links" = no; then
15538 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15539 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15546 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15547 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15550 allow_undefined_flag_GCJ=
15551 enable_shared_with_static_runtimes_GCJ=no
15553 archive_expsym_cmds_GCJ=
15554 old_archive_From_new_cmds_GCJ=
15555 old_archive_from_expsyms_cmds_GCJ=
15556 export_dynamic_flag_spec_GCJ=
15557 whole_archive_flag_spec_GCJ=
15558 thread_safe_flag_spec_GCJ=
15559 hardcode_libdir_flag_spec_GCJ=
15560 hardcode_libdir_flag_spec_ld_GCJ=
15561 hardcode_libdir_separator_GCJ=
15562 hardcode_direct_GCJ=no
15563 hardcode_minus_L_GCJ=no
15564 hardcode_shlibpath_var_GCJ=unsupported
15565 link_all_deplibs_GCJ=unknown
15566 hardcode_automatic_GCJ=no
15568 module_expsym_cmds_GCJ=
15569 always_export_symbols_GCJ=no
15570 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15571 # include_expsyms should be a list of space-separated symbols to be *always*
15572 # included in the symbol list
15573 include_expsyms_GCJ=
15574 # exclude_expsyms can be an extended regexp of symbols to exclude
15575 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15576 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15577 # as well as any symbol that contains `d'.
15578 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15579 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15580 # platforms (ab)use it in PIC code, but their linkers get confused if
15581 # the symbol is explicitly referenced. Since portable code cannot
15582 # rely on this symbol name, it's probably fine to never include it in
15583 # preloaded symbol tables.
15584 extract_expsyms_cmds=
15587 cygwin* | mingw* | pw32*)
15588 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15589 # When not using gcc, we currently assume that we are using
15590 # Microsoft Visual C++.
15591 if test "$GCC" != yes; then
15601 if test "$with_gnu_ld" = yes; then
15602 # If archive_cmds runs LD, not CC, wlarc should be empty
15605 # See if GNU ld supports shared libraries.
15607 aix3* | aix4* | aix5*)
15608 # On AIX/PPC, the GNU linker is very broken
15609 if test "$host_cpu" != ia64; then
15613 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15614 *** to be unable to reliably create shared libraries on AIX.
15615 *** Therefore, libtool is disabling shared libraries support. If you
15616 *** really care for shared libraries, you may want to modify your PATH
15617 *** so that a non-GNU linker is found, and then restart.
15624 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)'
15625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15626 hardcode_minus_L_GCJ=yes
15628 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15629 # that the semantics of dynamic libraries on AmigaOS, at least up
15630 # to version 4, is to share data among multiple programs linked
15631 # with the same dynamic library. Since this doesn't match the
15632 # behavior of shared libraries on other platforms, we can't use
15638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15639 allow_undefined_flag_GCJ=unsupported
15640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15641 # support --undefined. This deserves some investigation. FIXME
15642 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 cygwin* | mingw* | pw32*)
15649 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15650 # as there is no search path for DLLs.
15651 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15652 allow_undefined_flag_GCJ=unsupported
15653 always_export_symbols_GCJ=no
15654 enable_shared_with_static_runtimes_GCJ=yes
15655 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15657 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15658 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15659 # If the export-symbols file already is a .def file (1st line
15660 # is EXPORTS), use it as is; otherwise, prepend...
15661 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15662 cp $export_symbols $output_objdir/$soname.def;
15664 echo EXPORTS > $output_objdir/$soname.def;
15665 cat $export_symbols >> $output_objdir/$soname.def;
15667 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15675 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15678 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15684 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15688 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15689 *** create shared libraries on Solaris systems. Therefore, libtool
15690 *** is disabling shared libraries support. We urge you to upgrade GNU
15691 *** binutils to release 2.9.1 or newer. Another option is to modify
15692 *** your PATH or compiler configuration so that the native linker is
15693 *** used, and then restart.
15696 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15697 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15698 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15705 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15707 hardcode_direct_GCJ=yes
15708 hardcode_shlibpath_var_GCJ=no
15712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15714 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15721 if test "$ld_shlibs_GCJ" = yes; then
15722 runpath_var=LD_RUN_PATH
15723 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15724 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15725 # ancient GNU ld didn't support --whole-archive et. al.
15726 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15727 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15729 whole_archive_flag_spec_GCJ=
15733 # PORTME fill in a description of your system's linker (not GNU ld)
15736 allow_undefined_flag_GCJ=unsupported
15737 always_export_symbols_GCJ=yes
15738 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'
15739 # Note: this linker hardcodes the directories in LIBPATH if there
15740 # are no directories specified by -L.
15741 hardcode_minus_L_GCJ=yes
15742 if test "$GCC" = yes && test -z "$link_static_flag"; then
15743 # Neither direct hardcoding nor static linking is supported with a
15745 hardcode_direct_GCJ=unsupported
15750 if test "$host_cpu" = ia64; then
15751 # On IA64, the linker does run time linking by default, so we don't
15752 # have to do anything special.
15753 aix_use_runtimelinking=no
15754 exp_sym_flag='-Bexport'
15757 # If we're using GNU nm, then we don't want the "-C" option.
15758 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15759 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15760 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'
15762 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'
15764 aix_use_runtimelinking=no
15766 # Test if we are trying to use run time linking or normal
15767 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15768 # need to do runtime linking.
15769 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15770 for ld_flag in $LDFLAGS; do
15771 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15772 aix_use_runtimelinking=yes
15778 exp_sym_flag='-bexport'
15779 no_entry_flag='-bnoentry'
15782 # When large executables or shared objects are built, AIX ld can
15783 # have problems creating the table of contents. If linking a library
15784 # or program results in "error TOC overflow" add -mminimal-toc to
15785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15788 archive_cmds_GCJ=''
15789 hardcode_direct_GCJ=yes
15790 hardcode_libdir_separator_GCJ=':'
15791 link_all_deplibs_GCJ=yes
15793 if test "$GCC" = yes; then
15794 case $host_os in aix4.012|aix4.012.*)
15795 # We only want to do this on AIX 4.2 and lower, the check
15796 # below for broken collect2 doesn't work under 4.3+
15797 collect2name=`${CC} -print-prog-name=collect2`
15798 if test -f "$collect2name" && \
15799 strings "$collect2name" | grep resolve_lib_name >/dev/null
15801 # We have reworked collect2
15802 hardcode_direct_GCJ=yes
15804 # We have old collect2
15805 hardcode_direct_GCJ=unsupported
15806 # It fails to find uninstalled libraries when the uninstalled
15807 # path is not listed in the libpath. Setting hardcode_minus_L
15808 # to unsupported forces relinking
15809 hardcode_minus_L_GCJ=yes
15810 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15811 hardcode_libdir_separator_GCJ=
15814 shared_flag='-shared'
15817 if test "$host_cpu" = ia64; then
15818 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15819 # chokes on -Wl,-G. The following line is correct:
15822 if test "$aix_use_runtimelinking" = yes; then
15823 shared_flag='${wl}-G'
15825 shared_flag='${wl}-bM:SRE'
15830 # It seems that -bexpall does not export symbols beginning with
15831 # underscore (_), so it is better to generate a list of symbols to export.
15832 always_export_symbols_GCJ=yes
15833 if test "$aix_use_runtimelinking" = yes; then
15834 # Warning - without using the other runtime loading flags (-brtl),
15835 # -berok will link without error, but may produce a broken library.
15836 allow_undefined_flag_GCJ='-berok'
15837 # Determine the default libpath from the value encoded in an empty executable.
15838 cat >conftest.$ac_ext <<_ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855 (eval $ac_link) 2>conftest.er1
15857 grep -v '^ *+' conftest.er1 >conftest.err
15859 cat conftest.err >&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try='test -z "$ac_c_werror_flag"
15863 || test ! -s conftest.err'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; } &&
15869 { ac_try='test -s conftest$ac_exeext'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15878 # Check for a 64-bit object if we didn't find anything.
15879 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; }
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15886 rm -f conftest.err conftest.$ac_objext \
15887 conftest$ac_exeext conftest.$ac_ext
15888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15890 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15891 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"
15893 if test "$host_cpu" = ia64; then
15894 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15895 allow_undefined_flag_GCJ="-z nodefs"
15896 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"
15898 # Determine the default libpath from the value encoded in an empty executable.
15899 cat >conftest.$ac_ext <<_ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916 (eval $ac_link) 2>conftest.er1
15918 grep -v '^ *+' conftest.er1 >conftest.err
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -z "$ac_c_werror_flag"
15924 || test ! -s conftest.err'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest$ac_exeext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15939 # Check for a 64-bit object if we didn't find anything.
15940 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; }
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15947 rm -f conftest.err conftest.$ac_objext \
15948 conftest$ac_exeext conftest.$ac_ext
15949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15951 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15952 # Warning - without using the other run time loading flags,
15953 # -berok will link without error, but may produce a broken library.
15954 no_undefined_flag_GCJ=' ${wl}-bernotok'
15955 allow_undefined_flag_GCJ=' ${wl}-berok'
15956 # -bexpall does not export symbols beginning with underscore (_)
15957 always_export_symbols_GCJ=yes
15958 # Exported symbols can be pulled into shared objects from archives
15959 whole_archive_flag_spec_GCJ=' '
15960 archive_cmds_need_lc_GCJ=yes
15961 # This is similar to how AIX traditionally builds it's shared libraries.
15962 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'
15968 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)'
15969 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15970 hardcode_minus_L_GCJ=yes
15971 # see comment about different semantics on the GNU ld section
15976 export_dynamic_flag_spec_GCJ=-rdynamic
15979 cygwin* | mingw* | pw32*)
15980 # When not using gcc, we currently assume that we are using
15981 # Microsoft Visual C++.
15982 # hardcode_libdir_flag_spec is actually meaningless, as there is
15983 # no search path for DLLs.
15984 hardcode_libdir_flag_spec_GCJ=' '
15985 allow_undefined_flag_GCJ=unsupported
15986 # Tell ltmain to make .lib files, not .a files.
15988 # Tell ltmain to make .dll files, not .so files.
15990 # FIXME: Setting linknames here is a bad hack.
15991 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15992 # The linker will automatically build a .lib file if we build a DLL.
15993 old_archive_From_new_cmds_GCJ='true'
15994 # FIXME: Should let the user specify the lib program.
15995 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15996 fix_srcfile_path='`cygpath -w "$srcfile"`'
15997 enable_shared_with_static_runtimes_GCJ=yes
16000 darwin* | rhapsody*)
16001 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16002 archive_cmds_need_lc_GCJ=no
16004 rhapsody* | darwin1.[012])
16005 allow_undefined_flag_GCJ='-undefined suppress'
16008 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16011 # FIXME: Relying on posixy $() will cause problems for
16012 # cross-compilation, but unfortunately the echo tests do not
16013 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16014 # `"' quotes if we put them in here... so don't!
16015 lt_int_apple_cc_single_mod=no
16016 output_verbose_link_cmd='echo'
16017 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16018 lt_int_apple_cc_single_mod=yes
16020 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16021 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16023 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'
16025 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16027 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16028 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}'
16030 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}'
16032 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}'
16033 hardcode_direct_GCJ=no
16034 hardcode_automatic_GCJ=yes
16035 hardcode_shlibpath_var_GCJ=unsupported
16036 whole_archive_flag_spec_GCJ='-all_load $convenience'
16037 link_all_deplibs_GCJ=yes
16042 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16043 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16044 hardcode_shlibpath_var_GCJ=no
16051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16052 # support. Future versions do this automatically, but an explicit c++rt0.o
16053 # does not break anything, and helps significantly (at the cost of a little
16056 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16057 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16058 hardcode_direct_GCJ=yes
16059 hardcode_shlibpath_var_GCJ=no
16062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16064 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16065 hardcode_direct_GCJ=yes
16066 hardcode_minus_L_GCJ=yes
16067 hardcode_shlibpath_var_GCJ=no
16070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16072 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16073 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16074 hardcode_direct_GCJ=yes
16075 hardcode_shlibpath_var_GCJ=no
16079 if test "$GCC" = yes; then
16080 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'
16082 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'
16084 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16085 hardcode_libdir_separator_GCJ=:
16086 hardcode_direct_GCJ=yes
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
16091 export_dynamic_flag_spec_GCJ='${wl}-E'
16095 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16096 case "$host_cpu" in
16098 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16101 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16105 case "$host_cpu" in
16107 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16110 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16114 if test "$with_gnu_ld" = no; then
16115 case "$host_cpu" in
16117 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16118 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16119 hardcode_libdir_separator_GCJ=:
16120 hardcode_direct_GCJ=no
16121 hardcode_shlibpath_var_GCJ=no
16124 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16125 hardcode_direct_GCJ=no
16126 hardcode_shlibpath_var_GCJ=no
16128 # hardcode_minus_L: Not really in the search PATH,
16129 # but as the default location of the library.
16130 hardcode_minus_L_GCJ=yes
16133 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16134 hardcode_libdir_separator_GCJ=:
16135 hardcode_direct_GCJ=yes
16136 export_dynamic_flag_spec_GCJ='${wl}-E'
16138 # hardcode_minus_L: Not really in the search PATH,
16139 # but as the default location of the library.
16140 hardcode_minus_L_GCJ=yes
16146 irix5* | irix6* | nonstopux*)
16147 if test "$GCC" = yes; then
16148 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'
16150 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'
16151 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16153 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16154 hardcode_libdir_separator_GCJ=:
16155 link_all_deplibs_GCJ=yes
16159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16160 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16162 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16164 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16165 hardcode_direct_GCJ=yes
16166 hardcode_shlibpath_var_GCJ=no
16170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 hardcode_direct_GCJ=yes
16172 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16173 hardcode_libdir_separator_GCJ=:
16174 hardcode_shlibpath_var_GCJ=no
16178 hardcode_direct_GCJ=yes
16179 hardcode_shlibpath_var_GCJ=no
16180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16181 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16182 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16183 export_dynamic_flag_spec_GCJ='${wl}-E'
16186 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16187 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16188 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16191 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16192 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16199 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16200 hardcode_minus_L_GCJ=yes
16201 allow_undefined_flag_GCJ=unsupported
16202 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'
16203 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16207 if test "$GCC" = yes; then
16208 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16209 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'
16211 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16212 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'
16214 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16215 hardcode_libdir_separator_GCJ=:
16218 osf4* | osf5*) # as osf3* with the addition of -msym flag
16219 if test "$GCC" = yes; then
16220 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16221 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'
16222 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16224 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16225 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'
16226 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~
16227 $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'
16229 # Both c and cxx compiler support -rpath directly
16230 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16232 hardcode_libdir_separator_GCJ=:
16236 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_shlibpath_var_GCJ=no
16238 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16239 runpath_var=LD_RUN_PATH
16240 hardcode_runpath_var=yes
16244 no_undefined_flag_GCJ=' -z text'
16245 if test "$GCC" = yes; then
16246 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16248 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16250 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16252 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16254 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16255 hardcode_shlibpath_var_GCJ=no
16257 solaris2.[0-5] | solaris2.[0-5].*) ;;
16258 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16259 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16261 link_all_deplibs_GCJ=yes
16265 if test "x$host_vendor" = xsequent; then
16266 # Use $CC to link under sequent, because it throws in some extra .o
16267 # files that make .init and .fini sections work.
16268 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16270 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16272 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16273 hardcode_direct_GCJ=yes
16274 hardcode_minus_L_GCJ=yes
16275 hardcode_shlibpath_var_GCJ=no
16279 case $host_vendor in
16281 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16282 hardcode_direct_GCJ=yes # is this really true???
16285 ## LD is ld it makes a PLAMLIB
16286 ## CC just makes a GrossModule.
16287 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16288 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16289 hardcode_direct_GCJ=no
16292 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16293 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16296 runpath_var='LD_RUN_PATH'
16297 hardcode_shlibpath_var_GCJ=no
16301 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302 hardcode_shlibpath_var_GCJ=no
16303 export_dynamic_flag_spec_GCJ='-Bexport'
16307 if test -d /usr/nec; then
16308 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16309 hardcode_shlibpath_var_GCJ=no
16310 runpath_var=LD_RUN_PATH
16311 hardcode_runpath_var=yes
16317 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16318 hardcode_direct_GCJ=yes
16319 hardcode_minus_L_GCJ=no
16320 hardcode_shlibpath_var_GCJ=no
16321 hardcode_runpath_var=yes
16322 runpath_var=LD_RUN_PATH
16325 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16326 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16327 if test "$GCC" = yes; then
16328 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16330 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16332 runpath_var='LD_RUN_PATH'
16333 hardcode_shlibpath_var_GCJ=no
16337 no_undefined_flag_GCJ=' -z text'
16338 # $CC -shared without GNU ld will not create a library from C++
16339 # object files and a static libstdc++, better avoid it by now
16340 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16341 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16342 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16343 hardcode_libdir_flag_spec_GCJ=
16344 hardcode_shlibpath_var_GCJ=no
16345 runpath_var='LD_RUN_PATH'
16349 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16350 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16351 hardcode_shlibpath_var_GCJ=no
16360 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16361 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16362 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16364 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16365 if test "$GCC" = yes; then
16366 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16370 # Do we need to explicitly link libc?
16372 case "x$archive_cmds_need_lc_GCJ" in
16374 # Assume -lc should be added
16375 archive_cmds_need_lc_GCJ=yes
16377 if test "$enable_shared" = yes && test "$GCC" = yes; then
16378 case $archive_cmds_GCJ in
16380 # FIXME: we may have to deal with multi-command sequences.
16383 # Test whether the compiler implicitly links with -lc since on some
16384 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16385 # to ld, don't add -lc before -lgcc.
16386 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16387 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392 (eval $ac_compile) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } 2>conftest.err; then
16398 libobjs=conftest.$ac_objext
16400 wl=$lt_prog_compiler_wl_GCJ
16406 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16407 allow_undefined_flag_GCJ=
16408 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16409 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }
16414 archive_cmds_need_lc_GCJ=no
16416 archive_cmds_need_lc_GCJ=yes
16418 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16420 cat conftest.err 1>&5
16423 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16424 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16431 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16432 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16433 hardcode_action_GCJ=
16434 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16435 test -n "$runpath_var GCJ" || \
16436 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16438 # We can hardcode non-existant directories.
16439 if test "$hardcode_direct_GCJ" != no &&
16440 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16441 # have to relink, otherwise we might link with an installed library
16442 # when we should be linking with a yet-to-be-installed one
16443 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16444 test "$hardcode_minus_L_GCJ" != no; then
16445 # Linking always hardcodes the temporary library directory.
16446 hardcode_action_GCJ=relink
16448 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16449 hardcode_action_GCJ=immediate
16452 # We cannot hardcode anything, or else we can only hardcode existing
16454 hardcode_action_GCJ=unsupported
16456 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16457 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16459 if test "$hardcode_action_GCJ" = relink; then
16460 # Fast installation is not supported
16461 enable_fast_install=no
16462 elif test "$shlibpath_overrides_runpath" = yes ||
16463 test "$enable_shared" = no; then
16464 # Fast installation is not necessary
16465 enable_fast_install=needless
16470 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16471 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16472 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16473 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16474 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16475 echo "$as_me:$LINENO: result: yes" >&5
16476 echo "${ECHO_T}yes" >&6
16478 # FIXME - insert some real tests, host_os isn't really good enough
16481 if test -n "$STRIP" ; then
16482 striplib="$STRIP -x"
16483 echo "$as_me:$LINENO: result: yes" >&5
16484 echo "${ECHO_T}yes" >&6
16486 echo "$as_me:$LINENO: result: no" >&5
16487 echo "${ECHO_T}no" >&6
16491 echo "$as_me:$LINENO: result: no" >&5
16492 echo "${ECHO_T}no" >&6
16497 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16498 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16499 library_names_spec=
16500 libname_spec='lib$name'
16504 postuninstall_cmds=
16508 shlibpath_overrides_runpath=unknown
16510 dynamic_linker="$host_os ld.so"
16511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16512 if test "$GCC" = yes; then
16513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16514 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16515 # if the path contains ";" then we assume it to be the separator
16516 # otherwise default to the standard path separator (i.e. ":") - it is
16517 # assumed that no part of a normal pathname contains ";" but that should
16518 # okay in the real world where ";" in dirpaths is itself problematic.
16519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16526 need_lib_prefix=unknown
16527 hardcode_into_libs=no
16529 # when you set need_version to no, make sure it does not cause -set_version
16530 # flags to be left without arguments
16531 need_version=unknown
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16537 shlibpath_var=LIBPATH
16539 # AIX 3 has no versioning support, so we append a major version to the name.
16540 soname_spec='${libname}${release}${shared_ext}$major'
16547 hardcode_into_libs=yes
16548 if test "$host_cpu" = ia64; then
16549 # AIX 5 supports IA64
16550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16551 shlibpath_var=LD_LIBRARY_PATH
16553 # With GCC up to 2.95.x, collect2 would create an import file
16554 # for dependence libraries. The import file would start with
16555 # the line `#! .'. This would cause the generated library to
16556 # depend on `.', always an invalid library. This was fixed in
16557 # development snapshots of GCC prior to 3.0.
16559 aix4 | aix4.[01] | aix4.[01].*)
16560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16562 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16565 can_build_shared=no
16569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16570 # soname into executable. Probably we can add versioning support to
16571 # collect2, so additional links can be useful in future.
16572 if test "$aix_use_runtimelinking" = yes; then
16573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16574 # instead of lib<name>.a to let people know that these are not
16575 # typical AIX shared libraries.
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578 # We preserve .a as extension for shared libraries through AIX4.2
16579 # and later when we are not doing run time linking.
16580 library_names_spec='${libname}${release}.a $libname.a'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16583 shlibpath_var=LIBPATH
16588 library_names_spec='$libname.ixlibrary $libname.a'
16589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16590 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'
16594 library_names_spec='${libname}${shared_ext}'
16595 dynamic_linker="$host_os ld.so"
16596 shlibpath_var=LIBRARY_PATH
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16605 shlibpath_var=LD_LIBRARY_PATH
16606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16608 # the default ld.so.conf also contains /usr/contrib/lib and
16609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16610 # libtool to hard-code these into programs
16613 cygwin* | mingw* | pw32*)
16614 version_type=windows
16619 case $GCC,$host_os in
16620 yes,cygwin* | yes,mingw* | yes,pw32*)
16621 library_names_spec='$libname.dll.a'
16622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16623 postinstall_cmds='base_file=`basename \${file}`~
16624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16625 dldir=$destdir/`dirname \$dlpath`~
16626 test -d \$dldir || mkdir -p \$dldir~
16627 $install_prog $dir/$dlname \$dldir/$dlname'
16628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16629 dlpath=$dir/\$dldll~
16631 shlibpath_overrides_runpath=yes
16635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16637 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16640 # MinGW DLLs use traditional 'lib' prefix
16641 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16642 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16643 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16644 # It is most probably a Windows format PATH printed by
16645 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16646 # path with ; separators, and with drive letters. We can handle the
16647 # drive letters (cygwin fileutils understands them), so leave them,
16648 # especially as we might pass files found there to a mingw objdump,
16649 # which wouldn't understand a cygwinified path. Ahh.
16650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16656 # pw32 DLLs use 'pw' prefix rather than 'lib'
16657 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16663 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16666 dynamic_linker='Win32 ld.exe'
16667 # FIXME: first we should search . and the directory the executable is in
16671 darwin* | rhapsody*)
16672 dynamic_linker="$host_os dyld"
16673 version_type=darwin
16676 # FIXME: Relying on posixy $() will cause problems for
16677 # cross-compilation, but unfortunately the echo tests do not
16678 # yet detect zsh echo's removal of \ escapes.
16679 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16680 soname_spec='${libname}${release}${major}$shared_ext'
16681 shlibpath_overrides_runpath=yes
16682 shlibpath_var=DYLD_LIBRARY_PATH
16683 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16684 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16685 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16686 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"`
16688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16696 soname_spec='${libname}${release}${shared_ext}$major'
16697 shlibpath_var=LD_LIBRARY_PATH
16705 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16706 version_type=freebsd-$objformat
16707 case $version_type in
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16718 shlibpath_var=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath=yes
16723 freebsd3.01* | freebsdelf3.01*)
16724 shlibpath_overrides_runpath=yes
16725 hardcode_into_libs=yes
16728 shlibpath_overrides_runpath=no
16729 hardcode_into_libs=yes
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 shlibpath_var=LD_LIBRARY_PATH
16741 hardcode_into_libs=yes
16744 hpux9* | hpux10* | hpux11*)
16745 # Give a soname corresponding to the major version so that dld.sl refuses to
16746 # link against other versions.
16750 case "$host_cpu" in
16753 hardcode_into_libs=yes
16754 dynamic_linker="$host_os dld.so"
16755 shlibpath_var=LD_LIBRARY_PATH
16756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 if test "X$HPUX_IA64_MODE" = X32; then
16760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16762 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16768 hardcode_into_libs=yes
16769 dynamic_linker="$host_os dld.sl"
16770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16779 dynamic_linker="$host_os dld.sl"
16780 shlibpath_var=SHLIB_PATH
16781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16783 soname_spec='${libname}${release}${shared_ext}$major'
16786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16787 postinstall_cmds='chmod 555 $lib'
16790 irix5* | irix6* | nonstopux*)
16792 nonstopux*) version_type=nonstopux ;;
16794 if test "$lt_cv_prog_gnu_ld" = yes; then
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16805 irix5* | nonstopux*)
16806 libsuff= shlibsuff=
16809 case $LD in # libtool.m4 will add one of these switches to LD
16810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16811 libsuff= shlibsuff= libmagic=32-bit;;
16812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16813 libsuff=32 shlibsuff=N32 libmagic=N32;;
16814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16815 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16816 *) libsuff= shlibsuff= libmagic=never-match;;
16820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16821 shlibpath_overrides_runpath=no
16822 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16823 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16824 hardcode_into_libs=yes
16827 # No shared lib support for Linux oldld, aout, or coff.
16828 linux*oldld* | linux*aout* | linux*coff*)
16832 # This must be Linux ELF.
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 soname_spec='${libname}${release}${shared_ext}$major'
16839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16840 shlibpath_var=LD_LIBRARY_PATH
16841 shlibpath_overrides_runpath=no
16842 # This implies no fast_install, which is unacceptable.
16843 # Some rework will be needed to allow for fast_install
16844 # before this can be enabled.
16845 hardcode_into_libs=yes
16847 # We used to test for /lib/ld.so.1 and disable shared libraries on
16848 # powerpc, because MkLinux only supported shared libraries with the
16849 # GNU dynamic linker. Since this was broken with cross compilers,
16850 # most powerpc-linux boxes support dynamic linking these days and
16851 # people can always --disable-shared, the test was removed, and we
16852 # assume the GNU/Linux dynamic linker is in use.
16853 dynamic_linker='GNU/Linux ld.so'
16860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16863 dynamic_linker='NetBSD (a.out) ld.so'
16865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16866 soname_spec='${libname}${release}${shared_ext}$major'
16867 dynamic_linker='NetBSD ld.elf_so'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 shlibpath_overrides_runpath=yes
16871 hardcode_into_libs=yes
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 shlibpath_overrides_runpath=yes
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 soname_spec='${libname}${release}${shared_ext}$major'
16887 shlibpath_var=LD_LIBRARY_PATH
16888 shlibpath_overrides_runpath=yes
16895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16897 shlibpath_var=LD_LIBRARY_PATH
16898 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16900 openbsd2.[89] | openbsd2.[89].*)
16901 shlibpath_overrides_runpath=no
16904 shlibpath_overrides_runpath=yes
16908 shlibpath_overrides_runpath=yes
16913 libname_spec='$name'
16916 library_names_spec='$libname${shared_ext} $libname.a'
16917 dynamic_linker='OS/2 ld.exe'
16918 shlibpath_var=LIBPATH
16921 osf3* | osf4* | osf5*)
16925 soname_spec='${libname}${release}${shared_ext}$major'
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 shlibpath_var=LD_LIBRARY_PATH
16928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16929 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16934 soname_spec='${libname}${release}${shared_ext}$major'
16935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16936 shlibpath_var=LD_LIBRARY_PATH
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 shlibpath_var=LD_LIBRARY_PATH
16946 shlibpath_overrides_runpath=yes
16947 hardcode_into_libs=yes
16948 # ldd complains unless libraries are executable
16949 postinstall_cmds='chmod +x $lib'
16954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16956 shlibpath_var=LD_LIBRARY_PATH
16957 shlibpath_overrides_runpath=yes
16958 if test "$with_gnu_ld" = yes; then
16964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 case $host_vendor in
16971 shlibpath_overrides_runpath=no
16973 export_dynamic_flag_spec='${wl}-Blargedynsym'
16974 runpath_var=LD_RUN_PATH
16982 shlibpath_overrides_runpath=no
16983 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16989 if test -d /usr/nec ;then
16991 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16992 soname_spec='$libname${shared_ext}.$major'
16993 shlibpath_var=LD_LIBRARY_PATH
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000 soname_spec='${libname}${release}${shared_ext}$major'
17001 shlibpath_var=LD_LIBRARY_PATH
17008 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17009 echo "${ECHO_T}$dynamic_linker" >&6
17010 test "$dynamic_linker" = no && can_build_shared=no
17012 if test "x$enable_dlopen" != xyes; then
17013 enable_dlopen=unknown
17014 enable_dlopen_self=unknown
17015 enable_dlopen_self_static=unknown
17022 lt_cv_dlopen="load_add_on"
17024 lt_cv_dlopen_self=yes
17028 lt_cv_dlopen="LoadLibrary"
17033 lt_cv_dlopen="dlopen"
17038 # if libdl is installed we need to link against it
17039 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17040 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17041 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17044 ac_check_lib_save_LIBS=$LIBS
17046 cat >conftest.$ac_ext <<_ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17053 /* Override any gcc2 internal prototype to avoid an error. */
17057 /* We use char because int might match the return type of a gcc2
17058 builtin and then its argument prototype would still apply. */
17068 rm -f conftest.$ac_objext conftest$ac_exeext
17069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17070 (eval $ac_link) 2>conftest.er1
17072 grep -v '^ *+' conftest.er1 >conftest.err
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag"
17078 || test ! -s conftest.err'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; } &&
17084 { ac_try='test -s conftest$ac_exeext'
17085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_cv_lib_dl_dlopen=yes
17092 echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17095 ac_cv_lib_dl_dlopen=no
17097 rm -f conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17101 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17102 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17103 if test $ac_cv_lib_dl_dlopen = yes; then
17104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17107 lt_cv_dlopen="dyld"
17109 lt_cv_dlopen_self=yes
17116 echo "$as_me:$LINENO: checking for shl_load" >&5
17117 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17118 if test "${ac_cv_func_shl_load+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17121 cat >conftest.$ac_ext <<_ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17127 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17129 #define shl_load innocuous_shl_load
17131 /* System header to define __stub macros and hopefully few prototypes,
17132 which can conflict with char shl_load (); below.
17133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134 <limits.h> exists even on freestanding compilers. */
17137 # include <limits.h>
17139 # include <assert.h>
17144 /* Override any gcc2 internal prototype to avoid an error. */
17149 /* We use char because int might match the return type of a gcc2
17150 builtin and then its argument prototype would still apply. */
17152 /* The GNU C library defines this for functions which it implements
17153 to always fail with ENOSYS. Some functions are actually named
17154 something starting with __ and the normal name is an alias. */
17155 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17158 char (*f) () = shl_load;
17167 return f != shl_load;
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17174 (eval $ac_link) 2>conftest.er1
17176 grep -v '^ *+' conftest.er1 >conftest.err
17178 cat conftest.err >&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } &&
17181 { ac_try='test -z "$ac_c_werror_flag"
17182 || test ! -s conftest.err'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; } &&
17188 { ac_try='test -s conftest$ac_exeext'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_func_shl_load=yes
17196 echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17199 ac_cv_func_shl_load=no
17201 rm -f conftest.err conftest.$ac_objext \
17202 conftest$ac_exeext conftest.$ac_ext
17204 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17205 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17206 if test $ac_cv_func_shl_load = yes; then
17207 lt_cv_dlopen="shl_load"
17209 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17210 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17211 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17214 ac_check_lib_save_LIBS=$LIBS
17216 cat >conftest.$ac_ext <<_ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17223 /* Override any gcc2 internal prototype to avoid an error. */
17227 /* We use char because int might match the return type of a gcc2
17228 builtin and then its argument prototype would still apply. */
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17240 (eval $ac_link) 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag"
17248 || test ! -s conftest.err'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest$ac_exeext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 ac_cv_lib_dld_shl_load=yes
17262 echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17265 ac_cv_lib_dld_shl_load=no
17267 rm -f conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269 LIBS=$ac_check_lib_save_LIBS
17271 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17272 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17273 if test $ac_cv_lib_dld_shl_load = yes; then
17274 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17276 echo "$as_me:$LINENO: checking for dlopen" >&5
17277 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17278 if test "${ac_cv_func_dlopen+set}" = set; then
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17281 cat >conftest.$ac_ext <<_ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17289 #define dlopen innocuous_dlopen
17291 /* System header to define __stub macros and hopefully few prototypes,
17292 which can conflict with char dlopen (); below.
17293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17294 <limits.h> exists even on freestanding compilers. */
17297 # include <limits.h>
17299 # include <assert.h>
17304 /* Override any gcc2 internal prototype to avoid an error. */
17309 /* We use char because int might match the return type of a gcc2
17310 builtin and then its argument prototype would still apply. */
17312 /* The GNU C library defines this for functions which it implements
17313 to always fail with ENOSYS. Some functions are actually named
17314 something starting with __ and the normal name is an alias. */
17315 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17318 char (*f) () = dlopen;
17327 return f != dlopen;
17332 rm -f conftest.$ac_objext conftest$ac_exeext
17333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17334 (eval $ac_link) 2>conftest.er1
17336 grep -v '^ *+' conftest.er1 >conftest.err
17338 cat conftest.err >&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
17341 { ac_try='test -z "$ac_c_werror_flag"
17342 || test ! -s conftest.err'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest$ac_exeext'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_cv_func_dlopen=yes
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 ac_cv_func_dlopen=no
17361 rm -f conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17364 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17365 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17366 if test $ac_cv_func_dlopen = yes; then
17367 lt_cv_dlopen="dlopen"
17369 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17370 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17371 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 ac_check_lib_save_LIBS=$LIBS
17376 cat >conftest.$ac_ext <<_ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17383 /* Override any gcc2 internal prototype to avoid an error. */
17387 /* We use char because int might match the return type of a gcc2
17388 builtin and then its argument prototype would still apply. */
17398 rm -f conftest.$ac_objext conftest$ac_exeext
17399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17400 (eval $ac_link) 2>conftest.er1
17402 grep -v '^ *+' conftest.er1 >conftest.err
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -z "$ac_c_werror_flag"
17408 || test ! -s conftest.err'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; } &&
17414 { ac_try='test -s conftest$ac_exeext'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 ac_cv_lib_dl_dlopen=yes
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17425 ac_cv_lib_dl_dlopen=no
17427 rm -f conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
17429 LIBS=$ac_check_lib_save_LIBS
17431 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17432 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17433 if test $ac_cv_lib_dl_dlopen = yes; then
17434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17436 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17437 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17438 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 ac_check_lib_save_LIBS=$LIBS
17442 LIBS="-lsvld $LIBS"
17443 cat >conftest.$ac_ext <<_ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17450 /* Override any gcc2 internal prototype to avoid an error. */
17454 /* We use char because int might match the return type of a gcc2
17455 builtin and then its argument prototype would still apply. */
17465 rm -f conftest.$ac_objext conftest$ac_exeext
17466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17467 (eval $ac_link) 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag"
17475 || test ! -s conftest.err'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest$ac_exeext'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_lib_svld_dlopen=yes
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 ac_cv_lib_svld_dlopen=no
17494 rm -f conftest.err conftest.$ac_objext \
17495 conftest$ac_exeext conftest.$ac_ext
17496 LIBS=$ac_check_lib_save_LIBS
17498 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17499 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17500 if test $ac_cv_lib_svld_dlopen = yes; then
17501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17503 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17504 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17505 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17508 ac_check_lib_save_LIBS=$LIBS
17510 cat >conftest.$ac_ext <<_ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17517 /* Override any gcc2 internal prototype to avoid an error. */
17521 /* We use char because int might match the return type of a gcc2
17522 builtin and then its argument prototype would still apply. */
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17534 (eval $ac_link) 2>conftest.er1
17536 grep -v '^ *+' conftest.er1 >conftest.err
17538 cat conftest.err >&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try='test -z "$ac_c_werror_flag"
17542 || test ! -s conftest.err'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; } &&
17548 { ac_try='test -s conftest$ac_exeext'
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
17554 ac_cv_lib_dld_dld_link=yes
17556 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 ac_cv_lib_dld_dld_link=no
17561 rm -f conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17563 LIBS=$ac_check_lib_save_LIBS
17565 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17566 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17567 if test $ac_cv_lib_dld_dld_link = yes; then
17568 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17589 if test "x$lt_cv_dlopen" != xno; then
17595 case $lt_cv_dlopen in
17597 save_CPPFLAGS="$CPPFLAGS"
17598 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17600 save_LDFLAGS="$LDFLAGS"
17601 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17604 LIBS="$lt_cv_dlopen_libs $LIBS"
17606 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17607 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17608 if test "${lt_cv_dlopen_self+set}" = set; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 if test "$cross_compiling" = yes; then :
17612 lt_cv_dlopen_self=cross
17614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17615 lt_status=$lt_dlunknown
17616 cat > conftest.$ac_ext <<EOF
17617 #line 17617 "configure"
17618 #include "confdefs.h"
17627 # define LT_DLGLOBAL RTLD_GLOBAL
17630 # define LT_DLGLOBAL DL_GLOBAL
17632 # define LT_DLGLOBAL 0
17636 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17637 find out it does not work in some platform. */
17638 #ifndef LT_DLLAZY_OR_NOW
17640 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17643 # define LT_DLLAZY_OR_NOW DL_LAZY
17646 # define LT_DLLAZY_OR_NOW RTLD_NOW
17649 # define LT_DLLAZY_OR_NOW DL_NOW
17651 # define LT_DLLAZY_OR_NOW 0
17659 extern "C" void exit (int);
17662 void fnord() { int i=42;}
17665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17666 int status = $lt_dlunknown;
17670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17671 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17672 /* dlclose (self); */
17678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679 (eval $ac_link) 2>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17683 (./conftest; exit; ) 2>/dev/null
17685 case x$lt_status in
17686 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17687 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17688 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17691 # compilation failed
17692 lt_cv_dlopen_self=no
17699 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17700 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17702 if test "x$lt_cv_dlopen_self" = xyes; then
17703 LDFLAGS="$LDFLAGS $link_static_flag"
17704 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17705 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17706 if test "${lt_cv_dlopen_self_static+set}" = set; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17709 if test "$cross_compiling" = yes; then :
17710 lt_cv_dlopen_self_static=cross
17712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17713 lt_status=$lt_dlunknown
17714 cat > conftest.$ac_ext <<EOF
17715 #line 17715 "configure"
17716 #include "confdefs.h"
17725 # define LT_DLGLOBAL RTLD_GLOBAL
17728 # define LT_DLGLOBAL DL_GLOBAL
17730 # define LT_DLGLOBAL 0
17734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17735 find out it does not work in some platform. */
17736 #ifndef LT_DLLAZY_OR_NOW
17738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17741 # define LT_DLLAZY_OR_NOW DL_LAZY
17744 # define LT_DLLAZY_OR_NOW RTLD_NOW
17747 # define LT_DLLAZY_OR_NOW DL_NOW
17749 # define LT_DLLAZY_OR_NOW 0
17757 extern "C" void exit (int);
17760 void fnord() { int i=42;}
17763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17764 int status = $lt_dlunknown;
17768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17769 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17770 /* dlclose (self); */
17776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777 (eval $ac_link) 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17781 (./conftest; exit; ) 2>/dev/null
17783 case x$lt_status in
17784 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17785 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17786 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17789 # compilation failed
17790 lt_cv_dlopen_self_static=no
17797 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17798 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17801 CPPFLAGS="$save_CPPFLAGS"
17802 LDFLAGS="$save_LDFLAGS"
17807 case $lt_cv_dlopen_self in
17808 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17809 *) enable_dlopen_self=unknown ;;
17812 case $lt_cv_dlopen_self_static in
17813 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17814 *) enable_dlopen_self_static=unknown ;;
17819 # The else clause should only fire when bootstrapping the
17820 # libtool distribution, otherwise you forgot to ship ltmain.sh
17821 # with your package, and you will get complaints that there are
17822 # no rules to generate ltmain.sh.
17823 if test -f "$ltmain"; then
17824 # See if we are running on zsh, and set the options which allow our commands through
17825 # without removal of \ escapes.
17826 if test -n "${ZSH_VERSION+set}" ; then
17827 setopt NO_GLOB_SUBST
17829 # Now quote all the things that may contain metacharacters while being
17830 # careful not to overquote the AC_SUBSTed values. We take copies of the
17831 # variables and quote the copies for generation of the libtool script.
17832 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17833 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17834 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17835 deplibs_check_method reload_flag reload_cmds need_locks \
17836 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17837 lt_cv_sys_global_symbol_to_c_name_address \
17838 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17839 old_postinstall_cmds old_postuninstall_cmds \
17843 lt_prog_compiler_wl_GCJ \
17844 lt_prog_compiler_pic_GCJ \
17845 lt_prog_compiler_static_GCJ \
17846 lt_prog_compiler_no_builtin_flag_GCJ \
17847 export_dynamic_flag_spec_GCJ \
17848 thread_safe_flag_spec_GCJ \
17849 whole_archive_flag_spec_GCJ \
17850 enable_shared_with_static_runtimes_GCJ \
17851 old_archive_cmds_GCJ \
17852 old_archive_from_new_cmds_GCJ \
17853 predep_objects_GCJ \
17854 postdep_objects_GCJ \
17857 compiler_lib_search_path_GCJ \
17859 archive_expsym_cmds_GCJ \
17860 postinstall_cmds_GCJ \
17861 postuninstall_cmds_GCJ \
17862 old_archive_from_expsyms_cmds_GCJ \
17863 allow_undefined_flag_GCJ \
17864 no_undefined_flag_GCJ \
17865 export_symbols_cmds_GCJ \
17866 hardcode_libdir_flag_spec_GCJ \
17867 hardcode_libdir_flag_spec_ld_GCJ \
17868 hardcode_libdir_separator_GCJ \
17869 hardcode_automatic_GCJ \
17871 module_expsym_cmds_GCJ \
17872 lt_cv_prog_compiler_c_o_GCJ \
17873 exclude_expsyms_GCJ \
17874 include_expsyms_GCJ; do
17877 old_archive_cmds_GCJ | \
17878 old_archive_from_new_cmds_GCJ | \
17879 archive_cmds_GCJ | \
17880 archive_expsym_cmds_GCJ | \
17881 module_cmds_GCJ | \
17882 module_expsym_cmds_GCJ | \
17883 old_archive_from_expsyms_cmds_GCJ | \
17884 export_symbols_cmds_GCJ | \
17885 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17886 postinstall_cmds | postuninstall_cmds | \
17887 old_postinstall_cmds | old_postuninstall_cmds | \
17888 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17889 # Double-quote double-evaled strings.
17890 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17899 *'\$0 --fallback-echo"')
17900 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17906 cat <<__EOF__ >> "$cfgfile"
17907 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17909 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17911 # Shell to use when invoking shell scripts.
17914 # Whether or not to build shared libraries.
17915 build_libtool_libs=$enable_shared
17917 # Whether or not to build static libraries.
17918 build_old_libs=$enable_static
17920 # Whether or not to add -lc for building shared libraries.
17921 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17923 # Whether or not to disallow shared libs when runtime libs are static
17924 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17926 # Whether or not to optimize for fast installation.
17927 fast_install=$enable_fast_install
17930 host_alias=$host_alias
17933 # An echo program that does not interpret backslashes.
17938 AR_FLAGS=$lt_AR_FLAGS
17943 # A language-specific compiler.
17944 CC=$lt_compiler_GCJ
17946 # Is the compiler the GNU C compiler?
17952 # The linker used to build libraries.
17955 # Whether we need hard or soft links.
17958 # A BSD-compatible nm program.
17961 # A symbol stripping program
17964 # Used to examine libraries when file_magic_cmd begins "file"
17965 MAGIC_CMD=$MAGIC_CMD
17967 # Used on cygwin: DLL creation program.
17970 # Used on cygwin: object dumper.
17973 # Used on cygwin: assembler.
17976 # The name of the directory that contains temporary libtool files.
17979 # How to create reloadable object files.
17980 reload_flag=$lt_reload_flag
17981 reload_cmds=$lt_reload_cmds
17983 # How to pass a linker flag through the compiler.
17984 wl=$lt_lt_prog_compiler_wl_GCJ
17986 # Object file suffix (normally "o").
17987 objext="$ac_objext"
17989 # Old archive suffix (normally "a").
17992 # Shared library suffix (normally ".so").
17995 # Executable file suffix (normally "").
17998 # Additional compiler flags for building library objects.
17999 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18002 # What is the maximum length of a command?
18003 max_cmd_len=$lt_cv_sys_max_cmd_len
18005 # Does compiler simultaneously support -c and -o options?
18006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18008 # Must we lock files when doing compilation ?
18009 need_locks=$lt_need_locks
18011 # Do we need the lib prefix for modules?
18012 need_lib_prefix=$need_lib_prefix
18014 # Do we need a version for libraries?
18015 need_version=$need_version
18017 # Whether dlopen is supported.
18018 dlopen_support=$enable_dlopen
18020 # Whether dlopen of programs is supported.
18021 dlopen_self=$enable_dlopen_self
18023 # Whether dlopen of statically linked programs is supported.
18024 dlopen_self_static=$enable_dlopen_self_static
18026 # Compiler flag to prevent dynamic linking.
18027 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18029 # Compiler flag to turn off builtin functions.
18030 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18032 # Compiler flag to allow reflexive dlopens.
18033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18035 # Compiler flag to generate shared objects directly from archives.
18036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18038 # Compiler flag to generate thread-safe objects.
18039 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18041 # Library versioning type.
18042 version_type=$version_type
18044 # Format of library name prefix.
18045 libname_spec=$lt_libname_spec
18047 # List of archive names. First name is the real one, the rest are links.
18048 # The last name is the one that the linker finds with -lNAME.
18049 library_names_spec=$lt_library_names_spec
18051 # The coded name of the library, if different from the real name.
18052 soname_spec=$lt_soname_spec
18054 # Commands used to build and install an old-style archive.
18056 old_archive_cmds=$lt_old_archive_cmds_GCJ
18057 old_postinstall_cmds=$lt_old_postinstall_cmds
18058 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18060 # Create an old-style archive from a shared archive.
18061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18063 # Create a temporary old-style archive to link instead of a shared archive.
18064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18066 # Commands used to build and install a shared archive.
18067 archive_cmds=$lt_archive_cmds_GCJ
18068 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18069 postinstall_cmds=$lt_postinstall_cmds
18070 postuninstall_cmds=$lt_postuninstall_cmds
18072 # Commands used to build a loadable module (assumed same as above if empty)
18073 module_cmds=$lt_module_cmds_GCJ
18074 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18076 # Commands to strip libraries.
18077 old_striplib=$lt_old_striplib
18078 striplib=$lt_striplib
18080 # Dependencies to place before the objects being linked to create a
18082 predep_objects=$lt_predep_objects_GCJ
18084 # Dependencies to place after the objects being linked to create a
18086 postdep_objects=$lt_postdep_objects_GCJ
18088 # Dependencies to place before the objects being linked to create a
18090 predeps=$lt_predeps_GCJ
18092 # Dependencies to place after the objects being linked to create a
18094 postdeps=$lt_postdeps_GCJ
18096 # The library search path used internally by the compiler when linking
18097 # a shared library.
18098 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18100 # Method to check whether dependent libraries are shared objects.
18101 deplibs_check_method=$lt_deplibs_check_method
18103 # Command to use when deplibs_check_method == file_magic.
18104 file_magic_cmd=$lt_file_magic_cmd
18106 # Flag that allows shared libraries with undefined symbols to be built.
18107 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18109 # Flag that forces no undefined symbols.
18110 no_undefined_flag=$lt_no_undefined_flag_GCJ
18112 # Commands used to finish a libtool library installation in a directory.
18113 finish_cmds=$lt_finish_cmds
18115 # Same as above, but a single script fragment to be evaled but not shown.
18116 finish_eval=$lt_finish_eval
18118 # Take the output of nm and produce a listing of raw symbols and C names.
18119 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18121 # Transform the output of nm in a proper C declaration
18122 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18124 # Transform the output of nm in a C name address pair
18125 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18127 # This is the shared library runtime path variable.
18128 runpath_var=$runpath_var
18130 # This is the shared library path variable.
18131 shlibpath_var=$shlibpath_var
18133 # Is shlibpath searched before the hard-coded library search path?
18134 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18136 # How to hardcode a shared library path into an executable.
18137 hardcode_action=$hardcode_action_GCJ
18139 # Whether we should hardcode library paths into libraries.
18140 hardcode_into_libs=$hardcode_into_libs
18142 # Flag to hardcode \$libdir into a binary during linking.
18143 # This must work even if \$libdir does not exist.
18144 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18146 # If ld is used when linking, flag to hardcode \$libdir into
18147 # a binary during linking. This must work even if \$libdir does
18149 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18151 # Whether we need a single -rpath flag with a separated argument.
18152 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18154 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18155 # resulting binary.
18156 hardcode_direct=$hardcode_direct_GCJ
18158 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18159 # resulting binary.
18160 hardcode_minus_L=$hardcode_minus_L_GCJ
18162 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18163 # the resulting binary.
18164 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18166 # Set to yes if building a shared library automatically hardcodes DIR into the library
18167 # and all subsequent libraries and executables linked against it.
18168 hardcode_automatic=$hardcode_automatic_GCJ
18170 # Variables whose values should be saved in libtool wrapper scripts and
18171 # restored at relink time.
18172 variables_saved_for_relink="$variables_saved_for_relink"
18174 # Whether libtool must link a program against all its dependency libraries.
18175 link_all_deplibs=$link_all_deplibs_GCJ
18177 # Compile-time system search path for libraries
18178 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18180 # Run-time system search path for libraries
18181 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18183 # Fix the shell variable \$srcfile for the compiler.
18184 fix_srcfile_path="$fix_srcfile_path_GCJ"
18186 # Set to yes if exported symbols are required.
18187 always_export_symbols=$always_export_symbols_GCJ
18189 # The commands to list exported symbols.
18190 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18192 # The commands to extract the exported symbol list from a shared archive.
18193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18195 # Symbols that should not be listed in the preloaded symbols.
18196 exclude_expsyms=$lt_exclude_expsyms_GCJ
18198 # Symbols that must always be exported.
18199 include_expsyms=$lt_include_expsyms_GCJ
18201 # ### END LIBTOOL TAG CONFIG: $tagname
18207 # If there is no Makefile yet, we rely on a make rule to execute
18208 # `config.status --recheck' to rerun these tests and create the
18209 # libtool script then.
18210 test -f Makefile && make "$ltmain"
18215 ac_cpp='$CPP $CPPFLAGS'
18216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18231 # Source file extension for RC test sources.
18234 # Object file extension for compiled RC test sources.
18238 # Code to be used in simple compile tests
18239 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18241 # Code to be used in simple link tests
18242 lt_simple_link_test_code="$lt_simple_compile_test_code"
18244 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18246 # If no C compiler was specified, use CC.
18249 # Allow CC to be a program name with arguments.
18253 # Allow CC to be a program name with arguments.
18258 lt_cv_prog_compiler_c_o_RC=yes
18260 # The else clause should only fire when bootstrapping the
18261 # libtool distribution, otherwise you forgot to ship ltmain.sh
18262 # with your package, and you will get complaints that there are
18263 # no rules to generate ltmain.sh.
18264 if test -f "$ltmain"; then
18265 # See if we are running on zsh, and set the options which allow our commands through
18266 # without removal of \ escapes.
18267 if test -n "${ZSH_VERSION+set}" ; then
18268 setopt NO_GLOB_SUBST
18270 # Now quote all the things that may contain metacharacters while being
18271 # careful not to overquote the AC_SUBSTed values. We take copies of the
18272 # variables and quote the copies for generation of the libtool script.
18273 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18274 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18275 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18276 deplibs_check_method reload_flag reload_cmds need_locks \
18277 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18278 lt_cv_sys_global_symbol_to_c_name_address \
18279 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18280 old_postinstall_cmds old_postuninstall_cmds \
18284 lt_prog_compiler_wl_RC \
18285 lt_prog_compiler_pic_RC \
18286 lt_prog_compiler_static_RC \
18287 lt_prog_compiler_no_builtin_flag_RC \
18288 export_dynamic_flag_spec_RC \
18289 thread_safe_flag_spec_RC \
18290 whole_archive_flag_spec_RC \
18291 enable_shared_with_static_runtimes_RC \
18292 old_archive_cmds_RC \
18293 old_archive_from_new_cmds_RC \
18294 predep_objects_RC \
18295 postdep_objects_RC \
18298 compiler_lib_search_path_RC \
18300 archive_expsym_cmds_RC \
18301 postinstall_cmds_RC \
18302 postuninstall_cmds_RC \
18303 old_archive_from_expsyms_cmds_RC \
18304 allow_undefined_flag_RC \
18305 no_undefined_flag_RC \
18306 export_symbols_cmds_RC \
18307 hardcode_libdir_flag_spec_RC \
18308 hardcode_libdir_flag_spec_ld_RC \
18309 hardcode_libdir_separator_RC \
18310 hardcode_automatic_RC \
18312 module_expsym_cmds_RC \
18313 lt_cv_prog_compiler_c_o_RC \
18314 exclude_expsyms_RC \
18315 include_expsyms_RC; do
18318 old_archive_cmds_RC | \
18319 old_archive_from_new_cmds_RC | \
18320 archive_cmds_RC | \
18321 archive_expsym_cmds_RC | \
18323 module_expsym_cmds_RC | \
18324 old_archive_from_expsyms_cmds_RC | \
18325 export_symbols_cmds_RC | \
18326 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18327 postinstall_cmds | postuninstall_cmds | \
18328 old_postinstall_cmds | old_postuninstall_cmds | \
18329 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18330 # Double-quote double-evaled strings.
18331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18340 *'\$0 --fallback-echo"')
18341 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18347 cat <<__EOF__ >> "$cfgfile"
18348 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18350 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18352 # Shell to use when invoking shell scripts.
18355 # Whether or not to build shared libraries.
18356 build_libtool_libs=$enable_shared
18358 # Whether or not to build static libraries.
18359 build_old_libs=$enable_static
18361 # Whether or not to add -lc for building shared libraries.
18362 build_libtool_need_lc=$archive_cmds_need_lc_RC
18364 # Whether or not to disallow shared libs when runtime libs are static
18365 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18367 # Whether or not to optimize for fast installation.
18368 fast_install=$enable_fast_install
18371 host_alias=$host_alias
18374 # An echo program that does not interpret backslashes.
18379 AR_FLAGS=$lt_AR_FLAGS
18384 # A language-specific compiler.
18387 # Is the compiler the GNU C compiler?
18393 # The linker used to build libraries.
18396 # Whether we need hard or soft links.
18399 # A BSD-compatible nm program.
18402 # A symbol stripping program
18405 # Used to examine libraries when file_magic_cmd begins "file"
18406 MAGIC_CMD=$MAGIC_CMD
18408 # Used on cygwin: DLL creation program.
18411 # Used on cygwin: object dumper.
18414 # Used on cygwin: assembler.
18417 # The name of the directory that contains temporary libtool files.
18420 # How to create reloadable object files.
18421 reload_flag=$lt_reload_flag
18422 reload_cmds=$lt_reload_cmds
18424 # How to pass a linker flag through the compiler.
18425 wl=$lt_lt_prog_compiler_wl_RC
18427 # Object file suffix (normally "o").
18428 objext="$ac_objext"
18430 # Old archive suffix (normally "a").
18433 # Shared library suffix (normally ".so").
18436 # Executable file suffix (normally "").
18439 # Additional compiler flags for building library objects.
18440 pic_flag=$lt_lt_prog_compiler_pic_RC
18443 # What is the maximum length of a command?
18444 max_cmd_len=$lt_cv_sys_max_cmd_len
18446 # Does compiler simultaneously support -c and -o options?
18447 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18449 # Must we lock files when doing compilation ?
18450 need_locks=$lt_need_locks
18452 # Do we need the lib prefix for modules?
18453 need_lib_prefix=$need_lib_prefix
18455 # Do we need a version for libraries?
18456 need_version=$need_version
18458 # Whether dlopen is supported.
18459 dlopen_support=$enable_dlopen
18461 # Whether dlopen of programs is supported.
18462 dlopen_self=$enable_dlopen_self
18464 # Whether dlopen of statically linked programs is supported.
18465 dlopen_self_static=$enable_dlopen_self_static
18467 # Compiler flag to prevent dynamic linking.
18468 link_static_flag=$lt_lt_prog_compiler_static_RC
18470 # Compiler flag to turn off builtin functions.
18471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18473 # Compiler flag to allow reflexive dlopens.
18474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18476 # Compiler flag to generate shared objects directly from archives.
18477 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18479 # Compiler flag to generate thread-safe objects.
18480 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18482 # Library versioning type.
18483 version_type=$version_type
18485 # Format of library name prefix.
18486 libname_spec=$lt_libname_spec
18488 # List of archive names. First name is the real one, the rest are links.
18489 # The last name is the one that the linker finds with -lNAME.
18490 library_names_spec=$lt_library_names_spec
18492 # The coded name of the library, if different from the real name.
18493 soname_spec=$lt_soname_spec
18495 # Commands used to build and install an old-style archive.
18497 old_archive_cmds=$lt_old_archive_cmds_RC
18498 old_postinstall_cmds=$lt_old_postinstall_cmds
18499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18501 # Create an old-style archive from a shared archive.
18502 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18504 # Create a temporary old-style archive to link instead of a shared archive.
18505 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18507 # Commands used to build and install a shared archive.
18508 archive_cmds=$lt_archive_cmds_RC
18509 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18510 postinstall_cmds=$lt_postinstall_cmds
18511 postuninstall_cmds=$lt_postuninstall_cmds
18513 # Commands used to build a loadable module (assumed same as above if empty)
18514 module_cmds=$lt_module_cmds_RC
18515 module_expsym_cmds=$lt_module_expsym_cmds_RC
18517 # Commands to strip libraries.
18518 old_striplib=$lt_old_striplib
18519 striplib=$lt_striplib
18521 # Dependencies to place before the objects being linked to create a
18523 predep_objects=$lt_predep_objects_RC
18525 # Dependencies to place after the objects being linked to create a
18527 postdep_objects=$lt_postdep_objects_RC
18529 # Dependencies to place before the objects being linked to create a
18531 predeps=$lt_predeps_RC
18533 # Dependencies to place after the objects being linked to create a
18535 postdeps=$lt_postdeps_RC
18537 # The library search path used internally by the compiler when linking
18538 # a shared library.
18539 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18541 # Method to check whether dependent libraries are shared objects.
18542 deplibs_check_method=$lt_deplibs_check_method
18544 # Command to use when deplibs_check_method == file_magic.
18545 file_magic_cmd=$lt_file_magic_cmd
18547 # Flag that allows shared libraries with undefined symbols to be built.
18548 allow_undefined_flag=$lt_allow_undefined_flag_RC
18550 # Flag that forces no undefined symbols.
18551 no_undefined_flag=$lt_no_undefined_flag_RC
18553 # Commands used to finish a libtool library installation in a directory.
18554 finish_cmds=$lt_finish_cmds
18556 # Same as above, but a single script fragment to be evaled but not shown.
18557 finish_eval=$lt_finish_eval
18559 # Take the output of nm and produce a listing of raw symbols and C names.
18560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18562 # Transform the output of nm in a proper C declaration
18563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18565 # Transform the output of nm in a C name address pair
18566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18568 # This is the shared library runtime path variable.
18569 runpath_var=$runpath_var
18571 # This is the shared library path variable.
18572 shlibpath_var=$shlibpath_var
18574 # Is shlibpath searched before the hard-coded library search path?
18575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18577 # How to hardcode a shared library path into an executable.
18578 hardcode_action=$hardcode_action_RC
18580 # Whether we should hardcode library paths into libraries.
18581 hardcode_into_libs=$hardcode_into_libs
18583 # Flag to hardcode \$libdir into a binary during linking.
18584 # This must work even if \$libdir does not exist.
18585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18587 # If ld is used when linking, flag to hardcode \$libdir into
18588 # a binary during linking. This must work even if \$libdir does
18590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18592 # Whether we need a single -rpath flag with a separated argument.
18593 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18595 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18596 # resulting binary.
18597 hardcode_direct=$hardcode_direct_RC
18599 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18600 # resulting binary.
18601 hardcode_minus_L=$hardcode_minus_L_RC
18603 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18604 # the resulting binary.
18605 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18607 # Set to yes if building a shared library automatically hardcodes DIR into the library
18608 # and all subsequent libraries and executables linked against it.
18609 hardcode_automatic=$hardcode_automatic_RC
18611 # Variables whose values should be saved in libtool wrapper scripts and
18612 # restored at relink time.
18613 variables_saved_for_relink="$variables_saved_for_relink"
18615 # Whether libtool must link a program against all its dependency libraries.
18616 link_all_deplibs=$link_all_deplibs_RC
18618 # Compile-time system search path for libraries
18619 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18621 # Run-time system search path for libraries
18622 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18624 # Fix the shell variable \$srcfile for the compiler.
18625 fix_srcfile_path="$fix_srcfile_path_RC"
18627 # Set to yes if exported symbols are required.
18628 always_export_symbols=$always_export_symbols_RC
18630 # The commands to list exported symbols.
18631 export_symbols_cmds=$lt_export_symbols_cmds_RC
18633 # The commands to extract the exported symbol list from a shared archive.
18634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18636 # Symbols that should not be listed in the preloaded symbols.
18637 exclude_expsyms=$lt_exclude_expsyms_RC
18639 # Symbols that must always be exported.
18640 include_expsyms=$lt_include_expsyms_RC
18642 # ### END LIBTOOL TAG CONFIG: $tagname
18648 # If there is no Makefile yet, we rely on a make rule to execute
18649 # `config.status --recheck' to rerun these tests and create the
18650 # libtool script then.
18651 test -f Makefile && make "$ltmain"
18656 ac_cpp='$CPP $CPPFLAGS'
18657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18666 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18667 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18668 { (exit 1); exit 1; }; }
18672 # Append the new tag name to the list of available tags.
18673 if test -n "$tagname" ; then
18674 available_tags="$available_tags $tagname"
18680 # Now substitute the updated list of available tags.
18681 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18682 mv "${ofile}T" "$ofile"
18686 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18687 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18688 { (exit 1); exit 1; }; }
18694 # This can be used to rebuild libtool when needed
18695 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18697 # Always use our own libtool.
18698 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18700 # Prevent multiple expansion
18722 # Extract the first word of "dot", so it can be a program name with args.
18723 set dummy dot; ac_word=$2
18724 echo "$as_me:$LINENO: checking for $ac_word" >&5
18725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18726 if test "${ac_cv_path_DOT+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18735 for as_dir in $PATH
18738 test -z "$as_dir" && as_dir=.
18739 for ac_exec_ext in '' $ac_executable_extensions; do
18740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18741 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18748 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18752 DOT=$ac_cv_path_DOT
18754 if test -n "$DOT"; then
18755 echo "$as_me:$LINENO: result: $DOT" >&5
18756 echo "${ECHO_T}$DOT" >&6
18758 echo "$as_me:$LINENO: result: no" >&5
18759 echo "${ECHO_T}no" >&6
18762 # Extract the first word of "etags", so it can be a program name with args.
18763 set dummy etags; ac_word=$2
18764 echo "$as_me:$LINENO: checking for $ac_word" >&5
18765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18766 if test "${ac_cv_path_ETAGS+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18771 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18775 for as_dir in $PATH
18778 test -z "$as_dir" && as_dir=.
18779 for ac_exec_ext in '' $ac_executable_extensions; do
18780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18781 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18788 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18792 ETAGS=$ac_cv_path_ETAGS
18794 if test -n "$ETAGS"; then
18795 echo "$as_me:$LINENO: result: $ETAGS" >&5
18796 echo "${ECHO_T}$ETAGS" >&6
18798 echo "$as_me:$LINENO: result: no" >&5
18799 echo "${ECHO_T}no" >&6
18802 etags_version=`$ETAGS --version 2>&1`
18803 case "$etags_version" in
18804 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18805 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18806 *) ETAGSFLAGS="" ;;
18808 ETAGSFLAGS=$ETAGSFLAGS
18810 # Extract the first word of "python", so it can be a program name with args.
18811 set dummy python; ac_word=$2
18812 echo "$as_me:$LINENO: checking for $ac_word" >&5
18813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18814 if test "${ac_cv_path_PYTHON+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823 for as_dir in $PATH
18826 test -z "$as_dir" && as_dir=.
18827 for ac_exec_ext in '' $ac_executable_extensions; do
18828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18829 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18836 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18840 PYTHON=$ac_cv_path_PYTHON
18842 if test -n "$PYTHON"; then
18843 echo "$as_me:$LINENO: result: $PYTHON" >&5
18844 echo "${ECHO_T}$PYTHON" >&6
18846 echo "$as_me:$LINENO: result: no" >&5
18847 echo "${ECHO_T}no" >&6
18850 if test "$PYTHON" = "false"
18852 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18853 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18855 # Extract the first word of "qmtest", so it can be a program name with args.
18856 set dummy qmtest; ac_word=$2
18857 echo "$as_me:$LINENO: checking for $ac_word" >&5
18858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18859 if test "${ac_cv_path_QMTEST+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18868 for as_dir in $PATH
18871 test -z "$as_dir" && as_dir=.
18872 for ac_exec_ext in '' $ac_executable_extensions; do
18873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18874 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18881 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18885 QMTEST=$ac_cv_path_QMTEST
18887 if test -n "$QMTEST"; then
18888 echo "$as_me:$LINENO: result: $QMTEST" >&5
18889 echo "${ECHO_T}$QMTEST" >&6
18891 echo "$as_me:$LINENO: result: no" >&5
18892 echo "${ECHO_T}no" >&6
18895 if test "$QMTEST" = "false"
18897 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18898 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18901 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18902 pymajor=`echo $pyversion | cut -d. -f1`
18903 pyminor=`echo $pyversion | cut -d. -f2`
18905 if test "$pymajor" -ge "2"
18907 if test "$pymajor" -eq "2"
18909 if test "$pyminor" -lt "2"
18911 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18912 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18917 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18923 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18924 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18925 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 ac_check_lib_save_LIBS=$LIBS
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18937 /* Override any gcc2 internal prototype to avoid an error. */
18941 /* We use char because int might match the return type of a gcc2
18942 builtin and then its argument prototype would still apply. */
18952 rm -f conftest.$ac_objext conftest$ac_exeext
18953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18954 (eval $ac_link) 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try='test -z "$ac_c_werror_flag"
18962 || test ! -s conftest.err'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; } &&
18968 { ac_try='test -s conftest$ac_exeext'
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18974 ac_cv_lib_elf_elf_begin=yes
18976 echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18979 ac_cv_lib_elf_elf_begin=no
18981 rm -f conftest.err conftest.$ac_objext \
18982 conftest$ac_exeext conftest.$ac_ext
18983 LIBS=$ac_check_lib_save_LIBS
18985 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18986 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18987 if test $ac_cv_lib_elf_elf_begin = yes; then
18988 cat >>confdefs.h <<_ACEOF
18989 #define HAVE_LIBELF 1
18997 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18998 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18999 if test "${ac_cv_search_dlopen+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 ac_func_search_save_LIBS=$LIBS
19003 ac_cv_search_dlopen=no
19004 cat >conftest.$ac_ext <<_ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19011 /* Override any gcc2 internal prototype to avoid an error. */
19015 /* We use char because int might match the return type of a gcc2
19016 builtin and then its argument prototype would still apply. */
19026 rm -f conftest.$ac_objext conftest$ac_exeext
19027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19028 (eval $ac_link) 2>conftest.er1
19030 grep -v '^ *+' conftest.er1 >conftest.err
19032 cat conftest.err >&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } &&
19035 { ac_try='test -z "$ac_c_werror_flag"
19036 || test ! -s conftest.err'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; } &&
19042 { ac_try='test -s conftest$ac_exeext'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 ac_cv_search_dlopen="none required"
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19054 rm -f conftest.err conftest.$ac_objext \
19055 conftest$ac_exeext conftest.$ac_ext
19056 if test "$ac_cv_search_dlopen" = no; then
19057 for ac_lib in dl; do
19058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19059 cat >conftest.$ac_ext <<_ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19066 /* Override any gcc2 internal prototype to avoid an error. */
19070 /* We use char because int might match the return type of a gcc2
19071 builtin and then its argument prototype would still apply. */
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19083 (eval $ac_link) 2>conftest.er1
19085 grep -v '^ *+' conftest.er1 >conftest.err
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
19090 { ac_try='test -z "$ac_c_werror_flag"
19091 || test ! -s conftest.err'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; } &&
19097 { ac_try='test -s conftest$ac_exeext'
19098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; }; then
19103 ac_cv_search_dlopen="-l$ac_lib"
19106 echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19110 rm -f conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
19114 LIBS=$ac_func_search_save_LIBS
19116 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19117 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19118 if test "$ac_cv_search_dlopen" != no; then
19119 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE_DLOPEN 1
19126 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19127 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19131 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19132 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19133 if test "${ac_cv_search_mallinfo+set}" = set; then
19134 echo $ECHO_N "(cached) $ECHO_C" >&6
19136 ac_func_search_save_LIBS=$LIBS
19137 ac_cv_search_mallinfo=no
19138 cat >conftest.$ac_ext <<_ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19145 /* Override any gcc2 internal prototype to avoid an error. */
19149 /* We use char because int might match the return type of a gcc2
19150 builtin and then its argument prototype would still apply. */
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19162 (eval $ac_link) 2>conftest.er1
19164 grep -v '^ *+' conftest.er1 >conftest.err
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } &&
19169 { ac_try='test -z "$ac_c_werror_flag"
19170 || test ! -s conftest.err'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest$ac_exeext'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_cv_search_mallinfo="none required"
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19188 rm -f conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext conftest.$ac_ext
19190 if test "$ac_cv_search_mallinfo" = no; then
19191 for ac_lib in malloc; do
19192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19200 /* Override any gcc2 internal prototype to avoid an error. */
19204 /* We use char because int might match the return type of a gcc2
19205 builtin and then its argument prototype would still apply. */
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217 (eval $ac_link) 2>conftest.er1
19219 grep -v '^ *+' conftest.er1 >conftest.err
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_c_werror_flag"
19225 || test ! -s conftest.err'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try='test -s conftest$ac_exeext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_cv_search_mallinfo="-l$ac_lib"
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19244 rm -f conftest.err conftest.$ac_objext \
19245 conftest$ac_exeext conftest.$ac_ext
19248 LIBS=$ac_func_search_save_LIBS
19250 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19251 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19252 if test "$ac_cv_search_mallinfo" != no; then
19253 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19255 cat >>confdefs.h <<\_ACEOF
19256 #define HAVE_MALLINFO 1
19262 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19263 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19264 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 ac_func_search_save_LIBS=$LIBS
19268 ac_cv_search_pthread_mutex_lock=no
19269 cat >conftest.$ac_ext <<_ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19276 /* Override any gcc2 internal prototype to avoid an error. */
19280 /* We use char because int might match the return type of a gcc2
19281 builtin and then its argument prototype would still apply. */
19282 char pthread_mutex_lock ();
19286 pthread_mutex_lock ();
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19293 (eval $ac_link) 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -z "$ac_c_werror_flag"
19301 || test ! -s conftest.err'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try='test -s conftest$ac_exeext'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313 ac_cv_search_pthread_mutex_lock="none required"
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19319 rm -f conftest.err conftest.$ac_objext \
19320 conftest$ac_exeext conftest.$ac_ext
19321 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19322 for ac_lib in pthread; do
19323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19331 /* Override any gcc2 internal prototype to avoid an error. */
19335 /* We use char because int might match the return type of a gcc2
19336 builtin and then its argument prototype would still apply. */
19337 char pthread_mutex_lock ();
19341 pthread_mutex_lock ();
19346 rm -f conftest.$ac_objext conftest$ac_exeext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19348 (eval $ac_link) 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag"
19356 || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest$ac_exeext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19375 rm -f conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19379 LIBS=$ac_func_search_save_LIBS
19381 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19382 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19383 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19384 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19385 HAVE_PTHREAD_MUTEX_LOCK=1
19387 HAVE_PTHREAD_MUTEX_LOCK=0
19392 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19394 if test "${ac_cv_header_stdc+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19397 cat >conftest.$ac_ext <<_ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19403 #include <stdlib.h>
19404 #include <stdarg.h>
19405 #include <string.h>
19416 rm -f conftest.$ac_objext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418 (eval $ac_compile) 2>conftest.er1
19420 grep -v '^ *+' conftest.er1 >conftest.err
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest.$ac_objext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_header_stdc=yes
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 ac_cv_header_stdc=no
19445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19447 if test $ac_cv_header_stdc = yes; then
19448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19449 cat >conftest.$ac_ext <<_ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19455 #include <string.h>
19458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19459 $EGREP "memchr" >/dev/null 2>&1; then
19462 ac_cv_header_stdc=no
19468 if test $ac_cv_header_stdc = yes; then
19469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19476 #include <stdlib.h>
19479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19480 $EGREP "free" >/dev/null 2>&1; then
19483 ac_cv_header_stdc=no
19489 if test $ac_cv_header_stdc = yes; then
19490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19491 if test "$cross_compiling" = yes; then
19494 cat >conftest.$ac_ext <<_ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19501 #if ((' ' & 0x0FF) == 0x020)
19502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19505 # define ISLOWER(c) \
19506 (('a' <= (c) && (c) <= 'i') \
19507 || ('j' <= (c) && (c) <= 'r') \
19508 || ('s' <= (c) && (c) <= 'z'))
19509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19517 for (i = 0; i < 256; i++)
19518 if (XOR (islower (i), ISLOWER (i))
19519 || toupper (i) != TOUPPER (i))
19524 rm -f conftest$ac_exeext
19525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19526 (eval $ac_link) 2>&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19537 echo "$as_me: program exited with status $ac_status" >&5
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 ( exit $ac_status )
19542 ac_cv_header_stdc=no
19544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19548 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19549 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19550 if test $ac_cv_header_stdc = yes; then
19552 cat >>confdefs.h <<\_ACEOF
19553 #define STDC_HEADERS 1
19558 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19559 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19560 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19563 cat >conftest.$ac_ext <<_ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h. */
19569 #include <sys/types.h>
19570 #include <sys/wait.h>
19571 #ifndef WEXITSTATUS
19572 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19575 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19583 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19588 rm -f conftest.$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590 (eval $ac_compile) 2>conftest.er1
19592 grep -v '^ *+' conftest.er1 >conftest.err
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag"
19598 || test ! -s conftest.err'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; } &&
19604 { ac_try='test -s conftest.$ac_objext'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19610 ac_cv_header_sys_wait_h=yes
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19615 ac_cv_header_sys_wait_h=no
19617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19619 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19620 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19621 if test $ac_cv_header_sys_wait_h = yes; then
19623 cat >>confdefs.h <<\_ACEOF
19624 #define HAVE_SYS_WAIT_H 1
19641 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
19643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19645 echo "$as_me:$LINENO: checking for $ac_header" >&5
19646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19653 # Is the header compilable?
19654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19656 cat >conftest.$ac_ext <<_ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 $ac_includes_default
19663 #include <$ac_header>
19665 rm -f conftest.$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667 (eval $ac_compile) 2>conftest.er1
19669 grep -v '^ *+' conftest.er1 >conftest.err
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_c_werror_flag"
19675 || test ! -s conftest.err'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
19687 ac_header_compiler=yes
19689 echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19692 ac_header_compiler=no
19694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19696 echo "${ECHO_T}$ac_header_compiler" >&6
19698 # Is the header present?
19699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19701 cat >conftest.$ac_ext <<_ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19707 #include <$ac_header>
19709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19712 grep -v '^ *+' conftest.er1 >conftest.err
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } >/dev/null; then
19717 if test -s conftest.err; then
19718 ac_cpp_err=$ac_c_preproc_warn_flag
19719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19726 if test -z "$ac_cpp_err"; then
19727 ac_header_preproc=yes
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_header_preproc=no
19734 rm -f conftest.err conftest.$ac_ext
19735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19736 echo "${ECHO_T}$ac_header_preproc" >&6
19738 # So? What about this header?
19739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19745 ac_header_preproc=yes
19748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19762 ## ----------------------------------- ##
19763 ## Report this to llvmbugs@cs.uiuc.edu ##
19764 ## ----------------------------------- ##
19767 sed "s/^/$as_me: WARNING: /" >&2
19770 echo "$as_me:$LINENO: checking for $ac_header" >&5
19771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 eval "$as_ac_Header=\$ac_header_preproc"
19777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19782 cat >>confdefs.h <<_ACEOF
19783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19791 if test "${ac_cv_header_sys_types_h+set}" = set; then
19792 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19793 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19794 if test "${ac_cv_header_sys_types_h+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19798 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19800 # Is the header compilable?
19801 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19802 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19803 cat >conftest.$ac_ext <<_ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19809 $ac_includes_default
19810 #include <sys/types.h>
19812 rm -f conftest.$ac_objext
19813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19814 (eval $ac_compile) 2>conftest.er1
19816 grep -v '^ *+' conftest.er1 >conftest.err
19818 cat conftest.err >&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } &&
19821 { ac_try='test -z "$ac_c_werror_flag"
19822 || test ! -s conftest.err'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; } &&
19828 { ac_try='test -s conftest.$ac_objext'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }; then
19834 ac_header_compiler=yes
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_header_compiler=no
19841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843 echo "${ECHO_T}$ac_header_compiler" >&6
19845 # Is the header present?
19846 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19847 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19848 cat >conftest.$ac_ext <<_ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 #include <sys/types.h>
19856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19859 grep -v '^ *+' conftest.er1 >conftest.err
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } >/dev/null; then
19864 if test -s conftest.err; then
19865 ac_cpp_err=$ac_c_preproc_warn_flag
19866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19873 if test -z "$ac_cpp_err"; then
19874 ac_header_preproc=yes
19876 echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ac_header_preproc=no
19881 rm -f conftest.err conftest.$ac_ext
19882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19883 echo "${ECHO_T}$ac_header_preproc" >&6
19885 # So? What about this header?
19886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19888 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19889 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19891 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19892 ac_header_preproc=yes
19895 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19896 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19898 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19899 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19900 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19901 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19902 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
19903 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19904 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19905 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19906 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19909 ## ----------------------------------- ##
19910 ## Report this to llvmbugs@cs.uiuc.edu ##
19911 ## ----------------------------------- ##
19914 sed "s/^/$as_me: WARNING: /" >&2
19917 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19918 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19919 if test "${ac_cv_header_sys_types_h+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19922 ac_cv_header_sys_types_h=$ac_header_preproc
19924 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19925 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19928 if test $ac_cv_header_sys_types_h = yes; then
19929 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19931 INCLUDE_SYS_TYPES_H=''
19936 if test "${ac_cv_header_inttypes_h+set}" = set; then
19937 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19938 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19939 if test "${ac_cv_header_inttypes_h+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19943 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19945 # Is the header compilable?
19946 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19947 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19948 cat >conftest.$ac_ext <<_ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19954 $ac_includes_default
19955 #include <inttypes.h>
19957 rm -f conftest.$ac_objext
19958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959 (eval $ac_compile) 2>conftest.er1
19961 grep -v '^ *+' conftest.er1 >conftest.err
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try='test -z "$ac_c_werror_flag"
19967 || test ! -s conftest.err'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_header_compiler=yes
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_header_compiler=no
19986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19988 echo "${ECHO_T}$ac_header_compiler" >&6
19990 # Is the header present?
19991 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19992 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19993 cat >conftest.$ac_ext <<_ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 #include <inttypes.h>
20001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20004 grep -v '^ *+' conftest.er1 >conftest.err
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } >/dev/null; then
20009 if test -s conftest.err; then
20010 ac_cpp_err=$ac_c_preproc_warn_flag
20011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20018 if test -z "$ac_cpp_err"; then
20019 ac_header_preproc=yes
20021 echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ac_header_preproc=no
20026 rm -f conftest.err conftest.$ac_ext
20027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20028 echo "${ECHO_T}$ac_header_preproc" >&6
20030 # So? What about this header?
20031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20033 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20034 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20035 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20036 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20037 ac_header_preproc=yes
20040 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20041 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20043 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20045 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20047 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20049 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20050 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20051 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20054 ## ----------------------------------- ##
20055 ## Report this to llvmbugs@cs.uiuc.edu ##
20056 ## ----------------------------------- ##
20059 sed "s/^/$as_me: WARNING: /" >&2
20062 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20063 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20064 if test "${ac_cv_header_inttypes_h+set}" = set; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20067 ac_cv_header_inttypes_h=$ac_header_preproc
20069 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20070 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20073 if test $ac_cv_header_inttypes_h = yes; then
20074 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20076 INCLUDE_INTTYPES_H=''
20081 if test "${ac_cv_header_stdint_h+set}" = set; then
20082 echo "$as_me:$LINENO: checking for stdint.h" >&5
20083 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20084 if test "${ac_cv_header_stdint_h+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20088 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20090 # Is the header compilable?
20091 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20092 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20093 cat >conftest.$ac_ext <<_ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099 $ac_includes_default
20100 #include <stdint.h>
20102 rm -f conftest.$ac_objext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104 (eval $ac_compile) 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
20111 { ac_try='test -z "$ac_c_werror_flag"
20112 || test ! -s conftest.err'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest.$ac_objext'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_header_compiler=yes
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ac_header_compiler=no
20131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20133 echo "${ECHO_T}$ac_header_compiler" >&6
20135 # Is the header present?
20136 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20137 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20138 cat >conftest.$ac_ext <<_ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144 #include <stdint.h>
20146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } >/dev/null; then
20154 if test -s conftest.err; then
20155 ac_cpp_err=$ac_c_preproc_warn_flag
20156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20163 if test -z "$ac_cpp_err"; then
20164 ac_header_preproc=yes
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ac_header_preproc=no
20171 rm -f conftest.err conftest.$ac_ext
20172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20173 echo "${ECHO_T}$ac_header_preproc" >&6
20175 # So? What about this header?
20176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20178 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20179 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20180 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20181 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20182 ac_header_preproc=yes
20185 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20186 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20188 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20190 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20192 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20194 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20196 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20199 ## ----------------------------------- ##
20200 ## Report this to llvmbugs@cs.uiuc.edu ##
20201 ## ----------------------------------- ##
20204 sed "s/^/$as_me: WARNING: /" >&2
20207 echo "$as_me:$LINENO: checking for stdint.h" >&5
20208 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20209 if test "${ac_cv_header_stdint_h+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 ac_cv_header_stdint_h=$ac_header_preproc
20214 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20215 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20218 if test $ac_cv_header_stdint_h = yes; then
20219 INCLUDE_STDINT_H='#include <stdint.h>'
20221 INCLUDE_STDINT_H=''
20228 echo "$as_me:$LINENO: checking for pid_t" >&5
20229 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20230 if test "${ac_cv_type_pid_t+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 cat >conftest.$ac_ext <<_ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20239 $ac_includes_default
20245 if (sizeof (pid_t))
20251 rm -f conftest.$ac_objext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20253 (eval $ac_compile) 2>conftest.er1
20255 grep -v '^ *+' conftest.er1 >conftest.err
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
20260 { ac_try='test -z "$ac_c_werror_flag"
20261 || test ! -s conftest.err'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; } &&
20267 { ac_try='test -s conftest.$ac_objext'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
20273 ac_cv_type_pid_t=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_cv_type_pid_t=no
20280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20282 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20283 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20284 if test $ac_cv_type_pid_t = yes; then
20288 cat >>confdefs.h <<_ACEOF
20294 echo "$as_me:$LINENO: checking for size_t" >&5
20295 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20296 if test "${ac_cv_type_size_t+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 cat >conftest.$ac_ext <<_ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 $ac_includes_default
20311 if (sizeof (size_t))
20317 rm -f conftest.$ac_objext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>conftest.er1
20321 grep -v '^ *+' conftest.er1 >conftest.err
20323 cat conftest.err >&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } &&
20326 { ac_try='test -z "$ac_c_werror_flag"
20327 || test ! -s conftest.err'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; } &&
20333 { ac_try='test -s conftest.$ac_objext'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_cv_type_size_t=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_cv_type_size_t=no
20346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20348 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20349 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20350 if test $ac_cv_type_size_t = yes; then
20354 cat >>confdefs.h <<_ACEOF
20355 #define size_t unsigned
20360 echo "$as_me:$LINENO: checking for int64_t" >&5
20361 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20362 if test "${ac_cv_type_int64_t+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 cat >conftest.$ac_ext <<_ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371 $ac_includes_default
20377 if (sizeof (int64_t))
20383 rm -f conftest.$ac_objext
20384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20385 (eval $ac_compile) 2>conftest.er1
20387 grep -v '^ *+' conftest.er1 >conftest.err
20389 cat conftest.err >&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } &&
20392 { ac_try='test -z "$ac_c_werror_flag"
20393 || test ! -s conftest.err'
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; } &&
20399 { ac_try='test -s conftest.$ac_objext'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20405 ac_cv_type_int64_t=yes
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_cv_type_int64_t=no
20412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20414 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20415 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20416 if test $ac_cv_type_int64_t = yes; then
20418 cat >>confdefs.h <<_ACEOF
20419 #define HAVE_INT64_T 1
20424 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20425 echo "$as_me: error: Type int64_t required but not found" >&2;}
20426 { (exit 1); exit 1; }; }
20429 echo "$as_me:$LINENO: checking for uint64_t" >&5
20430 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20431 if test "${ac_cv_type_uint64_t+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20434 cat >conftest.$ac_ext <<_ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20440 $ac_includes_default
20444 if ((uint64_t *) 0)
20446 if (sizeof (uint64_t))
20452 rm -f conftest.$ac_objext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20454 (eval $ac_compile) 2>conftest.er1
20456 grep -v '^ *+' conftest.er1 >conftest.err
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest.$ac_objext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 ac_cv_type_uint64_t=yes
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_cv_type_uint64_t=no
20481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20483 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20484 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20485 if test $ac_cv_type_uint64_t = yes; then
20487 cat >>confdefs.h <<_ACEOF
20488 #define HAVE_UINT64_T 1
20493 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20494 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20495 { (exit 1); exit 1; }; }
20498 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20499 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20500 if test "${ac_cv_header_time+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20503 cat >conftest.$ac_ext <<_ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 #include <sys/types.h>
20510 #include <sys/time.h>
20516 if ((struct tm *) 0)
20522 rm -f conftest.$ac_objext
20523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20524 (eval $ac_compile) 2>conftest.er1
20526 grep -v '^ *+' conftest.er1 >conftest.err
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } &&
20531 { ac_try='test -z "$ac_c_werror_flag"
20532 || test ! -s conftest.err'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; } &&
20538 { ac_try='test -s conftest.$ac_objext'
20539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540 (eval $ac_try) 2>&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; }; then
20544 ac_cv_header_time=yes
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 ac_cv_header_time=no
20551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20553 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20554 echo "${ECHO_T}$ac_cv_header_time" >&6
20555 if test $ac_cv_header_time = yes; then
20557 cat >>confdefs.h <<\_ACEOF
20558 #define TIME_WITH_SYS_TIME 1
20563 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20564 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20565 if test "${ac_cv_struct_tm+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 cat >conftest.$ac_ext <<_ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 #include <sys/types.h>
20580 struct tm *tp; tp->tm_sec;
20585 rm -f conftest.$ac_objext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587 (eval $ac_compile) 2>conftest.er1
20589 grep -v '^ *+' conftest.er1 >conftest.err
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
20594 { ac_try='test -z "$ac_c_werror_flag"
20595 || test ! -s conftest.err'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; } &&
20601 { ac_try='test -s conftest.$ac_objext'
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ac_cv_struct_tm=time.h
20609 echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20612 ac_cv_struct_tm=sys/time.h
20614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20616 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20617 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20618 if test $ac_cv_struct_tm = sys/time.h; then
20620 cat >>confdefs.h <<\_ACEOF
20621 #define TM_IN_SYS_TIME 1
20628 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20629 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20633 ac_cpp='$CPP $CPPFLAGS'
20634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20638 if test "$cross_compiling" = yes; then
20639 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20640 See \`config.log' for more details." >&5
20641 echo "$as_me: error: cannot run test program while cross compiling
20642 See \`config.log' for more details." >&2;}
20643 { (exit 1); exit 1; }; }
20645 cat >conftest.$ac_ext <<_ACEOF
20648 cat confdefs.h >>conftest.$ac_ext
20649 cat >>conftest.$ac_ext <<_ACEOF
20650 /* end confdefs.h. */
20652 #include <stdlib.h>
20657 volatile double A, B;
20661 sprintf(Buffer, "%a", A);
20665 if (A != 0x1.999999999999ap-4)
20672 rm -f conftest$ac_exeext
20673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20674 (eval $ac_link) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20685 echo "$as_me: program exited with status $ac_status" >&5
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20689 ( exit $ac_status )
20692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20695 ac_cpp='$CPP $CPPFLAGS'
20696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20700 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20701 echo "${ECHO_T}$ac_c_printf_a" >&6
20702 if test "$ac_c_printf_a" = "yes"; then
20704 cat >>confdefs.h <<\_ACEOF
20705 #define HAVE_PRINTF_A 1
20711 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20712 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20713 if test "${ac_cv_c_bigendian+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 # See if sys/param.h defines the BYTE_ORDER macro.
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20723 #include <sys/types.h>
20724 #include <sys/param.h>
20729 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20730 bogus endian macros
20737 rm -f conftest.$ac_objext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20739 (eval $ac_compile) 2>conftest.er1
20741 grep -v '^ *+' conftest.er1 >conftest.err
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_c_werror_flag"
20747 || test ! -s conftest.err'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest.$ac_objext'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 # It does; now see whether it defined to BIG_ENDIAN or not.
20760 cat >conftest.$ac_ext <<_ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 #include <sys/types.h>
20767 #include <sys/param.h>
20772 #if BYTE_ORDER != BIG_ENDIAN
20780 rm -f conftest.$ac_objext
20781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20782 (eval $ac_compile) 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_c_werror_flag"
20790 || test ! -s conftest.err'
20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792 (eval $ac_try) 2>&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; } &&
20796 { ac_try='test -s conftest.$ac_objext'
20797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798 (eval $ac_try) 2>&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; }; then
20802 ac_cv_c_bigendian=yes
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20807 ac_cv_c_bigendian=no
20809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 # It does not; compile a test program.
20815 if test "$cross_compiling" = yes; then
20816 # try to guess the endianness by grepping values into an object file
20817 ac_cv_c_bigendian=unknown
20818 cat >conftest.$ac_ext <<_ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20825 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20826 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20827 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20828 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20829 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20833 _ascii (); _ebcdic ();
20838 rm -f conftest.$ac_objext
20839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840 (eval $ac_compile) 2>conftest.er1
20842 grep -v '^ *+' conftest.er1 >conftest.err
20844 cat conftest.err >&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
20847 { ac_try='test -z "$ac_c_werror_flag"
20848 || test ! -s conftest.err'
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; } &&
20854 { ac_try='test -s conftest.$ac_objext'
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20861 ac_cv_c_bigendian=yes
20863 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20864 if test "$ac_cv_c_bigendian" = unknown; then
20865 ac_cv_c_bigendian=no
20867 # finding both strings is unlikely to happen, but who knows?
20868 ac_cv_c_bigendian=unknown
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20887 /* Are we little or big endian? From Harbison&Steele. */
20891 char c[sizeof (long)];
20894 exit (u.c[sizeof (long) - 1] == 1);
20897 rm -f conftest$ac_exeext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899 (eval $ac_link) 2>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 ac_cv_c_bigendian=no
20910 echo "$as_me: program exited with status $ac_status" >&5
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ( exit $ac_status )
20915 ac_cv_c_bigendian=yes
20917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20922 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20923 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20924 case $ac_cv_c_bigendian in
20932 { { echo "$as_me:$LINENO: error: unknown endianness
20933 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20934 echo "$as_me: error: unknown endianness
20935 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20936 { (exit 1); exit 1; }; } ;;
20940 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20941 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20942 if test "${ac_cv_cxx_namespaces+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 ac_cpp='$CXXCPP $CPPFLAGS'
20949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20953 cat >conftest.$ac_ext <<_ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20959 namespace Outer { namespace Inner { int i = 0; }}
20963 using namespace Outer::Inner; return i;
20968 rm -f conftest.$ac_objext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970 (eval $ac_compile) 2>conftest.er1
20972 grep -v '^ *+' conftest.er1 >conftest.err
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -z "$ac_cxx_werror_flag"
20978 || test ! -s conftest.err'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; } &&
20984 { ac_try='test -s conftest.$ac_objext'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
20990 ac_cv_cxx_namespaces=yes
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ac_cv_cxx_namespaces=no
20997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20999 ac_cpp='$CPP $CPPFLAGS'
21000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21006 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21007 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21008 if test "$ac_cv_cxx_namespaces" = yes; then
21010 cat >>confdefs.h <<\_ACEOF
21011 #define HAVE_NAMESPACES
21016 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21017 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21018 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21025 ac_cpp='$CXXCPP $CPPFLAGS'
21026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21030 cat >conftest.$ac_ext <<_ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21036 #include <ext/hash_map>
21037 #ifdef HAVE_NAMESPACES
21038 using namespace std;
21043 hash_map<int, int> t;
21048 rm -f conftest.$ac_objext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21050 (eval $ac_compile) 2>conftest.er1
21052 grep -v '^ *+' conftest.er1 >conftest.err
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } &&
21057 { ac_try='test -z "$ac_cxx_werror_flag"
21058 || test ! -s conftest.err'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; } &&
21064 { ac_try='test -s conftest.$ac_objext'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 ac_cv_cxx_have_std_ext_hash_map=yes
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_cv_cxx_have_std_ext_hash_map=no
21077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21079 ac_cpp='$CPP $CPPFLAGS'
21080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21085 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21086 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21087 HAVE_STD_EXT_HASH_MAP=0
21088 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21090 HAVE_STD_EXT_HASH_MAP=1
21093 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21094 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21095 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21102 ac_cpp='$CXXCPP $CPPFLAGS'
21103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21107 cat >conftest.$ac_ext <<_ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 #include <ext/hash_map>
21114 #ifdef HAVE_NAMESPACES
21115 using namespace __gnu_cxx;
21120 hash_map<int,int> t;
21125 rm -f conftest.$ac_objext
21126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21127 (eval $ac_compile) 2>conftest.er1
21129 grep -v '^ *+' conftest.er1 >conftest.err
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } &&
21134 { ac_try='test -z "$ac_cxx_werror_flag"
21135 || test ! -s conftest.err'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; } &&
21141 { ac_try='test -s conftest.$ac_objext'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
21147 ac_cv_cxx_have_gnu_ext_hash_map=yes
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21152 ac_cv_cxx_have_gnu_ext_hash_map=no
21154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21156 ac_cpp='$CPP $CPPFLAGS'
21157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21162 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21163 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21164 HAVE_GNU_EXT_HASH_MAP=0
21165 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21167 HAVE_GNU_EXT_HASH_MAP=1
21170 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21171 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21172 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 ac_cpp='$CXXCPP $CPPFLAGS'
21180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21184 cat >conftest.$ac_ext <<_ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h. */
21190 #include <hash_map>
21194 hash_map<int,int> t;
21199 rm -f conftest.$ac_objext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21201 (eval $ac_compile) 2>conftest.er1
21203 grep -v '^ *+' conftest.er1 >conftest.err
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try='test -z "$ac_cxx_werror_flag"
21209 || test ! -s conftest.err'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } &&
21215 { ac_try='test -s conftest.$ac_objext'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; }; then
21221 ac_cv_cxx_have_global_hash_map=yes
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 ac_cv_cxx_have_global_hash_map=no
21228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21230 ac_cpp='$CPP $CPPFLAGS'
21231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21236 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21237 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21238 HAVE_GLOBAL_HASH_MAP=0
21239 if test "$ac_cv_cxx_have_global_hash_map" = yes
21241 HAVE_GLOBAL_HASH_MAP=1
21244 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21245 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21246 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 ac_cpp='$CXXCPP $CPPFLAGS'
21254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21258 cat >conftest.$ac_ext <<_ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264 #include <ext/hash_set>
21265 #ifdef HAVE_NAMESPACES
21266 using namespace std;
21276 rm -f conftest.$ac_objext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21278 (eval $ac_compile) 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
21285 { ac_try='test -z "$ac_cxx_werror_flag"
21286 || test ! -s conftest.err'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
21298 ac_cv_cxx_have_std_ext_hash_set=yes
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 ac_cv_cxx_have_std_ext_hash_set=no
21305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21307 ac_cpp='$CPP $CPPFLAGS'
21308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21313 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21314 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21315 HAVE_STD_EXT_HASH_SET=0
21316 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21318 HAVE_STD_EXT_HASH_SET=1
21321 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21322 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21323 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 ac_cpp='$CXXCPP $CPPFLAGS'
21331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21335 cat >conftest.$ac_ext <<_ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341 #include <ext/hash_set>
21342 #ifdef HAVE_NAMESPACES
21343 using namespace __gnu_cxx;
21353 rm -f conftest.$ac_objext
21354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21355 (eval $ac_compile) 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } &&
21362 { ac_try='test -z "$ac_cxx_werror_flag"
21363 || test ! -s conftest.err'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; } &&
21369 { ac_try='test -s conftest.$ac_objext'
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 ac_cv_cxx_have_gnu_ext_hash_set=yes
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21380 ac_cv_cxx_have_gnu_ext_hash_set=no
21382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21384 ac_cpp='$CPP $CPPFLAGS'
21385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21390 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21391 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21392 HAVE_GNU_EXT_HASH_SET=0
21393 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21395 HAVE_GNU_EXT_HASH_SET=1
21398 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21399 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21400 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 ac_cpp='$CXXCPP $CPPFLAGS'
21408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21412 cat >conftest.$ac_ext <<_ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
21417 /* end confdefs.h. */
21418 #include <hash_set>
21422 hash_set<int> t; return 0;
21427 rm -f conftest.$ac_objext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21429 (eval $ac_compile) 2>conftest.er1
21431 grep -v '^ *+' conftest.er1 >conftest.err
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
21436 { ac_try='test -z "$ac_cxx_werror_flag"
21437 || test ! -s conftest.err'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_cv_cxx_have_global_hash_set=yes
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ac_cv_cxx_have_global_hash_set=no
21456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21458 ac_cpp='$CPP $CPPFLAGS'
21459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21464 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21465 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21466 HAVE_GLOBAL_HASH_SET=0
21467 if test "$ac_cv_cxx_have_global_hash_set" = yes
21469 HAVE_GLOBAL_HASH_SET=1
21472 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21473 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21474 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 ac_cpp='$CXXCPP $CPPFLAGS'
21482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21486 cat >conftest.$ac_ext <<_ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21492 #include <iterator>
21493 #ifdef HAVE_NAMESPACES
21494 using namespace std;
21499 iterator<int,int,int> t; return 0;
21504 rm -f conftest.$ac_objext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21506 (eval $ac_compile) 2>conftest.er1
21508 grep -v '^ *+' conftest.er1 >conftest.err
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
21513 { ac_try='test -z "$ac_cxx_werror_flag"
21514 || test ! -s conftest.err'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; } &&
21520 { ac_try='test -s conftest.$ac_objext'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 ac_cv_cxx_have_std_iterator=yes
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ac_cv_cxx_have_std_iterator=no
21533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21535 ac_cpp='$CPP $CPPFLAGS'
21536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21542 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21543 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21544 HAVE_STD_ITERATOR=0
21545 if test "$ac_cv_cxx_have_std_iterator" = yes
21547 HAVE_STD_ITERATOR=1
21550 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21551 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21552 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 ac_cpp='$CXXCPP $CPPFLAGS'
21560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21564 cat >conftest.$ac_ext <<_ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 #include <iterator>
21571 #ifdef HAVE_NAMESPACES
21572 using namespace std;
21577 bidirectional_iterator<int,int> t; return 0;
21582 rm -f conftest.$ac_objext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21584 (eval $ac_compile) 2>conftest.er1
21586 grep -v '^ *+' conftest.er1 >conftest.err
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } &&
21591 { ac_try='test -z "$ac_cxx_werror_flag"
21592 || test ! -s conftest.err'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; } &&
21598 { ac_try='test -s conftest.$ac_objext'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 ac_cv_cxx_have_bi_iterator=yes
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 ac_cv_cxx_have_bi_iterator=no
21611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21613 ac_cpp='$CPP $CPPFLAGS'
21614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21620 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21621 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21623 if test "$ac_cv_cxx_have_bi_iterator" = yes
21628 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21629 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21630 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21637 ac_cpp='$CXXCPP $CPPFLAGS'
21638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21642 cat >conftest.$ac_ext <<_ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h. */
21648 #include <iterator>
21649 #ifdef HAVE_NAMESPACES
21650 using namespace std;
21655 forward_iterator<int,int> t; return 0;
21660 rm -f conftest.$ac_objext
21661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21662 (eval $ac_compile) 2>conftest.er1
21664 grep -v '^ *+' conftest.er1 >conftest.err
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } &&
21669 { ac_try='test -z "$ac_cxx_werror_flag"
21670 || test ! -s conftest.err'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; } &&
21676 { ac_try='test -s conftest.$ac_objext'
21677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678 (eval $ac_try) 2>&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; }; then
21682 ac_cv_cxx_have_fwd_iterator=yes
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ac_cv_cxx_have_fwd_iterator=no
21689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21691 ac_cpp='$CPP $CPPFLAGS'
21692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21698 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21699 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21700 HAVE_FWD_ITERATOR=0
21701 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21703 HAVE_FWD_ITERATOR=1
21708 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21709 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21710 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 ac_cpp='$CXXCPP $CPPFLAGS'
21715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21719 cat >conftest.$ac_ext <<_ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21726 int foo(float f) {return isnan(f);}
21728 rm -f conftest.$ac_objext
21729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21730 (eval $ac_compile) 2>conftest.er1
21732 grep -v '^ *+' conftest.er1 >conftest.err
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } &&
21737 { ac_try='test -z "$ac_cxx_werror_flag"
21738 || test ! -s conftest.err'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest.$ac_objext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_cv_func_isnan_in_math_h=yes
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_func_isnan_in_math_h=no
21757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21759 ac_cpp='$CPP $CPPFLAGS'
21760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21765 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21766 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21767 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21770 cat >>confdefs.h <<\_ACEOF
21771 #define HAVE_ISNAN_IN_MATH_H 1
21775 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21776 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21777 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 ac_cpp='$CXXCPP $CPPFLAGS'
21782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21786 cat >conftest.$ac_ext <<_ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21793 int foo(float f) {return isnan(f);}
21795 rm -f conftest.$ac_objext
21796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21797 (eval $ac_compile) 2>conftest.er1
21799 grep -v '^ *+' conftest.er1 >conftest.err
21801 cat conftest.err >&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } &&
21804 { ac_try='test -z "$ac_cxx_werror_flag"
21805 || test ! -s conftest.err'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; } &&
21811 { ac_try='test -s conftest.$ac_objext'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 ac_cv_func_isnan_in_cmath=yes
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21822 ac_cv_func_isnan_in_cmath=no
21824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21826 ac_cpp='$CPP $CPPFLAGS'
21827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21832 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21833 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21834 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21837 cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_ISNAN_IN_CMATH 1
21842 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21843 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21844 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21848 ac_cpp='$CXXCPP $CPPFLAGS'
21849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21853 cat >conftest.$ac_ext <<_ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21860 using std::isnan; int foo(float f) {return isnan(f);}
21862 rm -f conftest.$ac_objext
21863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21864 (eval $ac_compile) 2>conftest.er1
21866 grep -v '^ *+' conftest.er1 >conftest.err
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } &&
21871 { ac_try='test -z "$ac_cxx_werror_flag"
21872 || test ! -s conftest.err'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; } &&
21878 { ac_try='test -s conftest.$ac_objext'
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; }; then
21884 ac_cv_func_std_isnan_in_cmath=yes
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21889 ac_cv_func_std_isnan_in_cmath=no
21891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21893 ac_cpp='$CPP $CPPFLAGS'
21894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21899 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21900 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21901 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21904 cat >>confdefs.h <<\_ACEOF
21905 #define HAVE_STD_ISNAN_IN_CMATH 1
21911 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21912 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21913 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 ac_cpp='$CXXCPP $CPPFLAGS'
21918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21922 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21929 int foo(float f) {return isinf(f);}
21931 rm -f conftest.$ac_objext
21932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21933 (eval $ac_compile) 2>conftest.er1
21935 grep -v '^ *+' conftest.er1 >conftest.err
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } &&
21940 { ac_try='test -z "$ac_cxx_werror_flag"
21941 || test ! -s conftest.err'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; } &&
21947 { ac_try='test -s conftest.$ac_objext'
21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 ac_cv_func_isinf_in_math_h=yes
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ac_cv_func_isinf_in_math_h=no
21960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21962 ac_cpp='$CPP $CPPFLAGS'
21963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21968 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21969 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21970 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21973 cat >>confdefs.h <<\_ACEOF
21974 #define HAVE_ISINF_IN_MATH_H 1
21978 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21979 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21980 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21984 ac_cpp='$CXXCPP $CPPFLAGS'
21985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21989 cat >conftest.$ac_ext <<_ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h. */
21996 int foo(float f) {return isinf(f);}
21998 rm -f conftest.$ac_objext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22000 (eval $ac_compile) 2>conftest.er1
22002 grep -v '^ *+' conftest.er1 >conftest.err
22004 cat conftest.err >&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
22007 { ac_try='test -z "$ac_cxx_werror_flag"
22008 || test ! -s conftest.err'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; } &&
22014 { ac_try='test -s conftest.$ac_objext'
22015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 ac_cv_func_isinf_in_cmath=yes
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22025 ac_cv_func_isinf_in_cmath=no
22027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22029 ac_cpp='$CPP $CPPFLAGS'
22030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22035 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22036 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22037 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22040 cat >>confdefs.h <<\_ACEOF
22041 #define HAVE_ISINF_IN_CMATH 1
22045 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22046 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22047 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 ac_cpp='$CXXCPP $CPPFLAGS'
22052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22056 cat >conftest.$ac_ext <<_ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22063 using std::isinf; int foo(float f) {return isinf(f);}
22065 rm -f conftest.$ac_objext
22066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22067 (eval $ac_compile) 2>conftest.er1
22069 grep -v '^ *+' conftest.er1 >conftest.err
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } &&
22074 { ac_try='test -z "$ac_cxx_werror_flag"
22075 || test ! -s conftest.err'
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; } &&
22081 { ac_try='test -s conftest.$ac_objext'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; }; then
22087 ac_cv_func_std_isinf_in_cmath=yes
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22092 ac_cv_func_std_isinf_in_cmath=no
22094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22096 ac_cpp='$CPP $CPPFLAGS'
22097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22102 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22103 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22104 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22107 cat >>confdefs.h <<\_ACEOF
22108 #define HAVE_STD_ISINF_IN_CMATH 1
22112 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22113 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22114 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22115 echo $ECHO_N "(cached) $ECHO_C" >&6
22118 ac_cpp='$CXXCPP $CPPFLAGS'
22119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22123 cat >conftest.$ac_ext <<_ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22129 #include <ieeefp.h>
22130 int foo(float f) {return finite(f);}
22132 rm -f conftest.$ac_objext
22133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22134 (eval $ac_compile) 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
22141 { ac_try='test -z "$ac_cxx_werror_flag"
22142 || test ! -s conftest.err'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; } &&
22148 { ac_try='test -s conftest.$ac_objext'
22149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150 (eval $ac_try) 2>&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); }; }; then
22154 ac_cv_func_finite_in_ieeefp_h=yes
22156 echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22159 ac_cv_func_finite_in_ieeefp_h=no
22161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22163 ac_cpp='$CPP $CPPFLAGS'
22164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22169 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22170 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22171 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22174 cat >>confdefs.h <<\_ACEOF
22175 #define HAVE_FINITE_IN_IEEEFP_H 1
22181 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22182 # for constant arguments. Useless!
22183 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22184 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22185 if test "${ac_cv_working_alloca_h+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 #include <alloca.h>
22198 char *p = (char *) alloca (2 * sizeof (int));
22203 rm -f conftest.$ac_objext conftest$ac_exeext
22204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22205 (eval $ac_link) 2>conftest.er1
22207 grep -v '^ *+' conftest.er1 >conftest.err
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } &&
22212 { ac_try='test -z "$ac_c_werror_flag"
22213 || test ! -s conftest.err'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; } &&
22219 { ac_try='test -s conftest$ac_exeext'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
22225 ac_cv_working_alloca_h=yes
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230 ac_cv_working_alloca_h=no
22232 rm -f conftest.err conftest.$ac_objext \
22233 conftest$ac_exeext conftest.$ac_ext
22235 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22236 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22237 if test $ac_cv_working_alloca_h = yes; then
22239 cat >>confdefs.h <<\_ACEOF
22240 #define HAVE_ALLOCA_H 1
22245 echo "$as_me:$LINENO: checking for alloca" >&5
22246 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22247 if test "${ac_cv_func_alloca_works+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22257 # define alloca __builtin_alloca
22260 # include <malloc.h>
22261 # define alloca _alloca
22264 # include <alloca.h>
22269 # ifndef alloca /* predefined by HP cc +Olibcalls */
22280 char *p = (char *) alloca (1);
22285 rm -f conftest.$ac_objext conftest$ac_exeext
22286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22287 (eval $ac_link) 2>conftest.er1
22289 grep -v '^ *+' conftest.er1 >conftest.err
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } &&
22294 { ac_try='test -z "$ac_c_werror_flag"
22295 || test ! -s conftest.err'
22296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22297 (eval $ac_try) 2>&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }; } &&
22301 { ac_try='test -s conftest$ac_exeext'
22302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22303 (eval $ac_try) 2>&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }; }; then
22307 ac_cv_func_alloca_works=yes
22309 echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22312 ac_cv_func_alloca_works=no
22314 rm -f conftest.err conftest.$ac_objext \
22315 conftest$ac_exeext conftest.$ac_ext
22317 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22318 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22320 if test $ac_cv_func_alloca_works = yes; then
22322 cat >>confdefs.h <<\_ACEOF
22323 #define HAVE_ALLOCA 1
22327 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22328 # that cause trouble. Some versions do not even contain alloca or
22329 # contain a buggy version. If you still want to use their alloca,
22330 # use ar to extract alloca.o from them instead of compiling alloca.c.
22332 ALLOCA=alloca.$ac_objext
22334 cat >>confdefs.h <<\_ACEOF
22339 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22340 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22341 if test "${ac_cv_os_cray+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 #if defined(CRAY) && ! defined(CRAY2)
22357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22358 $EGREP "webecray" >/dev/null 2>&1; then
22366 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22367 echo "${ECHO_T}$ac_cv_os_cray" >&6
22368 if test $ac_cv_os_cray = yes; then
22369 for ac_func in _getb67 GETB67 getb67; do
22370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22371 echo "$as_me:$LINENO: checking for $ac_func" >&5
22372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22373 if eval "test \"\${$as_ac_var+set}\" = set"; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 cat >conftest.$ac_ext <<_ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22384 #define $ac_func innocuous_$ac_func
22386 /* System header to define __stub macros and hopefully few prototypes,
22387 which can conflict with char $ac_func (); below.
22388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22389 <limits.h> exists even on freestanding compilers. */
22392 # include <limits.h>
22394 # include <assert.h>
22399 /* Override any gcc2 internal prototype to avoid an error. */
22404 /* We use char because int might match the return type of a gcc2
22405 builtin and then its argument prototype would still apply. */
22407 /* The GNU C library defines this for functions which it implements
22408 to always fail with ENOSYS. Some functions are actually named
22409 something starting with __ and the normal name is an alias. */
22410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22413 char (*f) () = $ac_func;
22422 return f != $ac_func;
22427 rm -f conftest.$ac_objext conftest$ac_exeext
22428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22429 (eval $ac_link) 2>conftest.er1
22431 grep -v '^ *+' conftest.er1 >conftest.err
22433 cat conftest.err >&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } &&
22436 { ac_try='test -z "$ac_c_werror_flag"
22437 || test ! -s conftest.err'
22438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439 (eval $ac_try) 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); }; } &&
22443 { ac_try='test -s conftest$ac_exeext'
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; }; then
22449 eval "$as_ac_var=yes"
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 eval "$as_ac_var=no"
22456 rm -f conftest.err conftest.$ac_objext \
22457 conftest$ac_exeext conftest.$ac_ext
22459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22461 if test `eval echo '${'$as_ac_var'}'` = yes; then
22463 cat >>confdefs.h <<_ACEOF
22464 #define CRAY_STACKSEG_END $ac_func
22473 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22474 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22475 if test "${ac_cv_c_stack_direction+set}" = set; then
22476 echo $ECHO_N "(cached) $ECHO_C" >&6
22478 if test "$cross_compiling" = yes; then
22479 ac_cv_c_stack_direction=0
22481 cat >conftest.$ac_ext <<_ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22488 find_stack_direction ()
22490 static char *addr = 0;
22495 return find_stack_direction ();
22498 return (&dummy > addr) ? 1 : -1;
22504 exit (find_stack_direction () < 0);
22507 rm -f conftest$ac_exeext
22508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22509 (eval $ac_link) 2>&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; }; then
22518 ac_cv_c_stack_direction=1
22520 echo "$as_me: program exited with status $ac_status" >&5
22521 echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22524 ( exit $ac_status )
22525 ac_cv_c_stack_direction=-1
22527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22530 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22531 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22533 cat >>confdefs.h <<_ACEOF
22534 #define STACK_DIRECTION $ac_cv_c_stack_direction
22542 for ac_header in stdlib.h unistd.h
22544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22546 echo "$as_me:$LINENO: checking for $ac_header" >&5
22547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22549 echo $ECHO_N "(cached) $ECHO_C" >&6
22551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22554 # Is the header compilable?
22555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22557 cat >conftest.$ac_ext <<_ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22563 $ac_includes_default
22564 #include <$ac_header>
22566 rm -f conftest.$ac_objext
22567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22568 (eval $ac_compile) 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } &&
22575 { ac_try='test -z "$ac_c_werror_flag"
22576 || test ! -s conftest.err'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; } &&
22582 { ac_try='test -s conftest.$ac_objext'
22583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584 (eval $ac_try) 2>&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 ac_header_compiler=yes
22590 echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22593 ac_header_compiler=no
22595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22597 echo "${ECHO_T}$ac_header_compiler" >&6
22599 # Is the header present?
22600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22602 cat >conftest.$ac_ext <<_ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608 #include <$ac_header>
22610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22613 grep -v '^ *+' conftest.er1 >conftest.err
22615 cat conftest.err >&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } >/dev/null; then
22618 if test -s conftest.err; then
22619 ac_cpp_err=$ac_c_preproc_warn_flag
22620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22627 if test -z "$ac_cpp_err"; then
22628 ac_header_preproc=yes
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22633 ac_header_preproc=no
22635 rm -f conftest.err conftest.$ac_ext
22636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22637 echo "${ECHO_T}$ac_header_preproc" >&6
22639 # So? What about this header?
22640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22646 ac_header_preproc=yes
22649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22663 ## ----------------------------------- ##
22664 ## Report this to llvmbugs@cs.uiuc.edu ##
22665 ## ----------------------------------- ##
22668 sed "s/^/$as_me: WARNING: /" >&2
22671 echo "$as_me:$LINENO: checking for $ac_header" >&5
22672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22676 eval "$as_ac_Header=\$ac_header_preproc"
22678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22683 cat >>confdefs.h <<_ACEOF
22684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22692 for ac_func in getpagesize
22694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22695 echo "$as_me:$LINENO: checking for $ac_func" >&5
22696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22697 if eval "test \"\${$as_ac_var+set}\" = set"; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22700 cat >conftest.$ac_ext <<_ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22708 #define $ac_func innocuous_$ac_func
22710 /* System header to define __stub macros and hopefully few prototypes,
22711 which can conflict with char $ac_func (); below.
22712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22713 <limits.h> exists even on freestanding compilers. */
22716 # include <limits.h>
22718 # include <assert.h>
22723 /* Override any gcc2 internal prototype to avoid an error. */
22728 /* We use char because int might match the return type of a gcc2
22729 builtin and then its argument prototype would still apply. */
22731 /* The GNU C library defines this for functions which it implements
22732 to always fail with ENOSYS. Some functions are actually named
22733 something starting with __ and the normal name is an alias. */
22734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22737 char (*f) () = $ac_func;
22746 return f != $ac_func;
22751 rm -f conftest.$ac_objext conftest$ac_exeext
22752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22753 (eval $ac_link) 2>conftest.er1
22755 grep -v '^ *+' conftest.er1 >conftest.err
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } &&
22760 { ac_try='test -z "$ac_c_werror_flag"
22761 || test ! -s conftest.err'
22762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763 (eval $ac_try) 2>&5
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; } &&
22767 { ac_try='test -s conftest$ac_exeext'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; }; then
22773 eval "$as_ac_var=yes"
22775 echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22778 eval "$as_ac_var=no"
22780 rm -f conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
22783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22785 if test `eval echo '${'$as_ac_var'}'` = yes; then
22786 cat >>confdefs.h <<_ACEOF
22787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22793 echo "$as_me:$LINENO: checking for working mmap" >&5
22794 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22795 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22796 echo $ECHO_N "(cached) $ECHO_C" >&6
22798 if test "$cross_compiling" = yes; then
22799 ac_cv_func_mmap_fixed_mapped=no
22801 cat >conftest.$ac_ext <<_ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22807 $ac_includes_default
22808 /* malloc might have been renamed as rpl_malloc. */
22811 /* Thanks to Mike Haertel and Jim Avera for this test.
22812 Here is a matrix of mmap possibilities:
22813 mmap private not fixed
22814 mmap private fixed at somewhere currently unmapped
22815 mmap private fixed at somewhere already mapped
22816 mmap shared not fixed
22817 mmap shared fixed at somewhere currently unmapped
22818 mmap shared fixed at somewhere already mapped
22819 For private mappings, we should verify that changes cannot be read()
22820 back from the file, nor mmap's back from the file at a different
22821 address. (There have been systems where private was not correctly
22822 implemented like the infamous i386 svr4.0, and systems where the
22823 VM page cache was not coherent with the file system buffer cache
22824 like early versions of FreeBSD and possibly contemporary NetBSD.)
22825 For shared mappings, we should conversely verify that changes get
22826 propagated back to all the places they're supposed to be.
22828 Grep wants private fixed already mapped.
22829 The main things grep needs to know about mmap are:
22830 * does it exist and is it safe to write into the mmap'd area
22831 * how to use it (BSD variants) */
22834 #include <sys/mman.h>
22836 #if !STDC_HEADERS && !HAVE_STDLIB_H
22840 /* This mess was copied from the GNU getpagesize.h. */
22841 #if !HAVE_GETPAGESIZE
22842 /* Assume that all systems that can run configure have sys/param.h. */
22843 # if !HAVE_SYS_PARAM_H
22844 # define HAVE_SYS_PARAM_H 1
22847 # ifdef _SC_PAGESIZE
22848 # define getpagesize() sysconf(_SC_PAGESIZE)
22849 # else /* no _SC_PAGESIZE */
22850 # if HAVE_SYS_PARAM_H
22851 # include <sys/param.h>
22852 # ifdef EXEC_PAGESIZE
22853 # define getpagesize() EXEC_PAGESIZE
22854 # else /* no EXEC_PAGESIZE */
22856 # define getpagesize() NBPG * CLSIZE
22859 # endif /* no CLSIZE */
22860 # else /* no NBPG */
22862 # define getpagesize() NBPC
22863 # else /* no NBPC */
22865 # define getpagesize() PAGESIZE
22866 # endif /* PAGESIZE */
22867 # endif /* no NBPC */
22868 # endif /* no NBPG */
22869 # endif /* no EXEC_PAGESIZE */
22870 # else /* no HAVE_SYS_PARAM_H */
22871 # define getpagesize() 8192 /* punt totally */
22872 # endif /* no HAVE_SYS_PARAM_H */
22873 # endif /* no _SC_PAGESIZE */
22875 #endif /* no HAVE_GETPAGESIZE */
22880 char *data, *data2, *data3;
22884 pagesize = getpagesize ();
22886 /* First, make a file with some known garbage in it. */
22887 data = (char *) malloc (pagesize);
22890 for (i = 0; i < pagesize; ++i)
22891 *(data + i) = rand ();
22893 fd = creat ("conftest.mmap", 0600);
22896 if (write (fd, data, pagesize) != pagesize)
22900 /* Next, try to mmap the file at a fixed address which already has
22901 something else allocated at it. If we can, also make sure that
22902 we see the same garbage. */
22903 fd = open ("conftest.mmap", O_RDWR);
22906 data2 = (char *) malloc (2 * pagesize);
22909 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22913 for (i = 0; i < pagesize; ++i)
22914 if (*(data + i) != *(data2 + i))
22917 /* Finally, make sure that changes to the mapped area do not
22918 percolate back to the file as seen by read(). (This is a bug on
22919 some variants of i386 svr4.0.) */
22920 for (i = 0; i < pagesize; ++i)
22921 *(data2 + i) = *(data2 + i) + 1;
22922 data3 = (char *) malloc (pagesize);
22925 if (read (fd, data3, pagesize) != pagesize)
22927 for (i = 0; i < pagesize; ++i)
22928 if (*(data + i) != *(data3 + i))
22934 rm -f conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936 (eval $ac_link) 2>&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 ac_cv_func_mmap_fixed_mapped=yes
22947 echo "$as_me: program exited with status $ac_status" >&5
22948 echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22951 ( exit $ac_status )
22952 ac_cv_func_mmap_fixed_mapped=no
22954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22957 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22958 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22959 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22961 cat >>confdefs.h <<\_ACEOF
22962 #define HAVE_MMAP 1
22966 rm -f conftest.mmap
22968 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22970 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22971 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22973 echo "$as_me:$LINENO: checking for mmap of files" >&5
22974 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22975 if test "${ac_cv_func_mmap_file+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 ac_cpp='$CPP $CPPFLAGS'
22982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22986 if test "$cross_compiling" = yes; then
22987 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22988 See \`config.log' for more details." >&5
22989 echo "$as_me: error: cannot run test program while cross compiling
22990 See \`config.log' for more details." >&2;}
22991 { (exit 1); exit 1; }; }
22993 cat >conftest.$ac_ext <<_ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h. */
23000 #ifdef HAVE_SYS_TYPES_H
23001 #include <sys/types.h>
23004 #ifdef HAVE_SYS_MMAN_H
23005 #include <sys/mman.h>
23008 #ifdef HAVE_FCNTL_H
23014 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
23016 rm -f conftest$ac_exeext
23017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23018 (eval $ac_link) 2>&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023 (eval $ac_try) 2>&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; }; then
23027 ac_cv_func_mmap_file=yes
23029 echo "$as_me: program exited with status $ac_status" >&5
23030 echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23033 ( exit $ac_status )
23034 ac_cv_func_mmap_file=no
23036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23039 ac_cpp='$CPP $CPPFLAGS'
23040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23046 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23047 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23048 if test "$ac_cv_func_mmap_file" = yes; then
23050 cat >>confdefs.h <<\_ACEOF
23051 #define HAVE_MMAP_FILE
23058 if test "$ac_cv_func_mmap_file" = "no"
23060 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23061 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23063 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23064 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23065 if test "${ac_cv_header_mmap_anon+set}" = set; then
23066 echo $ECHO_N "(cached) $ECHO_C" >&6
23071 ac_cpp='$CPP $CPPFLAGS'
23072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23076 cat >conftest.$ac_ext <<_ACEOF
23079 cat confdefs.h >>conftest.$ac_ext
23080 cat >>conftest.$ac_ext <<_ACEOF
23081 /* end confdefs.h. */
23082 #include <sys/mman.h>
23083 #include <unistd.h>
23088 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23093 rm -f conftest.$ac_objext
23094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23095 (eval $ac_compile) 2>conftest.er1
23097 grep -v '^ *+' conftest.er1 >conftest.err
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } &&
23102 { ac_try='test -z "$ac_c_werror_flag"
23103 || test ! -s conftest.err'
23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105 (eval $ac_try) 2>&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; } &&
23109 { ac_try='test -s conftest.$ac_objext'
23110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; }; then
23115 ac_cv_header_mmap_anon=yes
23117 echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23120 ac_cv_header_mmap_anon=no
23122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23124 ac_cpp='$CPP $CPPFLAGS'
23125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23131 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23132 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23133 if test "$ac_cv_header_mmap_anon" = yes; then
23135 cat >>confdefs.h <<\_ACEOF
23136 #define HAVE_MMAP_ANONYMOUS
23141 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23142 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23143 if test "${ac_cv_type_signal+set}" = set; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23146 cat >conftest.$ac_ext <<_ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h. */
23152 #include <sys/types.h>
23153 #include <signal.h>
23158 extern "C" void (*signal (int, void (*)(int)))(int);
23160 void (*signal ()) ();
23171 rm -f conftest.$ac_objext
23172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23173 (eval $ac_compile) 2>conftest.er1
23175 grep -v '^ *+' conftest.er1 >conftest.err
23177 cat conftest.err >&5
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } &&
23180 { ac_try='test -z "$ac_c_werror_flag"
23181 || test ! -s conftest.err'
23182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183 (eval $ac_try) 2>&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest.$ac_objext'
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; }; then
23193 ac_cv_type_signal=void
23195 echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23198 ac_cv_type_signal=int
23200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23202 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23203 echo "${ECHO_T}$ac_cv_type_signal" >&6
23205 cat >>confdefs.h <<_ACEOF
23206 #define RETSIGTYPE $ac_cv_type_signal
23219 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23222 echo "$as_me:$LINENO: checking for $ac_func" >&5
23223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23224 if eval "test \"\${$as_ac_var+set}\" = set"; then
23225 echo $ECHO_N "(cached) $ECHO_C" >&6
23227 cat >conftest.$ac_ext <<_ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h. */
23233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23235 #define $ac_func innocuous_$ac_func
23237 /* System header to define __stub macros and hopefully few prototypes,
23238 which can conflict with char $ac_func (); below.
23239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23240 <limits.h> exists even on freestanding compilers. */
23243 # include <limits.h>
23245 # include <assert.h>
23250 /* Override any gcc2 internal prototype to avoid an error. */
23255 /* We use char because int might match the return type of a gcc2
23256 builtin and then its argument prototype would still apply. */
23258 /* The GNU C library defines this for functions which it implements
23259 to always fail with ENOSYS. Some functions are actually named
23260 something starting with __ and the normal name is an alias. */
23261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23264 char (*f) () = $ac_func;
23273 return f != $ac_func;
23278 rm -f conftest.$ac_objext conftest$ac_exeext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23280 (eval $ac_link) 2>conftest.er1
23282 grep -v '^ *+' conftest.er1 >conftest.err
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } &&
23287 { ac_try='test -z "$ac_c_werror_flag"
23288 || test ! -s conftest.err'
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; } &&
23294 { ac_try='test -s conftest$ac_exeext'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 eval "$as_ac_var=yes"
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 eval "$as_ac_var=no"
23307 rm -f conftest.err conftest.$ac_objext \
23308 conftest$ac_exeext conftest.$ac_ext
23310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23312 if test `eval echo '${'$as_ac_var'}'` = yes; then
23313 cat >>confdefs.h <<_ACEOF
23314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23320 echo "$as_me:$LINENO: checking for mprotect" >&5
23321 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23322 if test "${ac_cv_func_mprotect+set}" = set; then
23323 echo $ECHO_N "(cached) $ECHO_C" >&6
23325 cat >conftest.$ac_ext <<_ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23331 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23333 #define mprotect innocuous_mprotect
23335 /* System header to define __stub macros and hopefully few prototypes,
23336 which can conflict with char mprotect (); below.
23337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23338 <limits.h> exists even on freestanding compilers. */
23341 # include <limits.h>
23343 # include <assert.h>
23348 /* Override any gcc2 internal prototype to avoid an error. */
23353 /* We use char because int might match the return type of a gcc2
23354 builtin and then its argument prototype would still apply. */
23356 /* The GNU C library defines this for functions which it implements
23357 to always fail with ENOSYS. Some functions are actually named
23358 something starting with __ and the normal name is an alias. */
23359 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23362 char (*f) () = mprotect;
23371 return f != mprotect;
23376 rm -f conftest.$ac_objext conftest$ac_exeext
23377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23378 (eval $ac_link) 2>conftest.er1
23380 grep -v '^ *+' conftest.er1 >conftest.err
23382 cat conftest.err >&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } &&
23385 { ac_try='test -z "$ac_c_werror_flag"
23386 || test ! -s conftest.err'
23387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388 (eval $ac_try) 2>&5
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; } &&
23392 { ac_try='test -s conftest$ac_exeext'
23393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394 (eval $ac_try) 2>&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); }; }; then
23398 ac_cv_func_mprotect=yes
23400 echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23403 ac_cv_func_mprotect=no
23405 rm -f conftest.err conftest.$ac_objext \
23406 conftest$ac_exeext conftest.$ac_ext
23408 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23409 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23410 if test $ac_cv_func_mprotect = yes; then
23413 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23414 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23415 { (exit 1); exit 1; }; }
23420 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23421 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23425 ac_cpp='$CPP $CPPFLAGS'
23426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23430 oldcflags="$CFLAGS"
23431 CFLAGS="$CFLAGS -Wl,-R."
23432 cat >conftest.$ac_ext <<_ACEOF
23433 int main() { return 0; }
23435 rm -f conftest.$ac_objext conftest$ac_exeext
23436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23437 (eval $ac_link) 2>conftest.er1
23439 grep -v '^ *+' conftest.er1 >conftest.err
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } &&
23444 { ac_try='test -z "$ac_c_werror_flag"
23445 || test ! -s conftest.err'
23446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447 (eval $ac_try) 2>&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; } &&
23451 { ac_try='test -s conftest$ac_exeext'
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; }; then
23457 ac_cv_link_use_r=yes
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23462 ac_cv_link_use_r=no
23464 rm -f conftest.err conftest.$ac_objext \
23465 conftest$ac_exeext conftest.$ac_ext
23466 CFLAGS="$oldcflags"
23468 ac_cpp='$CPP $CPPFLAGS'
23469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23473 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23474 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23475 if test "$ac_cv_link_use_r" = yes
23478 cat >>confdefs.h <<\_ACEOF
23479 #define HAVE_LINK_R 1
23485 # Check whether --enable-optimized or --disable-optimized was given.
23486 if test "${enable_optimized+set}" = set; then
23487 enableval="$enable_optimized"
23492 if test ${enableval} = "no"
23497 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23504 # Check whether --enable-spec95 or --disable-spec95 was given.
23505 if test "${enable_spec95+set}" = set; then
23506 enableval="$enable_spec95"
23507 checkresult=$enableval
23511 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23512 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23513 case "$checkresult" in
23515 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23516 if test -d "$defaultdir"
23518 SPEC95_ROOT=$defaultdir
23520 USE_SPEC95=USE_SPEC95=1
23522 checkresult="yes, found in $defaultdir"
23532 *) if test -d "$checkresult"
23534 SPEC95_ROOT="$checkresult"
23536 USE_SPEC95=USE_SPEC95=1
23538 checkresult="yes, in $checkresult"
23542 checkresult="no, not found in $checkresult"
23546 echo "$as_me:$LINENO: result: $checkresult" >&5
23547 echo "${ECHO_T}$checkresult" >&6
23551 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23552 if test "${enable_spec2000+set}" = set; then
23553 enableval="$enable_spec2000"
23554 checkresult=$enableval
23558 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23559 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23560 case "$checkresult" in
23562 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23563 if test -d "$defaultdir"
23565 SPEC2000_ROOT=$defaultdir
23567 USE_SPEC2000=USE_SPEC2000=1
23569 checkresult="yes, found in $defaultdir"
23579 *) if test -d "$checkresult"
23581 SPEC2000_ROOT="$checkresult"
23583 USE_SPEC2000=USE_SPEC2000=1
23585 checkresult="yes, in $checkresult"
23589 checkresult="no, not found in $checkresult"
23593 echo "$as_me:$LINENO: result: $checkresult" >&5
23594 echo "${ECHO_T}$checkresult" >&6
23598 # Check whether --enable-povray or --disable-povray was given.
23599 if test "${enable_povray+set}" = set; then
23600 enableval="$enable_povray"
23601 checkresult=$enableval
23605 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23606 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23607 case "$checkresult" in
23609 defaultdir=/home/vadve/shared/benchmarks/povray31
23610 if test -d "$defaultdir"
23612 POVRAY_ROOT=$defaultdir
23614 USE_POVRAY=USE_POVRAY=1
23616 checkresult="yes, found in $defaultdir"
23626 *) if test -d "$checkresult"
23628 POVRAY_ROOT="$checkresult"
23630 USE_POVRAY=USE_POVRAY=1
23632 checkresult="yes, in $checkresult"
23636 checkresult="no, not found in $checkresult"
23640 echo "$as_me:$LINENO: result: $checkresult" >&5
23641 echo "${ECHO_T}$checkresult" >&6
23645 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23646 if test "${enable_precompiled_bytecode+set}" = set; then
23647 enableval="$enable_precompiled_bytecode"
23652 if test ${enableval} = "no"
23657 UPB=USE_PRECOMPILED_BYTECODE=1
23661 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23662 if test "${enable_llc_diffs+set}" = set; then
23663 enableval="$enable_llc_diffs"
23668 if test ${enableval} = "no"
23670 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23677 # Check whether --enable-jit or --disable-jit was given.
23678 if test "${enable_jit+set}" = set; then
23679 enableval="$enable_jit"
23684 if test ${enableval} = "no"
23691 JIT=TARGET_HAS_JIT=1
23695 JIT=TARGET_HAS_JIT=1
23706 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23707 if test "${with_llvmgccdir+set}" = set; then
23708 withval="$with_llvmgccdir"
23709 LLVMGCCDIR=$withval
23712 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23713 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23715 if test -d "$LLVMGCCDIR"
23717 if test -x "$LLVMGCCDIR/bin/gcc"
23719 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23723 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23724 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23725 if test "$LLVM_GCC_CHECK" = "no"
23729 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23730 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23732 if test -x "$LLVM_GCC_CHECK"
23734 cp /dev/null conftest.c
23735 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23741 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23742 LLVMCC1=$llvmcc1path
23744 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23745 LLVMCC1PLUS=$llvmcc1pluspath
23748 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23749 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23750 if test "$LLVM_GCC_SANE" = "no"
23756 # Check whether --with-bcrepos or --without-bcrepos was given.
23757 if test "${with_bcrepos+set}" = set; then
23758 withval="$with_bcrepos"
23762 BCR=/home/vadve/lattner/LLVMPrograms
23767 # Check whether --with-papi or --without-papi was given.
23768 if test "${with_papi+set}" = set; then
23769 withval="$with_papi"
23773 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23777 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23778 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23779 eval "SHLIBEXT=$shrext"
23780 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23781 echo "${ECHO_T}$SHLIBEXT" >&6
23785 cat >>confdefs.h <<_ACEOF
23786 #define SHLIBEXT "$SHLIBEXT"
23790 # Translate the various configuration directories and other basic
23791 # information into substitutions that will end up in config.h.in so
23792 # that these configured values can be hard-wired into a program.
23793 eval LLVM_PREFIX="${prefix}";
23794 eval LLVM_BINDIR="${prefix}/bin";
23795 eval LLVM_LIBDIR="${prefix}/lib";
23796 eval LLVM_DATADIR="${prefix}/data";
23797 eval LLVM_DOCSDIR="${prefix}/docs";
23798 eval LLVM_ETCDIR="${prefix}/etc";
23799 eval LLVM_INCLUDEDIR="${prefix}/include";
23800 eval LLVM_INFODIR="${prefix}/info";
23801 eval LLVM_MANDIR="${prefix}/man";
23802 LLVM_CONFIGTIME=`date`
23814 cat >>confdefs.h <<_ACEOF
23815 #define LLVM_PREFIX "$LLVM_PREFIX"
23819 cat >>confdefs.h <<_ACEOF
23820 #define LLVM_BINDIR "$LLVM_BINDIR"
23824 cat >>confdefs.h <<_ACEOF
23825 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23829 cat >>confdefs.h <<_ACEOF
23830 #define LLVM_DATADIR "$LLVM_DATADIR"
23834 cat >>confdefs.h <<_ACEOF
23835 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23839 cat >>confdefs.h <<_ACEOF
23840 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23844 cat >>confdefs.h <<_ACEOF
23845 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23849 cat >>confdefs.h <<_ACEOF
23850 #define LLVM_INFODIR "$LLVM_INFODIR"
23854 cat >>confdefs.h <<_ACEOF
23855 #define LLVM_MANDIR "$LLVM_MANDIR"
23859 cat >>confdefs.h <<_ACEOF
23860 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23864 cat >confcache <<\_ACEOF
23865 # This file is a shell script that caches the results of configure
23866 # tests run on this system so they can be shared between configure
23867 # scripts and configure runs, see configure's option --config-cache.
23868 # It is not useful on other systems. If it contains results you don't
23869 # want to keep, you may remove or edit it.
23871 # config.status only pays attention to the cache file if you give it
23872 # the --recheck option to rerun configure.
23874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23876 # following values.
23880 # The following way of writing the cache mishandles newlines in values,
23881 # but we know of no workaround that is simple, portable, and efficient.
23882 # So, don't put newlines in cache variables' values.
23883 # Ultrix sh set writes to stderr and can't be redirected directly,
23884 # and sets the high bit in the cache file unless we assign to the vars.
23887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23889 # `set' does not quote correctly, so add quotes (double-quote
23890 # substitution turns \\\\ into \\, and sed turns \\ into \).
23893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23896 # `set' quotes correctly as required by POSIX, so do not add quotes.
23898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23907 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23909 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23910 if test -w $cache_file; then
23911 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23912 cat confcache >$cache_file
23914 echo "not updating unwritable cache $cache_file"
23919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23920 # Let make expand exec_prefix.
23921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23925 # trailing colons and then remove the whole line if VPATH becomes empty
23926 # (actually we leave an empty line to preserve line numbers).
23927 if test "x$srcdir" = x.; then
23928 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23929 s/:*\$(srcdir):*/:/;
23930 s/:*\${srcdir}:*/:/;
23932 s/^\([^=]*=[ ]*\):*/\1/;
23938 DEFS=-DHAVE_CONFIG_H
23942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23943 # 1. Remove the extension, and $U if already installed.
23944 ac_i=`echo "$ac_i" |
23945 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23947 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23948 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23950 LIBOBJS=$ac_libobjs
23952 LTLIBOBJS=$ac_ltlibobjs
23956 : ${CONFIG_STATUS=./config.status}
23957 ac_clean_files_save=$ac_clean_files
23958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23959 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23960 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23961 cat >$CONFIG_STATUS <<_ACEOF
23963 # Generated by $as_me.
23964 # Run this file to recreate the current configuration.
23965 # Compiler output produced by configure, useful for debugging
23966 # configure, is in config.log if it exists.
23969 ac_cs_recheck=false
23971 SHELL=\${CONFIG_SHELL-$SHELL}
23974 cat >>$CONFIG_STATUS <<\_ACEOF
23975 ## --------------------- ##
23976 ## M4sh Initialization. ##
23977 ## --------------------- ##
23979 # Be Bourne compatible
23980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23983 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23984 # is contrary to our usage. Disable this feature.
23985 alias -g '${1+"$@"}'='"$@"'
23986 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23989 DUALCASE=1; export DUALCASE # for MKS sh
23991 # Support unset when possible.
23992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23999 # Work around bugs in pre-3.0 UWIN ksh.
24000 $as_unset ENV MAIL MAILPATH
24007 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24008 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24009 LC_TELEPHONE LC_TIME
24011 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24012 eval $as_var=C; export $as_var
24018 # Required to use basename.
24019 if expr a : '\(a\)' >/dev/null 2>&1; then
24025 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24026 as_basename=basename
24032 # Name of the executable.
24033 as_me=`$as_basename "$0" ||
24034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24035 X"$0" : 'X\(//\)$' \| \
24036 X"$0" : 'X\(/\)$' \| \
24037 . : '\(.\)' 2>/dev/null ||
24039 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24040 /^X\/\(\/\/\)$/{ s//\1/; q; }
24041 /^X\/\(\/\).*/{ s//\1/; q; }
24045 # PATH needs CR, and LINENO needs CR and PATH.
24046 # Avoid depending upon Character Ranges.
24047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24050 as_cr_digits='0123456789'
24051 as_cr_alnum=$as_cr_Letters$as_cr_digits
24053 # The user is always right.
24054 if test "${PATH_SEPARATOR+set}" != set; then
24055 echo "#! /bin/sh" >conf$$.sh
24056 echo "exit 0" >>conf$$.sh
24058 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24067 as_lineno_1=$LINENO
24068 as_lineno_2=$LINENO
24069 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24070 test "x$as_lineno_1" != "x$as_lineno_2" &&
24071 test "x$as_lineno_3" = "x$as_lineno_2" || {
24072 # Find who we are. Look in the path if we contain no path at all
24075 *[\\/]* ) as_myself=$0 ;;
24076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24077 for as_dir in $PATH
24080 test -z "$as_dir" && as_dir=.
24081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24086 # We did not find ourselves, most probably we were run as `sh COMMAND'
24087 # in which case we are not to be found in the path.
24088 if test "x$as_myself" = x; then
24091 if test ! -f "$as_myself"; then
24092 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24093 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24094 { (exit 1); exit 1; }; }
24096 case $CONFIG_SHELL in
24098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24099 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24102 test -z "$as_dir" && as_dir=.
24103 for as_base in sh bash ksh sh5; do
24106 if ("$as_dir/$as_base" -c '
24107 as_lineno_1=$LINENO
24108 as_lineno_2=$LINENO
24109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24110 test "x$as_lineno_1" != "x$as_lineno_2" &&
24111 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24112 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24113 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24114 CONFIG_SHELL=$as_dir/$as_base
24115 export CONFIG_SHELL
24116 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24124 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24125 # uniformly replaced by the line number. The first 'sed' inserts a
24126 # line-number line before each line; the second 'sed' does the real
24127 # work. The second script uses 'N' to pair each line-number line
24128 # with the numbered line, and appends trailing '-' during
24129 # substitution so that $LINENO is not a special case at line end.
24130 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24131 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24132 sed '=' <$as_myself |
24137 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24140 s,^['$as_cr_digits']*\n,,
24141 ' >$as_me.lineno &&
24142 chmod +x $as_me.lineno ||
24143 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24144 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24145 { (exit 1); exit 1; }; }
24147 # Don't try to exec as it changes $[0], causing all sort of problems
24148 # (the dirname of $[0] is not the place where we might find the
24149 # original and so on. Autoconf is especially sensible to this).
24151 # Exit status is that of the last command.
24156 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24157 *c*,-n*) ECHO_N= ECHO_C='
24159 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24160 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24163 if expr a : '\(a\)' >/dev/null 2>&1; then
24169 rm -f conf$$ conf$$.exe conf$$.file
24171 if ln -s conf$$.file conf$$ 2>/dev/null; then
24172 # We could just check for DJGPP; but this test a) works b) is more generic
24173 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24174 if test -f conf$$.exe; then
24175 # Don't use ln at all; we don't have any links
24180 elif ln conf$$.file conf$$ 2>/dev/null; then
24185 rm -f conf$$ conf$$.exe conf$$.file
24187 if mkdir -p . 2>/dev/null; then
24190 test -d ./-p && rmdir ./-p
24194 as_executable_p="test -f"
24196 # Sed expression to map a string onto a valid CPP name.
24197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24199 # Sed expression to map a string onto a valid variable name.
24200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24204 # We need space, tab and new line, in precisely that order.
24214 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24215 # report actual input values of CONFIG_FILES etc. instead of their
24216 # values after options handling. Logging --version etc. is OK.
24220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24221 ## Running $as_me. ##
24226 This file was extended by LLVM $as_me 1.4, which was
24227 generated by GNU Autoconf 2.59. Invocation command line was
24229 CONFIG_FILES = $CONFIG_FILES
24230 CONFIG_HEADERS = $CONFIG_HEADERS
24231 CONFIG_LINKS = $CONFIG_LINKS
24232 CONFIG_COMMANDS = $CONFIG_COMMANDS
24236 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24240 # Files that config.status was made for.
24241 if test -n "$ac_config_files"; then
24242 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24245 if test -n "$ac_config_headers"; then
24246 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24249 if test -n "$ac_config_links"; then
24250 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24253 if test -n "$ac_config_commands"; then
24254 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24257 cat >>$CONFIG_STATUS <<\_ACEOF
24260 \`$as_me' instantiates files from templates according to the
24261 current configuration.
24263 Usage: $0 [OPTIONS] [FILE]...
24265 -h, --help print this help, then exit
24266 -V, --version print version number, then exit
24267 -q, --quiet do not print progress messages
24268 -d, --debug don't remove temporary files
24269 --recheck update $as_me by reconfiguring in the same conditions
24270 --file=FILE[:TEMPLATE]
24271 instantiate the configuration file FILE
24272 --header=FILE[:TEMPLATE]
24273 instantiate the configuration header FILE
24275 Configuration files:
24278 Configuration headers:
24281 Configuration links:
24284 Configuration commands:
24287 Report bugs to <bug-autoconf@gnu.org>."
24290 cat >>$CONFIG_STATUS <<_ACEOF
24292 LLVM config.status 1.4
24293 configured by $0, generated by GNU Autoconf 2.59,
24294 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24296 Copyright (C) 2003 Free Software Foundation, Inc.
24297 This config.status script is free software; the Free Software Foundation
24298 gives unlimited permission to copy, distribute and modify it."
24303 cat >>$CONFIG_STATUS <<\_ACEOF
24304 # If no file are specified by the user, then we need to provide default
24305 # value. By we need to know if files were specified by the user.
24311 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24312 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24320 *) # This is not an option, so the user has probably given explicit
24323 ac_need_defaults=false;;
24327 # Handling of the options.
24329 cat >>$CONFIG_STATUS <<\_ACEOF
24330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24332 --version | --vers* | -V )
24333 echo "$ac_cs_version"; exit 0 ;;
24335 # Conflict between --help and --header
24336 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24337 Try \`$0 --help' for more information." >&5
24338 echo "$as_me: error: ambiguous option: $1
24339 Try \`$0 --help' for more information." >&2;}
24340 { (exit 1); exit 1; }; };;
24341 --help | --hel | -h )
24342 echo "$ac_cs_usage"; exit 0 ;;
24343 --debug | --d* | -d )
24345 --file | --fil | --fi | --f )
24347 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24348 ac_need_defaults=false;;
24349 --header | --heade | --head | --hea )
24351 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24352 ac_need_defaults=false;;
24353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24354 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24357 # This is an error.
24358 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24359 Try \`$0 --help' for more information." >&5
24360 echo "$as_me: error: unrecognized option: $1
24361 Try \`$0 --help' for more information." >&2;}
24362 { (exit 1); exit 1; }; } ;;
24364 *) ac_config_targets="$ac_config_targets $1" ;;
24370 ac_configure_extra_args=
24372 if $ac_cs_silent; then
24374 ac_configure_extra_args="$ac_configure_extra_args --silent"
24378 cat >>$CONFIG_STATUS <<_ACEOF
24379 if \$ac_cs_recheck; then
24380 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24381 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24386 cat >>$CONFIG_STATUS <<_ACEOF
24388 # INIT-COMMANDS section.
24391 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24392 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24393 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24394 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24395 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24398 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24399 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24426 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24427 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24428 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24429 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24430 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24431 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24434 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24439 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24440 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24441 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24447 cat >>$CONFIG_STATUS <<\_ACEOF
24448 for ac_config_target in $ac_config_targets
24450 case "$ac_config_target" in
24451 # Handling of arguments.
24452 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24453 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24454 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
24455 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24456 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
24457 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
24458 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24459 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24460 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24461 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24462 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24463 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24464 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24465 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24466 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24467 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24468 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24469 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24470 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24471 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24472 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24473 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24474 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24475 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24476 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24477 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24478 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24479 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24480 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24481 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24482 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24483 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24484 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24485 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24486 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24487 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24488 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24489 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24490 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24491 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24492 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24493 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24494 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24495 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24496 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24497 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24498 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24499 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24500 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24501 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24502 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24503 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24504 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24505 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24506 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24507 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24508 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24509 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24510 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24511 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24512 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24513 { (exit 1); exit 1; }; };;
24517 # If the user did not use the arguments to specify the items to instantiate,
24518 # then the envvar interface is used. Set only those that are not.
24519 # We use the long form for the default assignment because of an extremely
24520 # bizarre bug on SunOS 4.1.3.
24521 if $ac_need_defaults; then
24522 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24523 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24524 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24525 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24528 # Have a temporary directory for convenience. Make it in the build tree
24529 # simply because there is no reason to put it here, and in addition,
24530 # creating and moving files from /tmp can sometimes cause problems.
24531 # Create a temporary directory, and hook for its removal unless debugging.
24534 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24535 trap '{ (exit 1); exit 1; }' 1 2 13 15
24538 # Create a (secure) tmp directory for tmp files.
24541 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24542 test -n "$tmp" && test -d "$tmp"
24545 tmp=./confstat$$-$RANDOM
24546 (umask 077 && mkdir $tmp)
24549 echo "$me: cannot create a temporary directory in ." >&2
24550 { (exit 1); exit 1; }
24555 cat >>$CONFIG_STATUS <<_ACEOF
24558 # CONFIG_FILES section.
24561 # No need to generate the scripts if there are no CONFIG_FILES.
24562 # This happens for instance when ./config.status config.h
24563 if test -n "\$CONFIG_FILES"; then
24564 # Protect against being on the right side of a sed subst in config.status.
24565 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24566 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24567 s,@SHELL@,$SHELL,;t t
24568 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24569 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24570 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24571 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24572 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24573 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24574 s,@exec_prefix@,$exec_prefix,;t t
24575 s,@prefix@,$prefix,;t t
24576 s,@program_transform_name@,$program_transform_name,;t t
24577 s,@bindir@,$bindir,;t t
24578 s,@sbindir@,$sbindir,;t t
24579 s,@libexecdir@,$libexecdir,;t t
24580 s,@datadir@,$datadir,;t t
24581 s,@sysconfdir@,$sysconfdir,;t t
24582 s,@sharedstatedir@,$sharedstatedir,;t t
24583 s,@localstatedir@,$localstatedir,;t t
24584 s,@libdir@,$libdir,;t t
24585 s,@includedir@,$includedir,;t t
24586 s,@oldincludedir@,$oldincludedir,;t t
24587 s,@infodir@,$infodir,;t t
24588 s,@mandir@,$mandir,;t t
24589 s,@build_alias@,$build_alias,;t t
24590 s,@host_alias@,$host_alias,;t t
24591 s,@target_alias@,$target_alias,;t t
24592 s,@DEFS@,$DEFS,;t t
24593 s,@ECHO_C@,$ECHO_C,;t t
24594 s,@ECHO_N@,$ECHO_N,;t t
24595 s,@ECHO_T@,$ECHO_T,;t t
24596 s,@LIBS@,$LIBS,;t t
24597 s,@subdirs@,$subdirs,;t t
24598 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24599 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24600 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24601 s,@build@,$build,;t t
24602 s,@build_cpu@,$build_cpu,;t t
24603 s,@build_vendor@,$build_vendor,;t t
24604 s,@build_os@,$build_os,;t t
24605 s,@host@,$host,;t t
24606 s,@host_cpu@,$host_cpu,;t t
24607 s,@host_vendor@,$host_vendor,;t t
24608 s,@host_os@,$host_os,;t t
24609 s,@target@,$target,;t t
24610 s,@target_cpu@,$target_cpu,;t t
24611 s,@target_vendor@,$target_vendor,;t t
24612 s,@target_os@,$target_os,;t t
24614 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24615 s,@ARCH@,$ARCH,;t t
24617 s,@CXXFLAGS@,$CXXFLAGS,;t t
24618 s,@LDFLAGS@,$LDFLAGS,;t t
24619 s,@CPPFLAGS@,$CPPFLAGS,;t t
24620 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24621 s,@EXEEXT@,$EXEEXT,;t t
24622 s,@OBJEXT@,$OBJEXT,;t t
24624 s,@CFLAGS@,$CFLAGS,;t t
24625 s,@ac_ct_CC@,$ac_ct_CC,;t t
24627 s,@ifGNUmake@,$ifGNUmake,;t t
24629 s,@LEXLIB@,$LEXLIB,;t t
24630 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24631 s,@YACC@,$YACC,;t t
24632 s,@BISON@,$BISON,;t t
24633 s,@EGREP@,$EGREP,;t t
24634 s,@LN_S@,$LN_S,;t t
24635 s,@ECHO@,$ECHO,;t t
24637 s,@ac_ct_AR@,$ac_ct_AR,;t t
24638 s,@RANLIB@,$RANLIB,;t t
24639 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24640 s,@STRIP@,$STRIP,;t t
24641 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24642 s,@CXXCPP@,$CXXCPP,;t t
24644 s,@FFLAGS@,$FFLAGS,;t t
24645 s,@ac_ct_F77@,$ac_ct_F77,;t t
24646 s,@LIBTOOL@,$LIBTOOL,;t t
24648 s,@ETAGS@,$ETAGS,;t t
24649 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24650 s,@PYTHON@,$PYTHON,;t t
24651 s,@QMTEST@,$QMTEST,;t t
24652 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24653 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24654 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24655 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24656 s,@ENDIAN@,$ENDIAN,;t t
24657 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24658 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24659 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24660 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24661 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24662 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24663 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24664 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24665 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24666 s,@ALLOCA@,$ALLOCA,;t t
24667 s,@MMAP_FILE@,$MMAP_FILE,;t t
24668 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24669 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24670 s,@USE_SPEC95@,$USE_SPEC95,;t t
24671 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24672 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24673 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24674 s,@USE_POVRAY@,$USE_POVRAY,;t t
24676 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24678 s,@LLVMCC1@,$LLVMCC1,;t t
24679 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24681 s,@PAPIDIR@,$PAPIDIR,;t t
24682 s,@SHLIBEXT@,$SHLIBEXT,;t t
24683 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24684 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24685 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24686 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24687 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24688 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24689 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24690 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24691 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24692 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24693 s,@LIBOBJS@,$LIBOBJS,;t t
24694 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24699 cat >>$CONFIG_STATUS <<\_ACEOF
24700 # Split the substitutions into bite-sized pieces for seds with
24701 # small command number limits, like on Digital OSF/1 and HP-UX.
24702 ac_max_sed_lines=48
24703 ac_sed_frag=1 # Number of current file.
24704 ac_beg=1 # First line for current file.
24705 ac_end=$ac_max_sed_lines # Line after last line for current file.
24708 while $ac_more_lines; do
24709 if test $ac_beg -gt 1; then
24710 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24712 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24714 if test ! -s $tmp/subs.frag; then
24715 ac_more_lines=false
24717 # The purpose of the label and of the branching condition is to
24718 # speed up the sed processing (if there are no `@' at all, there
24719 # is no need to browse any of the substitutions).
24720 # These are the two extra sed commands mentioned above.
24722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24723 if test -z "$ac_sed_cmds"; then
24724 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24726 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24728 ac_sed_frag=`expr $ac_sed_frag + 1`
24730 ac_end=`expr $ac_end + $ac_max_sed_lines`
24733 if test -z "$ac_sed_cmds"; then
24736 fi # test -n "$CONFIG_FILES"
24739 cat >>$CONFIG_STATUS <<\_ACEOF
24740 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24743 - | *:- | *:-:* ) # input from stdin
24745 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24747 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24749 * ) ac_file_in=$ac_file.in ;;
24752 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24753 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24755 X"$ac_file" : 'X\(//\)[^/]' \| \
24756 X"$ac_file" : 'X\(//\)$' \| \
24757 X"$ac_file" : 'X\(/\)' \| \
24758 . : '\(.\)' 2>/dev/null ||
24760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24762 /^X\(\/\/\)$/{ s//\1/; q; }
24763 /^X\(\/\).*/{ s//\1/; q; }
24765 { if $as_mkdir_p; then
24770 while test ! -d "$as_dir"; do
24771 as_dirs="$as_dir $as_dirs"
24772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24774 X"$as_dir" : 'X\(//\)[^/]' \| \
24775 X"$as_dir" : 'X\(//\)$' \| \
24776 X"$as_dir" : 'X\(/\)' \| \
24777 . : '\(.\)' 2>/dev/null ||
24779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24781 /^X\(\/\/\)$/{ s//\1/; q; }
24782 /^X\(\/\).*/{ s//\1/; q; }
24785 test ! -n "$as_dirs" || mkdir $as_dirs
24786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24787 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24788 { (exit 1); exit 1; }; }; }
24792 if test "$ac_dir" != .; then
24793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24794 # A "../" for each directory in $ac_dir_suffix.
24795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24797 ac_dir_suffix= ac_top_builddir=
24801 .) # No --srcdir option. We are building in place.
24803 if test -z "$ac_top_builddir"; then
24806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24808 [\\/]* | ?:[\\/]* ) # Absolute path.
24809 ac_srcdir=$srcdir$ac_dir_suffix;
24810 ac_top_srcdir=$srcdir ;;
24811 *) # Relative path.
24812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24813 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24816 # Do not use `cd foo && pwd` to compute absolute paths, because
24817 # the directories may not exist.
24819 .) ac_abs_builddir="$ac_dir";;
24822 .) ac_abs_builddir=`pwd`;;
24823 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24824 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24827 case $ac_abs_builddir in
24828 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24830 case ${ac_top_builddir}. in
24831 .) ac_abs_top_builddir=$ac_abs_builddir;;
24832 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24833 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24836 case $ac_abs_builddir in
24837 .) ac_abs_srcdir=$ac_srcdir;;
24840 .) ac_abs_srcdir=$ac_abs_builddir;;
24841 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24842 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24845 case $ac_abs_builddir in
24846 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24848 case $ac_top_srcdir in
24849 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24850 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24851 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24857 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24858 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24861 if test x"$ac_file" != x-; then
24862 { echo "$as_me:$LINENO: creating $ac_file" >&5
24863 echo "$as_me: creating $ac_file" >&6;}
24866 # Let's still pretend it is `configure' which instantiates (i.e., don't
24867 # use $as_me), people would be surprised to read:
24868 # /* config.h. Generated by config.status. */
24869 if test x"$ac_file" = x-; then
24872 configure_input="$ac_file. "
24874 configure_input=$configure_input"Generated from `echo $ac_file_in |
24875 sed 's,.*/,,'` by configure."
24877 # First look for the input files in the build tree, otherwise in the
24879 ac_file_inputs=`IFS=:
24880 for f in $ac_file_in; do
24882 -) echo $tmp/stdin ;;
24884 # Absolute (can't be DOS-style, as IFS=:)
24885 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24886 echo "$as_me: error: cannot find input file: $f" >&2;}
24887 { (exit 1); exit 1; }; }
24890 if test -f "$f"; then
24893 elif test -f "$srcdir/$f"; then
24898 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24899 echo "$as_me: error: cannot find input file: $f" >&2;}
24900 { (exit 1); exit 1; }; }
24903 done` || { (exit 1); exit 1; }
24905 cat >>$CONFIG_STATUS <<_ACEOF
24909 cat >>$CONFIG_STATUS <<\_ACEOF
24911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24912 s,@configure_input@,$configure_input,;t t
24913 s,@srcdir@,$ac_srcdir,;t t
24914 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24915 s,@top_srcdir@,$ac_top_srcdir,;t t
24916 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24917 s,@builddir@,$ac_builddir,;t t
24918 s,@abs_builddir@,$ac_abs_builddir,;t t
24919 s,@top_builddir@,$ac_top_builddir,;t t
24920 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24921 s,@INSTALL@,$ac_INSTALL,;t t
24922 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24924 if test x"$ac_file" != x-; then
24925 mv $tmp/out $ac_file
24933 cat >>$CONFIG_STATUS <<\_ACEOF
24936 # CONFIG_HEADER section.
24939 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24940 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24942 # ac_d sets the value in "#define NAME VALUE" lines.
24943 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24944 ac_dB='[ ].*$,\1#\2'
24947 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24948 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24949 ac_uB='$,\1#\2define\3'
24953 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24956 - | *:- | *:-:* ) # input from stdin
24958 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24960 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24962 * ) ac_file_in=$ac_file.in ;;
24965 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24966 echo "$as_me: creating $ac_file" >&6;}
24968 # First look for the input files in the build tree, otherwise in the
24970 ac_file_inputs=`IFS=:
24971 for f in $ac_file_in; do
24973 -) echo $tmp/stdin ;;
24975 # Absolute (can't be DOS-style, as IFS=:)
24976 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24977 echo "$as_me: error: cannot find input file: $f" >&2;}
24978 { (exit 1); exit 1; }; }
24979 # Do quote $f, to prevent DOS paths from being IFS'd.
24982 if test -f "$f"; then
24985 elif test -f "$srcdir/$f"; then
24990 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24991 echo "$as_me: error: cannot find input file: $f" >&2;}
24992 { (exit 1); exit 1; }; }
24995 done` || { (exit 1); exit 1; }
24996 # Remove the trailing spaces.
24997 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25001 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25002 # `conftest.undefs', that substitutes the proper values into
25003 # config.h.in to produce config.h. The first handles `#define'
25004 # templates, and the second `#undef' templates.
25005 # And first: Protect against being on the right side of a sed subst in
25006 # config.status. Protect against being in an unquoted here document
25007 # in config.status.
25008 rm -f conftest.defines conftest.undefs
25009 # Using a here document instead of a string reduces the quoting nightmare.
25010 # Putting comments in sed scripts is not portable.
25012 # `end' is used to avoid that the second main sed command (meant for
25013 # 0-ary CPP macros) applies to n-ary macro definitions.
25014 # See the Autoconf documentation for `clear'.
25015 cat >confdef2sed.sed <<\_ACEOF
25020 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25022 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25025 # If some macros were called several times there might be several times
25026 # the same #defines, which is useless. Nevertheless, we may not want to
25027 # sort them, since we want the *last* AC-DEFINE to be honored.
25028 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25029 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25030 rm -f confdef2sed.sed
25032 # This sed command replaces #undef with comments. This is necessary, for
25033 # example, in the case of _POSIX_SOURCE, which is predefined and required
25034 # on some systems where configure will not decide to define it.
25035 cat >>conftest.undefs <<\_ACEOF
25036 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25039 # Break up conftest.defines because some shells have a limit on the size
25040 # of here documents, and old seds have small limits too (100 cmds).
25041 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25042 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25043 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25044 echo ' :' >>$CONFIG_STATUS
25045 rm -f conftest.tail
25046 while grep . conftest.defines >/dev/null
25048 # Write a limited-size here document to $tmp/defines.sed.
25049 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25050 # Speed up: don't consider the non `#define' lines.
25051 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25052 # Work around the forget-to-reset-the-flag bug.
25053 echo 't clr' >>$CONFIG_STATUS
25054 echo ': clr' >>$CONFIG_STATUS
25055 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25057 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25059 mv $tmp/out $tmp/in
25061 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25062 rm -f conftest.defines
25063 mv conftest.tail conftest.defines
25065 rm -f conftest.defines
25066 echo ' fi # grep' >>$CONFIG_STATUS
25067 echo >>$CONFIG_STATUS
25069 # Break up conftest.undefs because some shells have a limit on the size
25070 # of here documents, and old seds have small limits too (100 cmds).
25071 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25072 rm -f conftest.tail
25073 while grep . conftest.undefs >/dev/null
25075 # Write a limited-size here document to $tmp/undefs.sed.
25076 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25077 # Speed up: don't consider the non `#undef'
25078 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25079 # Work around the forget-to-reset-the-flag bug.
25080 echo 't clr' >>$CONFIG_STATUS
25081 echo ': clr' >>$CONFIG_STATUS
25082 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25084 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25086 mv $tmp/out $tmp/in
25088 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25089 rm -f conftest.undefs
25090 mv conftest.tail conftest.undefs
25092 rm -f conftest.undefs
25094 cat >>$CONFIG_STATUS <<\_ACEOF
25095 # Let's still pretend it is `configure' which instantiates (i.e., don't
25096 # use $as_me), people would be surprised to read:
25097 # /* config.h. Generated by config.status. */
25098 if test x"$ac_file" = x-; then
25099 echo "/* Generated by configure. */" >$tmp/config.h
25101 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25103 cat $tmp/in >>$tmp/config.h
25105 if test x"$ac_file" != x-; then
25106 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25107 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25108 echo "$as_me: $ac_file is unchanged" >&6;}
25110 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25112 X"$ac_file" : 'X\(//\)[^/]' \| \
25113 X"$ac_file" : 'X\(//\)$' \| \
25114 X"$ac_file" : 'X\(/\)' \| \
25115 . : '\(.\)' 2>/dev/null ||
25117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25119 /^X\(\/\/\)$/{ s//\1/; q; }
25120 /^X\(\/\).*/{ s//\1/; q; }
25122 { if $as_mkdir_p; then
25127 while test ! -d "$as_dir"; do
25128 as_dirs="$as_dir $as_dirs"
25129 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25131 X"$as_dir" : 'X\(//\)[^/]' \| \
25132 X"$as_dir" : 'X\(//\)$' \| \
25133 X"$as_dir" : 'X\(/\)' \| \
25134 . : '\(.\)' 2>/dev/null ||
25136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25138 /^X\(\/\/\)$/{ s//\1/; q; }
25139 /^X\(\/\).*/{ s//\1/; q; }
25142 test ! -n "$as_dirs" || mkdir $as_dirs
25143 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25144 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25145 { (exit 1); exit 1; }; }; }
25148 mv $tmp/config.h $ac_file
25152 rm -f $tmp/config.h
25156 cat >>$CONFIG_STATUS <<\_ACEOF
25159 # CONFIG_LINKS section.
25162 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25163 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25164 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25166 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25167 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25169 if test ! -r $srcdir/$ac_source; then
25170 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25171 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25172 { (exit 1); exit 1; }; }
25176 # Make relative symlinks.
25177 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25178 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25179 X"$ac_dest" : 'X\(//\)[^/]' \| \
25180 X"$ac_dest" : 'X\(//\)$' \| \
25181 X"$ac_dest" : 'X\(/\)' \| \
25182 . : '\(.\)' 2>/dev/null ||
25184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25186 /^X\(\/\/\)$/{ s//\1/; q; }
25187 /^X\(\/\).*/{ s//\1/; q; }
25189 { if $as_mkdir_p; then
25190 mkdir -p "$ac_dest_dir"
25192 as_dir="$ac_dest_dir"
25194 while test ! -d "$as_dir"; do
25195 as_dirs="$as_dir $as_dirs"
25196 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25198 X"$as_dir" : 'X\(//\)[^/]' \| \
25199 X"$as_dir" : 'X\(//\)$' \| \
25200 X"$as_dir" : 'X\(/\)' \| \
25201 . : '\(.\)' 2>/dev/null ||
25203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25205 /^X\(\/\/\)$/{ s//\1/; q; }
25206 /^X\(\/\).*/{ s//\1/; q; }
25209 test ! -n "$as_dirs" || mkdir $as_dirs
25210 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25211 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25212 { (exit 1); exit 1; }; }; }
25216 if test "$ac_dest_dir" != .; then
25217 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25218 # A "../" for each directory in $ac_dir_suffix.
25219 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25221 ac_dir_suffix= ac_top_builddir=
25225 .) # No --srcdir option. We are building in place.
25227 if test -z "$ac_top_builddir"; then
25230 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25232 [\\/]* | ?:[\\/]* ) # Absolute path.
25233 ac_srcdir=$srcdir$ac_dir_suffix;
25234 ac_top_srcdir=$srcdir ;;
25235 *) # Relative path.
25236 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25237 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25240 # Do not use `cd foo && pwd` to compute absolute paths, because
25241 # the directories may not exist.
25243 .) ac_abs_builddir="$ac_dest_dir";;
25245 case "$ac_dest_dir" in
25246 .) ac_abs_builddir=`pwd`;;
25247 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25248 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25251 case $ac_abs_builddir in
25252 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25254 case ${ac_top_builddir}. in
25255 .) ac_abs_top_builddir=$ac_abs_builddir;;
25256 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25257 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25260 case $ac_abs_builddir in
25261 .) ac_abs_srcdir=$ac_srcdir;;
25264 .) ac_abs_srcdir=$ac_abs_builddir;;
25265 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25266 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25269 case $ac_abs_builddir in
25270 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25272 case $ac_top_srcdir in
25273 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25274 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25275 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25281 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25282 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25285 # Try a symlink, then a hard link, then a copy.
25286 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25287 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25288 cp -p $srcdir/$ac_source $ac_dest ||
25289 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25290 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25291 { (exit 1); exit 1; }; }
25294 cat >>$CONFIG_STATUS <<\_ACEOF
25297 # CONFIG_COMMANDS section.
25299 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25300 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25301 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25302 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25303 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25304 X"$ac_dest" : 'X\(//\)[^/]' \| \
25305 X"$ac_dest" : 'X\(//\)$' \| \
25306 X"$ac_dest" : 'X\(/\)' \| \
25307 . : '\(.\)' 2>/dev/null ||
25309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25311 /^X\(\/\/\)$/{ s//\1/; q; }
25312 /^X\(\/\).*/{ s//\1/; q; }
25314 { if $as_mkdir_p; then
25319 while test ! -d "$as_dir"; do
25320 as_dirs="$as_dir $as_dirs"
25321 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25323 X"$as_dir" : 'X\(//\)[^/]' \| \
25324 X"$as_dir" : 'X\(//\)$' \| \
25325 X"$as_dir" : 'X\(/\)' \| \
25326 . : '\(.\)' 2>/dev/null ||
25328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25330 /^X\(\/\/\)$/{ s//\1/; q; }
25331 /^X\(\/\).*/{ s//\1/; q; }
25334 test ! -n "$as_dirs" || mkdir $as_dirs
25335 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25336 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25337 { (exit 1); exit 1; }; }; }
25341 if test "$ac_dir" != .; then
25342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25343 # A "../" for each directory in $ac_dir_suffix.
25344 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25346 ac_dir_suffix= ac_top_builddir=
25350 .) # No --srcdir option. We are building in place.
25352 if test -z "$ac_top_builddir"; then
25355 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25357 [\\/]* | ?:[\\/]* ) # Absolute path.
25358 ac_srcdir=$srcdir$ac_dir_suffix;
25359 ac_top_srcdir=$srcdir ;;
25360 *) # Relative path.
25361 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25362 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25365 # Do not use `cd foo && pwd` to compute absolute paths, because
25366 # the directories may not exist.
25368 .) ac_abs_builddir="$ac_dir";;
25371 .) ac_abs_builddir=`pwd`;;
25372 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25373 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25376 case $ac_abs_builddir in
25377 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25379 case ${ac_top_builddir}. in
25380 .) ac_abs_top_builddir=$ac_abs_builddir;;
25381 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25382 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25385 case $ac_abs_builddir in
25386 .) ac_abs_srcdir=$ac_srcdir;;
25389 .) ac_abs_srcdir=$ac_abs_builddir;;
25390 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25391 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25394 case $ac_abs_builddir in
25395 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25397 case $ac_top_srcdir in
25398 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25399 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25400 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25405 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25406 echo "$as_me: executing $ac_dest commands" >&6;}
25408 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25409 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25410 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25411 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25412 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25413 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25414 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25415 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25416 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25417 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25418 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25419 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25420 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25421 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25422 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25423 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25424 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25425 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25426 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25427 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25428 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25429 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25430 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25431 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25432 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25433 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25434 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25435 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 ;;
25436 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 ;;
25437 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 ;;
25438 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25439 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25440 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 ;;
25441 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 ;;
25442 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 ;;
25443 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 ;;
25444 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 ;;
25445 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 ;;
25446 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 ;;
25447 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 ;;
25448 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 ;;
25449 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 ;;
25450 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 ;;
25451 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 ;;
25452 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 ;;
25453 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25454 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25455 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 ;;
25456 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25457 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25458 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25463 cat >>$CONFIG_STATUS <<\_ACEOF
25465 { (exit 0); exit 0; }
25467 chmod +x $CONFIG_STATUS
25468 ac_clean_files=$ac_clean_files_save
25471 # configure is writing to config.log, and then calls config.status.
25472 # config.status does its own redirection, appending to config.log.
25473 # Unfortunately, on DOS this fails, as config.log is still kept open
25474 # by configure, so config.status won't be able to write to it; its
25475 # output is simply discarded. So we exec the FD to /dev/null,
25476 # effectively closing config.log, so it can be properly (re)opened and
25477 # appended to by config.status. When coming back to configure, we
25478 # need to make the FD available again.
25479 if test "$no_create" != yes; then
25481 ac_config_status_args=
25482 test "$silent" = yes &&
25483 ac_config_status_args="$ac_config_status_args --quiet"
25485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25488 # would make configure fail if this is the last instruction.
25489 $ac_cs_success || { (exit 1); exit 1; }
25493 # CONFIG_SUBDIRS section.
25495 if test "$no_recursion" != yes; then
25497 # Remove --cache-file and --srcdir arguments so they do not pile up.
25498 ac_sub_configure_args=
25500 for ac_arg in $ac_configure_args; do
25501 if test -n "$ac_prev"; then
25506 -cache-file | --cache-file | --cache-fil | --cache-fi \
25507 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25508 ac_prev=cache_file ;;
25509 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25510 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25513 --config-cache | -C)
25515 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25517 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25519 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25521 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25523 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25527 # Always prepend --prefix to ensure using the same prefix
25528 # in subdir configurations.
25529 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25532 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25534 # Do not complain, so a configure script can configure whichever
25535 # parts of a large source tree are present.
25536 test -d $srcdir/$ac_dir || continue
25538 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25539 echo "$as_me: configuring in $ac_dir" >&6;}
25540 { if $as_mkdir_p; then
25545 while test ! -d "$as_dir"; do
25546 as_dirs="$as_dir $as_dirs"
25547 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25548 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25549 X"$as_dir" : 'X\(//\)[^/]' \| \
25550 X"$as_dir" : 'X\(//\)$' \| \
25551 X"$as_dir" : 'X\(/\)' \| \
25552 . : '\(.\)' 2>/dev/null ||
25554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25555 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25556 /^X\(\/\/\)$/{ s//\1/; q; }
25557 /^X\(\/\).*/{ s//\1/; q; }
25560 test ! -n "$as_dirs" || mkdir $as_dirs
25561 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25562 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25563 { (exit 1); exit 1; }; }; }
25567 if test "$ac_dir" != .; then
25568 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25569 # A "../" for each directory in $ac_dir_suffix.
25570 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25572 ac_dir_suffix= ac_top_builddir=
25576 .) # No --srcdir option. We are building in place.
25578 if test -z "$ac_top_builddir"; then
25581 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25583 [\\/]* | ?:[\\/]* ) # Absolute path.
25584 ac_srcdir=$srcdir$ac_dir_suffix;
25585 ac_top_srcdir=$srcdir ;;
25586 *) # Relative path.
25587 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25588 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25591 # Do not use `cd foo && pwd` to compute absolute paths, because
25592 # the directories may not exist.
25594 .) ac_abs_builddir="$ac_dir";;
25597 .) ac_abs_builddir=`pwd`;;
25598 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25599 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25602 case $ac_abs_builddir in
25603 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25605 case ${ac_top_builddir}. in
25606 .) ac_abs_top_builddir=$ac_abs_builddir;;
25607 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25608 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25611 case $ac_abs_builddir in
25612 .) ac_abs_srcdir=$ac_srcdir;;
25615 .) ac_abs_srcdir=$ac_abs_builddir;;
25616 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25617 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25620 case $ac_abs_builddir in
25621 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25623 case $ac_top_srcdir in
25624 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25625 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25626 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25633 # Check for guested configure; otherwise get Cygnus style configure.
25634 if test -f $ac_srcdir/configure.gnu; then
25635 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25636 elif test -f $ac_srcdir/configure; then
25637 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25638 elif test -f $ac_srcdir/configure.in; then
25639 ac_sub_configure=$ac_configure
25641 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25642 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25646 # The recursion is here.
25647 if test -n "$ac_sub_configure"; then
25648 # Make the cache file name correct relative to the subdirectory.
25649 case $cache_file in
25650 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25651 *) # Relative path.
25652 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25655 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25656 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25657 # The eval makes quoting arguments work.
25658 eval $ac_sub_configure $ac_sub_configure_args \
25659 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25660 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25661 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25662 { (exit 1); exit 1; }; }
25670 if test $llvmgccwarn = yes
25672 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25673 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25674 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25675 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25676 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25677 echo "$as_me: WARNING: ***** " >&2;}
25678 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25679 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25680 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25681 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25682 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25683 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}