2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for LLVM 1.4.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
424 PACKAGE_TARNAME='-llvm-'
425 PACKAGE_VERSION='1.4'
426 PACKAGE_STRING='LLVM 1.4'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_unique_file=""Makefile.config.in""
468 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'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1017 if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of LLVM 1.4:";;
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
1032 --disable-libtool-lock avoid locking (might break parallel builds)
1033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1035 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1036 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
1037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
1039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
1054 Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1075 if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1082 if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 ac_dir_suffix= ac_top_builddir=
1091 .) # No --srcdir option. We are building in place.
1093 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1123 $ac_configure --help
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1135 generated by GNU Autoconf 2.57
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1149 It was created by LLVM $as_me 1.4, which was
1150 generated by GNU Autoconf 2.57. Invocation command line was
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1209 ac_must_keep_next=false
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 -* ) ac_must_keep_next=true ;;
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log. We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1267 # The following way of writing the cache mishandles newlines in values,
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1290 for ac_var in $ac_subst_vars
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1297 if test -n "$ac_subst_files"; then
1304 for ac_var in $ac_subst_files
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1312 if test -s confdefs.h; then
1319 sed "/^$/d" confdefs.h | sort
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 # Predefined preprocessor variables.
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1385 if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1402 # Check that the precious variables saved in the cache have kept the same
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426 echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428 echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445 if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488 if test -f $ac_dir/install-sh; then
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 elif test -f $ac_dir/install.sh; then
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 elif test -f $ac_dir/shtool; then
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505 { (exit 1); exit 1; }; }
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 if test ${srcdir} != "."
1514 if test -f ${srcdir}/include/llvm/Config/config.h
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
1522 for i in `ls ${srcdir}/projects`
1524 if test ${i} != "CVS"
1526 if test -f ${srcdir}/projects/${i}/configure
1530 subdirs="$subdirs projects/${i}"
1536 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1539 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1542 ac_config_commands="$ac_config_commands Makefile"
1545 ac_config_commands="$ac_config_commands Makefile.common"
1548 ac_config_commands="$ac_config_commands examples/Makefile"
1551 ac_config_commands="$ac_config_commands lib/Makefile"
1554 ac_config_commands="$ac_config_commands runtime/Makefile"
1557 ac_config_commands="$ac_config_commands test/Makefile"
1560 ac_config_commands="$ac_config_commands test/Makefile.tests"
1563 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1566 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1569 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1572 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1575 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1578 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1581 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1584 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1587 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1590 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1593 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1596 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1599 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1602 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1605 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1608 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1611 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1614 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1617 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1620 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1623 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1626 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1629 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1632 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1635 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1638 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1641 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1644 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1647 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1650 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1653 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1656 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1659 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1662 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1665 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1668 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1671 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1674 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1677 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1680 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1683 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1686 ac_config_commands="$ac_config_commands tools/Makefile"
1689 ac_config_commands="$ac_config_commands utils/Makefile"
1692 ac_config_commands="$ac_config_commands projects/Makefile"
1696 # Find a good install program. We prefer a C program (faster),
1697 # so one script is as good as another. But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 # Account for people who put trailing slashes in PATH elements.
1721 ./ | .// | /cC/* | \
1722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1725 # OSF1 and SCO ODT 3.0 have their own names for install.
1726 # Don't use installbsd from OSF since it installs stuff as root
1728 for ac_prog in ginstall scoinst install; do
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1731 if test $ac_prog = install &&
1732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1733 # AIX install. It has an incompatible calling convention.
1735 elif test $ac_prog = install &&
1736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737 # program-specific install script used by HP pwplus--don't use.
1740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1752 if test "${ac_cv_path_install+set}" = set; then
1753 INSTALL=$ac_cv_path_install
1755 # As a last resort, use the slow shell script. We don't cache a
1756 # path for INSTALL within a source directory, because that will
1757 # break other packages using the cache if that directory is
1758 # removed, or if the path is relative.
1759 INSTALL=$ac_install_sh
1762 echo "$as_me:$LINENO: result: $INSTALL" >&5
1763 echo "${ECHO_T}$INSTALL" >&6
1765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766 # It thinks the first close brace ends the variable substitution.
1767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1774 # Make sure we can run config.sub.
1775 $ac_config_sub sun4 >/dev/null 2>&1 ||
1776 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1777 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1778 { (exit 1); exit 1; }; }
1780 echo "$as_me:$LINENO: checking build system type" >&5
1781 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1782 if test "${ac_cv_build+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 ac_cv_build_alias=$build_alias
1786 test -z "$ac_cv_build_alias" &&
1787 ac_cv_build_alias=`$ac_config_guess`
1788 test -z "$ac_cv_build_alias" &&
1789 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1790 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1791 { (exit 1); exit 1; }; }
1792 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1793 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1794 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1795 { (exit 1); exit 1; }; }
1798 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1799 echo "${ECHO_T}$ac_cv_build" >&6
1801 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1802 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1803 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1806 echo "$as_me:$LINENO: checking host system type" >&5
1807 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1808 if test "${ac_cv_host+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 ac_cv_host_alias=$host_alias
1812 test -z "$ac_cv_host_alias" &&
1813 ac_cv_host_alias=$ac_cv_build_alias
1814 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1815 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1816 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1817 { (exit 1); exit 1; }; }
1820 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1821 echo "${ECHO_T}$ac_cv_host" >&6
1823 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1824 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1825 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1828 echo "$as_me:$LINENO: checking target system type" >&5
1829 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1830 if test "${ac_cv_target+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 ac_cv_target_alias=$target_alias
1834 test "x$ac_cv_target_alias" = "x" &&
1835 ac_cv_target_alias=$ac_cv_host_alias
1836 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1837 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1838 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1839 { (exit 1); exit 1; }; }
1842 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1843 echo "${ECHO_T}$ac_cv_target" >&6
1844 target=$ac_cv_target
1845 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1846 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1847 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1850 # The aliases save the names the user supplied, while $host etc.
1851 # will get canonicalized.
1852 test -n "$target_alias" &&
1853 test "$program_prefix$program_suffix$program_transform_name" = \
1855 program_prefix=${target_alias}-
1858 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1859 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1869 platform_type="Cygwin"
1874 platform_type="Darwin"
1879 platform_type="FreeBSD"
1884 platform_type="Interix"
1889 platform_type="Linux"
1890 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1892 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1899 platform_type="SunOS"
1900 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1902 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1909 platform_type="Win32"
1914 platform_type="Unknown"
1918 if test "$platform_type" = "Unknown" ; then
1919 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1920 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1921 { (exit 1); exit 1; }; }
1924 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1927 echo "$as_me:$LINENO: result: $platform_type" >&5
1928 echo "${ECHO_T}$platform_type" >&6
1930 echo "$as_me:$LINENO: checking target architecture" >&5
1931 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1933 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1961 echo "$as_me:$LINENO: result: $ARCH" >&5
1962 echo "${ECHO_T}$ARCH" >&6
1965 ac_cpp='$CXXCPP $CPPFLAGS'
1966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CXX+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CXX"; then
1980 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 if test -n "$CXX"; then
2000 echo "$as_me:$LINENO: result: $CXX" >&5
2001 echo "${ECHO_T}$CXX" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2007 test -n "$CXX" && break
2010 if test -z "$CXX"; then
2012 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$ac_ct_CXX"; then
2022 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_ac_ct_CXX="$ac_prog"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2041 if test -n "$ac_ct_CXX"; then
2042 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2043 echo "${ECHO_T}$ac_ct_CXX" >&6
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2049 test -n "$ac_ct_CXX" && break
2051 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2057 # Provide some information about the compiler.
2058 echo "$as_me:$LINENO:" \
2059 "checking for C++ compiler version" >&5
2060 ac_compiler=`set X $ac_compile; echo $2`
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2062 (eval $ac_compiler --version </dev/null >&5) 2>&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2067 (eval $ac_compiler -v </dev/null >&5) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2072 (eval $ac_compiler -V </dev/null >&5) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2077 cat >conftest.$ac_ext <<_ACEOF
2078 #line $LINENO "configure"
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h. */
2093 ac_clean_files_save=$ac_clean_files
2094 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2095 # Try to create an executable without -o first, disregard a.out.
2096 # It will help us diagnose broken compilers, and finding out an intuition
2098 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2099 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2100 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2101 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2102 (eval $ac_link_default) 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; then
2106 # Find the output, starting from the most likely. This scheme is
2107 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2110 # Be careful to initialize this variable, since it used to be cached.
2111 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2113 # b.out is created by i960 compilers.
2114 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2116 test -f "$ac_file" || continue
2118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2121 # This is the source file.
2124 # We found the default executable, but exeext='' is most
2128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129 # FIXME: I believe we export ac_cv_exeext for Libtool,
2130 # but it would be cool to find out if it's true. Does anybody
2131 # maintain Libtool? --akim.
2139 echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: C++ compiler cannot create executables
2145 See \`config.log' for more details." >&2;}
2146 { (exit 77); exit 77; }; }
2149 ac_exeext=$ac_cv_exeext
2150 echo "$as_me:$LINENO: result: $ac_file" >&5
2151 echo "${ECHO_T}$ac_file" >&6
2153 # Check the compiler produces executables we can run. If not, either
2154 # the compiler is broken, or we cross compile.
2155 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2156 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2157 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2158 # If not cross compiling, check that we can run a simple program.
2159 if test "$cross_compiling" != yes; then
2160 if { ac_try='./$ac_file'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2168 if test "$cross_compiling" = maybe; then
2171 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2172 If you meant to cross compile, use \`--host'.
2173 See \`config.log' for more details." >&5
2174 echo "$as_me: error: cannot run C++ compiled programs.
2175 If you meant to cross compile, use \`--host'.
2176 See \`config.log' for more details." >&2;}
2177 { (exit 1); exit 1; }; }
2181 echo "$as_me:$LINENO: result: yes" >&5
2182 echo "${ECHO_T}yes" >&6
2184 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2185 ac_clean_files=$ac_clean_files_save
2186 # Check the compiler produces executables we can run. If not, either
2187 # the compiler is broken, or we cross compile.
2188 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2189 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2190 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2191 echo "${ECHO_T}$cross_compiling" >&6
2193 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2194 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2196 (eval $ac_link) 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; then
2200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2201 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2202 # work properly (i.e., refer to `conftest.exe'), while it won't with
2204 for ac_file in conftest.exe conftest conftest.*; do
2205 test -f "$ac_file" || continue
2207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2222 rm -f conftest$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2224 echo "${ECHO_T}$ac_cv_exeext" >&6
2226 rm -f conftest.$ac_ext
2227 EXEEXT=$ac_cv_exeext
2229 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2230 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2231 if test "${ac_cv_objext+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 cat >conftest.$ac_ext <<_ACEOF
2235 #line $LINENO "configure"
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2250 rm -f conftest.o conftest.obj
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
2256 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2267 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2276 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2277 echo "${ECHO_T}$ac_cv_objext" >&6
2278 OBJEXT=$ac_cv_objext
2280 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2281 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2282 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2323 rm -f conftest.$ac_objext conftest.$ac_ext
2324 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2327 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2328 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2329 GXX=`test $ac_compiler_gnu = yes && echo yes`
2330 ac_test_CXXFLAGS=${CXXFLAGS+set}
2331 ac_save_CXXFLAGS=$CXXFLAGS
2333 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2334 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2335 if test "${ac_cv_prog_cxx_g+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_cv_prog_cxx_g=yes
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2375 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2376 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2377 if test "$ac_test_CXXFLAGS" = set; then
2378 CXXFLAGS=$ac_save_CXXFLAGS
2379 elif test $ac_cv_prog_cxx_g = yes; then
2380 if test "$GXX" = yes; then
2386 if test "$GXX" = yes; then
2392 for ac_declaration in \
2394 '#include <stdlib.h>' \
2395 'extern "C" void std::exit (int) throw (); using std::exit;' \
2396 'extern "C" void std::exit (int); using std::exit;' \
2397 'extern "C" void exit (int) throw ();' \
2398 'extern "C" void exit (int);' \
2401 cat >conftest.$ac_ext <<_ACEOF
2402 #line $LINENO "configure"
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h. */
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2437 rm -f conftest.$ac_objext conftest.$ac_ext
2438 cat >conftest.$ac_ext <<_ACEOF
2439 #line $LINENO "configure"
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.$ac_objext conftest.$ac_ext
2475 if test -n "$ac_declaration"; then
2476 echo '#ifdef __cplusplus' >>confdefs.h
2477 echo $ac_declaration >>confdefs.h
2478 echo '#endif' >>confdefs.h
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2497 echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 if test -n "$CC"; then
2523 echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6
2526 echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6
2530 test -n "$CC" && break
2533 if test -z "$CC"; then
2537 # Extract the first word of "$ac_prog", so it can be a program name with args.
2538 set dummy $ac_prog; ac_word=$2
2539 echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 if test -n "$ac_ct_CC"; then
2545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554 ac_cv_prog_ac_ct_CC="$ac_prog"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564 if test -n "$ac_ct_CC"; then
2565 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2566 echo "${ECHO_T}$ac_ct_CC" >&6
2568 echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6
2572 test -n "$ac_ct_CC" && break
2579 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2580 See \`config.log' for more details." >&5
2581 echo "$as_me: error: no acceptable C compiler found in \$PATH
2582 See \`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }
2585 # Provide some information about the compiler.
2586 echo "$as_me:$LINENO:" \
2587 "checking for C compiler version" >&5
2588 ac_compiler=`set X $ac_compile; echo $2`
2589 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2590 (eval $ac_compiler --version </dev/null >&5) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }
2594 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2595 (eval $ac_compiler -v </dev/null >&5) 2>&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }
2599 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2600 (eval $ac_compiler -V </dev/null >&5) 2>&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }
2605 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2606 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2648 rm -f conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2652 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2654 GCC=`test $ac_compiler_gnu = yes && echo yes`
2655 ac_test_CFLAGS=${CFLAGS+set}
2656 ac_save_CFLAGS=$CFLAGS
2658 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_g+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 cat >conftest.$ac_ext <<_ACEOF
2664 #line $LINENO "configure"
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2679 rm -f conftest.$ac_objext
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try='test -s conftest.$ac_objext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2698 rm -f conftest.$ac_objext conftest.$ac_ext
2700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2702 if test "$ac_test_CFLAGS" = set; then
2703 CFLAGS=$ac_save_CFLAGS
2704 elif test $ac_cv_prog_cc_g = yes; then
2705 if test "$GCC" = yes; then
2711 if test "$GCC" = yes; then
2717 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2718 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2719 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 ac_cv_prog_cc_stdc=no
2724 cat >conftest.$ac_ext <<_ACEOF
2725 #line $LINENO "configure"
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2733 #include <sys/types.h>
2734 #include <sys/stat.h>
2735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2736 struct buf { int x; };
2737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738 static char *e (p, i)
2744 static char *f (char * (*g) (char **, int), char **p, ...)
2749 s = g (p, va_arg (v,int));
2753 int test (int i, double x);
2754 struct s1 {int (*f) (int a);};
2755 struct s2 {int (*f) (double a);};
2756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2767 # Don't try gcc -ansi; that turns off useful extensions and
2768 # breaks some systems' header files.
2769 # AIX -qlanglvl=ansi
2770 # Ultrix and OSF/1 -std1
2771 # HP-UX 10.20 and later -Ae
2772 # HP-UX older versions -Aa -D_HPUX_SOURCE
2773 # SVR4 -Xc -D__EXTENSIONS__
2774 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2776 CC="$ac_save_CC $ac_arg"
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 ac_cv_prog_cc_stdc=$ac_arg
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f conftest.$ac_objext
2798 rm -f conftest.$ac_ext conftest.$ac_objext
2803 case "x$ac_cv_prog_cc_stdc" in
2805 echo "$as_me:$LINENO: result: none needed" >&5
2806 echo "${ECHO_T}none needed" >&6 ;;
2808 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2810 CC="$CC $ac_cv_prog_cc_stdc" ;;
2813 # Some people use a C++ compiler to compile C. Since we use `exit',
2814 # in C++ we need to declare it. In case someone uses the same compiler
2815 # for both compiling C and C++ we need to have the C++ compiler decide
2816 # the declaration of exit, since it's the most demanding environment.
2817 cat >conftest.$ac_ext <<_ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -s conftest.$ac_objext'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 for ac_declaration in \
2836 '#include <stdlib.h>' \
2837 'extern "C" void std::exit (int) throw (); using std::exit;' \
2838 'extern "C" void std::exit (int); using std::exit;' \
2839 'extern "C" void exit (int) throw ();' \
2840 'extern "C" void exit (int);' \
2843 cat >conftest.$ac_ext <<_ACEOF
2844 #line $LINENO "configure"
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try='test -s conftest.$ac_objext'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2879 rm -f conftest.$ac_objext conftest.$ac_ext
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f conftest.$ac_objext conftest.$ac_ext
2917 if test -n "$ac_declaration"; then
2918 echo '#ifdef __cplusplus' >>confdefs.h
2919 echo $ac_declaration >>confdefs.h
2920 echo '#endif' >>confdefs.h
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2928 rm -f conftest.$ac_objext conftest.$ac_ext
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2941 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2942 # On Suns, sometimes $CPP names a directory.
2943 if test -n "$CPP" && test -d "$CPP"; then
2946 if test -z "$CPP"; then
2947 if test "${ac_cv_prog_CPP+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 # Double quotes because CPP needs to be expanded
2951 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2954 for ac_c_preproc_warn_flag in '' yes
2956 # Use a header file that comes with gcc, so configuring glibc
2957 # with a fresh cross-compiler works.
2958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2959 # <limits.h> exists even on freestanding compilers.
2960 # On the NeXT, cc -E runs the code through the compiler's parser,
2961 # not just through cpp. "Syntax error" is here to catch this case.
2962 cat >conftest.$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2970 # include <limits.h>
2972 # include <assert.h>
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null; then
2984 if test -s conftest.err; then
2985 ac_cpp_err=$ac_c_preproc_warn_flag
2992 if test -z "$ac_cpp_err"; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Broken: fails on valid input.
3001 rm -f conftest.err conftest.$ac_ext
3003 # OK, works on sane cases. Now check whether non-existent headers
3004 # can be detected and how.
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012 #include <ac_nonexistent.h>
3014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017 grep -v '^ *+' conftest.er1 >conftest.err
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev/null; then
3022 if test -s conftest.err; then
3023 ac_cpp_err=$ac_c_preproc_warn_flag
3030 if test -z "$ac_cpp_err"; then
3031 # Broken: success on invalid input.
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 # Passes both tests.
3041 rm -f conftest.err conftest.$ac_ext
3044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3045 rm -f conftest.err conftest.$ac_ext
3046 if $ac_preproc_ok; then
3058 echo "$as_me:$LINENO: result: $CPP" >&5
3059 echo "${ECHO_T}$CPP" >&6
3061 for ac_c_preproc_warn_flag in '' yes
3063 # Use a header file that comes with gcc, so configuring glibc
3064 # with a fresh cross-compiler works.
3065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3066 # <limits.h> exists even on freestanding compilers.
3067 # On the NeXT, cc -E runs the code through the compiler's parser,
3068 # not just through cpp. "Syntax error" is here to catch this case.
3069 cat >conftest.$ac_ext <<_ACEOF
3070 #line $LINENO "configure"
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3077 # include <limits.h>
3079 # include <assert.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
3099 if test -z "$ac_cpp_err"; then
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Broken: fails on valid input.
3108 rm -f conftest.err conftest.$ac_ext
3110 # OK, works on sane cases. Now check whether non-existent headers
3111 # can be detected and how.
3112 cat >conftest.$ac_ext <<_ACEOF
3113 #line $LINENO "configure"
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 #include <ac_nonexistent.h>
3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3124 grep -v '^ *+' conftest.er1 >conftest.err
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null; then
3129 if test -s conftest.err; then
3130 ac_cpp_err=$ac_c_preproc_warn_flag
3137 if test -z "$ac_cpp_err"; then
3138 # Broken: success on invalid input.
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 # Passes both tests.
3148 rm -f conftest.err conftest.$ac_ext
3151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3152 rm -f conftest.err conftest.$ac_ext
3153 if $ac_preproc_ok; then
3156 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." >&2;}
3160 { (exit 1); exit 1; }; }
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 if test "$GCC" != "yes"
3172 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3173 echo "$as_me: error: gcc required but not found" >&2;}
3174 { (exit 1); exit 1; }; }
3176 if test "$GXX" != "yes"
3178 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3179 echo "$as_me: error: g++ required but not found" >&2;}
3180 { (exit 1); exit 1; }; }
3183 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3184 if test "$gccmajor" -lt "3"
3186 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3187 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3188 { (exit 1); exit 1; }; }
3191 echo "$as_me:$LINENO: checking for GNU make" >&5
3192 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3193 if test "${_cv_gnu_make_command+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 _cv_gnu_make_command='' ;
3197 for a in "$MAKE" make gmake gnumake ; do
3198 if test -z "$a" ; then continue ; fi ;
3199 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3200 _cv_gnu_make_command=$a ;
3206 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3207 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3208 if test "x$_cv_gnu_make_command" != "x" ; then
3212 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3213 echo "${ECHO_T}\"Not found\"" >&6;
3217 if test -z "$_cv_gnu_make_command"
3219 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3220 echo "$as_me: error: GNU Make required but not found" >&2;}
3221 { (exit 1); exit 1; }; }
3225 echo "$as_me:$LINENO: checking " >&5
3226 echo $ECHO_N "checking ... $ECHO_C" >&6
3227 if test "${ac_cv_has_flex+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 for ac_prog in flex lex
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236 if test "${ac_cv_prog_LEX+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 if test -n "$LEX"; then
3240 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_LEX="$ac_prog"
3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 if test -n "$LEX"; then
3260 echo "$as_me:$LINENO: result: $LEX" >&5
3261 echo "${ECHO_T}$LEX" >&6
3263 echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3267 test -n "$LEX" && break
3269 test -n "$LEX" || LEX=":"
3271 if test -z "$LEXLIB"
3273 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3274 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3275 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 ac_check_lib_save_LIBS=$LIBS
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3288 /* Override any gcc2 internal prototype to avoid an error. */
3292 /* We use char because int might match the return type of a gcc2
3293 builtin and then its argument prototype would still apply. */
3303 rm -f conftest.$ac_objext conftest$ac_exeext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305 (eval $ac_link) 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_lib_fl_yywrap=yes
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 ac_cv_lib_fl_yywrap=no
3322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3323 LIBS=$ac_check_lib_save_LIBS
3325 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3326 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3327 if test $ac_cv_lib_fl_yywrap = yes; then
3330 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3331 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3332 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 ac_check_lib_save_LIBS=$LIBS
3337 cat >conftest.$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3345 /* Override any gcc2 internal prototype to avoid an error. */
3349 /* We use char because int might match the return type of a gcc2
3350 builtin and then its argument prototype would still apply. */
3360 rm -f conftest.$ac_objext conftest$ac_exeext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3362 (eval $ac_link) 2>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -s conftest$ac_exeext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_cv_lib_l_yywrap=yes
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 ac_cv_lib_l_yywrap=no
3379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3380 LIBS=$ac_check_lib_save_LIBS
3382 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3383 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3384 if test $ac_cv_lib_l_yywrap = yes; then
3392 if test "x$LEX" != "x:"; then
3393 echo "$as_me:$LINENO: checking lex output file root" >&5
3394 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3395 if test "${ac_cv_prog_lex_root+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 # The minimal lex program is just a single line: %%. But some broken lexes
3399 # (Solaris, I think it was) want two %% lines, so accommodate them.
3400 cat >conftest.l <<_ACEOF
3404 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3405 (eval $LEX conftest.l) 2>&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }
3409 if test -f lex.yy.c; then
3410 ac_cv_prog_lex_root=lex.yy
3411 elif test -f lexyy.c; then
3412 ac_cv_prog_lex_root=lexyy
3414 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3415 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3416 { (exit 1); exit 1; }; }
3419 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3420 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3422 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3424 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3425 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3426 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 # POSIX says lex can declare yytext either as a pointer or an array; the
3430 # default is implementation-dependent. Figure out which it is, since
3431 # not all implementations provide the %pointer and %array declarations.
3432 ac_cv_prog_lex_yytext_pointer=no
3433 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3435 LIBS="$LIBS $LEXLIB"
3436 cat >conftest.$ac_ext <<_ACEOF
3437 `cat $LEX_OUTPUT_ROOT.c`
3439 rm -f conftest.$ac_objext conftest$ac_exeext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3441 (eval $ac_link) 2>&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -s conftest$ac_exeext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_lex_yytext_pointer=yes
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3459 rm -f "${LEX_OUTPUT_ROOT}.c"
3462 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3463 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3464 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3466 cat >>confdefs.h <<\_ACEOF
3467 #define YYTEXT_POINTER 1
3475 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3476 echo "${ECHO_T}$ac_cv_has_flex" >&6
3477 if test "$LEX" != "flex"; then
3478 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3479 echo "$as_me: error: flex not found but required" >&2;}
3480 { (exit 1); exit 1; }; }
3483 echo "$as_me:$LINENO: checking " >&5
3484 echo $ECHO_N "checking ... $ECHO_C" >&6
3485 if test "${ac_cv_has_bison+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 for ac_prog in 'bison -y' byacc
3490 # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy $ac_prog; ac_word=$2
3492 echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494 if test "${ac_cv_prog_YACC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 if test -n "$YACC"; then
3498 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_YACC="$ac_prog"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 YACC=$ac_cv_prog_YACC
3517 if test -n "$YACC"; then
3518 echo "$as_me:$LINENO: result: $YACC" >&5
3519 echo "${ECHO_T}$YACC" >&6
3521 echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6
3525 test -n "$YACC" && break
3527 test -n "$YACC" || YACC="yacc"
3531 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3532 echo "${ECHO_T}$ac_cv_has_bison" >&6
3533 if test "$YACC" != "bison -y"; then
3534 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3535 echo "$as_me: error: bison not found but required" >&2;}
3536 { (exit 1); exit 1; }; }
3542 # Check whether --enable-shared or --disable-shared was given.
3543 if test "${enable_shared+set}" = set; then
3544 enableval="$enable_shared"
3545 p=${PACKAGE-default}
3547 yes) enable_shared=yes ;;
3548 no) enable_shared=no ;;
3551 # Look at the argument we got. We use all the common list separators.
3552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3553 for pkg in $enableval; do
3555 if test "X$pkg" = "X$p"; then
3566 # Check whether --enable-static or --disable-static was given.
3567 if test "${enable_static+set}" = set; then
3568 enableval="$enable_static"
3569 p=${PACKAGE-default}
3571 yes) enable_static=yes ;;
3572 no) enable_static=no ;;
3575 # Look at the argument we got. We use all the common list separators.
3576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3577 for pkg in $enableval; do
3579 if test "X$pkg" = "X$p"; then
3590 # Check whether --enable-fast-install or --disable-fast-install was given.
3591 if test "${enable_fast_install+set}" = set; then
3592 enableval="$enable_fast_install"
3593 p=${PACKAGE-default}
3595 yes) enable_fast_install=yes ;;
3596 no) enable_fast_install=no ;;
3598 enable_fast_install=no
3599 # Look at the argument we got. We use all the common list separators.
3600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3601 for pkg in $enableval; do
3603 if test "X$pkg" = "X$p"; then
3604 enable_fast_install=yes
3611 enable_fast_install=yes
3614 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3615 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3616 if test "${lt_cv_path_SED+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 # Loop through the user's path and test for sed and gsed.
3620 # Then use that list of sed's as ones to test for truncation.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for lt_ac_prog in sed gsed; do
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3629 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3636 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3637 # along with /bin/sed that truncates output.
3638 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3639 test ! -f $lt_ac_sed && break
3640 cat /dev/null > conftest.in
3642 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3643 # Check for GNU sed and select it if it is found.
3644 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3645 lt_cv_path_SED=$lt_ac_sed
3649 cat conftest.in conftest.in >conftest.tmp
3650 mv conftest.tmp conftest.in
3651 cp conftest.in conftest.nl
3653 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3654 cmp -s conftest.out conftest.nl || break
3655 # 10000 chars as input seems more than enough
3656 test $lt_ac_count -gt 10 && break
3657 lt_ac_count=`expr $lt_ac_count + 1`
3658 if test $lt_ac_count -gt $lt_ac_max; then
3659 lt_ac_max=$lt_ac_count
3660 lt_cv_path_SED=$lt_ac_sed
3668 echo "$as_me:$LINENO: result: $SED" >&5
3669 echo "${ECHO_T}$SED" >&6
3671 echo "$as_me:$LINENO: checking for egrep" >&5
3672 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3673 if test "${ac_cv_prog_egrep+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3677 then ac_cv_prog_egrep='grep -E'
3678 else ac_cv_prog_egrep='egrep'
3681 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3682 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3683 EGREP=$ac_cv_prog_egrep
3687 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3688 if test "${with_gnu_ld+set}" = set; then
3689 withval="$with_gnu_ld"
3690 test "$withval" = no || with_gnu_ld=yes
3695 if test "$GCC" = yes; then
3696 # Check if gcc -print-prog-name=ld gives a path.
3697 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3698 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3701 # gcc leaves a trailing carriage return which upsets mingw
3702 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3704 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3707 # Accept absolute paths.
3709 re_direlt='/[^/][^/]*/\.\./'
3710 # Canonicalize the path of ld
3711 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3712 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3713 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3715 test -z "$LD" && LD="$ac_prog"
3718 # If it fails, then pretend we aren't using GCC.
3722 # If it is relative, then search for the first ld in PATH.
3726 elif test "$with_gnu_ld" = yes; then
3727 echo "$as_me:$LINENO: checking for GNU ld" >&5
3728 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3730 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3731 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3733 if test "${lt_cv_path_LD+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if test -z "$LD"; then
3737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3738 for ac_dir in $PATH; do
3740 test -z "$ac_dir" && ac_dir=.
3741 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3742 lt_cv_path_LD="$ac_dir/$ac_prog"
3743 # Check to see if the program is GNU ld. I'd rather use --version,
3744 # but apparently some GNU ld's only accept -v.
3745 # Break only if it was the GNU/non-GNU ld that we prefer.
3746 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3747 *GNU* | *'with BFD'*)
3748 test "$with_gnu_ld" != no && break
3751 test "$with_gnu_ld" != yes && break
3758 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3763 if test -n "$LD"; then
3764 echo "$as_me:$LINENO: result: $LD" >&5
3765 echo "${ECHO_T}$LD" >&6
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3770 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3771 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3772 { (exit 1); exit 1; }; }
3773 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3774 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3775 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3779 case `"$LD" -v 2>&1 </dev/null` in
3780 *GNU* | *'with BFD'*)
3781 lt_cv_prog_gnu_ld=yes
3784 lt_cv_prog_gnu_ld=no
3788 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3789 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3790 with_gnu_ld=$lt_cv_prog_gnu_ld
3793 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3794 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3795 if test "${lt_cv_ld_reload_flag+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 lt_cv_ld_reload_flag='-r'
3800 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3801 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3802 reload_flag=$lt_cv_ld_reload_flag
3803 case $reload_flag in
3805 *) reload_flag=" $reload_flag" ;;
3807 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3809 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3810 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3811 if test "${lt_cv_path_NM+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 if test -n "$NM"; then
3815 # Let the user override the test.
3818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3819 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3821 test -z "$ac_dir" && ac_dir=.
3822 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3823 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3824 # Check to see if the nm accepts a BSD-compat flag.
3825 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3826 # nm: unknown option "B" ignored
3827 # Tru64's nm complains that /dev/null is an invalid object file
3828 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3829 */dev/null* | *'Invalid file or object type'*)
3830 lt_cv_path_NM="$tmp_nm -B"
3834 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3836 lt_cv_path_NM="$tmp_nm -p"
3840 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3841 continue # so that we can try to find one that supports BSD flags
3848 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3851 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3852 echo "${ECHO_T}$lt_cv_path_NM" >&6
3855 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3856 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3858 if test "$LN_S" = "ln -s"; then
3859 echo "$as_me:$LINENO: result: yes" >&5
3860 echo "${ECHO_T}yes" >&6
3862 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3863 echo "${ECHO_T}no, using $LN_S" >&6
3866 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3867 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3868 if test "${lt_cv_deplibs_check_method+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 lt_cv_file_magic_cmd='$MAGIC_CMD'
3872 lt_cv_file_magic_test_file=
3873 lt_cv_deplibs_check_method='unknown'
3874 # Need to set the preceding variable on all platforms that support
3875 # interlibrary dependencies.
3876 # 'none' -- dependencies not supported.
3877 # `unknown' -- same as none, but documents that we really don't know.
3878 # 'pass_all' -- all dependencies passed with no checks.
3879 # 'test_compile' -- check by making test program.
3880 # 'file_magic [[regex]]' -- check by looking for files in library path
3881 # which responds to the $file_magic_cmd with a given extended regex.
3882 # If you have `file' or equivalent on your system and you're not sure
3883 # whether `pass_all' will *always* work, you probably want this one.
3887 lt_cv_deplibs_check_method=pass_all
3891 lt_cv_deplibs_check_method=pass_all
3895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3896 lt_cv_file_magic_cmd='/usr/bin/file -L'
3897 lt_cv_file_magic_test_file=/shlib/libc.so
3900 cygwin* | mingw* | pw32*)
3901 # win32_libid is a shell function defined in ltmain.sh
3902 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3903 lt_cv_file_magic_cmd='win32_libid'
3906 darwin* | rhapsody*)
3907 # this will be overwritten by pass_all, but leave it in just in case
3908 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3909 lt_cv_file_magic_cmd='/usr/bin/file -L'
3911 rhapsody* | darwin1.[012])
3912 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3915 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3918 lt_cv_deplibs_check_method=pass_all
3922 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3925 # Not sure whether the presence of OpenBSD here was a mistake.
3926 # Let's accept both of them until this is cleared up.
3927 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3928 lt_cv_file_magic_cmd=/usr/bin/file
3929 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3933 lt_cv_deplibs_check_method=pass_all
3938 lt_cv_deplibs_check_method=pass_all
3941 hpux10.20* | hpux11*)
3942 lt_cv_file_magic_cmd=/usr/bin/file
3945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3946 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3949 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]'
3950 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3953 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3954 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3959 irix5* | irix6* | nonstopux*)
3961 irix5* | nonstopux*)
3962 # this will be overridden with pass_all, but let us keep it just in case
3963 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3967 *-32|*"-32 ") libmagic=32-bit;;
3968 *-n32|*"-n32 ") libmagic=N32;;
3969 *-64|*"-64 ") libmagic=64-bit;;
3970 *) libmagic=never-match;;
3972 # this will be overridden with pass_all, but let us keep it just in case
3973 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3976 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3977 lt_cv_deplibs_check_method=pass_all
3980 # This must be Linux ELF.
3983 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3984 lt_cv_deplibs_check_method=pass_all ;;
3986 # glibc up to 2.1.1 does not perform some relocations on ARM
3987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3989 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3993 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4002 lt_cv_file_magic_cmd=/usr/bin/file
4003 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4007 lt_cv_deplibs_check_method=unknown
4011 lt_cv_file_magic_cmd=/usr/bin/file
4012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4016 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4020 osf3* | osf4* | osf5*)
4021 # this will be overridden with pass_all, but let us keep it just in case
4022 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4023 lt_cv_file_magic_test_file=/shlib/libc.so
4024 lt_cv_deplibs_check_method=pass_all
4028 lt_cv_deplibs_check_method=pass_all
4032 lt_cv_deplibs_check_method=pass_all
4033 lt_cv_file_magic_test_file=/lib/libc.so
4036 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4037 case $host_vendor in
4039 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]'
4040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4043 lt_cv_deplibs_check_method=pass_all
4046 lt_cv_file_magic_cmd='/bin/file'
4047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4050 lt_cv_file_magic_cmd='/bin/file'
4051 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4052 lt_cv_file_magic_test_file=/lib/libc.so
4055 lt_cv_deplibs_check_method=pass_all
4060 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4061 lt_cv_deplibs_check_method=pass_all
4066 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4067 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4068 file_magic_cmd=$lt_cv_file_magic_cmd
4069 deplibs_check_method=$lt_cv_deplibs_check_method
4070 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4075 # If no C compiler was specified, use CC.
4078 # Allow CC to be a program name with arguments.
4081 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4082 if test "${enable_libtool_lock+set}" = set; then
4083 enableval="$enable_libtool_lock"
4086 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4088 # Some flags need to be propagated to the compiler or linker for good
4092 # Find out which ABI we are using.
4093 echo 'int i;' > conftest.$ac_ext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; then
4099 case `/usr/bin/file conftest.$ac_objext` in
4111 # Find out which ABI we are using.
4112 echo '#line 4112 "configure"' > conftest.$ac_ext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; then
4118 if test "$lt_cv_prog_gnu_ld" = yes; then
4119 case `/usr/bin/file conftest.$ac_objext` in
4121 LD="${LD-ld} -melf32bsmip"
4124 LD="${LD-ld} -melf32bmipn32"
4127 LD="${LD-ld} -melf64bmip"
4131 case `/usr/bin/file conftest.$ac_objext` in
4147 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4148 # Find out which ABI we are using.
4149 echo 'int i;' > conftest.$ac_ext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; then
4155 case "`/usr/bin/file conftest.o`" in
4159 LD="${LD-ld} -m elf_i386"
4162 LD="${LD-ld} -m elf32ppclinux"
4165 LD="${LD-ld} -m elf_s390"
4168 LD="${LD-ld} -m elf32_sparc"
4175 LD="${LD-ld} -m elf_x86_64"
4177 ppc*-*linux*|powerpc*-*linux*)
4178 LD="${LD-ld} -m elf64ppc"
4181 LD="${LD-ld} -m elf64_s390"
4184 LD="${LD-ld} -m elf64_sparc"
4194 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4195 SAVE_CFLAGS="$CFLAGS"
4196 CFLAGS="$CFLAGS -belf"
4197 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4198 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4199 if test "${lt_cv_cc_needs_belf+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208 cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4224 rm -f conftest.$ac_objext conftest$ac_exeext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226 (eval $ac_link) 2>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -s conftest$ac_exeext'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 lt_cv_cc_needs_belf=yes
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 lt_cv_cc_needs_belf=no
4243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4252 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4253 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4255 CFLAGS="$SAVE_CFLAGS"
4261 need_locks="$enable_libtool_lock"
4265 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4266 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4267 if test "${ac_cv_header_stdc+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 cat >conftest.$ac_ext <<_ACEOF
4271 #line $LINENO "configure"
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292 (eval $ac_compile) 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 ac_cv_header_stdc=yes
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4307 ac_cv_header_stdc=no
4309 rm -f conftest.$ac_objext conftest.$ac_ext
4311 if test $ac_cv_header_stdc = yes; then
4312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4313 cat >conftest.$ac_ext <<_ACEOF
4314 #line $LINENO "configure"
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324 $EGREP "memchr" >/dev/null 2>&1; then
4327 ac_cv_header_stdc=no
4333 if test $ac_cv_header_stdc = yes; then
4334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4335 cat >conftest.$ac_ext <<_ACEOF
4336 #line $LINENO "configure"
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 $EGREP "free" >/dev/null 2>&1; then
4349 ac_cv_header_stdc=no
4355 if test $ac_cv_header_stdc = yes; then
4356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4357 if test "$cross_compiling" = yes; then
4360 cat >conftest.$ac_ext <<_ACEOF
4361 #line $LINENO "configure"
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4368 #if ((' ' & 0x0FF) == 0x020)
4369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372 # define ISLOWER(c) \
4373 (('a' <= (c) && (c) <= 'i') \
4374 || ('j' <= (c) && (c) <= 'r') \
4375 || ('s' <= (c) && (c) <= 'z'))
4376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4384 for (i = 0; i < 256; i++)
4385 if (XOR (islower (i), ISLOWER (i))
4386 || toupper (i) != TOUPPER (i))
4391 rm -f conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4404 echo "$as_me: program exited with status $ac_status" >&5
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4409 ac_cv_header_stdc=no
4411 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417 if test $ac_cv_header_stdc = yes; then
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 $ac_includes_default
4453 #include <$ac_header>
4455 rm -f conftest.$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 eval "$as_ac_Header=yes"
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 eval "$as_ac_Header=no"
4474 rm -f conftest.$ac_objext conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4479 cat >>confdefs.h <<_ACEOF
4480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489 for ac_header in dlfcn.h
4491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493 echo "$as_me:$LINENO: checking for $ac_header" >&5
4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4501 # Is the header compilable?
4502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4504 cat >conftest.$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 $ac_includes_default
4512 #include <$ac_header>
4514 rm -f conftest.$ac_objext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516 (eval $ac_compile) 2>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -s conftest.$ac_objext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_header_compiler=yes
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4531 ac_header_compiler=no
4533 rm -f conftest.$ac_objext conftest.$ac_ext
4534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4535 echo "${ECHO_T}$ac_header_compiler" >&6
4537 # Is the header present?
4538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4540 cat >conftest.$ac_ext <<_ACEOF
4541 #line $LINENO "configure"
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4547 #include <$ac_header>
4549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } >/dev/null; then
4557 if test -s conftest.err; then
4558 ac_cpp_err=$ac_c_preproc_warn_flag
4565 if test -z "$ac_cpp_err"; then
4566 ac_header_preproc=yes
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 ac_header_preproc=no
4573 rm -f conftest.err conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4575 echo "${ECHO_T}$ac_header_preproc" >&6
4577 # So? What about this header?
4578 case $ac_header_compiler:$ac_header_preproc in
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4586 ## ------------------------------------ ##
4587 ## Report this to bug-autoconf@gnu.org. ##
4588 ## ------------------------------------ ##
4591 sed "s/^/$as_me: WARNING: /" >&2
4594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4602 ## ------------------------------------ ##
4603 ## Report this to bug-autoconf@gnu.org. ##
4604 ## ------------------------------------ ##
4607 sed "s/^/$as_me: WARNING: /" >&2
4610 echo "$as_me:$LINENO: checking for $ac_header" >&5
4611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 eval "$as_ac_Header=$ac_header_preproc"
4617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4622 cat >>confdefs.h <<_ACEOF
4623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4631 ac_cpp='$CXXCPP $CPPFLAGS'
4632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4635 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4636 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4637 if test -z "$CXXCPP"; then
4638 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 # Double quotes because CXXCPP needs to be expanded
4642 for CXXCPP in "$CXX -E" "/lib/cpp"
4645 for ac_cxx_preproc_warn_flag in '' yes
4647 # Use a header file that comes with gcc, so configuring glibc
4648 # with a fresh cross-compiler works.
4649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650 # <limits.h> exists even on freestanding compilers.
4651 # On the NeXT, cc -E runs the code through the compiler's parser,
4652 # not just through cpp. "Syntax error" is here to catch this case.
4653 cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4661 # include <limits.h>
4663 # include <assert.h>
4667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4670 grep -v '^ *+' conftest.er1 >conftest.err
4672 cat conftest.err >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } >/dev/null; then
4675 if test -s conftest.err; then
4676 ac_cpp_err=$ac_cxx_preproc_warn_flag
4683 if test -z "$ac_cpp_err"; then
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 # Broken: fails on valid input.
4692 rm -f conftest.err conftest.$ac_ext
4694 # OK, works on sane cases. Now check whether non-existent headers
4695 # can be detected and how.
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 #include <ac_nonexistent.h>
4705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4708 grep -v '^ *+' conftest.er1 >conftest.err
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } >/dev/null; then
4713 if test -s conftest.err; then
4714 ac_cpp_err=$ac_cxx_preproc_warn_flag
4721 if test -z "$ac_cpp_err"; then
4722 # Broken: success on invalid input.
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 # Passes both tests.
4732 rm -f conftest.err conftest.$ac_ext
4735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4736 rm -f conftest.err conftest.$ac_ext
4737 if $ac_preproc_ok; then
4742 ac_cv_prog_CXXCPP=$CXXCPP
4745 CXXCPP=$ac_cv_prog_CXXCPP
4747 ac_cv_prog_CXXCPP=$CXXCPP
4749 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4750 echo "${ECHO_T}$CXXCPP" >&6
4752 for ac_cxx_preproc_warn_flag in '' yes
4754 # Use a header file that comes with gcc, so configuring glibc
4755 # with a fresh cross-compiler works.
4756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4757 # <limits.h> exists even on freestanding compilers.
4758 # On the NeXT, cc -E runs the code through the compiler's parser,
4759 # not just through cpp. "Syntax error" is here to catch this case.
4760 cat >conftest.$ac_ext <<_ACEOF
4761 #line $LINENO "configure"
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4768 # include <limits.h>
4770 # include <assert.h>
4774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } >/dev/null; then
4782 if test -s conftest.err; then
4783 ac_cpp_err=$ac_cxx_preproc_warn_flag
4790 if test -z "$ac_cpp_err"; then
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 # Broken: fails on valid input.
4799 rm -f conftest.err conftest.$ac_ext
4801 # OK, works on sane cases. Now check whether non-existent headers
4802 # can be detected and how.
4803 cat >conftest.$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 #include <ac_nonexistent.h>
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev/null; then
4820 if test -s conftest.err; then
4821 ac_cpp_err=$ac_cxx_preproc_warn_flag
4828 if test -z "$ac_cpp_err"; then
4829 # Broken: success on invalid input.
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 # Passes both tests.
4839 rm -f conftest.err conftest.$ac_ext
4842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4843 rm -f conftest.err conftest.$ac_ext
4844 if $ac_preproc_ok; then
4847 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4848 See \`config.log' for more details." >&5
4849 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4850 See \`config.log' for more details." >&2;}
4851 { (exit 1); exit 1; }; }
4855 ac_cpp='$CXXCPP $CPPFLAGS'
4856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4862 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4863 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4865 if test -n "$ac_tool_prefix"; then
4866 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4870 echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4872 if test "${ac_cv_prog_F77+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 if test -n "$F77"; then
4876 ac_cv_prog_F77="$F77" # Let the user override the test.
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 if test -n "$F77"; then
4896 echo "$as_me:$LINENO: result: $F77" >&5
4897 echo "${ECHO_T}$F77" >&6
4899 echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6
4903 test -n "$F77" && break
4906 if test -z "$F77"; then
4908 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4910 # Extract the first word of "$ac_prog", so it can be a program name with args.
4911 set dummy $ac_prog; ac_word=$2
4912 echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 if test -n "$ac_ct_F77"; then
4918 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_ac_ct_F77="$ac_prog"
4928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4937 if test -n "$ac_ct_F77"; then
4938 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4939 echo "${ECHO_T}$ac_ct_F77" >&6
4941 echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6
4945 test -n "$ac_ct_F77" && break
4952 # Provide some information about the compiler.
4953 echo "$as_me:4953:" \
4954 "checking for Fortran 77 compiler version" >&5
4955 ac_compiler=`set X $ac_compile; echo $2`
4956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4957 (eval $ac_compiler --version </dev/null >&5) 2>&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }
4961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4962 (eval $ac_compiler -v </dev/null >&5) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }
4966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4967 (eval $ac_compiler -V </dev/null >&5) 2>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }
4972 # If we don't use `.F' as extension, the preprocessor is not run on the
4976 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4977 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4978 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 cat >conftest.$ac_ext <<_ACEOF
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5008 rm -f conftest.$ac_objext conftest.$ac_ext
5009 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5012 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5013 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5015 G77=`test $ac_compiler_gnu = yes && echo yes`
5016 ac_test_FFLAGS=${FFLAGS+set}
5017 ac_save_FFLAGS=$FFLAGS
5019 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5020 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5021 if test "${ac_cv_prog_f77_g+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 cat >conftest.$ac_ext <<_ACEOF
5030 rm -f conftest.$ac_objext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032 (eval $ac_compile) 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -s conftest.$ac_objext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_prog_f77_g=yes
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5049 rm -f conftest.$ac_objext conftest.$ac_ext
5052 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5053 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5054 if test "$ac_test_FFLAGS" = set; then
5055 FFLAGS=$ac_save_FFLAGS
5056 elif test $ac_cv_prog_f77_g = yes; then
5057 if test "$G77" = yes; then
5063 if test "$G77" = yes; then
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5079 # find the maximum length of command line arguments
5080 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5081 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5082 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 # On DJGPP, this test can blow up pretty badly due to problems in libc
5091 # (any single argument exceeding 2000 bytes causes a buffer overrun
5092 # during glob expansion). Even if it were fixed, the result of this
5093 # check would be larger than it should be.
5094 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5098 # Under GNU Hurd, this test is not required because there is
5099 # no limit to the length of command line arguments.
5100 # Libtool will interpret -1 as no limit whatsoever
5101 lt_cv_sys_max_cmd_len=-1;
5105 # On Win9x/ME, this test blows up -- it succeeds, but takes
5106 # about 5 minutes as the teststring grows exponentially.
5107 # Worse, since 9x/ME are not pre-emptively multitasking,
5108 # you end up with a "frozen" computer, even though with patience
5109 # the test eventually succeeds (with a max line length of 256k).
5110 # Instead, let's just punt: use the minimum linelength reported by
5111 # all of the supported platforms: 8192 (on NT/2K/XP).
5112 lt_cv_sys_max_cmd_len=8192;
5116 # If test is not a shell built-in, we'll probably end up computing a
5117 # maximum length that is only half of the actual maximum length, but
5119 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5120 = "XX$testring") >/dev/null 2>&1 &&
5121 new_result=`expr "X$testring" : ".*" 2>&1` &&
5122 lt_cv_sys_max_cmd_len=$new_result &&
5123 test $i != 17 # 1/2 MB should be enough
5126 testring=$testring$testring
5129 # Add a significant safety factor because C++ compilers can tack on massive
5130 # amounts of additional arguments before passing them to the linker.
5131 # It appears as though 1/2 is a usable value.
5132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5138 if test -n $lt_cv_sys_max_cmd_len ; then
5139 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5140 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5142 echo "$as_me:$LINENO: result: none" >&5
5143 echo "${ECHO_T}none" >&6
5149 # Check for command to grab the raw symbol name followed by C symbol from nm.
5150 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5151 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5152 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 # These are sane defaults that work on at least a few old systems.
5157 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5159 # Character class describing NM global symbol codes.
5160 symcode='[BCDEGRST]'
5162 # Regexp to match symbols that can be accessed directly from C.
5163 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5165 # Transform the above into a raw symbol and a C symbol.
5166 symxfrm='\1 \2\3 \3'
5168 # Transform an extracted symbol line into a proper C declaration
5169 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5171 # Transform an extracted symbol line into symbol name and symbol address
5172 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'"
5174 # Define system-specific variables.
5179 cygwin* | mingw* | pw32*)
5180 symcode='[ABCDGISTW]'
5182 hpux*) # Its linker distinguishes data from code symbols
5183 if test "$host_cpu" = ia64; then
5184 symcode='[ABCDEGRST]'
5186 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5187 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'"
5190 symcode='[BCDEGRST]'
5193 symcode='[BCDEGQRST]'
5203 # Handle CRLF in mingw tool chain
5207 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5211 # If we're using GNU nm, then use its standard symbol codes.
5212 case `$NM -V 2>&1` in
5213 *GNU* | *'with BFD'*)
5214 symcode='[ABCDGISTW]' ;;
5217 # Try without a prefix undercore, then with it.
5218 for ac_symprfx in "" "_"; do
5220 # Write the raw and C identifiers.
5221 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5223 # Check to see that the pipe works correctly.
5227 cat > conftest.$ac_ext <<EOF
5232 void nm_test_func(){}
5236 int main(){nm_test_var='a';nm_test_func();return(0);}
5239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240 (eval $ac_compile) 2>&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; then
5244 # Now try to grab the symbols.
5246 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5247 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } && test -s "$nlist"; then
5251 # Try sorting and uniquifying the output.
5252 if sort "$nlist" | uniq > "$nlist"T; then
5253 mv -f "$nlist"T "$nlist"
5258 # Make sure that we snagged all the symbols we need.
5259 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5260 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5261 cat <<EOF > conftest.$ac_ext
5267 # Now generate the symbol file.
5268 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5270 cat <<EOF >> conftest.$ac_ext
5271 #if defined (__STDC__) && __STDC__
5272 # define lt_ptr_t void *
5274 # define lt_ptr_t char *
5278 /* The mapping between symbol names and symbols. */
5283 lt_preloaded_symbols[] =
5286 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5287 cat <<\EOF >> conftest.$ac_ext
5295 # Now try linking the two files.
5296 mv conftest.$ac_objext conftstm.$ac_objext
5297 lt_save_LIBS="$LIBS"
5298 lt_save_CFLAGS="$CFLAGS"
5299 LIBS="conftstm.$ac_objext"
5300 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5302 (eval $ac_link) 2>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5308 LIBS="$lt_save_LIBS"
5309 CFLAGS="$lt_save_CFLAGS"
5311 echo "cannot find nm_test_func in $nlist" >&5
5314 echo "cannot find nm_test_var in $nlist" >&5
5317 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5320 echo "$progname: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5323 rm -f conftest* conftst*
5325 # Do not use the global_symbol_pipe unless it works.
5326 if test "$pipe_works" = yes; then
5329 lt_cv_sys_global_symbol_pipe=
5335 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5336 lt_cv_sys_global_symbol_to_cdecl=
5338 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5339 echo "$as_me:$LINENO: result: failed" >&5
5340 echo "${ECHO_T}failed" >&6
5342 echo "$as_me:$LINENO: result: ok" >&5
5343 echo "${ECHO_T}ok" >&6
5346 echo "$as_me:$LINENO: checking for objdir" >&5
5347 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5348 if test "${lt_cv_objdir+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 rm -f .libs 2>/dev/null
5352 mkdir .libs 2>/dev/null
5353 if test -d .libs; then
5356 # MS-DOS does not allow filenames that begin with a dot.
5359 rmdir .libs 2>/dev/null
5361 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5362 echo "${ECHO_T}$lt_cv_objdir" >&6
5363 objdir=$lt_cv_objdir
5371 # AIX sometimes has problems with the GCC collect2 program. For some
5372 # reason, if we set the COLLECT_NAMES environment variable, the problems
5373 # vanish in a puff of smoke.
5374 if test "X${COLLECT_NAMES+set}" != Xset; then
5376 export COLLECT_NAMES
5381 # Sed substitution that helps us do robust quoting. It backslashifies
5382 # metacharacters that are still active within double-quoted strings.
5383 Xsed='sed -e s/^X//'
5384 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5386 # Same as above, but do not quote variable references.
5387 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5389 # Sed substitution to delay expansion of an escaped shell variable in a
5390 # double_quote_subst'ed string.
5391 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5393 # Sed substitution to avoid accidental globbing in evaled expressions
5394 no_glob_subst='s/\*/\\\*/g'
5401 can_build_shared=yes
5403 # All known linkers require a `.a' archive for static linking (except M$VC,
5404 # which needs '.lib').
5406 ltmain="$ac_aux_dir/ltmain.sh"
5407 ofile="$default_ofile"
5408 with_gnu_ld="$lt_cv_prog_gnu_ld"
5410 if test -n "$ac_tool_prefix"; then
5411 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5412 set dummy ${ac_tool_prefix}ar; ac_word=$2
5413 echo "$as_me:$LINENO: checking for $ac_word" >&5
5414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5415 if test "${ac_cv_prog_AR+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 if test -n "$AR"; then
5419 ac_cv_prog_AR="$AR" # Let the user override the test.
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428 ac_cv_prog_AR="${ac_tool_prefix}ar"
5429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 if test -n "$AR"; then
5439 echo "$as_me:$LINENO: result: $AR" >&5
5440 echo "${ECHO_T}$AR" >&6
5442 echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6
5447 if test -z "$ac_cv_prog_AR"; then
5449 # Extract the first word of "ar", so it can be a program name with args.
5450 set dummy ar; ac_word=$2
5451 echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5453 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 if test -n "$ac_ct_AR"; then
5457 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_ac_ct_AR="ar"
5467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5476 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5477 if test -n "$ac_ct_AR"; then
5478 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5479 echo "${ECHO_T}$ac_ct_AR" >&6
5481 echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6
5490 if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5493 echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5495 if test "${ac_cv_prog_RANLIB+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 if test -n "$RANLIB"; then
5499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 RANLIB=$ac_cv_prog_RANLIB
5518 if test -n "$RANLIB"; then
5519 echo "$as_me:$LINENO: result: $RANLIB" >&5
5520 echo "${ECHO_T}$RANLIB" >&6
5522 echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6
5527 if test -z "$ac_cv_prog_RANLIB"; then
5528 ac_ct_RANLIB=$RANLIB
5529 # Extract the first word of "ranlib", so it can be a program name with args.
5530 set dummy ranlib; ac_word=$2
5531 echo "$as_me:$LINENO: checking for $ac_word" >&5
5532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5533 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 if test -n "$ac_ct_RANLIB"; then
5537 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_ac_ct_RANLIB="ranlib"
5547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5556 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5557 if test -n "$ac_ct_RANLIB"; then
5558 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5559 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5561 echo "$as_me:$LINENO: result: no" >&5
5562 echo "${ECHO_T}no" >&6
5565 RANLIB=$ac_ct_RANLIB
5567 RANLIB="$ac_cv_prog_RANLIB"
5570 if test -n "$ac_tool_prefix"; then
5571 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}strip; ac_word=$2
5573 echo "$as_me:$LINENO: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5575 if test "${ac_cv_prog_STRIP+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 if test -n "$STRIP"; then
5579 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 STRIP=$ac_cv_prog_STRIP
5598 if test -n "$STRIP"; then
5599 echo "$as_me:$LINENO: result: $STRIP" >&5
5600 echo "${ECHO_T}$STRIP" >&6
5602 echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6
5607 if test -z "$ac_cv_prog_STRIP"; then
5609 # Extract the first word of "strip", so it can be a program name with args.
5610 set dummy strip; ac_word=$2
5611 echo "$as_me:$LINENO: checking for $ac_word" >&5
5612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5613 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 if test -n "$ac_ct_STRIP"; then
5617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_ac_ct_STRIP="strip"
5627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5636 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5637 if test -n "$ac_ct_STRIP"; then
5638 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5639 echo "${ECHO_T}$ac_ct_STRIP" >&6
5641 echo "$as_me:$LINENO: result: no" >&5
5642 echo "${ECHO_T}no" >&6
5647 STRIP="$ac_cv_prog_STRIP"
5652 old_CFLAGS="$CFLAGS"
5654 # Set sane defaults for various variables
5655 test -z "$AR" && AR=ar
5656 test -z "$AR_FLAGS" && AR_FLAGS=cru
5657 test -z "$AS" && AS=as
5658 test -z "$CC" && CC=cc
5659 test -z "$LTCC" && LTCC=$CC
5660 test -z "$DLLTOOL" && DLLTOOL=dlltool
5661 test -z "$LD" && LD=ld
5662 test -z "$LN_S" && LN_S="ln -s"
5663 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5664 test -z "$NM" && NM=nm
5665 test -z "$SED" && SED=sed
5666 test -z "$OBJDUMP" && OBJDUMP=objdump
5667 test -z "$RANLIB" && RANLIB=:
5668 test -z "$STRIP" && STRIP=:
5669 test -z "$ac_objext" && ac_objext=o
5671 # Determine commands to create old-style static archives.
5672 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5673 old_postinstall_cmds='chmod 644 $oldlib'
5674 old_postuninstall_cmds=
5676 if test -n "$RANLIB"; then
5679 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5682 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5685 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5688 # Only perform the check for file, if the check method requires it
5689 case $deplibs_check_method in
5691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5692 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5693 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5694 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5702 lt_save_MAGIC_CMD="$MAGIC_CMD"
5703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5705 for ac_dir in $ac_dummy; do
5707 test -z "$ac_dir" && ac_dir=.
5708 if test -f $ac_dir/${ac_tool_prefix}file; then
5709 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5710 if test -n "$file_magic_test_file"; then
5711 case $deplibs_check_method in
5713 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5716 $EGREP "$file_magic_regex" > /dev/null; then
5721 *** Warning: the command libtool uses to detect shared libraries,
5722 *** $file_magic_cmd, produces output that libtool cannot recognize.
5723 *** The result is that libtool may fail to recognize shared libraries
5724 *** as such. This will affect the creation of libtool libraries that
5725 *** depend on shared libraries, but programs linked with such libtool
5726 *** libraries will work regardless of this problem. Nevertheless, you
5727 *** may want to report the problem to your system manager and/or to
5728 *** bug-libtool@gnu.org
5738 MAGIC_CMD="$lt_save_MAGIC_CMD"
5743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5744 if test -n "$MAGIC_CMD"; then
5745 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5746 echo "${ECHO_T}$MAGIC_CMD" >&6
5748 echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5752 if test -z "$lt_cv_path_MAGIC_CMD"; then
5753 if test -n "$ac_tool_prefix"; then
5754 echo "$as_me:$LINENO: checking for file" >&5
5755 echo $ECHO_N "checking for file... $ECHO_C" >&6
5756 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5764 lt_save_MAGIC_CMD="$MAGIC_CMD"
5765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5766 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5767 for ac_dir in $ac_dummy; do
5769 test -z "$ac_dir" && ac_dir=.
5770 if test -f $ac_dir/file; then
5771 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5772 if test -n "$file_magic_test_file"; then
5773 case $deplibs_check_method in
5775 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5778 $EGREP "$file_magic_regex" > /dev/null; then
5783 *** Warning: the command libtool uses to detect shared libraries,
5784 *** $file_magic_cmd, produces output that libtool cannot recognize.
5785 *** The result is that libtool may fail to recognize shared libraries
5786 *** as such. This will affect the creation of libtool libraries that
5787 *** depend on shared libraries, but programs linked with such libtool
5788 *** libraries will work regardless of this problem. Nevertheless, you
5789 *** may want to report the problem to your system manager and/or to
5790 *** bug-libtool@gnu.org
5800 MAGIC_CMD="$lt_save_MAGIC_CMD"
5805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5806 if test -n "$MAGIC_CMD"; then
5807 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5808 echo "${ECHO_T}$MAGIC_CMD" >&6
5810 echo "$as_me:$LINENO: result: no" >&5
5811 echo "${ECHO_T}no" >&6
5826 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5827 if test "${enable_libtool_lock+set}" = set; then
5828 enableval="$enable_libtool_lock"
5831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5834 # Check whether --with-pic or --without-pic was given.
5835 if test "${with_pic+set}" = set; then
5841 test -z "$pic_mode" && pic_mode=default
5843 # Use C for the default configuration in the libtool script
5847 ac_cpp='$CPP $CPPFLAGS'
5848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853 # Source file extension for C test sources.
5856 # Object file extension for compiled C test sources.
5860 # Code to be used in simple compile tests
5861 lt_simple_compile_test_code="int some_variable = 0;\n"
5863 # Code to be used in simple link tests
5864 lt_simple_link_test_code='int main(){return(0);}\n'
5867 # If no C compiler was specified, use CC.
5870 # Allow CC to be a program name with arguments.
5875 # Check for any special shared library compilation flags.
5878 if test "$GCC" = no; then
5881 lt_prog_cc_shlib='-belf'
5885 if test -n "$lt_prog_cc_shlib"; then
5886 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5887 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5888 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5890 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5891 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5892 lt_cv_prog_cc_can_build_shared=no
5898 # Check to make sure the static flag actually works.
5900 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5901 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5902 if test "${lt_prog_compiler_static_works+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 lt_prog_compiler_static_works=no
5906 save_LDFLAGS="$LDFLAGS"
5907 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5908 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5909 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5910 # The compiler can only warn and ignore the option if not recognized
5911 # So say no if there are warnings
5912 if test -s conftest.err; then
5913 # Append any errors to the config.log.
5914 cat conftest.err 1>&5
5916 lt_prog_compiler_static_works=yes
5920 LDFLAGS="$save_LDFLAGS"
5923 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5924 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5926 if test x"$lt_prog_compiler_static_works" = xyes; then
5929 lt_prog_compiler_static=
5935 lt_prog_compiler_no_builtin_flag=
5937 if test "$GCC" = yes; then
5938 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5940 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5941 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5942 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 lt_cv_prog_compiler_rtti_exceptions=no
5946 ac_outfile=conftest.$ac_objext
5947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5948 lt_compiler_flag="-fno-rtti -fno-exceptions"
5949 # Insert the option either (1) after the last *FLAGS variable, or
5950 # (2) before a word containing "conftest.", or (3) at the end.
5951 # Note that $ac_compile itself does not contain backslashes and begins
5952 # with a dollar sign (not a hyphen), so the echo should work correctly.
5953 # The option is referenced via a variable to avoid confusing sed.
5954 lt_compile=`echo "$ac_compile" | $SED \
5955 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5957 -e 's:$: $lt_compiler_flag:'`
5958 (eval echo "\"\$as_me:5958: $lt_compile\"" >&5)
5959 (eval "$lt_compile" 2>conftest.err)
5961 cat conftest.err >&5
5962 echo "$as_me:5962: \$? = $ac_status" >&5
5963 if (exit $ac_status) && test -s "$ac_outfile"; then
5964 # The compiler can only warn and ignore the option if not recognized
5965 # So say no if there are warnings
5966 if test ! -s conftest.err; then
5967 lt_cv_prog_compiler_rtti_exceptions=yes
5973 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5974 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5976 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5977 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5984 lt_prog_compiler_wl=
5985 lt_prog_compiler_pic=
5986 lt_prog_compiler_static=
5988 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5989 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5991 if test "$GCC" = yes; then
5992 lt_prog_compiler_wl='-Wl,'
5993 lt_prog_compiler_static='-static'
5997 # All AIX code is PIC.
5998 if test "$host_cpu" = ia64; then
5999 # AIX 5 now supports IA64 processor
6000 lt_prog_compiler_static='-Bstatic'
6005 # FIXME: we need at least 68020 code to build shared libraries, but
6006 # adding the `-m68020' flag to GCC prevents building anything better,
6008 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6011 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6012 # PIC is the default for these OSes.
6015 mingw* | pw32* | os2*)
6016 # This hack is so that the source file can tell whether it is being
6017 # built for inclusion in a dll (and should export symbols for example).
6018 lt_prog_compiler_pic='-DDLL_EXPORT'
6021 darwin* | rhapsody*)
6022 # PIC is the default on this platform
6023 # Common symbols not allowed in MH_DYLIB files
6024 lt_prog_compiler_pic='-fno-common'
6028 # Just because we use GCC doesn't mean we suddenly get shared libraries
6029 # on systems that don't support them.
6030 lt_prog_compiler_can_build_shared=no
6035 if test -d /usr/nec; then
6036 lt_prog_compiler_pic=-Kconform_pic
6041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6048 lt_prog_compiler_pic='-fPIC'
6054 lt_prog_compiler_pic='-fPIC'
6058 # PORTME Check for flag to pass linker flags through the system compiler.
6061 lt_prog_compiler_wl='-Wl,'
6062 if test "$host_cpu" = ia64; then
6063 # AIX 5 now supports IA64 processor
6064 lt_prog_compiler_static='-Bstatic'
6066 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6070 mingw* | pw32* | os2*)
6071 # This hack is so that the source file can tell whether it is being
6072 # built for inclusion in a dll (and should export symbols for example).
6073 lt_prog_compiler_pic='-DDLL_EXPORT'
6076 hpux9* | hpux10* | hpux11*)
6077 lt_prog_compiler_wl='-Wl,'
6078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6085 lt_prog_compiler_pic='+Z'
6088 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6089 lt_prog_compiler_static='${wl}-a ${wl}archive'
6092 irix5* | irix6* | nonstopux*)
6093 lt_prog_compiler_wl='-Wl,'
6094 # PIC (with -KPIC) is the default.
6095 lt_prog_compiler_static='-non_shared'
6099 lt_prog_compiler_pic='-KPIC'
6100 lt_prog_compiler_static='-Bstatic'
6106 lt_prog_compiler_wl='-Wl,'
6107 lt_prog_compiler_pic='-KPIC'
6108 lt_prog_compiler_static='-static'
6111 lt_prog_compiler_wl='-Wl,'
6112 # All Alpha code is PIC.
6113 lt_prog_compiler_static='-non_shared'
6118 osf3* | osf4* | osf5*)
6119 lt_prog_compiler_wl='-Wl,'
6120 # All OSF/1 code is PIC.
6121 lt_prog_compiler_static='-non_shared'
6125 lt_prog_compiler_pic='-Kpic'
6126 lt_prog_compiler_static='-dn'
6130 lt_prog_compiler_wl='-Wl,'
6131 lt_prog_compiler_pic='-KPIC'
6132 lt_prog_compiler_static='-Bstatic'
6136 lt_prog_compiler_wl='-Qoption ld '
6137 lt_prog_compiler_pic='-PIC'
6138 lt_prog_compiler_static='-Bstatic'
6141 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6142 lt_prog_compiler_wl='-Wl,'
6143 lt_prog_compiler_pic='-KPIC'
6144 lt_prog_compiler_static='-Bstatic'
6148 if test -d /usr/nec ;then
6149 lt_prog_compiler_pic='-Kconform_pic'
6150 lt_prog_compiler_static='-Bstatic'
6155 lt_prog_compiler_pic='-pic'
6156 lt_prog_compiler_static='-Bstatic'
6160 lt_prog_compiler_can_build_shared=no
6165 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6166 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6169 # Check to make sure the PIC flag actually works.
6171 if test -n "$lt_prog_compiler_pic"; then
6172 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6173 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6174 if test "${lt_prog_compiler_pic_works+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 lt_prog_compiler_pic_works=no
6178 ac_outfile=conftest.$ac_objext
6179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6180 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6181 # Insert the option either (1) after the last *FLAGS variable, or
6182 # (2) before a word containing "conftest.", or (3) at the end.
6183 # Note that $ac_compile itself does not contain backslashes and begins
6184 # with a dollar sign (not a hyphen), so the echo should work correctly.
6185 # The option is referenced via a variable to avoid confusing sed.
6186 lt_compile=`echo "$ac_compile" | $SED \
6187 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6189 -e 's:$: $lt_compiler_flag:'`
6190 (eval echo "\"\$as_me:6190: $lt_compile\"" >&5)
6191 (eval "$lt_compile" 2>conftest.err)
6193 cat conftest.err >&5
6194 echo "$as_me:6194: \$? = $ac_status" >&5
6195 if (exit $ac_status) && test -s "$ac_outfile"; then
6196 # The compiler can only warn and ignore the option if not recognized
6197 # So say no if there are warnings
6198 if test ! -s conftest.err; then
6199 lt_prog_compiler_pic_works=yes
6205 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6206 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6208 if test x"$lt_prog_compiler_pic_works" = xyes; then
6209 case $lt_prog_compiler_pic in
6211 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6214 lt_prog_compiler_pic=
6215 lt_prog_compiler_can_build_shared=no
6220 # For platforms which do not support PIC, -DPIC is meaningless:
6222 lt_prog_compiler_pic=
6225 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6229 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6230 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6231 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 lt_cv_prog_compiler_c_o=no
6235 $rm -r conftest 2>/dev/null
6239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6241 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6242 # that will create temporary files in the current directory regardless of
6243 # the output directory. Thus, making CWD read-only will cause this test
6244 # to fail, enabling locking or at least warning the user not to do parallel
6248 lt_compiler_flag="-o out/conftest2.$ac_objext"
6249 # Insert the option either (1) after the last *FLAGS variable, or
6250 # (2) before a word containing "conftest.", or (3) at the end.
6251 # Note that $ac_compile itself does not contain backslashes and begins
6252 # with a dollar sign (not a hyphen), so the echo should work correctly.
6253 lt_compile=`echo "$ac_compile" | $SED \
6254 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6256 -e 's:$: $lt_compiler_flag:'`
6257 (eval echo "\"\$as_me:6257: $lt_compile\"" >&5)
6258 (eval "$lt_compile" 2>out/conftest.err)
6260 cat out/conftest.err >&5
6261 echo "$as_me:6261: \$? = $ac_status" >&5
6262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6264 # The compiler can only warn and ignore the option if not recognized
6265 # So say no if there are warnings
6266 if test ! -s out/conftest.err; then
6267 lt_cv_prog_compiler_c_o=yes
6278 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6279 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6282 hard_links="nottested"
6283 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6284 # do not overwrite the value of need_locks provided by the user
6285 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6286 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6289 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6291 ln conftest.a conftest.b 2>&5 || hard_links=no
6292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6293 echo "$as_me:$LINENO: result: $hard_links" >&5
6294 echo "${ECHO_T}$hard_links" >&6
6295 if test "$hard_links" = no; then
6296 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6297 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6304 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6305 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6308 allow_undefined_flag=
6309 enable_shared_with_static_runtimes=no
6311 archive_expsym_cmds=
6312 old_archive_From_new_cmds=
6313 old_archive_from_expsyms_cmds=
6314 export_dynamic_flag_spec=
6315 whole_archive_flag_spec=
6316 thread_safe_flag_spec=
6317 hardcode_libdir_flag_spec=
6318 hardcode_libdir_flag_spec_ld=
6319 hardcode_libdir_separator=
6322 hardcode_shlibpath_var=unsupported
6323 link_all_deplibs=unknown
6324 hardcode_automatic=no
6327 always_export_symbols=no
6328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6329 # include_expsyms should be a list of space-separated symbols to be *always*
6330 # included in the symbol list
6332 # exclude_expsyms can be an extended regexp of symbols to exclude
6333 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6334 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6335 # as well as any symbol that contains `d'.
6336 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6337 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6338 # platforms (ab)use it in PIC code, but their linkers get confused if
6339 # the symbol is explicitly referenced. Since portable code cannot
6340 # rely on this symbol name, it's probably fine to never include it in
6341 # preloaded symbol tables.
6342 extract_expsyms_cmds=
6345 cygwin* | mingw* | pw32*)
6346 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6347 # When not using gcc, we currently assume that we are using
6348 # Microsoft Visual C++.
6349 if test "$GCC" != yes; then
6359 if test "$with_gnu_ld" = yes; then
6360 # If archive_cmds runs LD, not CC, wlarc should be empty
6363 # See if GNU ld supports shared libraries.
6365 aix3* | aix4* | aix5*)
6366 # On AIX/PPC, the GNU linker is very broken
6367 if test "$host_cpu" != ia64; then
6371 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6372 *** to be unable to reliably create shared libraries on AIX.
6373 *** Therefore, libtool is disabling shared libraries support. If you
6374 *** really care for shared libraries, you may want to modify your PATH
6375 *** so that a non-GNU linker is found, and then restart.
6382 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)'
6383 hardcode_libdir_flag_spec='-L$libdir'
6384 hardcode_minus_L=yes
6386 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6387 # that the semantics of dynamic libraries on AmigaOS, at least up
6388 # to version 4, is to share data among multiple programs linked
6389 # with the same dynamic library. Since this doesn't match the
6390 # behavior of shared libraries on other platforms, we can't use
6396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6397 allow_undefined_flag=unsupported
6398 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6399 # support --undefined. This deserves some investigation. FIXME
6400 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6406 cygwin* | mingw* | pw32*)
6407 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6408 # as there is no search path for DLLs.
6409 hardcode_libdir_flag_spec='-L$libdir'
6410 allow_undefined_flag=unsupported
6411 always_export_symbols=no
6412 enable_shared_with_static_runtimes=yes
6413 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6415 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6417 # If the export-symbols file already is a .def file (1st line
6418 # is EXPORTS), use it as is; otherwise, prepend...
6419 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6420 cp $export_symbols $output_objdir/$soname.def;
6422 echo EXPORTS > $output_objdir/$soname.def;
6423 cat $export_symbols >> $output_objdir/$soname.def;
6425 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6433 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6442 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6446 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6447 *** create shared libraries on Solaris systems. Therefore, libtool
6448 *** is disabling shared libraries support. We urge you to upgrade GNU
6449 *** binutils to release 2.9.1 or newer. Another option is to modify
6450 *** your PATH or compiler configuration so that the native linker is
6451 *** used, and then restart.
6454 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6463 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6466 hardcode_shlibpath_var=no
6470 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6472 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6479 if test "$ld_shlibs" = yes; then
6480 runpath_var=LD_RUN_PATH
6481 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6482 export_dynamic_flag_spec='${wl}--export-dynamic'
6483 # ancient GNU ld didn't support --whole-archive et. al.
6484 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6485 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6487 whole_archive_flag_spec=
6491 # PORTME fill in a description of your system's linker (not GNU ld)
6494 allow_undefined_flag=unsupported
6495 always_export_symbols=yes
6496 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'
6497 # Note: this linker hardcodes the directories in LIBPATH if there
6498 # are no directories specified by -L.
6499 hardcode_minus_L=yes
6500 if test "$GCC" = yes && test -z "$link_static_flag"; then
6501 # Neither direct hardcoding nor static linking is supported with a
6503 hardcode_direct=unsupported
6508 if test "$host_cpu" = ia64; then
6509 # On IA64, the linker does run time linking by default, so we don't
6510 # have to do anything special.
6511 aix_use_runtimelinking=no
6512 exp_sym_flag='-Bexport'
6515 # If we're using GNU nm, then we don't want the "-C" option.
6516 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6517 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6518 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'
6520 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'
6522 aix_use_runtimelinking=no
6524 # Test if we are trying to use run time linking or normal
6525 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6526 # need to do runtime linking.
6527 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6528 for ld_flag in $LDFLAGS; do
6529 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6530 aix_use_runtimelinking=yes
6536 exp_sym_flag='-bexport'
6537 no_entry_flag='-bnoentry'
6540 # When large executables or shared objects are built, AIX ld can
6541 # have problems creating the table of contents. If linking a library
6542 # or program results in "error TOC overflow" add -mminimal-toc to
6543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6548 hardcode_libdir_separator=':'
6549 link_all_deplibs=yes
6551 if test "$GCC" = yes; then
6552 case $host_os in aix4.012|aix4.012.*)
6553 # We only want to do this on AIX 4.2 and lower, the check
6554 # below for broken collect2 doesn't work under 4.3+
6555 collect2name=`${CC} -print-prog-name=collect2`
6556 if test -f "$collect2name" && \
6557 strings "$collect2name" | grep resolve_lib_name >/dev/null
6559 # We have reworked collect2
6562 # We have old collect2
6563 hardcode_direct=unsupported
6564 # It fails to find uninstalled libraries when the uninstalled
6565 # path is not listed in the libpath. Setting hardcode_minus_L
6566 # to unsupported forces relinking
6567 hardcode_minus_L=yes
6568 hardcode_libdir_flag_spec='-L$libdir'
6569 hardcode_libdir_separator=
6572 shared_flag='-shared'
6575 if test "$host_cpu" = ia64; then
6576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6577 # chokes on -Wl,-G. The following line is correct:
6580 if test "$aix_use_runtimelinking" = yes; then
6581 shared_flag='${wl}-G'
6583 shared_flag='${wl}-bM:SRE'
6588 # It seems that -bexpall does not export symbols beginning with
6589 # underscore (_), so it is better to generate a list of symbols to export.
6590 always_export_symbols=yes
6591 if test "$aix_use_runtimelinking" = yes; then
6592 # Warning - without using the other runtime loading flags (-brtl),
6593 # -berok will link without error, but may produce a broken library.
6594 allow_undefined_flag='-berok'
6595 # Determine the default libpath from the value encoded in an empty executable.
6596 cat >conftest.$ac_ext <<_ACEOF
6597 #line $LINENO "configure"
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6612 rm -f conftest.$ac_objext conftest$ac_exeext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614 (eval $ac_link) 2>&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -s conftest$ac_exeext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6627 # Check for a 64-bit object if we didn't find anything.
6628 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; }
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6638 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6639 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"
6641 if test "$host_cpu" = ia64; then
6642 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6643 allow_undefined_flag="-z nodefs"
6644 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"
6646 # Determine the default libpath from the value encoded in an empty executable.
6647 cat >conftest.$ac_ext <<_ACEOF
6648 #line $LINENO "configure"
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6663 rm -f conftest.$ac_objext conftest$ac_exeext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6665 (eval $ac_link) 2>&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -s conftest$ac_exeext'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
6676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6678 # Check for a 64-bit object if we didn't find anything.
6679 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; }
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6689 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6690 # Warning - without using the other run time loading flags,
6691 # -berok will link without error, but may produce a broken library.
6692 no_undefined_flag=' ${wl}-bernotok'
6693 allow_undefined_flag=' ${wl}-berok'
6694 # -bexpall does not export symbols beginning with underscore (_)
6695 always_export_symbols=yes
6696 # Exported symbols can be pulled into shared objects from archives
6697 whole_archive_flag_spec=' '
6698 archive_cmds_need_lc=yes
6699 # This is similar to how AIX traditionally builds it's shared libraries.
6700 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'
6706 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)'
6707 hardcode_libdir_flag_spec='-L$libdir'
6708 hardcode_minus_L=yes
6709 # see comment about different semantics on the GNU ld section
6714 export_dynamic_flag_spec=-rdynamic
6717 cygwin* | mingw* | pw32*)
6718 # When not using gcc, we currently assume that we are using
6719 # Microsoft Visual C++.
6720 # hardcode_libdir_flag_spec is actually meaningless, as there is
6721 # no search path for DLLs.
6722 hardcode_libdir_flag_spec=' '
6723 allow_undefined_flag=unsupported
6724 # Tell ltmain to make .lib files, not .a files.
6726 # Tell ltmain to make .dll files, not .so files.
6728 # FIXME: Setting linknames here is a bad hack.
6729 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6730 # The linker will automatically build a .lib file if we build a DLL.
6731 old_archive_From_new_cmds='true'
6732 # FIXME: Should let the user specify the lib program.
6733 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6734 fix_srcfile_path='`cygpath -w "$srcfile"`'
6735 enable_shared_with_static_runtimes=yes
6738 darwin* | rhapsody*)
6739 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6740 archive_cmds_need_lc=no
6742 rhapsody* | darwin1.[012])
6743 allow_undefined_flag='-undefined suppress'
6746 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6749 # FIXME: Relying on posixy $() will cause problems for
6750 # cross-compilation, but unfortunately the echo tests do not
6751 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6752 # `"' quotes if we put them in here... so don't!
6753 lt_int_apple_cc_single_mod=no
6754 output_verbose_link_cmd='echo'
6755 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6756 lt_int_apple_cc_single_mod=yes
6758 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6759 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6761 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'
6763 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6764 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6765 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6766 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}'
6768 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}'
6770 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}'
6772 hardcode_automatic=yes
6773 hardcode_shlibpath_var=unsupported
6774 whole_archive_flag_spec='-all_load $convenience'
6775 link_all_deplibs=yes
6780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6781 hardcode_libdir_flag_spec='-L$libdir'
6782 hardcode_shlibpath_var=no
6789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6790 # support. Future versions do this automatically, but an explicit c++rt0.o
6791 # does not break anything, and helps significantly (at the cost of a little
6794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6795 hardcode_libdir_flag_spec='-R$libdir'
6797 hardcode_shlibpath_var=no
6800 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6804 hardcode_minus_L=yes
6805 hardcode_shlibpath_var=no
6808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6810 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6811 hardcode_libdir_flag_spec='-R$libdir'
6813 hardcode_shlibpath_var=no
6817 if test "$GCC" = yes; then
6818 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'
6820 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'
6822 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6823 hardcode_libdir_separator=:
6826 # hardcode_minus_L: Not really in the search PATH,
6827 # but as the default location of the library.
6828 hardcode_minus_L=yes
6829 export_dynamic_flag_spec='${wl}-E'
6833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6845 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6848 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6852 if test "$with_gnu_ld" = no; then
6855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6856 hardcode_libdir_flag_spec_ld='+b $libdir'
6857 hardcode_libdir_separator=:
6859 hardcode_shlibpath_var=no
6862 hardcode_libdir_flag_spec='-L$libdir'
6864 hardcode_shlibpath_var=no
6866 # hardcode_minus_L: Not really in the search PATH,
6867 # but as the default location of the library.
6868 hardcode_minus_L=yes
6871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6872 hardcode_libdir_separator=:
6874 export_dynamic_flag_spec='${wl}-E'
6876 # hardcode_minus_L: Not really in the search PATH,
6877 # but as the default location of the library.
6878 hardcode_minus_L=yes
6884 irix5* | irix6* | nonstopux*)
6885 if test "$GCC" = yes; then
6886 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'
6888 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'
6889 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6892 hardcode_libdir_separator=:
6893 link_all_deplibs=yes
6897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6902 hardcode_libdir_flag_spec='-R$libdir'
6904 hardcode_shlibpath_var=no
6908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6911 hardcode_libdir_separator=:
6912 hardcode_shlibpath_var=no
6917 hardcode_shlibpath_var=no
6918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6920 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6921 export_dynamic_flag_spec='${wl}-E'
6924 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6926 hardcode_libdir_flag_spec='-R$libdir'
6929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6937 hardcode_libdir_flag_spec='-L$libdir'
6938 hardcode_minus_L=yes
6939 allow_undefined_flag=unsupported
6940 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'
6941 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6945 if test "$GCC" = yes; then
6946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6947 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'
6949 allow_undefined_flag=' -expect_unresolved \*'
6950 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'
6952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6953 hardcode_libdir_separator=:
6956 osf4* | osf5*) # as osf3* with the addition of -msym flag
6957 if test "$GCC" = yes; then
6958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6959 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'
6960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6962 allow_undefined_flag=' -expect_unresolved \*'
6963 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'
6964 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6965 $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'
6967 # Both c and cxx compiler support -rpath directly
6968 hardcode_libdir_flag_spec='-rpath $libdir'
6970 hardcode_libdir_separator=:
6974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6975 hardcode_shlibpath_var=no
6976 export_dynamic_flag_spec='${wl}-Bexport'
6977 runpath_var=LD_RUN_PATH
6978 hardcode_runpath_var=yes
6982 no_undefined_flag=' -z text'
6983 if test "$GCC" = yes; then
6984 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6985 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6986 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6988 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6989 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6990 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6992 hardcode_libdir_flag_spec='-R$libdir'
6993 hardcode_shlibpath_var=no
6995 solaris2.[0-5] | solaris2.[0-5].*) ;;
6996 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6997 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6999 link_all_deplibs=yes
7003 if test "x$host_vendor" = xsequent; then
7004 # Use $CC to link under sequent, because it throws in some extra .o
7005 # files that make .init and .fini sections work.
7006 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7008 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7010 hardcode_libdir_flag_spec='-L$libdir'
7012 hardcode_minus_L=yes
7013 hardcode_shlibpath_var=no
7017 case $host_vendor in
7019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020 hardcode_direct=yes # is this really true???
7023 ## LD is ld it makes a PLAMLIB
7024 ## CC just makes a GrossModule.
7025 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7026 reload_cmds='$CC -r -o $output$reload_objs'
7030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7031 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7034 runpath_var='LD_RUN_PATH'
7035 hardcode_shlibpath_var=no
7039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7040 hardcode_shlibpath_var=no
7041 export_dynamic_flag_spec='-Bexport'
7045 if test -d /usr/nec; then
7046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7047 hardcode_shlibpath_var=no
7048 runpath_var=LD_RUN_PATH
7049 hardcode_runpath_var=yes
7055 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7058 hardcode_shlibpath_var=no
7059 hardcode_runpath_var=yes
7060 runpath_var=LD_RUN_PATH
7063 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7064 no_undefined_flag='${wl}-z ${wl}text'
7065 if test "$GCC" = yes; then
7066 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7068 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7070 runpath_var='LD_RUN_PATH'
7071 hardcode_shlibpath_var=no
7075 no_undefined_flag=' -z text'
7076 # $CC -shared without GNU ld will not create a library from C++
7077 # object files and a static libstdc++, better avoid it by now
7078 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7079 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7080 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7081 hardcode_libdir_flag_spec=
7082 hardcode_shlibpath_var=no
7083 runpath_var='LD_RUN_PATH'
7087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7088 hardcode_libdir_flag_spec='-L$libdir'
7089 hardcode_shlibpath_var=no
7098 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7099 echo "${ECHO_T}$ld_shlibs" >&6
7100 test "$ld_shlibs" = no && can_build_shared=no
7102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7103 if test "$GCC" = yes; then
7104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7108 # Do we need to explicitly link libc?
7110 case "x$archive_cmds_need_lc" in
7112 # Assume -lc should be added
7113 archive_cmds_need_lc=yes
7115 if test "$enable_shared" = yes && test "$GCC" = yes; then
7116 case $archive_cmds in
7118 # FIXME: we may have to deal with multi-command sequences.
7121 # Test whether the compiler implicitly links with -lc since on some
7122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7123 # to ld, don't add -lc before -lgcc.
7124 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7125 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7127 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } 2>conftest.err; then
7136 libobjs=conftest.$ac_objext
7138 wl=$lt_prog_compiler_wl
7144 lt_save_allow_undefined_flag=$allow_undefined_flag
7145 allow_undefined_flag=
7146 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7147 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }
7152 archive_cmds_need_lc=no
7154 archive_cmds_need_lc=yes
7156 allow_undefined_flag=$lt_save_allow_undefined_flag
7158 cat conftest.err 1>&5
7161 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7162 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7169 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7170 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7172 if test -n "$hardcode_libdir_flag_spec" || \
7173 test -n "$runpath_var " || \
7174 test "X$hardcode_automatic"="Xyes" ; then
7176 # We can hardcode non-existant directories.
7177 if test "$hardcode_direct" != no &&
7178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7179 # have to relink, otherwise we might link with an installed library
7180 # when we should be linking with a yet-to-be-installed one
7181 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7182 test "$hardcode_minus_L" != no; then
7183 # Linking always hardcodes the temporary library directory.
7184 hardcode_action=relink
7186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7187 hardcode_action=immediate
7190 # We cannot hardcode anything, or else we can only hardcode existing
7192 hardcode_action=unsupported
7194 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7195 echo "${ECHO_T}$hardcode_action" >&6
7197 if test "$hardcode_action" = relink; then
7198 # Fast installation is not supported
7199 enable_fast_install=no
7200 elif test "$shlibpath_overrides_runpath" = yes ||
7201 test "$enable_shared" = no; then
7202 # Fast installation is not necessary
7203 enable_fast_install=needless
7208 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7209 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7210 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7212 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7213 echo "$as_me:$LINENO: result: yes" >&5
7214 echo "${ECHO_T}yes" >&6
7216 # FIXME - insert some real tests, host_os isn't really good enough
7219 if test -n "$STRIP" ; then
7220 striplib="$STRIP -x"
7221 echo "$as_me:$LINENO: result: yes" >&5
7222 echo "${ECHO_T}yes" >&6
7224 echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6
7229 echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7235 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7236 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7238 libname_spec='lib$name'
7246 shlibpath_overrides_runpath=unknown
7248 dynamic_linker="$host_os ld.so"
7249 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7250 if test "$GCC" = yes; then
7251 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7252 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7253 # if the path contains ";" then we assume it to be the separator
7254 # otherwise default to the standard path separator (i.e. ":") - it is
7255 # assumed that no part of a normal pathname contains ";" but that should
7256 # okay in the real world where ";" in dirpaths is itself problematic.
7257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7264 need_lib_prefix=unknown
7265 hardcode_into_libs=no
7267 # when you set need_version to no, make sure it does not cause -set_version
7268 # flags to be left without arguments
7269 need_version=unknown
7274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7275 shlibpath_var=LIBPATH
7277 # AIX 3 has no versioning support, so we append a major version to the name.
7278 soname_spec='${libname}${release}${shared_ext}$major'
7285 hardcode_into_libs=yes
7286 if test "$host_cpu" = ia64; then
7287 # AIX 5 supports IA64
7288 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7289 shlibpath_var=LD_LIBRARY_PATH
7291 # With GCC up to 2.95.x, collect2 would create an import file
7292 # for dependence libraries. The import file would start with
7293 # the line `#! .'. This would cause the generated library to
7294 # depend on `.', always an invalid library. This was fixed in
7295 # development snapshots of GCC prior to 3.0.
7297 aix4 | aix4.[01] | aix4.[01].*)
7298 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7300 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7307 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7308 # soname into executable. Probably we can add versioning support to
7309 # collect2, so additional links can be useful in future.
7310 if test "$aix_use_runtimelinking" = yes; then
7311 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7312 # instead of lib<name>.a to let people know that these are not
7313 # typical AIX shared libraries.
7314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7316 # We preserve .a as extension for shared libraries through AIX4.2
7317 # and later when we are not doing run time linking.
7318 library_names_spec='${libname}${release}.a $libname.a'
7319 soname_spec='${libname}${release}${shared_ext}$major'
7321 shlibpath_var=LIBPATH
7326 library_names_spec='$libname.ixlibrary $libname.a'
7327 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7328 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'
7332 library_names_spec='${libname}${shared_ext}'
7333 dynamic_linker="$host_os ld.so"
7334 shlibpath_var=LIBRARY_PATH
7340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7341 soname_spec='${libname}${release}${shared_ext}$major'
7342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7343 shlibpath_var=LD_LIBRARY_PATH
7344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7346 # the default ld.so.conf also contains /usr/contrib/lib and
7347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7348 # libtool to hard-code these into programs
7351 cygwin* | mingw* | pw32*)
7352 version_type=windows
7357 case $GCC,$host_os in
7358 yes,cygwin* | yes,mingw* | yes,pw32*)
7359 library_names_spec='$libname.dll.a'
7360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7361 postinstall_cmds='base_file=`basename \${file}`~
7362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7363 dldir=$destdir/`dirname \$dlpath`~
7364 test -d \$dldir || mkdir -p \$dldir~
7365 $install_prog $dir/$dlname \$dldir/$dlname'
7366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7367 dlpath=$dir/\$dldll~
7369 shlibpath_overrides_runpath=yes
7373 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7374 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7375 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7378 # MinGW DLLs use traditional 'lib' prefix
7379 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7381 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7382 # It is most probably a Windows format PATH printed by
7383 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7384 # path with ; separators, and with drive letters. We can handle the
7385 # drive letters (cygwin fileutils understands them), so leave them,
7386 # especially as we might pass files found there to a mingw objdump,
7387 # which wouldn't understand a cygwinified path. Ahh.
7388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7394 # pw32 DLLs use 'pw' prefix rather than 'lib'
7395 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7401 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7404 dynamic_linker='Win32 ld.exe'
7405 # FIXME: first we should search . and the directory the executable is in
7409 darwin* | rhapsody*)
7410 dynamic_linker="$host_os dyld"
7414 # FIXME: Relying on posixy $() will cause problems for
7415 # cross-compilation, but unfortunately the echo tests do not
7416 # yet detect zsh echo's removal of \ escapes.
7417 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7418 soname_spec='${libname}${release}${major}$shared_ext'
7419 shlibpath_overrides_runpath=yes
7420 shlibpath_var=DYLD_LIBRARY_PATH
7421 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7422 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7423 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7424 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"`
7426 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7434 soname_spec='${libname}${release}${shared_ext}$major'
7435 shlibpath_var=LD_LIBRARY_PATH
7443 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7444 version_type=freebsd-$objformat
7445 case $version_type in
7447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7456 shlibpath_var=LD_LIBRARY_PATH
7459 shlibpath_overrides_runpath=yes
7461 freebsd3.01* | freebsdelf3.01*)
7462 shlibpath_overrides_runpath=yes
7463 hardcode_into_libs=yes
7466 shlibpath_overrides_runpath=no
7467 hardcode_into_libs=yes
7476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7477 soname_spec='${libname}${release}${shared_ext}$major'
7478 shlibpath_var=LD_LIBRARY_PATH
7479 hardcode_into_libs=yes
7482 hpux9* | hpux10* | hpux11*)
7483 # Give a soname corresponding to the major version so that dld.sl refuses to
7484 # link against other versions.
7491 hardcode_into_libs=yes
7492 dynamic_linker="$host_os dld.so"
7493 shlibpath_var=LD_LIBRARY_PATH
7494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7496 soname_spec='${libname}${release}${shared_ext}$major'
7497 if test "X$HPUX_IA64_MODE" = X32; then
7498 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7500 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7506 hardcode_into_libs=yes
7507 dynamic_linker="$host_os dld.sl"
7508 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7511 soname_spec='${libname}${release}${shared_ext}$major'
7512 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7517 dynamic_linker="$host_os dld.sl"
7518 shlibpath_var=SHLIB_PATH
7519 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7521 soname_spec='${libname}${release}${shared_ext}$major'
7524 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7525 postinstall_cmds='chmod 555 $lib'
7528 irix5* | irix6* | nonstopux*)
7530 nonstopux*) version_type=nonstopux ;;
7532 if test "$lt_cv_prog_gnu_ld" = yes; then
7540 soname_spec='${libname}${release}${shared_ext}$major'
7541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7543 irix5* | nonstopux*)
7547 case $LD in # libtool.m4 will add one of these switches to LD
7548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7549 libsuff= shlibsuff= libmagic=32-bit;;
7550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7551 libsuff=32 shlibsuff=N32 libmagic=N32;;
7552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7553 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7554 *) libsuff= shlibsuff= libmagic=never-match;;
7558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7559 shlibpath_overrides_runpath=no
7560 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7561 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7562 hardcode_into_libs=yes
7565 # No shared lib support for Linux oldld, aout, or coff.
7566 linux*oldld* | linux*aout* | linux*coff*)
7570 # This must be Linux ELF.
7575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7576 soname_spec='${libname}${release}${shared_ext}$major'
7577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7578 shlibpath_var=LD_LIBRARY_PATH
7579 shlibpath_overrides_runpath=no
7580 # This implies no fast_install, which is unacceptable.
7581 # Some rework will be needed to allow for fast_install
7582 # before this can be enabled.
7583 hardcode_into_libs=yes
7585 # We used to test for /lib/ld.so.1 and disable shared libraries on
7586 # powerpc, because MkLinux only supported shared libraries with the
7587 # GNU dynamic linker. Since this was broken with cross compilers,
7588 # most powerpc-linux boxes support dynamic linking these days and
7589 # people can always --disable-shared, the test was removed, and we
7590 # assume the GNU/Linux dynamic linker is in use.
7591 dynamic_linker='GNU/Linux ld.so'
7598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7601 dynamic_linker='NetBSD (a.out) ld.so'
7603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7604 soname_spec='${libname}${release}${shared_ext}$major'
7605 dynamic_linker='NetBSD ld.elf_so'
7607 shlibpath_var=LD_LIBRARY_PATH
7608 shlibpath_overrides_runpath=yes
7609 hardcode_into_libs=yes
7614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7615 shlibpath_var=LD_LIBRARY_PATH
7616 shlibpath_overrides_runpath=yes
7623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7624 soname_spec='${libname}${release}${shared_ext}$major'
7625 shlibpath_var=LD_LIBRARY_PATH
7626 shlibpath_overrides_runpath=yes
7633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7635 shlibpath_var=LD_LIBRARY_PATH
7636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7638 openbsd2.[89] | openbsd2.[89].*)
7639 shlibpath_overrides_runpath=no
7642 shlibpath_overrides_runpath=yes
7646 shlibpath_overrides_runpath=yes
7651 libname_spec='$name'
7654 library_names_spec='$libname${shared_ext} $libname.a'
7655 dynamic_linker='OS/2 ld.exe'
7656 shlibpath_var=LIBPATH
7659 osf3* | osf4* | osf5*)
7663 soname_spec='${libname}${release}${shared_ext}$major'
7664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7665 shlibpath_var=LD_LIBRARY_PATH
7666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7672 soname_spec='${libname}${release}${shared_ext}$major'
7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7674 shlibpath_var=LD_LIBRARY_PATH
7681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7682 soname_spec='${libname}${release}${shared_ext}$major'
7683 shlibpath_var=LD_LIBRARY_PATH
7684 shlibpath_overrides_runpath=yes
7685 hardcode_into_libs=yes
7686 # ldd complains unless libraries are executable
7687 postinstall_cmds='chmod +x $lib'
7692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7694 shlibpath_var=LD_LIBRARY_PATH
7695 shlibpath_overrides_runpath=yes
7696 if test "$with_gnu_ld" = yes; then
7702 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7705 soname_spec='${libname}${release}${shared_ext}$major'
7706 shlibpath_var=LD_LIBRARY_PATH
7707 case $host_vendor in
7709 shlibpath_overrides_runpath=no
7711 export_dynamic_flag_spec='${wl}-Blargedynsym'
7712 runpath_var=LD_RUN_PATH
7720 shlibpath_overrides_runpath=no
7721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7727 if test -d /usr/nec ;then
7729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7730 soname_spec='$libname${shared_ext}.$major'
7731 shlibpath_var=LD_LIBRARY_PATH
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 shlibpath_var=LD_LIBRARY_PATH
7746 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7747 echo "${ECHO_T}$dynamic_linker" >&6
7748 test "$dynamic_linker" = no && can_build_shared=no
7750 if test "x$enable_dlopen" != xyes; then
7751 enable_dlopen=unknown
7752 enable_dlopen_self=unknown
7753 enable_dlopen_self_static=unknown
7760 lt_cv_dlopen="load_add_on"
7762 lt_cv_dlopen_self=yes
7766 lt_cv_dlopen="LoadLibrary"
7771 lt_cv_dlopen="dlopen"
7776 # if libdl is installed we need to link against it
7777 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7778 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7779 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 ac_check_lib_save_LIBS=$LIBS
7784 cat >conftest.$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7792 /* Override any gcc2 internal prototype to avoid an error. */
7796 /* We use char because int might match the return type of a gcc2
7797 builtin and then its argument prototype would still apply. */
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809 (eval $ac_link) 2>&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -s conftest$ac_exeext'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7819 ac_cv_lib_dl_dlopen=yes
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7824 ac_cv_lib_dl_dlopen=no
7826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7827 LIBS=$ac_check_lib_save_LIBS
7829 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7830 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7831 if test $ac_cv_lib_dl_dlopen = yes; then
7832 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7837 lt_cv_dlopen_self=yes
7844 echo "$as_me:$LINENO: checking for shl_load" >&5
7845 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7846 if test "${ac_cv_func_shl_load+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 cat >conftest.$ac_ext <<_ACEOF
7850 #line $LINENO "configure"
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7856 /* System header to define __stub macros and hopefully few prototypes,
7857 which can conflict with char shl_load (); below.
7858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7859 <limits.h> exists even on freestanding compilers. */
7861 # include <limits.h>
7863 # include <assert.h>
7865 /* Override any gcc2 internal prototype to avoid an error. */
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7873 /* The GNU C library defines this for functions which it implements
7874 to always fail with ENOSYS. Some functions are actually named
7875 something starting with __ and the normal name is an alias. */
7876 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7879 char (*f) () = shl_load;
7888 return f != shl_load;
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895 (eval $ac_link) 2>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_func_shl_load=yes
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 ac_cv_func_shl_load=no
7912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7914 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7915 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7916 if test $ac_cv_func_shl_load = yes; then
7917 lt_cv_dlopen="shl_load"
7919 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7920 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7921 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 ac_check_lib_save_LIBS=$LIBS
7926 cat >conftest.$ac_ext <<_ACEOF
7927 #line $LINENO "configure"
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7934 /* Override any gcc2 internal prototype to avoid an error. */
7938 /* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7949 rm -f conftest.$ac_objext conftest$ac_exeext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951 (eval $ac_link) 2>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -s conftest$ac_exeext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 ac_cv_lib_dld_shl_load=yes
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 ac_cv_lib_dld_shl_load=no
7968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7969 LIBS=$ac_check_lib_save_LIBS
7971 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7972 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7973 if test $ac_cv_lib_dld_shl_load = yes; then
7974 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7976 echo "$as_me:$LINENO: checking for dlopen" >&5
7977 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7978 if test "${ac_cv_func_dlopen+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 cat >conftest.$ac_ext <<_ACEOF
7982 #line $LINENO "configure"
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 /* System header to define __stub macros and hopefully few prototypes,
7989 which can conflict with char dlopen (); below.
7990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7991 <limits.h> exists even on freestanding compilers. */
7993 # include <limits.h>
7995 # include <assert.h>
7997 /* Override any gcc2 internal prototype to avoid an error. */
8002 /* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8005 /* The GNU C library defines this for functions which it implements
8006 to always fail with ENOSYS. Some functions are actually named
8007 something starting with __ and the normal name is an alias. */
8008 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8011 char (*f) () = dlopen;
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027 (eval $ac_link) 2>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -s conftest$ac_exeext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_cv_func_dlopen=yes
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_cv_func_dlopen=no
8044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8046 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8047 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8048 if test $ac_cv_func_dlopen = yes; then
8049 lt_cv_dlopen="dlopen"
8051 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8052 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8053 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 ac_check_lib_save_LIBS=$LIBS
8058 cat >conftest.$ac_ext <<_ACEOF
8059 #line $LINENO "configure"
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8066 /* Override any gcc2 internal prototype to avoid an error. */
8070 /* We use char because int might match the return type of a gcc2
8071 builtin and then its argument prototype would still apply. */
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -s conftest$ac_exeext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 ac_cv_lib_dl_dlopen=yes
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 ac_cv_lib_dl_dlopen=no
8100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8101 LIBS=$ac_check_lib_save_LIBS
8103 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8104 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8105 if test $ac_cv_lib_dl_dlopen = yes; then
8106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8108 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8109 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8110 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 ac_check_lib_save_LIBS=$LIBS
8115 cat >conftest.$ac_ext <<_ACEOF
8116 #line $LINENO "configure"
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8123 /* Override any gcc2 internal prototype to avoid an error. */
8127 /* We use char because int might match the return type of a gcc2
8128 builtin and then its argument prototype would still apply. */
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140 (eval $ac_link) 2>&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -s conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_lib_svld_dlopen=yes
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_cv_lib_svld_dlopen=no
8157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8158 LIBS=$ac_check_lib_save_LIBS
8160 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8161 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8162 if test $ac_cv_lib_svld_dlopen = yes; then
8163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8165 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8166 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8167 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 ac_check_lib_save_LIBS=$LIBS
8172 cat >conftest.$ac_ext <<_ACEOF
8173 #line $LINENO "configure"
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8180 /* Override any gcc2 internal prototype to avoid an error. */
8184 /* We use char because int might match the return type of a gcc2
8185 builtin and then its argument prototype would still apply. */
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197 (eval $ac_link) 2>&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -s conftest$ac_exeext'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 ac_cv_lib_dld_dld_link=yes
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8212 ac_cv_lib_dld_dld_link=no
8214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8215 LIBS=$ac_check_lib_save_LIBS
8217 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8218 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8219 if test $ac_cv_lib_dld_dld_link = yes; then
8220 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8241 if test "x$lt_cv_dlopen" != xno; then
8247 case $lt_cv_dlopen in
8249 save_CPPFLAGS="$CPPFLAGS"
8250 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8252 save_LDFLAGS="$LDFLAGS"
8253 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8256 LIBS="$lt_cv_dlopen_libs $LIBS"
8258 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8259 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8260 if test "${lt_cv_dlopen_self+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 if test "$cross_compiling" = yes; then :
8264 lt_cv_dlopen_self=cross
8266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8267 lt_status=$lt_dlunknown
8268 cat > conftest.$ac_ext <<EOF
8269 #line 8269 "configure"
8270 #include "confdefs.h"
8279 # define LT_DLGLOBAL RTLD_GLOBAL
8282 # define LT_DLGLOBAL DL_GLOBAL
8284 # define LT_DLGLOBAL 0
8288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8289 find out it does not work in some platform. */
8290 #ifndef LT_DLLAZY_OR_NOW
8292 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8295 # define LT_DLLAZY_OR_NOW DL_LAZY
8298 # define LT_DLLAZY_OR_NOW RTLD_NOW
8301 # define LT_DLLAZY_OR_NOW DL_NOW
8303 # define LT_DLLAZY_OR_NOW 0
8311 extern "C" void exit (int);
8314 void fnord() { int i=42;}
8317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8318 int status = $lt_dlunknown;
8322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8324 /* dlclose (self); */
8330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331 (eval $ac_link) 2>&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8335 (./conftest; exit; ) 2>/dev/null
8338 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8339 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8340 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8343 # compilation failed
8344 lt_cv_dlopen_self=no
8351 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8352 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8354 if test "x$lt_cv_dlopen_self" = xyes; then
8355 LDFLAGS="$LDFLAGS $link_static_flag"
8356 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8357 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8358 if test "${lt_cv_dlopen_self_static+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 if test "$cross_compiling" = yes; then :
8362 lt_cv_dlopen_self_static=cross
8364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8365 lt_status=$lt_dlunknown
8366 cat > conftest.$ac_ext <<EOF
8367 #line 8367 "configure"
8368 #include "confdefs.h"
8377 # define LT_DLGLOBAL RTLD_GLOBAL
8380 # define LT_DLGLOBAL DL_GLOBAL
8382 # define LT_DLGLOBAL 0
8386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8387 find out it does not work in some platform. */
8388 #ifndef LT_DLLAZY_OR_NOW
8390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8393 # define LT_DLLAZY_OR_NOW DL_LAZY
8396 # define LT_DLLAZY_OR_NOW RTLD_NOW
8399 # define LT_DLLAZY_OR_NOW DL_NOW
8401 # define LT_DLLAZY_OR_NOW 0
8409 extern "C" void exit (int);
8412 void fnord() { int i=42;}
8415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8416 int status = $lt_dlunknown;
8420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8422 /* dlclose (self); */
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8433 (./conftest; exit; ) 2>/dev/null
8436 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8437 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8438 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8441 # compilation failed
8442 lt_cv_dlopen_self_static=no
8449 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8450 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8453 CPPFLAGS="$save_CPPFLAGS"
8454 LDFLAGS="$save_LDFLAGS"
8459 case $lt_cv_dlopen_self in
8460 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8461 *) enable_dlopen_self=unknown ;;
8464 case $lt_cv_dlopen_self_static in
8465 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8466 *) enable_dlopen_self_static=unknown ;;
8471 # Report which librarie types wil actually be built
8472 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8473 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8474 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8475 echo "${ECHO_T}$can_build_shared" >&6
8477 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8478 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8479 test "$can_build_shared" = "no" && enable_shared=no
8481 # On AIX, shared libraries and static libraries use the same namespace, and
8482 # are all built from PIC.
8485 test "$enable_shared" = yes && enable_static=no
8486 if test -n "$RANLIB"; then
8487 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8488 postinstall_cmds='$RANLIB $lib'
8493 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8494 test "$enable_shared" = yes && enable_static=no
8497 darwin* | rhapsody*)
8498 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8499 archive_cmds_need_lc=no
8501 rhapsody* | darwin1.[012])
8502 allow_undefined_flag='-undefined suppress'
8505 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8508 # FIXME: Relying on posixy $() will cause problems for
8509 # cross-compilation, but unfortunately the echo tests do not
8510 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8511 # `"' quotes if we put them in here... so don't!
8512 output_verbose_link_cmd='echo'
8513 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8514 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8516 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}'
8517 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}'
8519 hardcode_automatic=yes
8520 hardcode_shlibpath_var=unsupported
8521 whole_archive_flag_spec='-all_load $convenience'
8522 link_all_deplibs=yes
8526 echo "$as_me:$LINENO: result: $enable_shared" >&5
8527 echo "${ECHO_T}$enable_shared" >&6
8529 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8530 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8531 # Make sure either enable_shared or enable_static is yes.
8532 test "$enable_shared" = yes || enable_static=yes
8533 echo "$as_me:$LINENO: result: $enable_static" >&5
8534 echo "${ECHO_T}$enable_static" >&6
8536 # The else clause should only fire when bootstrapping the
8537 # libtool distribution, otherwise you forgot to ship ltmain.sh
8538 # with your package, and you will get complaints that there are
8539 # no rules to generate ltmain.sh.
8540 if test -f "$ltmain"; then
8541 # See if we are running on zsh, and set the options which allow our commands through
8542 # without removal of \ escapes.
8543 if test -n "${ZSH_VERSION+set}" ; then
8544 setopt NO_GLOB_SUBST
8546 # Now quote all the things that may contain metacharacters while being
8547 # careful not to overquote the AC_SUBSTed values. We take copies of the
8548 # variables and quote the copies for generation of the libtool script.
8549 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8550 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8551 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8552 deplibs_check_method reload_flag reload_cmds need_locks \
8553 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8554 lt_cv_sys_global_symbol_to_c_name_address \
8555 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8556 old_postinstall_cmds old_postuninstall_cmds \
8560 lt_prog_compiler_wl \
8561 lt_prog_compiler_pic \
8562 lt_prog_compiler_static \
8563 lt_prog_compiler_no_builtin_flag \
8564 export_dynamic_flag_spec \
8565 thread_safe_flag_spec \
8566 whole_archive_flag_spec \
8567 enable_shared_with_static_runtimes \
8569 old_archive_from_new_cmds \
8574 compiler_lib_search_path \
8576 archive_expsym_cmds \
8578 postuninstall_cmds \
8579 old_archive_from_expsyms_cmds \
8580 allow_undefined_flag \
8582 export_symbols_cmds \
8583 hardcode_libdir_flag_spec \
8584 hardcode_libdir_flag_spec_ld \
8585 hardcode_libdir_separator \
8586 hardcode_automatic \
8588 module_expsym_cmds \
8589 lt_cv_prog_compiler_c_o \
8594 old_archive_cmds | \
8595 old_archive_from_new_cmds | \
8597 archive_expsym_cmds | \
8599 module_expsym_cmds | \
8600 old_archive_from_expsyms_cmds | \
8601 export_symbols_cmds | \
8602 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8603 postinstall_cmds | postuninstall_cmds | \
8604 old_postinstall_cmds | old_postuninstall_cmds | \
8605 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8606 # Double-quote double-evaled strings.
8607 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8610 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8616 *'\$0 --fallback-echo"')
8617 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8622 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8624 { echo "$as_me:$LINENO: creating $ofile" >&5
8625 echo "$as_me: creating $ofile" >&6;}
8627 cat <<__EOF__ >> "$cfgfile"
8630 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8631 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8632 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8634 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8635 # Free Software Foundation, Inc.
8637 # This file is part of GNU Libtool:
8638 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8640 # This program is free software; you can redistribute it and/or modify
8641 # it under the terms of the GNU General Public License as published by
8642 # the Free Software Foundation; either version 2 of the License, or
8643 # (at your option) any later version.
8645 # This program is distributed in the hope that it will be useful, but
8646 # WITHOUT ANY WARRANTY; without even the implied warranty of
8647 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8648 # General Public License for more details.
8650 # You should have received a copy of the GNU General Public License
8651 # along with this program; if not, write to the Free Software
8652 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8654 # As a special exception to the GNU General Public License, if you
8655 # distribute this file as part of a program that contains a
8656 # configuration script generated by Autoconf, you may include it under
8657 # the same distribution terms that you use for the rest of that program.
8659 # A sed program that does not truncate output.
8662 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8663 Xsed="$SED -e s/^X//"
8665 # The HP-UX ksh and POSIX shell print the target directory to stdout
8667 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8669 # The names of the tagged configurations supported by this script.
8672 # ### BEGIN LIBTOOL CONFIG
8674 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8676 # Shell to use when invoking shell scripts.
8679 # Whether or not to build shared libraries.
8680 build_libtool_libs=$enable_shared
8682 # Whether or not to build static libraries.
8683 build_old_libs=$enable_static
8685 # Whether or not to add -lc for building shared libraries.
8686 build_libtool_need_lc=$archive_cmds_need_lc
8688 # Whether or not to disallow shared libs when runtime libs are static
8689 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8691 # Whether or not to optimize for fast installation.
8692 fast_install=$enable_fast_install
8695 host_alias=$host_alias
8698 # An echo program that does not interpret backslashes.
8703 AR_FLAGS=$lt_AR_FLAGS
8708 # A language-specific compiler.
8711 # Is the compiler the GNU C compiler?
8717 # The linker used to build libraries.
8720 # Whether we need hard or soft links.
8723 # A BSD-compatible nm program.
8726 # A symbol stripping program
8729 # Used to examine libraries when file_magic_cmd begins "file"
8730 MAGIC_CMD=$MAGIC_CMD
8732 # Used on cygwin: DLL creation program.
8735 # Used on cygwin: object dumper.
8738 # Used on cygwin: assembler.
8741 # The name of the directory that contains temporary libtool files.
8744 # How to create reloadable object files.
8745 reload_flag=$lt_reload_flag
8746 reload_cmds=$lt_reload_cmds
8748 # How to pass a linker flag through the compiler.
8749 wl=$lt_lt_prog_compiler_wl
8751 # Object file suffix (normally "o").
8754 # Old archive suffix (normally "a").
8757 # Shared library suffix (normally ".so").
8760 # Executable file suffix (normally "").
8763 # Additional compiler flags for building library objects.
8764 pic_flag=$lt_lt_prog_compiler_pic
8767 # What is the maximum length of a command?
8768 max_cmd_len=$lt_cv_sys_max_cmd_len
8770 # Does compiler simultaneously support -c and -o options?
8771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8773 # Must we lock files when doing compilation ?
8774 need_locks=$lt_need_locks
8776 # Do we need the lib prefix for modules?
8777 need_lib_prefix=$need_lib_prefix
8779 # Do we need a version for libraries?
8780 need_version=$need_version
8782 # Whether dlopen is supported.
8783 dlopen_support=$enable_dlopen
8785 # Whether dlopen of programs is supported.
8786 dlopen_self=$enable_dlopen_self
8788 # Whether dlopen of statically linked programs is supported.
8789 dlopen_self_static=$enable_dlopen_self_static
8791 # Compiler flag to prevent dynamic linking.
8792 link_static_flag=$lt_lt_prog_compiler_static
8794 # Compiler flag to turn off builtin functions.
8795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8797 # Compiler flag to allow reflexive dlopens.
8798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8800 # Compiler flag to generate shared objects directly from archives.
8801 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8803 # Compiler flag to generate thread-safe objects.
8804 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8806 # Library versioning type.
8807 version_type=$version_type
8809 # Format of library name prefix.
8810 libname_spec=$lt_libname_spec
8812 # List of archive names. First name is the real one, the rest are links.
8813 # The last name is the one that the linker finds with -lNAME.
8814 library_names_spec=$lt_library_names_spec
8816 # The coded name of the library, if different from the real name.
8817 soname_spec=$lt_soname_spec
8819 # Commands used to build and install an old-style archive.
8821 old_archive_cmds=$lt_old_archive_cmds
8822 old_postinstall_cmds=$lt_old_postinstall_cmds
8823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8825 # Create an old-style archive from a shared archive.
8826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8828 # Create a temporary old-style archive to link instead of a shared archive.
8829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8831 # Commands used to build and install a shared archive.
8832 archive_cmds=$lt_archive_cmds
8833 archive_expsym_cmds=$lt_archive_expsym_cmds
8834 postinstall_cmds=$lt_postinstall_cmds
8835 postuninstall_cmds=$lt_postuninstall_cmds
8837 # Commands used to build a loadable module (assumed same as above if empty)
8838 module_cmds=$lt_module_cmds
8839 module_expsym_cmds=$lt_module_expsym_cmds
8841 # Commands to strip libraries.
8842 old_striplib=$lt_old_striplib
8843 striplib=$lt_striplib
8845 # Dependencies to place before the objects being linked to create a
8847 predep_objects=$lt_predep_objects
8849 # Dependencies to place after the objects being linked to create a
8851 postdep_objects=$lt_postdep_objects
8853 # Dependencies to place before the objects being linked to create a
8857 # Dependencies to place after the objects being linked to create a
8859 postdeps=$lt_postdeps
8861 # The library search path used internally by the compiler when linking
8863 compiler_lib_search_path=$lt_compiler_lib_search_path
8865 # Method to check whether dependent libraries are shared objects.
8866 deplibs_check_method=$lt_deplibs_check_method
8868 # Command to use when deplibs_check_method == file_magic.
8869 file_magic_cmd=$lt_file_magic_cmd
8871 # Flag that allows shared libraries with undefined symbols to be built.
8872 allow_undefined_flag=$lt_allow_undefined_flag
8874 # Flag that forces no undefined symbols.
8875 no_undefined_flag=$lt_no_undefined_flag
8877 # Commands used to finish a libtool library installation in a directory.
8878 finish_cmds=$lt_finish_cmds
8880 # Same as above, but a single script fragment to be evaled but not shown.
8881 finish_eval=$lt_finish_eval
8883 # Take the output of nm and produce a listing of raw symbols and C names.
8884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8886 # Transform the output of nm in a proper C declaration
8887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8889 # Transform the output of nm in a C name address pair
8890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8892 # This is the shared library runtime path variable.
8893 runpath_var=$runpath_var
8895 # This is the shared library path variable.
8896 shlibpath_var=$shlibpath_var
8898 # Is shlibpath searched before the hard-coded library search path?
8899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8901 # How to hardcode a shared library path into an executable.
8902 hardcode_action=$hardcode_action
8904 # Whether we should hardcode library paths into libraries.
8905 hardcode_into_libs=$hardcode_into_libs
8907 # Flag to hardcode \$libdir into a binary during linking.
8908 # This must work even if \$libdir does not exist.
8909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8911 # If ld is used when linking, flag to hardcode \$libdir into
8912 # a binary during linking. This must work even if \$libdir does
8914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8916 # Whether we need a single -rpath flag with a separated argument.
8917 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8919 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8921 hardcode_direct=$hardcode_direct
8923 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8925 hardcode_minus_L=$hardcode_minus_L
8927 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8928 # the resulting binary.
8929 hardcode_shlibpath_var=$hardcode_shlibpath_var
8931 # Set to yes if building a shared library automatically hardcodes DIR into the library
8932 # and all subsequent libraries and executables linked against it.
8933 hardcode_automatic=$hardcode_automatic
8935 # Variables whose values should be saved in libtool wrapper scripts and
8936 # restored at relink time.
8937 variables_saved_for_relink="$variables_saved_for_relink"
8939 # Whether libtool must link a program against all its dependency libraries.
8940 link_all_deplibs=$link_all_deplibs
8942 # Compile-time system search path for libraries
8943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8945 # Run-time system search path for libraries
8946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8948 # Fix the shell variable \$srcfile for the compiler.
8949 fix_srcfile_path="$fix_srcfile_path"
8951 # Set to yes if exported symbols are required.
8952 always_export_symbols=$always_export_symbols
8954 # The commands to list exported symbols.
8955 export_symbols_cmds=$lt_export_symbols_cmds
8957 # The commands to extract the exported symbol list from a shared archive.
8958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8960 # Symbols that should not be listed in the preloaded symbols.
8961 exclude_expsyms=$lt_exclude_expsyms
8963 # Symbols that must always be exported.
8964 include_expsyms=$lt_include_expsyms
8966 # ### END LIBTOOL CONFIG
8973 cat <<\EOF >> "$cfgfile"
8975 # AIX sometimes has problems with the GCC collect2 program. For some
8976 # reason, if we set the COLLECT_NAMES environment variable, the problems
8977 # vanish in a puff of smoke.
8978 if test "X${COLLECT_NAMES+set}" != Xset; then
8980 export COLLECT_NAMES
8986 # We use sed instead of cat because bash on DJGPP gets confused if
8987 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8988 # text mode, it properly converts lines to CR/LF. This bash problem
8989 # is reportedly fixed, but why not run on old versions too?
8990 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8992 mv -f "$cfgfile" "$ofile" || \
8993 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8997 # If there is no Makefile yet, we rely on a make rule to execute
8998 # `config.status --recheck' to rerun these tests and create the
8999 # libtool script then.
9000 test -f Makefile && make "$ltmain"
9005 ac_cpp='$CPP $CPPFLAGS'
9006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9013 # Check whether --with-tags or --without-tags was given.
9014 if test "${with_tags+set}" = set; then
9015 withval="$with_tags"
9019 if test -f "$ltmain" && test -n "$tagnames"; then
9020 if test ! -f "${ofile}"; then
9021 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9022 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9025 if test -z "$LTCC"; then
9026 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9027 if test -z "$LTCC"; then
9028 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9029 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9032 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9036 # Extract list of available tagged configurations in $ofile.
9037 # Note that this assumes the entire list is on one line.
9038 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9041 for tagname in $tagnames; do
9043 # Check whether tagname contains only valid characters
9044 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9046 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9047 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9048 { (exit 1); exit 1; }; }
9052 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9054 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9055 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9056 { (exit 1); exit 1; }; }
9059 # Update the list of available tags.
9060 if test -n "$tagname"; then
9061 echo appending configuration tag \"$tagname\" to $ofile
9065 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9067 ac_cpp='$CXXCPP $CPPFLAGS'
9068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9075 archive_cmds_need_lc_CXX=no
9076 allow_undefined_flag_CXX=
9077 always_export_symbols_CXX=no
9078 archive_expsym_cmds_CXX=
9079 export_dynamic_flag_spec_CXX=
9080 hardcode_direct_CXX=no
9081 hardcode_libdir_flag_spec_CXX=
9082 hardcode_libdir_flag_spec_ld_CXX=
9083 hardcode_libdir_separator_CXX=
9084 hardcode_minus_L_CXX=no
9085 hardcode_automatic_CXX=no
9087 module_expsym_cmds_CXX=
9088 link_all_deplibs_CXX=unknown
9089 old_archive_cmds_CXX=$old_archive_cmds
9090 no_undefined_flag_CXX=
9091 whole_archive_flag_spec_CXX=
9092 enable_shared_with_static_runtimes_CXX=no
9094 # Dependencies to place before and after the object being linked:
9096 postdep_objects_CXX=
9099 compiler_lib_search_path_CXX=
9101 # Source file extension for C++ test sources.
9104 # Object file extension for compiled C++ test sources.
9108 # Code to be used in simple compile tests
9109 lt_simple_compile_test_code="int some_variable = 0;\n"
9111 # Code to be used in simple link tests
9112 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9114 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9116 # If no C compiler was specified, use CC.
9119 # Allow CC to be a program name with arguments.
9123 # Allow CC to be a program name with arguments.
9128 lt_save_with_gnu_ld=$with_gnu_ld
9129 lt_save_path_LD=$lt_cv_path_LD
9130 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9131 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9133 unset lt_cv_prog_gnu_ld
9135 if test -n "${lt_cv_path_LDCXX+set}"; then
9136 lt_cv_path_LD=$lt_cv_path_LDCXX
9140 test -z "${LDCXX+set}" || LD=$LDCXX
9144 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9146 # We don't want -fno-exception wen compiling C++ code, so set the
9147 # no_builtin_flag separately
9148 if test "$GXX" = yes; then
9149 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9151 lt_prog_compiler_no_builtin_flag_CXX=
9154 if test "$GXX" = yes; then
9155 # Set up default GNU C++ configuration
9158 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9159 if test "${with_gnu_ld+set}" = set; then
9160 withval="$with_gnu_ld"
9161 test "$withval" = no || with_gnu_ld=yes
9166 if test "$GCC" = yes; then
9167 # Check if gcc -print-prog-name=ld gives a path.
9168 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9169 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9172 # gcc leaves a trailing carriage return which upsets mingw
9173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9178 # Accept absolute paths.
9180 re_direlt='/[^/][^/]*/\.\./'
9181 # Canonicalize the path of ld
9182 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9183 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9184 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9186 test -z "$LD" && LD="$ac_prog"
9189 # If it fails, then pretend we aren't using GCC.
9193 # If it is relative, then search for the first ld in PATH.
9197 elif test "$with_gnu_ld" = yes; then
9198 echo "$as_me:$LINENO: checking for GNU ld" >&5
9199 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9201 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9202 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9204 if test "${lt_cv_path_LD+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 if test -z "$LD"; then
9208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9209 for ac_dir in $PATH; do
9211 test -z "$ac_dir" && ac_dir=.
9212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9213 lt_cv_path_LD="$ac_dir/$ac_prog"
9214 # Check to see if the program is GNU ld. I'd rather use --version,
9215 # but apparently some GNU ld's only accept -v.
9216 # Break only if it was the GNU/non-GNU ld that we prefer.
9217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9218 *GNU* | *'with BFD'*)
9219 test "$with_gnu_ld" != no && break
9222 test "$with_gnu_ld" != yes && break
9229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9234 if test -n "$LD"; then
9235 echo "$as_me:$LINENO: result: $LD" >&5
9236 echo "${ECHO_T}$LD" >&6
9238 echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6
9241 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9242 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9243 { (exit 1); exit 1; }; }
9244 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9245 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9246 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9250 case `"$LD" -v 2>&1 </dev/null` in
9251 *GNU* | *'with BFD'*)
9252 lt_cv_prog_gnu_ld=yes
9255 lt_cv_prog_gnu_ld=no
9259 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9260 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9261 with_gnu_ld=$lt_cv_prog_gnu_ld
9265 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9266 # archiving commands below assume that GNU ld is being used.
9267 if test "$with_gnu_ld" = yes; then
9268 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269 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'
9271 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9272 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9274 # If archive_cmds runs LD, not CC, wlarc should be empty
9275 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9276 # investigate it a little bit more. (MM)
9279 # ancient GNU ld didn't support --whole-archive et. al.
9280 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9281 grep 'no-whole-archive' > /dev/null; then
9282 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9284 whole_archive_flag_spec_CXX=
9290 # A generic and very simple default shared library creation
9291 # command for GNU C++ for the case where it uses the native
9292 # linker, instead of GNU ld. If possible, this setting should
9293 # overridden to take advantage of the native linker features on
9294 # the platform it is being used on.
9295 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9298 # Commands to make compiler produce verbose output that lists
9299 # what "hidden" libraries, object files and flags are used when
9300 # linking a shared library.
9301 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9309 # PORTME: fill in a description of your system's C++ link characteristics
9310 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9311 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9315 # FIXME: insert proper C++ library support
9319 if test "$host_cpu" = ia64; then
9320 # On IA64, the linker does run time linking by default, so we don't
9321 # have to do anything special.
9322 aix_use_runtimelinking=no
9323 exp_sym_flag='-Bexport'
9326 aix_use_runtimelinking=no
9328 # Test if we are trying to use run time linking or normal
9329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9330 # need to do runtime linking.
9331 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9332 for ld_flag in $LDFLAGS; do
9335 aix_use_runtimelinking=yes
9342 exp_sym_flag='-bexport'
9343 no_entry_flag='-bnoentry'
9346 # When large executables or shared objects are built, AIX ld can
9347 # have problems creating the table of contents. If linking a library
9348 # or program results in "error TOC overflow" add -mminimal-toc to
9349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9353 hardcode_direct_CXX=yes
9354 hardcode_libdir_separator_CXX=':'
9355 link_all_deplibs_CXX=yes
9357 if test "$GXX" = yes; then
9358 case $host_os in aix4.012|aix4.012.*)
9359 # We only want to do this on AIX 4.2 and lower, the check
9360 # below for broken collect2 doesn't work under 4.3+
9361 collect2name=`${CC} -print-prog-name=collect2`
9362 if test -f "$collect2name" && \
9363 strings "$collect2name" | grep resolve_lib_name >/dev/null
9365 # We have reworked collect2
9366 hardcode_direct_CXX=yes
9368 # We have old collect2
9369 hardcode_direct_CXX=unsupported
9370 # It fails to find uninstalled libraries when the uninstalled
9371 # path is not listed in the libpath. Setting hardcode_minus_L
9372 # to unsupported forces relinking
9373 hardcode_minus_L_CXX=yes
9374 hardcode_libdir_flag_spec_CXX='-L$libdir'
9375 hardcode_libdir_separator_CXX=
9378 shared_flag='-shared'
9381 if test "$host_cpu" = ia64; then
9382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9383 # chokes on -Wl,-G. The following line is correct:
9386 if test "$aix_use_runtimelinking" = yes; then
9387 shared_flag='${wl}-G'
9389 shared_flag='${wl}-bM:SRE'
9394 # It seems that -bexpall does not export symbols beginning with
9395 # underscore (_), so it is better to generate a list of symbols to export.
9396 always_export_symbols_CXX=yes
9397 if test "$aix_use_runtimelinking" = yes; then
9398 # Warning - without using the other runtime loading flags (-brtl),
9399 # -berok will link without error, but may produce a broken library.
9400 allow_undefined_flag_CXX='-berok'
9401 # Determine the default libpath from the value encoded in an empty executable.
9402 cat >conftest.$ac_ext <<_ACEOF
9403 #line $LINENO "configure"
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9418 rm -f conftest.$ac_objext conftest$ac_exeext
9419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9420 (eval $ac_link) 2>&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } &&
9424 { ac_try='test -s conftest$ac_exeext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9433 # Check for a 64-bit object if we didn't find anything.
9434 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; }
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9444 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9446 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"
9448 if test "$host_cpu" = ia64; then
9449 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9450 allow_undefined_flag_CXX="-z nodefs"
9451 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"
9453 # Determine the default libpath from the value encoded in an empty executable.
9454 cat >conftest.$ac_ext <<_ACEOF
9455 #line $LINENO "configure"
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -s conftest$ac_exeext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9485 # Check for a 64-bit object if we didn't find anything.
9486 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; }
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9497 # Warning - without using the other run time loading flags,
9498 # -berok will link without error, but may produce a broken library.
9499 no_undefined_flag_CXX=' ${wl}-bernotok'
9500 allow_undefined_flag_CXX=' ${wl}-berok'
9501 # -bexpall does not export symbols beginning with underscore (_)
9502 always_export_symbols_CXX=yes
9503 # Exported symbols can be pulled into shared objects from archives
9504 whole_archive_flag_spec_CXX=' '
9505 archive_cmds_need_lc_CXX=yes
9506 # This is similar to how AIX traditionally builds it's shared libraries.
9507 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'
9512 case $cc_basename in
9514 # FIXME: insert proper C++ library support
9520 cygwin* | mingw* | pw32*)
9521 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9522 # as there is no search path for DLLs.
9523 hardcode_libdir_flag_spec_CXX='-L$libdir'
9524 allow_undefined_flag_CXX=unsupported
9525 always_export_symbols_CXX=no
9526 enable_shared_with_static_runtimes_CXX=yes
9528 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9529 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'
9530 # If the export-symbols file already is a .def file (1st line
9531 # is EXPORTS), use it as is; otherwise, prepend...
9532 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9533 cp $export_symbols $output_objdir/$soname.def;
9535 echo EXPORTS > $output_objdir/$soname.def;
9536 cat $export_symbols >> $output_objdir/$soname.def;
9538 $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'
9544 darwin* | rhapsody*)
9545 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9546 archive_cmds_need_lc_CXX=no
9548 rhapsody* | darwin1.[012])
9549 allow_undefined_flag_CXX='-undefined suppress'
9552 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9555 lt_int_apple_cc_single_mod=no
9556 output_verbose_link_cmd='echo'
9557 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9558 lt_int_apple_cc_single_mod=yes
9560 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9561 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9563 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'
9565 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9569 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}'
9571 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}'
9573 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}'
9574 hardcode_direct_CXX=no
9575 hardcode_automatic_CXX=yes
9576 hardcode_shlibpath_var_CXX=unsupported
9577 whole_archive_flag_spec_CXX='-all_load $convenience'
9578 link_all_deplibs_CXX=yes
9583 case $cc_basename in
9585 # FIXME: insert proper C++ library support
9589 # Green Hills C++ Compiler
9590 # FIXME: insert proper C++ library support
9594 # FIXME: insert proper C++ library support
9600 # C++ shared libraries reported to be fairly broken before switch to ELF
9604 archive_cmds_need_lc_CXX=no
9607 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9614 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9615 hardcode_libdir_separator_CXX=:
9616 export_dynamic_flag_spec_CXX='${wl}-E'
9617 hardcode_direct_CXX=yes
9618 hardcode_minus_L_CXX=yes # Not in the search PATH,
9619 # but as the default
9620 # location of the library.
9622 case $cc_basename in
9624 # FIXME: insert proper C++ library support
9628 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'
9629 # Commands to make compiler produce verbose output that lists
9630 # what "hidden" libraries, object files and flags are used when
9631 # linking a shared library.
9633 # There doesn't appear to be a way to prevent this compiler from
9634 # explicitly linking system object files so we need to strip them
9635 # from the output so that they don't get included in the library
9637 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'
9640 if test "$GXX" = yes; then
9641 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'
9643 # FIXME: insert proper C++ library support
9650 if test $with_gnu_ld = no; then
9653 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9654 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9655 hardcode_libdir_separator_CXX=:
9658 hardcode_libdir_flag_spec_CXX='-L$libdir'
9661 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9662 hardcode_libdir_separator_CXX=:
9663 export_dynamic_flag_spec_CXX='${wl}-E'
9669 hardcode_direct_CXX=no
9670 hardcode_shlibpath_var_CXX=no
9673 hardcode_direct_CXX=no
9674 hardcode_shlibpath_var_CXX=no
9675 hardcode_minus_L_CXX=yes # Not in the search PATH,
9676 # but as the default
9677 # location of the library.
9680 hardcode_direct_CXX=yes
9681 hardcode_minus_L_CXX=yes # Not in the search PATH,
9682 # but as the default
9683 # location of the library.
9687 case $cc_basename in
9689 # FIXME: insert proper C++ library support
9695 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9701 # Commands to make compiler produce verbose output that lists
9702 # what "hidden" libraries, object files and flags are used when
9703 # linking a shared library.
9705 # There doesn't appear to be a way to prevent this compiler from
9706 # explicitly linking system object files so we need to strip them
9707 # from the output so that they don't get included in the library
9709 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'
9712 if test "$GXX" = yes; then
9713 if test $with_gnu_ld = no; then
9716 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9719 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'
9724 # FIXME: insert proper C++ library support
9731 case $cc_basename in
9734 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'
9736 # Archives containing C++ object files must be created using
9737 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9738 # necessary to make sure instantiated templates are included
9740 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9743 if test "$GXX" = yes; then
9744 if test "$with_gnu_ld" = no; then
9745 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'
9747 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'
9750 link_all_deplibs_CXX=yes
9753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9754 hardcode_libdir_separator_CXX=:
9757 case $cc_basename in
9759 # Kuck and Associates, Inc. (KAI) C++ Compiler
9761 # KCC will only create a shared library if the output file
9762 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9763 # to its proper name (with version) after linking.
9764 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'
9765 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'
9766 # Commands to make compiler produce verbose output that lists
9767 # what "hidden" libraries, object files and flags are used when
9768 # linking a shared library.
9770 # There doesn't appear to be a way to prevent this compiler from
9771 # explicitly linking system object files so we need to strip them
9772 # from the output so that they don't get included in the library
9774 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'
9776 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9779 # Archives containing C++ object files must be created using
9780 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9781 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9786 archive_cmds_need_lc_CXX=no
9787 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9788 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'
9789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9791 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9795 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9796 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'
9798 runpath_var=LD_RUN_PATH
9799 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9800 hardcode_libdir_separator_CXX=:
9802 # Commands to make compiler produce verbose output that lists
9803 # what "hidden" libraries, object files and flags are used when
9804 # linking a shared library.
9806 # There doesn't appear to be a way to prevent this compiler from
9807 # explicitly linking system object files so we need to strip them
9808 # from the output so that they don't get included in the library
9810 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'
9815 # FIXME: insert proper C++ library support
9819 # FIXME: insert proper C++ library support
9823 case $cc_basename in
9825 # FIXME: insert proper C++ library support
9829 # FIXME: insert proper C++ library support
9835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9836 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9838 hardcode_libdir_flag_spec_CXX='-R$libdir'
9839 hardcode_direct_CXX=yes
9840 hardcode_shlibpath_var_CXX=no
9842 # Workaround some broken pre-1.5 toolchains
9843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9846 case $cc_basename in
9848 # Kuck and Associates, Inc. (KAI) C++ Compiler
9850 # KCC will only create a shared library if the output file
9851 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9852 # to its proper name (with version) after linking.
9853 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'
9855 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9856 hardcode_libdir_separator_CXX=:
9858 # Archives containing C++ object files must be created using
9859 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9860 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9864 # Rational C++ 2.4.1
9865 # FIXME: insert proper C++ library support
9869 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9870 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'
9872 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9873 hardcode_libdir_separator_CXX=:
9875 # Commands to make compiler produce verbose output that lists
9876 # what "hidden" libraries, object files and flags are used when
9877 # linking a shared library.
9879 # There doesn't appear to be a way to prevent this compiler from
9880 # explicitly linking system object files so we need to strip them
9881 # from the output so that they don't get included in the library
9883 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'
9886 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9887 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9888 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'
9890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9891 hardcode_libdir_separator_CXX=:
9893 # Commands to make compiler produce verbose output that lists
9894 # what "hidden" libraries, object files and flags are used when
9895 # linking a shared library.
9896 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9899 # FIXME: insert proper C++ library support
9906 case $cc_basename in
9908 # Kuck and Associates, Inc. (KAI) C++ Compiler
9910 # KCC will only create a shared library if the output file
9911 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9912 # to its proper name (with version) after linking.
9913 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'
9915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9916 hardcode_libdir_separator_CXX=:
9918 # Archives containing C++ object files must be created using
9919 # the KAI C++ compiler.
9920 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9923 # Rational C++ 2.4.1
9924 # FIXME: insert proper C++ library support
9928 allow_undefined_flag_CXX=' -expect_unresolved \*'
9929 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'
9930 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9931 echo "-hidden">> $lib.exp~
9932 $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~
9935 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9936 hardcode_libdir_separator_CXX=:
9938 # Commands to make compiler produce verbose output that lists
9939 # what "hidden" libraries, object files and flags are used when
9940 # linking a shared library.
9942 # There doesn't appear to be a way to prevent this compiler from
9943 # explicitly linking system object files so we need to strip them
9944 # from the output so that they don't get included in the library
9946 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'
9949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9951 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'
9953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9954 hardcode_libdir_separator_CXX=:
9956 # Commands to make compiler produce verbose output that lists
9957 # what "hidden" libraries, object files and flags are used when
9958 # linking a shared library.
9959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9962 # FIXME: insert proper C++ library support
9969 # FIXME: insert proper C++ library support
9973 archive_cmds_need_lc_CXX=no
9974 case $cc_basename in
9976 # FIXME: insert proper C++ library support
9980 # FIXME: insert proper C++ library support
9986 case $cc_basename in
9989 # FIXME: insert proper C++ library support
9994 # FIXME: insert proper C++ library support
9998 # FIXME: insert proper C++ library support
10004 case $cc_basename in
10006 # Sun C++ 4.2, 5.x and Centerline C++
10007 no_undefined_flag_CXX=' -zdefs'
10008 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10009 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10010 $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'
10012 hardcode_libdir_flag_spec_CXX='-R$libdir'
10013 hardcode_shlibpath_var_CXX=no
10015 solaris2.0-5 | solaris2.0-5.*) ;;
10017 # The C++ compiler is used as linker so we must use $wl
10018 # flag to pass the commands to the underlying system
10020 # Supported since Solaris 2.6 (maybe 2.5.1?)
10021 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10024 link_all_deplibs_CXX=yes
10026 # Commands to make compiler produce verbose output that lists
10027 # what "hidden" libraries, object files and flags are used when
10028 # linking a shared library.
10030 # There doesn't appear to be a way to prevent this compiler from
10031 # explicitly linking system object files so we need to strip them
10032 # from the output so that they don't get included in the library
10034 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'
10036 # Archives containing C++ object files must be created using
10037 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10038 # necessary to make sure instantiated templates are included
10040 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10043 # Green Hills C++ Compiler
10044 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10046 # The C++ compiler must be used to create the archive.
10047 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10050 # GNU C++ compiler with Solaris linker
10051 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10052 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10053 if $CC --version | grep -v '^2\.7' > /dev/null; then
10054 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10055 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10056 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10058 # Commands to make compiler produce verbose output that lists
10059 # what "hidden" libraries, object files and flags are used when
10060 # linking a shared library.
10061 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10063 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10065 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10066 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10067 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10069 # Commands to make compiler produce verbose output that lists
10070 # what "hidden" libraries, object files and flags are used when
10071 # linking a shared library.
10072 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10075 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10080 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10081 archive_cmds_need_lc_CXX=no
10084 case $cc_basename in
10086 # NonStop-UX NCC 3.20
10087 # FIXME: insert proper C++ library support
10091 # FIXME: insert proper C++ library support
10097 # FIXME: insert proper C++ library support
10101 # FIXME: insert proper C++ library support
10105 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10106 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10107 test "$ld_shlibs_CXX" = no && can_build_shared=no
10113 cat > conftest.$ac_ext <<EOF
10117 Foo (void) { a = 0; }
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; then
10128 # Parse the compiler output and extract the necessary
10129 # objects, libraries and library flags.
10131 # Sentinel used to keep track of whether or not we are before
10132 # the conftest object file.
10133 pre_test_object_deps_done=no
10135 # The `*' in the case matches for architectures that use `case' in
10136 # $output_verbose_cmd can trigger glob expansion during the loop
10137 # eval without this substitution.
10138 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10140 for p in `eval $output_verbose_link_cmd`; do
10144 # Some compilers place space between "-{L,R}" and the path.
10145 # Remove the space.
10146 if test $p = "-L" \
10147 || test $p = "-R"; then
10154 if test "$pre_test_object_deps_done" = no; then
10157 # Internal compiler library paths should come after those
10158 # provided the user. The postdeps already come after the
10159 # user supplied libs so there is no need to process them.
10160 if test -z "$compiler_lib_search_path_CXX"; then
10161 compiler_lib_search_path_CXX="${prev}${p}"
10163 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10166 # The "-l" case would never come before the object being
10167 # linked, so don't bother handling this case.
10170 if test -z "$postdeps_CXX"; then
10171 postdeps_CXX="${prev}${p}"
10173 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10179 # This assumes that the test object file only shows up
10180 # once in the compiler output.
10181 if test "$p" = "conftest.$objext"; then
10182 pre_test_object_deps_done=yes
10186 if test "$pre_test_object_deps_done" = no; then
10187 if test -z "$predep_objects_CXX"; then
10188 predep_objects_CXX="$p"
10190 predep_objects_CXX="$predep_objects_CXX $p"
10193 if test -z "$postdep_objects_CXX"; then
10194 postdep_objects_CXX="$p"
10196 postdep_objects_CXX="$postdep_objects_CXX $p"
10201 *) ;; # Ignore the rest.
10209 echo "libtool.m4: error: problem compiling CXX test program"
10212 $rm -f confest.$objext
10214 case " $postdeps_CXX " in
10215 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10218 lt_prog_compiler_wl_CXX=
10219 lt_prog_compiler_pic_CXX=
10220 lt_prog_compiler_static_CXX=
10222 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10223 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10225 # C++ specific cases for pic, static, wl, etc.
10226 if test "$GXX" = yes; then
10227 lt_prog_compiler_wl_CXX='-Wl,'
10228 lt_prog_compiler_static_CXX='-static'
10232 # All AIX code is PIC.
10233 if test "$host_cpu" = ia64; then
10234 # AIX 5 now supports IA64 processor
10235 lt_prog_compiler_static_CXX='-Bstatic'
10239 # FIXME: we need at least 68020 code to build shared libraries, but
10240 # adding the `-m68020' flag to GCC prevents building anything better,
10242 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10244 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10245 # PIC is the default for these OSes.
10247 mingw* | os2* | pw32*)
10248 # This hack is so that the source file can tell whether it is being
10249 # built for inclusion in a dll (and should export symbols for example).
10250 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10252 darwin* | rhapsody*)
10253 # PIC is the default on this platform
10254 # Common symbols not allowed in MH_DYLIB files
10255 lt_prog_compiler_pic_CXX='-fno-common'
10258 # DJGPP does not support shared libraries at all
10259 lt_prog_compiler_pic_CXX=
10262 if test -d /usr/nec; then
10263 lt_prog_compiler_pic_CXX=-Kconform_pic
10267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10268 # not for PA HP-UX.
10269 case "$host_cpu" in
10273 lt_prog_compiler_pic_CXX='-fPIC'
10278 lt_prog_compiler_pic_CXX='-fPIC'
10284 # All AIX code is PIC.
10285 if test "$host_cpu" = ia64; then
10286 # AIX 5 now supports IA64 processor
10287 lt_prog_compiler_static_CXX='-Bstatic'
10289 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10293 case $cc_basename in
10295 # Green Hills C++ Compiler
10296 # _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"
10301 case $cc_basename in
10303 lt_prog_compiler_pic_CXX='-KPIC'
10306 # Green Hills C++ Compiler
10307 lt_prog_compiler_pic_CXX='-pic'
10314 # FreeBSD uses GNU C++
10316 hpux9* | hpux10* | hpux11*)
10317 case $cc_basename in
10319 lt_prog_compiler_wl_CXX='-Wl,'
10320 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10321 if test "$host_cpu" != ia64; then
10322 lt_prog_compiler_pic_CXX='+Z'
10326 lt_prog_compiler_wl_CXX='-Wl,'
10327 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10328 case "$host_cpu" in
10333 lt_prog_compiler_pic_CXX='+Z'
10341 irix5* | irix6* | nonstopux*)
10342 case $cc_basename in
10344 lt_prog_compiler_wl_CXX='-Wl,'
10345 lt_prog_compiler_static_CXX='-non_shared'
10346 # CC pic flag -KPIC is the default.
10353 case $cc_basename in
10356 lt_prog_compiler_wl_CXX='--backend -Wl,'
10357 lt_prog_compiler_pic_CXX='-fPIC'
10361 lt_prog_compiler_wl_CXX='-Wl,'
10362 lt_prog_compiler_pic_CXX='-KPIC'
10363 lt_prog_compiler_static_CXX='-static'
10367 # Make sure the PIC flag is empty. It appears that all Alpha
10368 # Linux and Compaq Tru64 Unix objects are PIC.
10369 lt_prog_compiler_pic_CXX=
10370 lt_prog_compiler_static_CXX='-non_shared'
10381 case $cc_basename in
10383 lt_prog_compiler_pic_CXX='-W c,exportall'
10391 osf3* | osf4* | osf5*)
10392 case $cc_basename in
10394 lt_prog_compiler_wl_CXX='--backend -Wl,'
10397 # Rational C++ 2.4.1
10398 lt_prog_compiler_pic_CXX='-pic'
10401 # Digital/Compaq C++
10402 lt_prog_compiler_wl_CXX='-Wl,'
10403 # Make sure the PIC flag is empty. It appears that all Alpha
10404 # Linux and Compaq Tru64 Unix objects are PIC.
10405 lt_prog_compiler_pic_CXX=
10406 lt_prog_compiler_static_CXX='-non_shared'
10415 case $cc_basename in
10417 lt_prog_compiler_pic_CXX='-fPIC'
10424 case $cc_basename in
10426 # Sun C++ 4.2, 5.x and Centerline C++
10427 lt_prog_compiler_pic_CXX='-KPIC'
10428 lt_prog_compiler_static_CXX='-Bstatic'
10429 lt_prog_compiler_wl_CXX='-Qoption ld '
10432 # Green Hills C++ Compiler
10433 lt_prog_compiler_pic_CXX='-PIC'
10440 case $cc_basename in
10443 lt_prog_compiler_pic_CXX='-pic'
10444 lt_prog_compiler_static_CXX='-Bstatic'
10448 lt_prog_compiler_pic_CXX='-pic'
10455 case $cc_basename in
10457 # NonStop-UX NCC 3.20
10458 lt_prog_compiler_pic_CXX='-KPIC'
10469 lt_prog_compiler_can_build_shared_CXX=no
10474 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10475 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10478 # Check to make sure the PIC flag actually works.
10480 if test -n "$lt_prog_compiler_pic_CXX"; then
10481 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10482 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10483 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 lt_prog_compiler_pic_works_CXX=no
10487 ac_outfile=conftest.$ac_objext
10488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10489 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10490 # Insert the option either (1) after the last *FLAGS variable, or
10491 # (2) before a word containing "conftest.", or (3) at the end.
10492 # Note that $ac_compile itself does not contain backslashes and begins
10493 # with a dollar sign (not a hyphen), so the echo should work correctly.
10494 # The option is referenced via a variable to avoid confusing sed.
10495 lt_compile=`echo "$ac_compile" | $SED \
10496 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10498 -e 's:$: $lt_compiler_flag:'`
10499 (eval echo "\"\$as_me:10499: $lt_compile\"" >&5)
10500 (eval "$lt_compile" 2>conftest.err)
10502 cat conftest.err >&5
10503 echo "$as_me:10503: \$? = $ac_status" >&5
10504 if (exit $ac_status) && test -s "$ac_outfile"; then
10505 # The compiler can only warn and ignore the option if not recognized
10506 # So say no if there are warnings
10507 if test ! -s conftest.err; then
10508 lt_prog_compiler_pic_works_CXX=yes
10514 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10515 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10517 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10518 case $lt_prog_compiler_pic_CXX in
10520 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10523 lt_prog_compiler_pic_CXX=
10524 lt_prog_compiler_can_build_shared_CXX=no
10529 # For platforms which do not support PIC, -DPIC is meaningless:
10531 lt_prog_compiler_pic_CXX=
10534 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10538 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10540 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 lt_cv_prog_compiler_c_o_CXX=no
10544 $rm -r conftest 2>/dev/null
10548 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10550 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10551 # that will create temporary files in the current directory regardless of
10552 # the output directory. Thus, making CWD read-only will cause this test
10553 # to fail, enabling locking or at least warning the user not to do parallel
10557 lt_compiler_flag="-o out/conftest2.$ac_objext"
10558 # Insert the option either (1) after the last *FLAGS variable, or
10559 # (2) before a word containing "conftest.", or (3) at the end.
10560 # Note that $ac_compile itself does not contain backslashes and begins
10561 # with a dollar sign (not a hyphen), so the echo should work correctly.
10562 lt_compile=`echo "$ac_compile" | $SED \
10563 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10565 -e 's:$: $lt_compiler_flag:'`
10566 (eval echo "\"\$as_me:10566: $lt_compile\"" >&5)
10567 (eval "$lt_compile" 2>out/conftest.err)
10569 cat out/conftest.err >&5
10570 echo "$as_me:10570: \$? = $ac_status" >&5
10571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10573 # The compiler can only warn and ignore the option if not recognized
10574 # So say no if there are warnings
10575 if test ! -s out/conftest.err; then
10576 lt_cv_prog_compiler_c_o_CXX=yes
10580 $rm conftest* out/*
10587 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10591 hard_links="nottested"
10592 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10593 # do not overwrite the value of need_locks provided by the user
10594 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10595 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10600 ln conftest.a conftest.b 2>&5 || hard_links=no
10601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10602 echo "$as_me:$LINENO: result: $hard_links" >&5
10603 echo "${ECHO_T}$hard_links" >&6
10604 if test "$hard_links" = no; then
10605 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10606 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10613 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10616 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10619 # If we're using GNU nm, then we don't want the "-C" option.
10620 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10621 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10622 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'
10624 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'
10628 export_symbols_cmds_CXX="$ltdll_cmds"
10631 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10634 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10638 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10639 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10640 test "$ld_shlibs_CXX" = no && can_build_shared=no
10642 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10643 if test "$GCC" = yes; then
10644 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10648 # Do we need to explicitly link libc?
10650 case "x$archive_cmds_need_lc_CXX" in
10652 # Assume -lc should be added
10653 archive_cmds_need_lc_CXX=yes
10655 if test "$enable_shared" = yes && test "$GCC" = yes; then
10656 case $archive_cmds_CXX in
10658 # FIXME: we may have to deal with multi-command sequences.
10661 # Test whether the compiler implicitly links with -lc since on some
10662 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10663 # to ld, don't add -lc before -lgcc.
10664 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10665 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10670 (eval $ac_compile) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } 2>conftest.err; then
10676 libobjs=conftest.$ac_objext
10678 wl=$lt_prog_compiler_wl_CXX
10684 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10685 allow_undefined_flag_CXX=
10686 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10687 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }
10692 archive_cmds_need_lc_CXX=no
10694 archive_cmds_need_lc_CXX=yes
10696 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10698 cat conftest.err 1>&5
10701 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10702 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10709 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10710 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10711 hardcode_action_CXX=
10712 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10713 test -n "$runpath_var CXX" || \
10714 test "X$hardcode_automatic_CXX"="Xyes" ; then
10716 # We can hardcode non-existant directories.
10717 if test "$hardcode_direct_CXX" != no &&
10718 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10719 # have to relink, otherwise we might link with an installed library
10720 # when we should be linking with a yet-to-be-installed one
10721 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10722 test "$hardcode_minus_L_CXX" != no; then
10723 # Linking always hardcodes the temporary library directory.
10724 hardcode_action_CXX=relink
10726 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10727 hardcode_action_CXX=immediate
10730 # We cannot hardcode anything, or else we can only hardcode existing
10732 hardcode_action_CXX=unsupported
10734 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10735 echo "${ECHO_T}$hardcode_action_CXX" >&6
10737 if test "$hardcode_action_CXX" = relink; then
10738 # Fast installation is not supported
10739 enable_fast_install=no
10740 elif test "$shlibpath_overrides_runpath" = yes ||
10741 test "$enable_shared" = no; then
10742 # Fast installation is not necessary
10743 enable_fast_install=needless
10748 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10749 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10750 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10751 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10752 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10753 echo "$as_me:$LINENO: result: yes" >&5
10754 echo "${ECHO_T}yes" >&6
10756 # FIXME - insert some real tests, host_os isn't really good enough
10759 if test -n "$STRIP" ; then
10760 striplib="$STRIP -x"
10761 echo "$as_me:$LINENO: result: yes" >&5
10762 echo "${ECHO_T}yes" >&6
10764 echo "$as_me:$LINENO: result: no" >&5
10765 echo "${ECHO_T}no" >&6
10769 echo "$as_me:$LINENO: result: no" >&5
10770 echo "${ECHO_T}no" >&6
10775 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10776 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10777 library_names_spec=
10778 libname_spec='lib$name'
10782 postuninstall_cmds=
10786 shlibpath_overrides_runpath=unknown
10788 dynamic_linker="$host_os ld.so"
10789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10790 if test "$GCC" = yes; then
10791 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10792 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10793 # if the path contains ";" then we assume it to be the separator
10794 # otherwise default to the standard path separator (i.e. ":") - it is
10795 # assumed that no part of a normal pathname contains ";" but that should
10796 # okay in the real world where ";" in dirpaths is itself problematic.
10797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10804 need_lib_prefix=unknown
10805 hardcode_into_libs=no
10807 # when you set need_version to no, make sure it does not cause -set_version
10808 # flags to be left without arguments
10809 need_version=unknown
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10815 shlibpath_var=LIBPATH
10817 # AIX 3 has no versioning support, so we append a major version to the name.
10818 soname_spec='${libname}${release}${shared_ext}$major'
10825 hardcode_into_libs=yes
10826 if test "$host_cpu" = ia64; then
10827 # AIX 5 supports IA64
10828 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10829 shlibpath_var=LD_LIBRARY_PATH
10831 # With GCC up to 2.95.x, collect2 would create an import file
10832 # for dependence libraries. The import file would start with
10833 # the line `#! .'. This would cause the generated library to
10834 # depend on `.', always an invalid library. This was fixed in
10835 # development snapshots of GCC prior to 3.0.
10837 aix4 | aix4.[01] | aix4.[01].*)
10838 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10840 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10843 can_build_shared=no
10847 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10848 # soname into executable. Probably we can add versioning support to
10849 # collect2, so additional links can be useful in future.
10850 if test "$aix_use_runtimelinking" = yes; then
10851 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10852 # instead of lib<name>.a to let people know that these are not
10853 # typical AIX shared libraries.
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 # We preserve .a as extension for shared libraries through AIX4.2
10857 # and later when we are not doing run time linking.
10858 library_names_spec='${libname}${release}.a $libname.a'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10861 shlibpath_var=LIBPATH
10866 library_names_spec='$libname.ixlibrary $libname.a'
10867 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10868 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'
10872 library_names_spec='${libname}${shared_ext}'
10873 dynamic_linker="$host_os ld.so"
10874 shlibpath_var=LIBRARY_PATH
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10886 # the default ld.so.conf also contains /usr/contrib/lib and
10887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10888 # libtool to hard-code these into programs
10891 cygwin* | mingw* | pw32*)
10892 version_type=windows
10897 case $GCC,$host_os in
10898 yes,cygwin* | yes,mingw* | yes,pw32*)
10899 library_names_spec='$libname.dll.a'
10900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10901 postinstall_cmds='base_file=`basename \${file}`~
10902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10903 dldir=$destdir/`dirname \$dlpath`~
10904 test -d \$dldir || mkdir -p \$dldir~
10905 $install_prog $dir/$dlname \$dldir/$dlname'
10906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10907 dlpath=$dir/\$dldll~
10909 shlibpath_overrides_runpath=yes
10913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10915 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10918 # MinGW DLLs use traditional 'lib' prefix
10919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10921 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10922 # It is most probably a Windows format PATH printed by
10923 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10924 # path with ; separators, and with drive letters. We can handle the
10925 # drive letters (cygwin fileutils understands them), so leave them,
10926 # especially as we might pass files found there to a mingw objdump,
10927 # which wouldn't understand a cygwinified path. Ahh.
10928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10934 # pw32 DLLs use 'pw' prefix rather than 'lib'
10935 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10944 dynamic_linker='Win32 ld.exe'
10945 # FIXME: first we should search . and the directory the executable is in
10949 darwin* | rhapsody*)
10950 dynamic_linker="$host_os dyld"
10951 version_type=darwin
10954 # FIXME: Relying on posixy $() will cause problems for
10955 # cross-compilation, but unfortunately the echo tests do not
10956 # yet detect zsh echo's removal of \ escapes.
10957 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10958 soname_spec='${libname}${release}${major}$shared_ext'
10959 shlibpath_overrides_runpath=yes
10960 shlibpath_var=DYLD_LIBRARY_PATH
10961 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10962 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10963 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10964 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"`
10966 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 shlibpath_var=LD_LIBRARY_PATH
10983 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10984 version_type=freebsd-$objformat
10985 case $version_type in
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10996 shlibpath_var=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath=yes
11001 freebsd3.01* | freebsdelf3.01*)
11002 shlibpath_overrides_runpath=yes
11003 hardcode_into_libs=yes
11006 shlibpath_overrides_runpath=no
11007 hardcode_into_libs=yes
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 hardcode_into_libs=yes
11022 hpux9* | hpux10* | hpux11*)
11023 # Give a soname corresponding to the major version so that dld.sl refuses to
11024 # link against other versions.
11028 case "$host_cpu" in
11031 hardcode_into_libs=yes
11032 dynamic_linker="$host_os dld.so"
11033 shlibpath_var=LD_LIBRARY_PATH
11034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 if test "X$HPUX_IA64_MODE" = X32; then
11038 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11040 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11046 hardcode_into_libs=yes
11047 dynamic_linker="$host_os dld.sl"
11048 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 soname_spec='${libname}${release}${shared_ext}$major'
11052 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11057 dynamic_linker="$host_os dld.sl"
11058 shlibpath_var=SHLIB_PATH
11059 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11064 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11065 postinstall_cmds='chmod 555 $lib'
11068 irix5* | irix6* | nonstopux*)
11070 nonstopux*) version_type=nonstopux ;;
11072 if test "$lt_cv_prog_gnu_ld" = yes; then
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11083 irix5* | nonstopux*)
11084 libsuff= shlibsuff=
11087 case $LD in # libtool.m4 will add one of these switches to LD
11088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11089 libsuff= shlibsuff= libmagic=32-bit;;
11090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11091 libsuff=32 shlibsuff=N32 libmagic=N32;;
11092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11093 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11094 *) libsuff= shlibsuff= libmagic=never-match;;
11098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11099 shlibpath_overrides_runpath=no
11100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11102 hardcode_into_libs=yes
11105 # No shared lib support for Linux oldld, aout, or coff.
11106 linux*oldld* | linux*aout* | linux*coff*)
11110 # This must be Linux ELF.
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 shlibpath_overrides_runpath=no
11120 # This implies no fast_install, which is unacceptable.
11121 # Some rework will be needed to allow for fast_install
11122 # before this can be enabled.
11123 hardcode_into_libs=yes
11125 # We used to test for /lib/ld.so.1 and disable shared libraries on
11126 # powerpc, because MkLinux only supported shared libraries with the
11127 # GNU dynamic linker. Since this was broken with cross compilers,
11128 # most powerpc-linux boxes support dynamic linking these days and
11129 # people can always --disable-shared, the test was removed, and we
11130 # assume the GNU/Linux dynamic linker is in use.
11131 dynamic_linker='GNU/Linux ld.so'
11138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11141 dynamic_linker='NetBSD (a.out) ld.so'
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 dynamic_linker='NetBSD ld.elf_so'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath=yes
11149 hardcode_into_libs=yes
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=yes
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11178 openbsd2.[89] | openbsd2.[89].*)
11179 shlibpath_overrides_runpath=no
11182 shlibpath_overrides_runpath=yes
11186 shlibpath_overrides_runpath=yes
11191 libname_spec='$name'
11194 library_names_spec='$libname${shared_ext} $libname.a'
11195 dynamic_linker='OS/2 ld.exe'
11196 shlibpath_var=LIBPATH
11199 osf3* | osf4* | osf5*)
11203 soname_spec='${libname}${release}${shared_ext}$major'
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 shlibpath_var=LD_LIBRARY_PATH
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath=yes
11225 hardcode_into_libs=yes
11226 # ldd complains unless libraries are executable
11227 postinstall_cmds='chmod +x $lib'
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 shlibpath_overrides_runpath=yes
11236 if test "$with_gnu_ld" = yes; then
11242 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 case $host_vendor in
11249 shlibpath_overrides_runpath=no
11251 export_dynamic_flag_spec='${wl}-Blargedynsym'
11252 runpath_var=LD_RUN_PATH
11260 shlibpath_overrides_runpath=no
11261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11267 if test -d /usr/nec ;then
11269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11270 soname_spec='$libname${shared_ext}.$major'
11271 shlibpath_var=LD_LIBRARY_PATH
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 shlibpath_var=LD_LIBRARY_PATH
11286 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11287 echo "${ECHO_T}$dynamic_linker" >&6
11288 test "$dynamic_linker" = no && can_build_shared=no
11290 if test "x$enable_dlopen" != xyes; then
11291 enable_dlopen=unknown
11292 enable_dlopen_self=unknown
11293 enable_dlopen_self_static=unknown
11300 lt_cv_dlopen="load_add_on"
11302 lt_cv_dlopen_self=yes
11306 lt_cv_dlopen="LoadLibrary"
11311 lt_cv_dlopen="dlopen"
11316 # if libdl is installed we need to link against it
11317 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11318 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11319 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 ac_check_lib_save_LIBS=$LIBS
11324 cat >conftest.$ac_ext <<_ACEOF
11325 #line $LINENO "configure"
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11332 /* Override any gcc2 internal prototype to avoid an error. */
11336 /* We use char because int might match the return type of a gcc2
11337 builtin and then its argument prototype would still apply. */
11347 rm -f conftest.$ac_objext conftest$ac_exeext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11349 (eval $ac_link) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -s conftest$ac_exeext'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 ac_cv_lib_dl_dlopen=yes
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 ac_cv_lib_dl_dlopen=no
11366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_lib_save_LIBS
11369 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11370 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11371 if test $ac_cv_lib_dl_dlopen = yes; then
11372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11375 lt_cv_dlopen="dyld"
11377 lt_cv_dlopen_self=yes
11384 echo "$as_me:$LINENO: checking for shl_load" >&5
11385 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11386 if test "${ac_cv_func_shl_load+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 /* System header to define __stub macros and hopefully few prototypes,
11397 which can conflict with char shl_load (); below.
11398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11399 <limits.h> exists even on freestanding compilers. */
11401 # include <limits.h>
11403 # include <assert.h>
11405 /* Override any gcc2 internal prototype to avoid an error. */
11410 /* We use char because int might match the return type of a gcc2
11411 builtin and then its argument prototype would still apply. */
11413 /* The GNU C library defines this for functions which it implements
11414 to always fail with ENOSYS. Some functions are actually named
11415 something starting with __ and the normal name is an alias. */
11416 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11419 char (*f) () = shl_load;
11428 return f != shl_load;
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435 (eval $ac_link) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -s conftest$ac_exeext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 ac_cv_func_shl_load=yes
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 ac_cv_func_shl_load=no
11452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11454 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11455 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11456 if test $ac_cv_func_shl_load = yes; then
11457 lt_cv_dlopen="shl_load"
11459 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11460 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11461 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 ac_check_lib_save_LIBS=$LIBS
11466 cat >conftest.$ac_ext <<_ACEOF
11467 #line $LINENO "configure"
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11474 /* Override any gcc2 internal prototype to avoid an error. */
11478 /* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11489 rm -f conftest.$ac_objext conftest$ac_exeext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491 (eval $ac_link) 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -s conftest$ac_exeext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_lib_dld_shl_load=yes
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 ac_cv_lib_dld_shl_load=no
11508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11511 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11512 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11513 if test $ac_cv_lib_dld_shl_load = yes; then
11514 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11516 echo "$as_me:$LINENO: checking for dlopen" >&5
11517 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11518 if test "${ac_cv_func_dlopen+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 cat >conftest.$ac_ext <<_ACEOF
11522 #line $LINENO "configure"
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 /* System header to define __stub macros and hopefully few prototypes,
11529 which can conflict with char dlopen (); below.
11530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11531 <limits.h> exists even on freestanding compilers. */
11533 # include <limits.h>
11535 # include <assert.h>
11537 /* Override any gcc2 internal prototype to avoid an error. */
11542 /* We use char because int might match the return type of a gcc2
11543 builtin and then its argument prototype would still apply. */
11545 /* The GNU C library defines this for functions which it implements
11546 to always fail with ENOSYS. Some functions are actually named
11547 something starting with __ and the normal name is an alias. */
11548 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11551 char (*f) () = dlopen;
11560 return f != dlopen;
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567 (eval $ac_link) 2>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -s conftest$ac_exeext'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 ac_cv_func_dlopen=yes
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11582 ac_cv_func_dlopen=no
11584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11586 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11587 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11588 if test $ac_cv_func_dlopen = yes; then
11589 lt_cv_dlopen="dlopen"
11591 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11592 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11593 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 ac_check_lib_save_LIBS=$LIBS
11598 cat >conftest.$ac_ext <<_ACEOF
11599 #line $LINENO "configure"
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11606 /* Override any gcc2 internal prototype to avoid an error. */
11610 /* We use char because int might match the return type of a gcc2
11611 builtin and then its argument prototype would still apply. */
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623 (eval $ac_link) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -s conftest$ac_exeext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_cv_lib_dl_dlopen=yes
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11638 ac_cv_lib_dl_dlopen=no
11640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11641 LIBS=$ac_check_lib_save_LIBS
11643 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11644 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11645 if test $ac_cv_lib_dl_dlopen = yes; then
11646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11648 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11649 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11650 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-lsvld $LIBS"
11655 cat >conftest.$ac_ext <<_ACEOF
11656 #line $LINENO "configure"
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11663 /* Override any gcc2 internal prototype to avoid an error. */
11667 /* We use char because int might match the return type of a gcc2
11668 builtin and then its argument prototype would still apply. */
11678 rm -f conftest.$ac_objext conftest$ac_exeext
11679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11680 (eval $ac_link) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11690 ac_cv_lib_svld_dlopen=yes
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 ac_cv_lib_svld_dlopen=no
11697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11698 LIBS=$ac_check_lib_save_LIBS
11700 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11701 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11702 if test $ac_cv_lib_svld_dlopen = yes; then
11703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11705 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11706 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11707 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 ac_check_lib_save_LIBS=$LIBS
11712 cat >conftest.$ac_ext <<_ACEOF
11713 #line $LINENO "configure"
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11720 /* Override any gcc2 internal prototype to avoid an error. */
11724 /* We use char because int might match the return type of a gcc2
11725 builtin and then its argument prototype would still apply. */
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737 (eval $ac_link) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } &&
11741 { ac_try='test -s conftest$ac_exeext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_cv_lib_dld_dld_link=yes
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 ac_cv_lib_dld_dld_link=no
11754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11755 LIBS=$ac_check_lib_save_LIBS
11757 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11758 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11759 if test $ac_cv_lib_dld_dld_link = yes; then
11760 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11781 if test "x$lt_cv_dlopen" != xno; then
11787 case $lt_cv_dlopen in
11789 save_CPPFLAGS="$CPPFLAGS"
11790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11792 save_LDFLAGS="$LDFLAGS"
11793 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11796 LIBS="$lt_cv_dlopen_libs $LIBS"
11798 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11799 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11800 if test "${lt_cv_dlopen_self+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 if test "$cross_compiling" = yes; then :
11804 lt_cv_dlopen_self=cross
11806 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11807 lt_status=$lt_dlunknown
11808 cat > conftest.$ac_ext <<EOF
11809 #line 11809 "configure"
11810 #include "confdefs.h"
11819 # define LT_DLGLOBAL RTLD_GLOBAL
11822 # define LT_DLGLOBAL DL_GLOBAL
11824 # define LT_DLGLOBAL 0
11828 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11829 find out it does not work in some platform. */
11830 #ifndef LT_DLLAZY_OR_NOW
11832 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11835 # define LT_DLLAZY_OR_NOW DL_LAZY
11838 # define LT_DLLAZY_OR_NOW RTLD_NOW
11841 # define LT_DLLAZY_OR_NOW DL_NOW
11843 # define LT_DLLAZY_OR_NOW 0
11851 extern "C" void exit (int);
11854 void fnord() { int i=42;}
11857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11858 int status = $lt_dlunknown;
11862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11863 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11864 /* dlclose (self); */
11870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871 (eval $ac_link) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11875 (./conftest; exit; ) 2>/dev/null
11877 case x$lt_status in
11878 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11879 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11880 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11883 # compilation failed
11884 lt_cv_dlopen_self=no
11891 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11892 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11894 if test "x$lt_cv_dlopen_self" = xyes; then
11895 LDFLAGS="$LDFLAGS $link_static_flag"
11896 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11897 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11898 if test "${lt_cv_dlopen_self_static+set}" = set; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 if test "$cross_compiling" = yes; then :
11902 lt_cv_dlopen_self_static=cross
11904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11905 lt_status=$lt_dlunknown
11906 cat > conftest.$ac_ext <<EOF
11907 #line 11907 "configure"
11908 #include "confdefs.h"
11917 # define LT_DLGLOBAL RTLD_GLOBAL
11920 # define LT_DLGLOBAL DL_GLOBAL
11922 # define LT_DLGLOBAL 0
11926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11927 find out it does not work in some platform. */
11928 #ifndef LT_DLLAZY_OR_NOW
11930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11933 # define LT_DLLAZY_OR_NOW DL_LAZY
11936 # define LT_DLLAZY_OR_NOW RTLD_NOW
11939 # define LT_DLLAZY_OR_NOW DL_NOW
11941 # define LT_DLLAZY_OR_NOW 0
11949 extern "C" void exit (int);
11952 void fnord() { int i=42;}
11955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11956 int status = $lt_dlunknown;
11960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11961 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11962 /* dlclose (self); */
11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969 (eval $ac_link) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11973 (./conftest; exit; ) 2>/dev/null
11975 case x$lt_status in
11976 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11977 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11978 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11981 # compilation failed
11982 lt_cv_dlopen_self_static=no
11989 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11990 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11993 CPPFLAGS="$save_CPPFLAGS"
11994 LDFLAGS="$save_LDFLAGS"
11999 case $lt_cv_dlopen_self in
12000 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12001 *) enable_dlopen_self=unknown ;;
12004 case $lt_cv_dlopen_self_static in
12005 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12006 *) enable_dlopen_self_static=unknown ;;
12011 # The else clause should only fire when bootstrapping the
12012 # libtool distribution, otherwise you forgot to ship ltmain.sh
12013 # with your package, and you will get complaints that there are
12014 # no rules to generate ltmain.sh.
12015 if test -f "$ltmain"; then
12016 # See if we are running on zsh, and set the options which allow our commands through
12017 # without removal of \ escapes.
12018 if test -n "${ZSH_VERSION+set}" ; then
12019 setopt NO_GLOB_SUBST
12021 # Now quote all the things that may contain metacharacters while being
12022 # careful not to overquote the AC_SUBSTed values. We take copies of the
12023 # variables and quote the copies for generation of the libtool script.
12024 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12025 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12026 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12027 deplibs_check_method reload_flag reload_cmds need_locks \
12028 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12029 lt_cv_sys_global_symbol_to_c_name_address \
12030 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12031 old_postinstall_cmds old_postuninstall_cmds \
12035 lt_prog_compiler_wl_CXX \
12036 lt_prog_compiler_pic_CXX \
12037 lt_prog_compiler_static_CXX \
12038 lt_prog_compiler_no_builtin_flag_CXX \
12039 export_dynamic_flag_spec_CXX \
12040 thread_safe_flag_spec_CXX \
12041 whole_archive_flag_spec_CXX \
12042 enable_shared_with_static_runtimes_CXX \
12043 old_archive_cmds_CXX \
12044 old_archive_from_new_cmds_CXX \
12045 predep_objects_CXX \
12046 postdep_objects_CXX \
12049 compiler_lib_search_path_CXX \
12051 archive_expsym_cmds_CXX \
12052 postinstall_cmds_CXX \
12053 postuninstall_cmds_CXX \
12054 old_archive_from_expsyms_cmds_CXX \
12055 allow_undefined_flag_CXX \
12056 no_undefined_flag_CXX \
12057 export_symbols_cmds_CXX \
12058 hardcode_libdir_flag_spec_CXX \
12059 hardcode_libdir_flag_spec_ld_CXX \
12060 hardcode_libdir_separator_CXX \
12061 hardcode_automatic_CXX \
12063 module_expsym_cmds_CXX \
12064 lt_cv_prog_compiler_c_o_CXX \
12065 exclude_expsyms_CXX \
12066 include_expsyms_CXX; do
12069 old_archive_cmds_CXX | \
12070 old_archive_from_new_cmds_CXX | \
12071 archive_cmds_CXX | \
12072 archive_expsym_cmds_CXX | \
12073 module_cmds_CXX | \
12074 module_expsym_cmds_CXX | \
12075 old_archive_from_expsyms_cmds_CXX | \
12076 export_symbols_cmds_CXX | \
12077 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12078 postinstall_cmds | postuninstall_cmds | \
12079 old_postinstall_cmds | old_postuninstall_cmds | \
12080 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12081 # Double-quote double-evaled strings.
12082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12091 *'\$0 --fallback-echo"')
12092 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12098 cat <<__EOF__ >> "$cfgfile"
12099 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12103 # Shell to use when invoking shell scripts.
12106 # Whether or not to build shared libraries.
12107 build_libtool_libs=$enable_shared
12109 # Whether or not to build static libraries.
12110 build_old_libs=$enable_static
12112 # Whether or not to add -lc for building shared libraries.
12113 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12115 # Whether or not to disallow shared libs when runtime libs are static
12116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12118 # Whether or not to optimize for fast installation.
12119 fast_install=$enable_fast_install
12122 host_alias=$host_alias
12125 # An echo program that does not interpret backslashes.
12130 AR_FLAGS=$lt_AR_FLAGS
12135 # A language-specific compiler.
12136 CC=$lt_compiler_CXX
12138 # Is the compiler the GNU C compiler?
12144 # The linker used to build libraries.
12147 # Whether we need hard or soft links.
12150 # A BSD-compatible nm program.
12153 # A symbol stripping program
12156 # Used to examine libraries when file_magic_cmd begins "file"
12157 MAGIC_CMD=$MAGIC_CMD
12159 # Used on cygwin: DLL creation program.
12162 # Used on cygwin: object dumper.
12165 # Used on cygwin: assembler.
12168 # The name of the directory that contains temporary libtool files.
12171 # How to create reloadable object files.
12172 reload_flag=$lt_reload_flag
12173 reload_cmds=$lt_reload_cmds
12175 # How to pass a linker flag through the compiler.
12176 wl=$lt_lt_prog_compiler_wl_CXX
12178 # Object file suffix (normally "o").
12179 objext="$ac_objext"
12181 # Old archive suffix (normally "a").
12184 # Shared library suffix (normally ".so").
12187 # Executable file suffix (normally "").
12190 # Additional compiler flags for building library objects.
12191 pic_flag=$lt_lt_prog_compiler_pic_CXX
12194 # What is the maximum length of a command?
12195 max_cmd_len=$lt_cv_sys_max_cmd_len
12197 # Does compiler simultaneously support -c and -o options?
12198 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12200 # Must we lock files when doing compilation ?
12201 need_locks=$lt_need_locks
12203 # Do we need the lib prefix for modules?
12204 need_lib_prefix=$need_lib_prefix
12206 # Do we need a version for libraries?
12207 need_version=$need_version
12209 # Whether dlopen is supported.
12210 dlopen_support=$enable_dlopen
12212 # Whether dlopen of programs is supported.
12213 dlopen_self=$enable_dlopen_self
12215 # Whether dlopen of statically linked programs is supported.
12216 dlopen_self_static=$enable_dlopen_self_static
12218 # Compiler flag to prevent dynamic linking.
12219 link_static_flag=$lt_lt_prog_compiler_static_CXX
12221 # Compiler flag to turn off builtin functions.
12222 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12224 # Compiler flag to allow reflexive dlopens.
12225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12227 # Compiler flag to generate shared objects directly from archives.
12228 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12230 # Compiler flag to generate thread-safe objects.
12231 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12233 # Library versioning type.
12234 version_type=$version_type
12236 # Format of library name prefix.
12237 libname_spec=$lt_libname_spec
12239 # List of archive names. First name is the real one, the rest are links.
12240 # The last name is the one that the linker finds with -lNAME.
12241 library_names_spec=$lt_library_names_spec
12243 # The coded name of the library, if different from the real name.
12244 soname_spec=$lt_soname_spec
12246 # Commands used to build and install an old-style archive.
12248 old_archive_cmds=$lt_old_archive_cmds_CXX
12249 old_postinstall_cmds=$lt_old_postinstall_cmds
12250 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12252 # Create an old-style archive from a shared archive.
12253 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12255 # Create a temporary old-style archive to link instead of a shared archive.
12256 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12258 # Commands used to build and install a shared archive.
12259 archive_cmds=$lt_archive_cmds_CXX
12260 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12261 postinstall_cmds=$lt_postinstall_cmds
12262 postuninstall_cmds=$lt_postuninstall_cmds
12264 # Commands used to build a loadable module (assumed same as above if empty)
12265 module_cmds=$lt_module_cmds_CXX
12266 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12268 # Commands to strip libraries.
12269 old_striplib=$lt_old_striplib
12270 striplib=$lt_striplib
12272 # Dependencies to place before the objects being linked to create a
12274 predep_objects=$lt_predep_objects_CXX
12276 # Dependencies to place after the objects being linked to create a
12278 postdep_objects=$lt_postdep_objects_CXX
12280 # Dependencies to place before the objects being linked to create a
12282 predeps=$lt_predeps_CXX
12284 # Dependencies to place after the objects being linked to create a
12286 postdeps=$lt_postdeps_CXX
12288 # The library search path used internally by the compiler when linking
12289 # a shared library.
12290 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12292 # Method to check whether dependent libraries are shared objects.
12293 deplibs_check_method=$lt_deplibs_check_method
12295 # Command to use when deplibs_check_method == file_magic.
12296 file_magic_cmd=$lt_file_magic_cmd
12298 # Flag that allows shared libraries with undefined symbols to be built.
12299 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12301 # Flag that forces no undefined symbols.
12302 no_undefined_flag=$lt_no_undefined_flag_CXX
12304 # Commands used to finish a libtool library installation in a directory.
12305 finish_cmds=$lt_finish_cmds
12307 # Same as above, but a single script fragment to be evaled but not shown.
12308 finish_eval=$lt_finish_eval
12310 # Take the output of nm and produce a listing of raw symbols and C names.
12311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12313 # Transform the output of nm in a proper C declaration
12314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12316 # Transform the output of nm in a C name address pair
12317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12319 # This is the shared library runtime path variable.
12320 runpath_var=$runpath_var
12322 # This is the shared library path variable.
12323 shlibpath_var=$shlibpath_var
12325 # Is shlibpath searched before the hard-coded library search path?
12326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12328 # How to hardcode a shared library path into an executable.
12329 hardcode_action=$hardcode_action_CXX
12331 # Whether we should hardcode library paths into libraries.
12332 hardcode_into_libs=$hardcode_into_libs
12334 # Flag to hardcode \$libdir into a binary during linking.
12335 # This must work even if \$libdir does not exist.
12336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12338 # If ld is used when linking, flag to hardcode \$libdir into
12339 # a binary during linking. This must work even if \$libdir does
12341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12343 # Whether we need a single -rpath flag with a separated argument.
12344 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12347 # resulting binary.
12348 hardcode_direct=$hardcode_direct_CXX
12350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12351 # resulting binary.
12352 hardcode_minus_L=$hardcode_minus_L_CXX
12354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12355 # the resulting binary.
12356 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12358 # Set to yes if building a shared library automatically hardcodes DIR into the library
12359 # and all subsequent libraries and executables linked against it.
12360 hardcode_automatic=$hardcode_automatic_CXX
12362 # Variables whose values should be saved in libtool wrapper scripts and
12363 # restored at relink time.
12364 variables_saved_for_relink="$variables_saved_for_relink"
12366 # Whether libtool must link a program against all its dependency libraries.
12367 link_all_deplibs=$link_all_deplibs_CXX
12369 # Compile-time system search path for libraries
12370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12372 # Run-time system search path for libraries
12373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12375 # Fix the shell variable \$srcfile for the compiler.
12376 fix_srcfile_path="$fix_srcfile_path_CXX"
12378 # Set to yes if exported symbols are required.
12379 always_export_symbols=$always_export_symbols_CXX
12381 # The commands to list exported symbols.
12382 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12384 # The commands to extract the exported symbol list from a shared archive.
12385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12387 # Symbols that should not be listed in the preloaded symbols.
12388 exclude_expsyms=$lt_exclude_expsyms_CXX
12390 # Symbols that must always be exported.
12391 include_expsyms=$lt_include_expsyms_CXX
12393 # ### END LIBTOOL TAG CONFIG: $tagname
12399 # If there is no Makefile yet, we rely on a make rule to execute
12400 # `config.status --recheck' to rerun these tests and create the
12401 # libtool script then.
12402 test -f Makefile && make "$ltmain"
12407 ac_cpp='$CPP $CPPFLAGS'
12408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12416 with_gnu_ldcxx=$with_gnu_ld
12417 with_gnu_ld=$lt_save_with_gnu_ld
12418 lt_cv_path_LDCXX=$lt_cv_path_LD
12419 lt_cv_path_LD=$lt_save_path_LD
12420 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12421 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12429 if test -n "$F77" && test "X$F77" != "Xno"; then
12432 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12433 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12434 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12437 archive_cmds_need_lc_F77=no
12438 allow_undefined_flag_F77=
12439 always_export_symbols_F77=no
12440 archive_expsym_cmds_F77=
12441 export_dynamic_flag_spec_F77=
12442 hardcode_direct_F77=no
12443 hardcode_libdir_flag_spec_F77=
12444 hardcode_libdir_flag_spec_ld_F77=
12445 hardcode_libdir_separator_F77=
12446 hardcode_minus_L_F77=no
12447 hardcode_automatic_F77=no
12449 module_expsym_cmds_F77=
12450 link_all_deplibs_F77=unknown
12451 old_archive_cmds_F77=$old_archive_cmds
12452 no_undefined_flag_F77=
12453 whole_archive_flag_spec_F77=
12454 enable_shared_with_static_runtimes_F77=no
12456 # Source file extension for f77 test sources.
12459 # Object file extension for compiled f77 test sources.
12463 # Code to be used in simple compile tests
12464 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12466 # Code to be used in simple link tests
12467 lt_simple_link_test_code=" program t\n end\n"
12469 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12471 # If no C compiler was specified, use CC.
12474 # Allow CC to be a program name with arguments.
12478 # Allow CC to be a program name with arguments.
12483 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12485 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12486 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12487 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12488 echo "${ECHO_T}$can_build_shared" >&6
12490 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12491 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12492 test "$can_build_shared" = "no" && enable_shared=no
12494 # On AIX, shared libraries and static libraries use the same namespace, and
12495 # are all built from PIC.
12498 test "$enable_shared" = yes && enable_static=no
12499 if test -n "$RANLIB"; then
12500 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12501 postinstall_cmds='$RANLIB $lib'
12505 test "$enable_shared" = yes && enable_static=no
12508 echo "$as_me:$LINENO: result: $enable_shared" >&5
12509 echo "${ECHO_T}$enable_shared" >&6
12511 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12512 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12513 # Make sure either enable_shared or enable_static is yes.
12514 test "$enable_shared" = yes || enable_static=yes
12515 echo "$as_me:$LINENO: result: $enable_static" >&5
12516 echo "${ECHO_T}$enable_static" >&6
12518 test "$ld_shlibs_F77" = no && can_build_shared=no
12523 lt_prog_compiler_wl_F77=
12524 lt_prog_compiler_pic_F77=
12525 lt_prog_compiler_static_F77=
12527 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12528 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12530 if test "$GCC" = yes; then
12531 lt_prog_compiler_wl_F77='-Wl,'
12532 lt_prog_compiler_static_F77='-static'
12536 # All AIX code is PIC.
12537 if test "$host_cpu" = ia64; then
12538 # AIX 5 now supports IA64 processor
12539 lt_prog_compiler_static_F77='-Bstatic'
12544 # FIXME: we need at least 68020 code to build shared libraries, but
12545 # adding the `-m68020' flag to GCC prevents building anything better,
12547 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12550 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12551 # PIC is the default for these OSes.
12554 mingw* | pw32* | os2*)
12555 # This hack is so that the source file can tell whether it is being
12556 # built for inclusion in a dll (and should export symbols for example).
12557 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12560 darwin* | rhapsody*)
12561 # PIC is the default on this platform
12562 # Common symbols not allowed in MH_DYLIB files
12563 lt_prog_compiler_pic_F77='-fno-common'
12567 # Just because we use GCC doesn't mean we suddenly get shared libraries
12568 # on systems that don't support them.
12569 lt_prog_compiler_can_build_shared_F77=no
12574 if test -d /usr/nec; then
12575 lt_prog_compiler_pic_F77=-Kconform_pic
12580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12581 # not for PA HP-UX.
12582 case "$host_cpu" in
12587 lt_prog_compiler_pic_F77='-fPIC'
12593 lt_prog_compiler_pic_F77='-fPIC'
12597 # PORTME Check for flag to pass linker flags through the system compiler.
12600 lt_prog_compiler_wl_F77='-Wl,'
12601 if test "$host_cpu" = ia64; then
12602 # AIX 5 now supports IA64 processor
12603 lt_prog_compiler_static_F77='-Bstatic'
12605 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12609 mingw* | pw32* | os2*)
12610 # This hack is so that the source file can tell whether it is being
12611 # built for inclusion in a dll (and should export symbols for example).
12612 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12615 hpux9* | hpux10* | hpux11*)
12616 lt_prog_compiler_wl_F77='-Wl,'
12617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12618 # not for PA HP-UX.
12619 case "$host_cpu" in
12624 lt_prog_compiler_pic_F77='+Z'
12627 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12628 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12631 irix5* | irix6* | nonstopux*)
12632 lt_prog_compiler_wl_F77='-Wl,'
12633 # PIC (with -KPIC) is the default.
12634 lt_prog_compiler_static_F77='-non_shared'
12638 lt_prog_compiler_pic_F77='-KPIC'
12639 lt_prog_compiler_static_F77='-Bstatic'
12645 lt_prog_compiler_wl_F77='-Wl,'
12646 lt_prog_compiler_pic_F77='-KPIC'
12647 lt_prog_compiler_static_F77='-static'
12650 lt_prog_compiler_wl_F77='-Wl,'
12651 # All Alpha code is PIC.
12652 lt_prog_compiler_static_F77='-non_shared'
12657 osf3* | osf4* | osf5*)
12658 lt_prog_compiler_wl_F77='-Wl,'
12659 # All OSF/1 code is PIC.
12660 lt_prog_compiler_static_F77='-non_shared'
12664 lt_prog_compiler_pic_F77='-Kpic'
12665 lt_prog_compiler_static_F77='-dn'
12669 lt_prog_compiler_wl_F77='-Wl,'
12670 lt_prog_compiler_pic_F77='-KPIC'
12671 lt_prog_compiler_static_F77='-Bstatic'
12675 lt_prog_compiler_wl_F77='-Qoption ld '
12676 lt_prog_compiler_pic_F77='-PIC'
12677 lt_prog_compiler_static_F77='-Bstatic'
12680 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12681 lt_prog_compiler_wl_F77='-Wl,'
12682 lt_prog_compiler_pic_F77='-KPIC'
12683 lt_prog_compiler_static_F77='-Bstatic'
12687 if test -d /usr/nec ;then
12688 lt_prog_compiler_pic_F77='-Kconform_pic'
12689 lt_prog_compiler_static_F77='-Bstatic'
12694 lt_prog_compiler_pic_F77='-pic'
12695 lt_prog_compiler_static_F77='-Bstatic'
12699 lt_prog_compiler_can_build_shared_F77=no
12704 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12705 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12708 # Check to make sure the PIC flag actually works.
12710 if test -n "$lt_prog_compiler_pic_F77"; then
12711 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12712 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12713 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 lt_prog_compiler_pic_works_F77=no
12717 ac_outfile=conftest.$ac_objext
12718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12719 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12720 # Insert the option either (1) after the last *FLAGS variable, or
12721 # (2) before a word containing "conftest.", or (3) at the end.
12722 # Note that $ac_compile itself does not contain backslashes and begins
12723 # with a dollar sign (not a hyphen), so the echo should work correctly.
12724 # The option is referenced via a variable to avoid confusing sed.
12725 lt_compile=`echo "$ac_compile" | $SED \
12726 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12728 -e 's:$: $lt_compiler_flag:'`
12729 (eval echo "\"\$as_me:12729: $lt_compile\"" >&5)
12730 (eval "$lt_compile" 2>conftest.err)
12732 cat conftest.err >&5
12733 echo "$as_me:12733: \$? = $ac_status" >&5
12734 if (exit $ac_status) && test -s "$ac_outfile"; then
12735 # The compiler can only warn and ignore the option if not recognized
12736 # So say no if there are warnings
12737 if test ! -s conftest.err; then
12738 lt_prog_compiler_pic_works_F77=yes
12744 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12745 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12747 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12748 case $lt_prog_compiler_pic_F77 in
12750 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12753 lt_prog_compiler_pic_F77=
12754 lt_prog_compiler_can_build_shared_F77=no
12759 # For platforms which do not support PIC, -DPIC is meaningless:
12761 lt_prog_compiler_pic_F77=
12764 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12768 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12769 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12770 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 lt_cv_prog_compiler_c_o_F77=no
12774 $rm -r conftest 2>/dev/null
12778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12780 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12781 # that will create temporary files in the current directory regardless of
12782 # the output directory. Thus, making CWD read-only will cause this test
12783 # to fail, enabling locking or at least warning the user not to do parallel
12787 lt_compiler_flag="-o out/conftest2.$ac_objext"
12788 # Insert the option either (1) after the last *FLAGS variable, or
12789 # (2) before a word containing "conftest.", or (3) at the end.
12790 # Note that $ac_compile itself does not contain backslashes and begins
12791 # with a dollar sign (not a hyphen), so the echo should work correctly.
12792 lt_compile=`echo "$ac_compile" | $SED \
12793 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12795 -e 's:$: $lt_compiler_flag:'`
12796 (eval echo "\"\$as_me:12796: $lt_compile\"" >&5)
12797 (eval "$lt_compile" 2>out/conftest.err)
12799 cat out/conftest.err >&5
12800 echo "$as_me:12800: \$? = $ac_status" >&5
12801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12803 # The compiler can only warn and ignore the option if not recognized
12804 # So say no if there are warnings
12805 if test ! -s out/conftest.err; then
12806 lt_cv_prog_compiler_c_o_F77=yes
12810 $rm conftest* out/*
12817 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12818 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12821 hard_links="nottested"
12822 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12823 # do not overwrite the value of need_locks provided by the user
12824 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12825 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12830 ln conftest.a conftest.b 2>&5 || hard_links=no
12831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12832 echo "$as_me:$LINENO: result: $hard_links" >&5
12833 echo "${ECHO_T}$hard_links" >&6
12834 if test "$hard_links" = no; then
12835 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12836 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12843 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12847 allow_undefined_flag_F77=
12848 enable_shared_with_static_runtimes_F77=no
12850 archive_expsym_cmds_F77=
12851 old_archive_From_new_cmds_F77=
12852 old_archive_from_expsyms_cmds_F77=
12853 export_dynamic_flag_spec_F77=
12854 whole_archive_flag_spec_F77=
12855 thread_safe_flag_spec_F77=
12856 hardcode_libdir_flag_spec_F77=
12857 hardcode_libdir_flag_spec_ld_F77=
12858 hardcode_libdir_separator_F77=
12859 hardcode_direct_F77=no
12860 hardcode_minus_L_F77=no
12861 hardcode_shlibpath_var_F77=unsupported
12862 link_all_deplibs_F77=unknown
12863 hardcode_automatic_F77=no
12865 module_expsym_cmds_F77=
12866 always_export_symbols_F77=no
12867 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12868 # include_expsyms should be a list of space-separated symbols to be *always*
12869 # included in the symbol list
12870 include_expsyms_F77=
12871 # exclude_expsyms can be an extended regexp of symbols to exclude
12872 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12873 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12874 # as well as any symbol that contains `d'.
12875 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12876 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12877 # platforms (ab)use it in PIC code, but their linkers get confused if
12878 # the symbol is explicitly referenced. Since portable code cannot
12879 # rely on this symbol name, it's probably fine to never include it in
12880 # preloaded symbol tables.
12881 extract_expsyms_cmds=
12884 cygwin* | mingw* | pw32*)
12885 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12886 # When not using gcc, we currently assume that we are using
12887 # Microsoft Visual C++.
12888 if test "$GCC" != yes; then
12898 if test "$with_gnu_ld" = yes; then
12899 # If archive_cmds runs LD, not CC, wlarc should be empty
12902 # See if GNU ld supports shared libraries.
12904 aix3* | aix4* | aix5*)
12905 # On AIX/PPC, the GNU linker is very broken
12906 if test "$host_cpu" != ia64; then
12910 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12911 *** to be unable to reliably create shared libraries on AIX.
12912 *** Therefore, libtool is disabling shared libraries support. If you
12913 *** really care for shared libraries, you may want to modify your PATH
12914 *** so that a non-GNU linker is found, and then restart.
12921 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)'
12922 hardcode_libdir_flag_spec_F77='-L$libdir'
12923 hardcode_minus_L_F77=yes
12925 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12926 # that the semantics of dynamic libraries on AmigaOS, at least up
12927 # to version 4, is to share data among multiple programs linked
12928 # with the same dynamic library. Since this doesn't match the
12929 # behavior of shared libraries on other platforms, we can't use
12935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12936 allow_undefined_flag_F77=unsupported
12937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12938 # support --undefined. This deserves some investigation. FIXME
12939 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 cygwin* | mingw* | pw32*)
12946 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12947 # as there is no search path for DLLs.
12948 hardcode_libdir_flag_spec_F77='-L$libdir'
12949 allow_undefined_flag_F77=unsupported
12950 always_export_symbols_F77=no
12951 enable_shared_with_static_runtimes_F77=yes
12952 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12954 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12955 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12956 # If the export-symbols file already is a .def file (1st line
12957 # is EXPORTS), use it as is; otherwise, prepend...
12958 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12959 cp $export_symbols $output_objdir/$soname.def;
12961 echo EXPORTS > $output_objdir/$soname.def;
12962 cat $export_symbols >> $output_objdir/$soname.def;
12964 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12971 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12972 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12975 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12976 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12981 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12985 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12986 *** create shared libraries on Solaris systems. Therefore, libtool
12987 *** is disabling shared libraries support. We urge you to upgrade GNU
12988 *** binutils to release 2.9.1 or newer. Another option is to modify
12989 *** your PATH or compiler configuration so that the native linker is
12990 *** used, and then restart.
12993 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12994 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13002 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13004 hardcode_direct_F77=yes
13005 hardcode_shlibpath_var_F77=no
13009 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13010 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13011 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13018 if test "$ld_shlibs_F77" = yes; then
13019 runpath_var=LD_RUN_PATH
13020 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13021 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13022 # ancient GNU ld didn't support --whole-archive et. al.
13023 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13024 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13026 whole_archive_flag_spec_F77=
13030 # PORTME fill in a description of your system's linker (not GNU ld)
13033 allow_undefined_flag_F77=unsupported
13034 always_export_symbols_F77=yes
13035 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'
13036 # Note: this linker hardcodes the directories in LIBPATH if there
13037 # are no directories specified by -L.
13038 hardcode_minus_L_F77=yes
13039 if test "$GCC" = yes && test -z "$link_static_flag"; then
13040 # Neither direct hardcoding nor static linking is supported with a
13042 hardcode_direct_F77=unsupported
13047 if test "$host_cpu" = ia64; then
13048 # On IA64, the linker does run time linking by default, so we don't
13049 # have to do anything special.
13050 aix_use_runtimelinking=no
13051 exp_sym_flag='-Bexport'
13054 # If we're using GNU nm, then we don't want the "-C" option.
13055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13056 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13057 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'
13059 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'
13061 aix_use_runtimelinking=no
13063 # Test if we are trying to use run time linking or normal
13064 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13065 # need to do runtime linking.
13066 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13067 for ld_flag in $LDFLAGS; do
13068 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13069 aix_use_runtimelinking=yes
13075 exp_sym_flag='-bexport'
13076 no_entry_flag='-bnoentry'
13079 # When large executables or shared objects are built, AIX ld can
13080 # have problems creating the table of contents. If linking a library
13081 # or program results in "error TOC overflow" add -mminimal-toc to
13082 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13083 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13085 archive_cmds_F77=''
13086 hardcode_direct_F77=yes
13087 hardcode_libdir_separator_F77=':'
13088 link_all_deplibs_F77=yes
13090 if test "$GCC" = yes; then
13091 case $host_os in aix4.012|aix4.012.*)
13092 # We only want to do this on AIX 4.2 and lower, the check
13093 # below for broken collect2 doesn't work under 4.3+
13094 collect2name=`${CC} -print-prog-name=collect2`
13095 if test -f "$collect2name" && \
13096 strings "$collect2name" | grep resolve_lib_name >/dev/null
13098 # We have reworked collect2
13099 hardcode_direct_F77=yes
13101 # We have old collect2
13102 hardcode_direct_F77=unsupported
13103 # It fails to find uninstalled libraries when the uninstalled
13104 # path is not listed in the libpath. Setting hardcode_minus_L
13105 # to unsupported forces relinking
13106 hardcode_minus_L_F77=yes
13107 hardcode_libdir_flag_spec_F77='-L$libdir'
13108 hardcode_libdir_separator_F77=
13111 shared_flag='-shared'
13114 if test "$host_cpu" = ia64; then
13115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13116 # chokes on -Wl,-G. The following line is correct:
13119 if test "$aix_use_runtimelinking" = yes; then
13120 shared_flag='${wl}-G'
13122 shared_flag='${wl}-bM:SRE'
13127 # It seems that -bexpall does not export symbols beginning with
13128 # underscore (_), so it is better to generate a list of symbols to export.
13129 always_export_symbols_F77=yes
13130 if test "$aix_use_runtimelinking" = yes; then
13131 # Warning - without using the other runtime loading flags (-brtl),
13132 # -berok will link without error, but may produce a broken library.
13133 allow_undefined_flag_F77='-berok'
13134 # Determine the default libpath from the value encoded in an empty executable.
13135 cat >conftest.$ac_ext <<_ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13142 (eval $ac_link) 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13155 # Check for a 64-bit object if we didn't find anything.
13156 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; }
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13166 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13167 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"
13169 if test "$host_cpu" = ia64; then
13170 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13171 allow_undefined_flag_F77="-z nodefs"
13172 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"
13174 # Determine the default libpath from the value encoded in an empty executable.
13175 cat >conftest.$ac_ext <<_ACEOF
13180 rm -f conftest.$ac_objext conftest$ac_exeext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13182 (eval $ac_link) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } &&
13186 { ac_try='test -s conftest$ac_exeext'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
13193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13195 # Check for a 64-bit object if we didn't find anything.
13196 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; }
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13206 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13207 # Warning - without using the other run time loading flags,
13208 # -berok will link without error, but may produce a broken library.
13209 no_undefined_flag_F77=' ${wl}-bernotok'
13210 allow_undefined_flag_F77=' ${wl}-berok'
13211 # -bexpall does not export symbols beginning with underscore (_)
13212 always_export_symbols_F77=yes
13213 # Exported symbols can be pulled into shared objects from archives
13214 whole_archive_flag_spec_F77=' '
13215 archive_cmds_need_lc_F77=yes
13216 # This is similar to how AIX traditionally builds it's shared libraries.
13217 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'
13223 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)'
13224 hardcode_libdir_flag_spec_F77='-L$libdir'
13225 hardcode_minus_L_F77=yes
13226 # see comment about different semantics on the GNU ld section
13231 export_dynamic_flag_spec_F77=-rdynamic
13234 cygwin* | mingw* | pw32*)
13235 # When not using gcc, we currently assume that we are using
13236 # Microsoft Visual C++.
13237 # hardcode_libdir_flag_spec is actually meaningless, as there is
13238 # no search path for DLLs.
13239 hardcode_libdir_flag_spec_F77=' '
13240 allow_undefined_flag_F77=unsupported
13241 # Tell ltmain to make .lib files, not .a files.
13243 # Tell ltmain to make .dll files, not .so files.
13245 # FIXME: Setting linknames here is a bad hack.
13246 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13247 # The linker will automatically build a .lib file if we build a DLL.
13248 old_archive_From_new_cmds_F77='true'
13249 # FIXME: Should let the user specify the lib program.
13250 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13251 fix_srcfile_path='`cygpath -w "$srcfile"`'
13252 enable_shared_with_static_runtimes_F77=yes
13255 darwin* | rhapsody*)
13256 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13257 archive_cmds_need_lc_F77=no
13259 rhapsody* | darwin1.[012])
13260 allow_undefined_flag_F77='-undefined suppress'
13263 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13266 # FIXME: Relying on posixy $() will cause problems for
13267 # cross-compilation, but unfortunately the echo tests do not
13268 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13269 # `"' quotes if we put them in here... so don't!
13270 lt_int_apple_cc_single_mod=no
13271 output_verbose_link_cmd='echo'
13272 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13273 lt_int_apple_cc_single_mod=yes
13275 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13276 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13278 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'
13280 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13281 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13282 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13283 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}'
13285 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}'
13287 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}'
13288 hardcode_direct_F77=no
13289 hardcode_automatic_F77=yes
13290 hardcode_shlibpath_var_F77=unsupported
13291 whole_archive_flag_spec_F77='-all_load $convenience'
13292 link_all_deplibs_F77=yes
13297 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13298 hardcode_libdir_flag_spec_F77='-L$libdir'
13299 hardcode_shlibpath_var_F77=no
13306 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13307 # support. Future versions do this automatically, but an explicit c++rt0.o
13308 # does not break anything, and helps significantly (at the cost of a little
13311 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13312 hardcode_libdir_flag_spec_F77='-R$libdir'
13313 hardcode_direct_F77=yes
13314 hardcode_shlibpath_var_F77=no
13317 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13319 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13320 hardcode_direct_F77=yes
13321 hardcode_minus_L_F77=yes
13322 hardcode_shlibpath_var_F77=no
13325 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13327 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13328 hardcode_libdir_flag_spec_F77='-R$libdir'
13329 hardcode_direct_F77=yes
13330 hardcode_shlibpath_var_F77=no
13334 if test "$GCC" = yes; then
13335 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'
13337 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'
13339 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13340 hardcode_libdir_separator_F77=:
13341 hardcode_direct_F77=yes
13343 # hardcode_minus_L: Not really in the search PATH,
13344 # but as the default location of the library.
13345 hardcode_minus_L_F77=yes
13346 export_dynamic_flag_spec_F77='${wl}-E'
13350 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13351 case "$host_cpu" in
13353 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13356 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13360 case "$host_cpu" in
13362 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13365 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13369 if test "$with_gnu_ld" = no; then
13370 case "$host_cpu" in
13372 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13373 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13374 hardcode_libdir_separator_F77=:
13375 hardcode_direct_F77=no
13376 hardcode_shlibpath_var_F77=no
13379 hardcode_libdir_flag_spec_F77='-L$libdir'
13380 hardcode_direct_F77=no
13381 hardcode_shlibpath_var_F77=no
13383 # hardcode_minus_L: Not really in the search PATH,
13384 # but as the default location of the library.
13385 hardcode_minus_L_F77=yes
13388 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13389 hardcode_libdir_separator_F77=:
13390 hardcode_direct_F77=yes
13391 export_dynamic_flag_spec_F77='${wl}-E'
13393 # hardcode_minus_L: Not really in the search PATH,
13394 # but as the default location of the library.
13395 hardcode_minus_L_F77=yes
13401 irix5* | irix6* | nonstopux*)
13402 if test "$GCC" = yes; then
13403 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'
13405 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'
13406 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13409 hardcode_libdir_separator_F77=:
13410 link_all_deplibs_F77=yes
13414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13415 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13417 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13419 hardcode_libdir_flag_spec_F77='-R$libdir'
13420 hardcode_direct_F77=yes
13421 hardcode_shlibpath_var_F77=no
13425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13426 hardcode_direct_F77=yes
13427 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13428 hardcode_libdir_separator_F77=:
13429 hardcode_shlibpath_var_F77=no
13433 hardcode_direct_F77=yes
13434 hardcode_shlibpath_var_F77=no
13435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13436 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13437 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13438 export_dynamic_flag_spec_F77='${wl}-E'
13441 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13442 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13443 hardcode_libdir_flag_spec_F77='-R$libdir'
13446 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13447 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13454 hardcode_libdir_flag_spec_F77='-L$libdir'
13455 hardcode_minus_L_F77=yes
13456 allow_undefined_flag_F77=unsupported
13457 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'
13458 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13462 if test "$GCC" = yes; then
13463 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13464 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'
13466 allow_undefined_flag_F77=' -expect_unresolved \*'
13467 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'
13469 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13470 hardcode_libdir_separator_F77=:
13473 osf4* | osf5*) # as osf3* with the addition of -msym flag
13474 if test "$GCC" = yes; then
13475 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13476 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'
13477 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13479 allow_undefined_flag_F77=' -expect_unresolved \*'
13480 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'
13481 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~
13482 $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'
13484 # Both c and cxx compiler support -rpath directly
13485 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13487 hardcode_libdir_separator_F77=:
13491 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13492 hardcode_shlibpath_var_F77=no
13493 export_dynamic_flag_spec_F77='${wl}-Bexport'
13494 runpath_var=LD_RUN_PATH
13495 hardcode_runpath_var=yes
13499 no_undefined_flag_F77=' -z text'
13500 if test "$GCC" = yes; then
13501 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13503 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13505 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13506 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13507 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13509 hardcode_libdir_flag_spec_F77='-R$libdir'
13510 hardcode_shlibpath_var_F77=no
13512 solaris2.[0-5] | solaris2.[0-5].*) ;;
13513 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13514 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13516 link_all_deplibs_F77=yes
13520 if test "x$host_vendor" = xsequent; then
13521 # Use $CC to link under sequent, because it throws in some extra .o
13522 # files that make .init and .fini sections work.
13523 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13525 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13527 hardcode_libdir_flag_spec_F77='-L$libdir'
13528 hardcode_direct_F77=yes
13529 hardcode_minus_L_F77=yes
13530 hardcode_shlibpath_var_F77=no
13534 case $host_vendor in
13536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537 hardcode_direct_F77=yes # is this really true???
13540 ## LD is ld it makes a PLAMLIB
13541 ## CC just makes a GrossModule.
13542 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13543 reload_cmds_F77='$CC -r -o $output$reload_objs'
13544 hardcode_direct_F77=no
13547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13551 runpath_var='LD_RUN_PATH'
13552 hardcode_shlibpath_var_F77=no
13556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557 hardcode_shlibpath_var_F77=no
13558 export_dynamic_flag_spec_F77='-Bexport'
13562 if test -d /usr/nec; then
13563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13564 hardcode_shlibpath_var_F77=no
13565 runpath_var=LD_RUN_PATH
13566 hardcode_runpath_var=yes
13572 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13573 hardcode_direct_F77=yes
13574 hardcode_minus_L_F77=no
13575 hardcode_shlibpath_var_F77=no
13576 hardcode_runpath_var=yes
13577 runpath_var=LD_RUN_PATH
13580 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13581 no_undefined_flag_F77='${wl}-z ${wl}text'
13582 if test "$GCC" = yes; then
13583 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13585 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13587 runpath_var='LD_RUN_PATH'
13588 hardcode_shlibpath_var_F77=no
13592 no_undefined_flag_F77=' -z text'
13593 # $CC -shared without GNU ld will not create a library from C++
13594 # object files and a static libstdc++, better avoid it by now
13595 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13596 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13597 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13598 hardcode_libdir_flag_spec_F77=
13599 hardcode_shlibpath_var_F77=no
13600 runpath_var='LD_RUN_PATH'
13604 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13605 hardcode_libdir_flag_spec_F77='-L$libdir'
13606 hardcode_shlibpath_var_F77=no
13615 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13616 echo "${ECHO_T}$ld_shlibs_F77" >&6
13617 test "$ld_shlibs_F77" = no && can_build_shared=no
13619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13620 if test "$GCC" = yes; then
13621 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13625 # Do we need to explicitly link libc?
13627 case "x$archive_cmds_need_lc_F77" in
13629 # Assume -lc should be added
13630 archive_cmds_need_lc_F77=yes
13632 if test "$enable_shared" = yes && test "$GCC" = yes; then
13633 case $archive_cmds_F77 in
13635 # FIXME: we may have to deal with multi-command sequences.
13638 # Test whether the compiler implicitly links with -lc since on some
13639 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13640 # to ld, don't add -lc before -lgcc.
13641 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13642 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13644 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13647 (eval $ac_compile) 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } 2>conftest.err; then
13653 libobjs=conftest.$ac_objext
13655 wl=$lt_prog_compiler_wl_F77
13661 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13662 allow_undefined_flag_F77=
13663 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13664 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }
13669 archive_cmds_need_lc_F77=no
13671 archive_cmds_need_lc_F77=yes
13673 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13675 cat conftest.err 1>&5
13678 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13679 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13686 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13687 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13688 hardcode_action_F77=
13689 if test -n "$hardcode_libdir_flag_spec_F77" || \
13690 test -n "$runpath_var F77" || \
13691 test "X$hardcode_automatic_F77"="Xyes" ; then
13693 # We can hardcode non-existant directories.
13694 if test "$hardcode_direct_F77" != no &&
13695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13696 # have to relink, otherwise we might link with an installed library
13697 # when we should be linking with a yet-to-be-installed one
13698 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13699 test "$hardcode_minus_L_F77" != no; then
13700 # Linking always hardcodes the temporary library directory.
13701 hardcode_action_F77=relink
13703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13704 hardcode_action_F77=immediate
13707 # We cannot hardcode anything, or else we can only hardcode existing
13709 hardcode_action_F77=unsupported
13711 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13712 echo "${ECHO_T}$hardcode_action_F77" >&6
13714 if test "$hardcode_action_F77" = relink; then
13715 # Fast installation is not supported
13716 enable_fast_install=no
13717 elif test "$shlibpath_overrides_runpath" = yes ||
13718 test "$enable_shared" = no; then
13719 # Fast installation is not necessary
13720 enable_fast_install=needless
13725 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13726 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13727 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13728 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13729 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13730 echo "$as_me:$LINENO: result: yes" >&5
13731 echo "${ECHO_T}yes" >&6
13733 # FIXME - insert some real tests, host_os isn't really good enough
13736 if test -n "$STRIP" ; then
13737 striplib="$STRIP -x"
13738 echo "$as_me:$LINENO: result: yes" >&5
13739 echo "${ECHO_T}yes" >&6
13741 echo "$as_me:$LINENO: result: no" >&5
13742 echo "${ECHO_T}no" >&6
13746 echo "$as_me:$LINENO: result: no" >&5
13747 echo "${ECHO_T}no" >&6
13752 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13753 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13754 library_names_spec=
13755 libname_spec='lib$name'
13759 postuninstall_cmds=
13763 shlibpath_overrides_runpath=unknown
13765 dynamic_linker="$host_os ld.so"
13766 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13767 if test "$GCC" = yes; then
13768 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13769 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13770 # if the path contains ";" then we assume it to be the separator
13771 # otherwise default to the standard path separator (i.e. ":") - it is
13772 # assumed that no part of a normal pathname contains ";" but that should
13773 # okay in the real world where ";" in dirpaths is itself problematic.
13774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13781 need_lib_prefix=unknown
13782 hardcode_into_libs=no
13784 # when you set need_version to no, make sure it does not cause -set_version
13785 # flags to be left without arguments
13786 need_version=unknown
13791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13792 shlibpath_var=LIBPATH
13794 # AIX 3 has no versioning support, so we append a major version to the name.
13795 soname_spec='${libname}${release}${shared_ext}$major'
13802 hardcode_into_libs=yes
13803 if test "$host_cpu" = ia64; then
13804 # AIX 5 supports IA64
13805 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13806 shlibpath_var=LD_LIBRARY_PATH
13808 # With GCC up to 2.95.x, collect2 would create an import file
13809 # for dependence libraries. The import file would start with
13810 # the line `#! .'. This would cause the generated library to
13811 # depend on `.', always an invalid library. This was fixed in
13812 # development snapshots of GCC prior to 3.0.
13814 aix4 | aix4.[01] | aix4.[01].*)
13815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13817 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13820 can_build_shared=no
13824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13825 # soname into executable. Probably we can add versioning support to
13826 # collect2, so additional links can be useful in future.
13827 if test "$aix_use_runtimelinking" = yes; then
13828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13829 # instead of lib<name>.a to let people know that these are not
13830 # typical AIX shared libraries.
13831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13833 # We preserve .a as extension for shared libraries through AIX4.2
13834 # and later when we are not doing run time linking.
13835 library_names_spec='${libname}${release}.a $libname.a'
13836 soname_spec='${libname}${release}${shared_ext}$major'
13838 shlibpath_var=LIBPATH
13843 library_names_spec='$libname.ixlibrary $libname.a'
13844 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13845 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'
13849 library_names_spec='${libname}${shared_ext}'
13850 dynamic_linker="$host_os ld.so"
13851 shlibpath_var=LIBRARY_PATH
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13860 shlibpath_var=LD_LIBRARY_PATH
13861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13863 # the default ld.so.conf also contains /usr/contrib/lib and
13864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13865 # libtool to hard-code these into programs
13868 cygwin* | mingw* | pw32*)
13869 version_type=windows
13874 case $GCC,$host_os in
13875 yes,cygwin* | yes,mingw* | yes,pw32*)
13876 library_names_spec='$libname.dll.a'
13877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13878 postinstall_cmds='base_file=`basename \${file}`~
13879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13880 dldir=$destdir/`dirname \$dlpath`~
13881 test -d \$dldir || mkdir -p \$dldir~
13882 $install_prog $dir/$dlname \$dldir/$dlname'
13883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13884 dlpath=$dir/\$dldll~
13886 shlibpath_overrides_runpath=yes
13890 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13891 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13892 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13895 # MinGW DLLs use traditional 'lib' prefix
13896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13898 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13899 # It is most probably a Windows format PATH printed by
13900 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13901 # path with ; separators, and with drive letters. We can handle the
13902 # drive letters (cygwin fileutils understands them), so leave them,
13903 # especially as we might pass files found there to a mingw objdump,
13904 # which wouldn't understand a cygwinified path. Ahh.
13905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13911 # pw32 DLLs use 'pw' prefix rather than 'lib'
13912 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13921 dynamic_linker='Win32 ld.exe'
13922 # FIXME: first we should search . and the directory the executable is in
13926 darwin* | rhapsody*)
13927 dynamic_linker="$host_os dyld"
13928 version_type=darwin
13931 # FIXME: Relying on posixy $() will cause problems for
13932 # cross-compilation, but unfortunately the echo tests do not
13933 # yet detect zsh echo's removal of \ escapes.
13934 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13935 soname_spec='${libname}${release}${major}$shared_ext'
13936 shlibpath_overrides_runpath=yes
13937 shlibpath_var=DYLD_LIBRARY_PATH
13938 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13939 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13940 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13941 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"`
13943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13951 soname_spec='${libname}${release}${shared_ext}$major'
13952 shlibpath_var=LD_LIBRARY_PATH
13960 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13961 version_type=freebsd-$objformat
13962 case $version_type in
13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13973 shlibpath_var=LD_LIBRARY_PATH
13976 shlibpath_overrides_runpath=yes
13978 freebsd3.01* | freebsdelf3.01*)
13979 shlibpath_overrides_runpath=yes
13980 hardcode_into_libs=yes
13983 shlibpath_overrides_runpath=no
13984 hardcode_into_libs=yes
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13994 soname_spec='${libname}${release}${shared_ext}$major'
13995 shlibpath_var=LD_LIBRARY_PATH
13996 hardcode_into_libs=yes
13999 hpux9* | hpux10* | hpux11*)
14000 # Give a soname corresponding to the major version so that dld.sl refuses to
14001 # link against other versions.
14005 case "$host_cpu" in
14008 hardcode_into_libs=yes
14009 dynamic_linker="$host_os dld.so"
14010 shlibpath_var=LD_LIBRARY_PATH
14011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013 soname_spec='${libname}${release}${shared_ext}$major'
14014 if test "X$HPUX_IA64_MODE" = X32; then
14015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14023 hardcode_into_libs=yes
14024 dynamic_linker="$host_os dld.sl"
14025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028 soname_spec='${libname}${release}${shared_ext}$major'
14029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14034 dynamic_linker="$host_os dld.sl"
14035 shlibpath_var=SHLIB_PATH
14036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14041 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14042 postinstall_cmds='chmod 555 $lib'
14045 irix5* | irix6* | nonstopux*)
14047 nonstopux*) version_type=nonstopux ;;
14049 if test "$lt_cv_prog_gnu_ld" = yes; then
14057 soname_spec='${libname}${release}${shared_ext}$major'
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14060 irix5* | nonstopux*)
14061 libsuff= shlibsuff=
14064 case $LD in # libtool.m4 will add one of these switches to LD
14065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14066 libsuff= shlibsuff= libmagic=32-bit;;
14067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14068 libsuff=32 shlibsuff=N32 libmagic=N32;;
14069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14070 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14071 *) libsuff= shlibsuff= libmagic=never-match;;
14075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14076 shlibpath_overrides_runpath=no
14077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14079 hardcode_into_libs=yes
14082 # No shared lib support for Linux oldld, aout, or coff.
14083 linux*oldld* | linux*aout* | linux*coff*)
14087 # This must be Linux ELF.
14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093 soname_spec='${libname}${release}${shared_ext}$major'
14094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 shlibpath_overrides_runpath=no
14097 # This implies no fast_install, which is unacceptable.
14098 # Some rework will be needed to allow for fast_install
14099 # before this can be enabled.
14100 hardcode_into_libs=yes
14102 # We used to test for /lib/ld.so.1 and disable shared libraries on
14103 # powerpc, because MkLinux only supported shared libraries with the
14104 # GNU dynamic linker. Since this was broken with cross compilers,
14105 # most powerpc-linux boxes support dynamic linking these days and
14106 # people can always --disable-shared, the test was removed, and we
14107 # assume the GNU/Linux dynamic linker is in use.
14108 dynamic_linker='GNU/Linux ld.so'
14115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14118 dynamic_linker='NetBSD (a.out) ld.so'
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 dynamic_linker='NetBSD ld.elf_so'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=yes
14126 hardcode_into_libs=yes
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 shlibpath_overrides_runpath=yes
14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14141 soname_spec='${libname}${release}${shared_ext}$major'
14142 shlibpath_var=LD_LIBRARY_PATH
14143 shlibpath_overrides_runpath=yes
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14155 openbsd2.[89] | openbsd2.[89].*)
14156 shlibpath_overrides_runpath=no
14159 shlibpath_overrides_runpath=yes
14163 shlibpath_overrides_runpath=yes
14168 libname_spec='$name'
14171 library_names_spec='$libname${shared_ext} $libname.a'
14172 dynamic_linker='OS/2 ld.exe'
14173 shlibpath_var=LIBPATH
14176 osf3* | osf4* | osf5*)
14180 soname_spec='${libname}${release}${shared_ext}$major'
14181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14182 shlibpath_var=LD_LIBRARY_PATH
14183 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14184 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14189 soname_spec='${libname}${release}${shared_ext}$major'
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191 shlibpath_var=LD_LIBRARY_PATH
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199 soname_spec='${libname}${release}${shared_ext}$major'
14200 shlibpath_var=LD_LIBRARY_PATH
14201 shlibpath_overrides_runpath=yes
14202 hardcode_into_libs=yes
14203 # ldd complains unless libraries are executable
14204 postinstall_cmds='chmod +x $lib'
14209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14211 shlibpath_var=LD_LIBRARY_PATH
14212 shlibpath_overrides_runpath=yes
14213 if test "$with_gnu_ld" = yes; then
14219 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14222 soname_spec='${libname}${release}${shared_ext}$major'
14223 shlibpath_var=LD_LIBRARY_PATH
14224 case $host_vendor in
14226 shlibpath_overrides_runpath=no
14228 export_dynamic_flag_spec='${wl}-Blargedynsym'
14229 runpath_var=LD_RUN_PATH
14237 shlibpath_overrides_runpath=no
14238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14244 if test -d /usr/nec ;then
14246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14247 soname_spec='$libname${shared_ext}.$major'
14248 shlibpath_var=LD_LIBRARY_PATH
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 shlibpath_var=LD_LIBRARY_PATH
14263 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14264 echo "${ECHO_T}$dynamic_linker" >&6
14265 test "$dynamic_linker" = no && can_build_shared=no
14268 # The else clause should only fire when bootstrapping the
14269 # libtool distribution, otherwise you forgot to ship ltmain.sh
14270 # with your package, and you will get complaints that there are
14271 # no rules to generate ltmain.sh.
14272 if test -f "$ltmain"; then
14273 # See if we are running on zsh, and set the options which allow our commands through
14274 # without removal of \ escapes.
14275 if test -n "${ZSH_VERSION+set}" ; then
14276 setopt NO_GLOB_SUBST
14278 # Now quote all the things that may contain metacharacters while being
14279 # careful not to overquote the AC_SUBSTed values. We take copies of the
14280 # variables and quote the copies for generation of the libtool script.
14281 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14282 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14283 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14284 deplibs_check_method reload_flag reload_cmds need_locks \
14285 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14286 lt_cv_sys_global_symbol_to_c_name_address \
14287 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14288 old_postinstall_cmds old_postuninstall_cmds \
14292 lt_prog_compiler_wl_F77 \
14293 lt_prog_compiler_pic_F77 \
14294 lt_prog_compiler_static_F77 \
14295 lt_prog_compiler_no_builtin_flag_F77 \
14296 export_dynamic_flag_spec_F77 \
14297 thread_safe_flag_spec_F77 \
14298 whole_archive_flag_spec_F77 \
14299 enable_shared_with_static_runtimes_F77 \
14300 old_archive_cmds_F77 \
14301 old_archive_from_new_cmds_F77 \
14302 predep_objects_F77 \
14303 postdep_objects_F77 \
14306 compiler_lib_search_path_F77 \
14308 archive_expsym_cmds_F77 \
14309 postinstall_cmds_F77 \
14310 postuninstall_cmds_F77 \
14311 old_archive_from_expsyms_cmds_F77 \
14312 allow_undefined_flag_F77 \
14313 no_undefined_flag_F77 \
14314 export_symbols_cmds_F77 \
14315 hardcode_libdir_flag_spec_F77 \
14316 hardcode_libdir_flag_spec_ld_F77 \
14317 hardcode_libdir_separator_F77 \
14318 hardcode_automatic_F77 \
14320 module_expsym_cmds_F77 \
14321 lt_cv_prog_compiler_c_o_F77 \
14322 exclude_expsyms_F77 \
14323 include_expsyms_F77; do
14326 old_archive_cmds_F77 | \
14327 old_archive_from_new_cmds_F77 | \
14328 archive_cmds_F77 | \
14329 archive_expsym_cmds_F77 | \
14330 module_cmds_F77 | \
14331 module_expsym_cmds_F77 | \
14332 old_archive_from_expsyms_cmds_F77 | \
14333 export_symbols_cmds_F77 | \
14334 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14335 postinstall_cmds | postuninstall_cmds | \
14336 old_postinstall_cmds | old_postuninstall_cmds | \
14337 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14338 # Double-quote double-evaled strings.
14339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14348 *'\$0 --fallback-echo"')
14349 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14355 cat <<__EOF__ >> "$cfgfile"
14356 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14360 # Shell to use when invoking shell scripts.
14363 # Whether or not to build shared libraries.
14364 build_libtool_libs=$enable_shared
14366 # Whether or not to build static libraries.
14367 build_old_libs=$enable_static
14369 # Whether or not to add -lc for building shared libraries.
14370 build_libtool_need_lc=$archive_cmds_need_lc_F77
14372 # Whether or not to disallow shared libs when runtime libs are static
14373 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14375 # Whether or not to optimize for fast installation.
14376 fast_install=$enable_fast_install
14379 host_alias=$host_alias
14382 # An echo program that does not interpret backslashes.
14387 AR_FLAGS=$lt_AR_FLAGS
14392 # A language-specific compiler.
14393 CC=$lt_compiler_F77
14395 # Is the compiler the GNU C compiler?
14401 # The linker used to build libraries.
14404 # Whether we need hard or soft links.
14407 # A BSD-compatible nm program.
14410 # A symbol stripping program
14413 # Used to examine libraries when file_magic_cmd begins "file"
14414 MAGIC_CMD=$MAGIC_CMD
14416 # Used on cygwin: DLL creation program.
14419 # Used on cygwin: object dumper.
14422 # Used on cygwin: assembler.
14425 # The name of the directory that contains temporary libtool files.
14428 # How to create reloadable object files.
14429 reload_flag=$lt_reload_flag
14430 reload_cmds=$lt_reload_cmds
14432 # How to pass a linker flag through the compiler.
14433 wl=$lt_lt_prog_compiler_wl_F77
14435 # Object file suffix (normally "o").
14436 objext="$ac_objext"
14438 # Old archive suffix (normally "a").
14441 # Shared library suffix (normally ".so").
14444 # Executable file suffix (normally "").
14447 # Additional compiler flags for building library objects.
14448 pic_flag=$lt_lt_prog_compiler_pic_F77
14451 # What is the maximum length of a command?
14452 max_cmd_len=$lt_cv_sys_max_cmd_len
14454 # Does compiler simultaneously support -c and -o options?
14455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14457 # Must we lock files when doing compilation ?
14458 need_locks=$lt_need_locks
14460 # Do we need the lib prefix for modules?
14461 need_lib_prefix=$need_lib_prefix
14463 # Do we need a version for libraries?
14464 need_version=$need_version
14466 # Whether dlopen is supported.
14467 dlopen_support=$enable_dlopen
14469 # Whether dlopen of programs is supported.
14470 dlopen_self=$enable_dlopen_self
14472 # Whether dlopen of statically linked programs is supported.
14473 dlopen_self_static=$enable_dlopen_self_static
14475 # Compiler flag to prevent dynamic linking.
14476 link_static_flag=$lt_lt_prog_compiler_static_F77
14478 # Compiler flag to turn off builtin functions.
14479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14481 # Compiler flag to allow reflexive dlopens.
14482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14484 # Compiler flag to generate shared objects directly from archives.
14485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14487 # Compiler flag to generate thread-safe objects.
14488 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14490 # Library versioning type.
14491 version_type=$version_type
14493 # Format of library name prefix.
14494 libname_spec=$lt_libname_spec
14496 # List of archive names. First name is the real one, the rest are links.
14497 # The last name is the one that the linker finds with -lNAME.
14498 library_names_spec=$lt_library_names_spec
14500 # The coded name of the library, if different from the real name.
14501 soname_spec=$lt_soname_spec
14503 # Commands used to build and install an old-style archive.
14505 old_archive_cmds=$lt_old_archive_cmds_F77
14506 old_postinstall_cmds=$lt_old_postinstall_cmds
14507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14509 # Create an old-style archive from a shared archive.
14510 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14512 # Create a temporary old-style archive to link instead of a shared archive.
14513 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14515 # Commands used to build and install a shared archive.
14516 archive_cmds=$lt_archive_cmds_F77
14517 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14518 postinstall_cmds=$lt_postinstall_cmds
14519 postuninstall_cmds=$lt_postuninstall_cmds
14521 # Commands used to build a loadable module (assumed same as above if empty)
14522 module_cmds=$lt_module_cmds_F77
14523 module_expsym_cmds=$lt_module_expsym_cmds_F77
14525 # Commands to strip libraries.
14526 old_striplib=$lt_old_striplib
14527 striplib=$lt_striplib
14529 # Dependencies to place before the objects being linked to create a
14531 predep_objects=$lt_predep_objects_F77
14533 # Dependencies to place after the objects being linked to create a
14535 postdep_objects=$lt_postdep_objects_F77
14537 # Dependencies to place before the objects being linked to create a
14539 predeps=$lt_predeps_F77
14541 # Dependencies to place after the objects being linked to create a
14543 postdeps=$lt_postdeps_F77
14545 # The library search path used internally by the compiler when linking
14546 # a shared library.
14547 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14549 # Method to check whether dependent libraries are shared objects.
14550 deplibs_check_method=$lt_deplibs_check_method
14552 # Command to use when deplibs_check_method == file_magic.
14553 file_magic_cmd=$lt_file_magic_cmd
14555 # Flag that allows shared libraries with undefined symbols to be built.
14556 allow_undefined_flag=$lt_allow_undefined_flag_F77
14558 # Flag that forces no undefined symbols.
14559 no_undefined_flag=$lt_no_undefined_flag_F77
14561 # Commands used to finish a libtool library installation in a directory.
14562 finish_cmds=$lt_finish_cmds
14564 # Same as above, but a single script fragment to be evaled but not shown.
14565 finish_eval=$lt_finish_eval
14567 # Take the output of nm and produce a listing of raw symbols and C names.
14568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14570 # Transform the output of nm in a proper C declaration
14571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14573 # Transform the output of nm in a C name address pair
14574 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14576 # This is the shared library runtime path variable.
14577 runpath_var=$runpath_var
14579 # This is the shared library path variable.
14580 shlibpath_var=$shlibpath_var
14582 # Is shlibpath searched before the hard-coded library search path?
14583 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14585 # How to hardcode a shared library path into an executable.
14586 hardcode_action=$hardcode_action_F77
14588 # Whether we should hardcode library paths into libraries.
14589 hardcode_into_libs=$hardcode_into_libs
14591 # Flag to hardcode \$libdir into a binary during linking.
14592 # This must work even if \$libdir does not exist.
14593 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14595 # If ld is used when linking, flag to hardcode \$libdir into
14596 # a binary during linking. This must work even if \$libdir does
14598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14600 # Whether we need a single -rpath flag with a separated argument.
14601 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14603 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14604 # resulting binary.
14605 hardcode_direct=$hardcode_direct_F77
14607 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14608 # resulting binary.
14609 hardcode_minus_L=$hardcode_minus_L_F77
14611 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14612 # the resulting binary.
14613 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14615 # Set to yes if building a shared library automatically hardcodes DIR into the library
14616 # and all subsequent libraries and executables linked against it.
14617 hardcode_automatic=$hardcode_automatic_F77
14619 # Variables whose values should be saved in libtool wrapper scripts and
14620 # restored at relink time.
14621 variables_saved_for_relink="$variables_saved_for_relink"
14623 # Whether libtool must link a program against all its dependency libraries.
14624 link_all_deplibs=$link_all_deplibs_F77
14626 # Compile-time system search path for libraries
14627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14629 # Run-time system search path for libraries
14630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14632 # Fix the shell variable \$srcfile for the compiler.
14633 fix_srcfile_path="$fix_srcfile_path_F77"
14635 # Set to yes if exported symbols are required.
14636 always_export_symbols=$always_export_symbols_F77
14638 # The commands to list exported symbols.
14639 export_symbols_cmds=$lt_export_symbols_cmds_F77
14641 # The commands to extract the exported symbol list from a shared archive.
14642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14644 # Symbols that should not be listed in the preloaded symbols.
14645 exclude_expsyms=$lt_exclude_expsyms_F77
14647 # Symbols that must always be exported.
14648 include_expsyms=$lt_include_expsyms_F77
14650 # ### END LIBTOOL TAG CONFIG: $tagname
14656 # If there is no Makefile yet, we rely on a make rule to execute
14657 # `config.status --recheck' to rerun these tests and create the
14658 # libtool script then.
14659 test -f Makefile && make "$ltmain"
14664 ac_cpp='$CPP $CPPFLAGS'
14665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14677 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14681 # Source file extension for Java test sources.
14684 # Object file extension for compiled Java test sources.
14688 # Code to be used in simple compile tests
14689 lt_simple_compile_test_code="class foo {}\n"
14691 # Code to be used in simple link tests
14692 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14694 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14696 # If no C compiler was specified, use CC.
14699 # Allow CC to be a program name with arguments.
14703 # Allow CC to be a program name with arguments.
14709 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14710 archive_cmds_need_lc_GCJ=no
14713 lt_prog_compiler_no_builtin_flag_GCJ=
14715 if test "$GCC" = yes; then
14716 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14718 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14719 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14720 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 lt_cv_prog_compiler_rtti_exceptions=no
14724 ac_outfile=conftest.$ac_objext
14725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14726 lt_compiler_flag="-fno-rtti -fno-exceptions"
14727 # Insert the option either (1) after the last *FLAGS variable, or
14728 # (2) before a word containing "conftest.", or (3) at the end.
14729 # Note that $ac_compile itself does not contain backslashes and begins
14730 # with a dollar sign (not a hyphen), so the echo should work correctly.
14731 # The option is referenced via a variable to avoid confusing sed.
14732 lt_compile=`echo "$ac_compile" | $SED \
14733 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14735 -e 's:$: $lt_compiler_flag:'`
14736 (eval echo "\"\$as_me:14736: $lt_compile\"" >&5)
14737 (eval "$lt_compile" 2>conftest.err)
14739 cat conftest.err >&5
14740 echo "$as_me:14740: \$? = $ac_status" >&5
14741 if (exit $ac_status) && test -s "$ac_outfile"; then
14742 # The compiler can only warn and ignore the option if not recognized
14743 # So say no if there are warnings
14744 if test ! -s conftest.err; then
14745 lt_cv_prog_compiler_rtti_exceptions=yes
14751 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14752 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14754 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14755 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14762 lt_prog_compiler_wl_GCJ=
14763 lt_prog_compiler_pic_GCJ=
14764 lt_prog_compiler_static_GCJ=
14766 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14767 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14769 if test "$GCC" = yes; then
14770 lt_prog_compiler_wl_GCJ='-Wl,'
14771 lt_prog_compiler_static_GCJ='-static'
14775 # All AIX code is PIC.
14776 if test "$host_cpu" = ia64; then
14777 # AIX 5 now supports IA64 processor
14778 lt_prog_compiler_static_GCJ='-Bstatic'
14783 # FIXME: we need at least 68020 code to build shared libraries, but
14784 # adding the `-m68020' flag to GCC prevents building anything better,
14786 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14789 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14790 # PIC is the default for these OSes.
14793 mingw* | pw32* | os2*)
14794 # This hack is so that the source file can tell whether it is being
14795 # built for inclusion in a dll (and should export symbols for example).
14796 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14799 darwin* | rhapsody*)
14800 # PIC is the default on this platform
14801 # Common symbols not allowed in MH_DYLIB files
14802 lt_prog_compiler_pic_GCJ='-fno-common'
14806 # Just because we use GCC doesn't mean we suddenly get shared libraries
14807 # on systems that don't support them.
14808 lt_prog_compiler_can_build_shared_GCJ=no
14813 if test -d /usr/nec; then
14814 lt_prog_compiler_pic_GCJ=-Kconform_pic
14819 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14820 # not for PA HP-UX.
14821 case "$host_cpu" in
14826 lt_prog_compiler_pic_GCJ='-fPIC'
14832 lt_prog_compiler_pic_GCJ='-fPIC'
14836 # PORTME Check for flag to pass linker flags through the system compiler.
14839 lt_prog_compiler_wl_GCJ='-Wl,'
14840 if test "$host_cpu" = ia64; then
14841 # AIX 5 now supports IA64 processor
14842 lt_prog_compiler_static_GCJ='-Bstatic'
14844 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14848 mingw* | pw32* | os2*)
14849 # This hack is so that the source file can tell whether it is being
14850 # built for inclusion in a dll (and should export symbols for example).
14851 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14854 hpux9* | hpux10* | hpux11*)
14855 lt_prog_compiler_wl_GCJ='-Wl,'
14856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14857 # not for PA HP-UX.
14858 case "$host_cpu" in
14863 lt_prog_compiler_pic_GCJ='+Z'
14866 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14867 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14870 irix5* | irix6* | nonstopux*)
14871 lt_prog_compiler_wl_GCJ='-Wl,'
14872 # PIC (with -KPIC) is the default.
14873 lt_prog_compiler_static_GCJ='-non_shared'
14877 lt_prog_compiler_pic_GCJ='-KPIC'
14878 lt_prog_compiler_static_GCJ='-Bstatic'
14884 lt_prog_compiler_wl_GCJ='-Wl,'
14885 lt_prog_compiler_pic_GCJ='-KPIC'
14886 lt_prog_compiler_static_GCJ='-static'
14889 lt_prog_compiler_wl_GCJ='-Wl,'
14890 # All Alpha code is PIC.
14891 lt_prog_compiler_static_GCJ='-non_shared'
14896 osf3* | osf4* | osf5*)
14897 lt_prog_compiler_wl_GCJ='-Wl,'
14898 # All OSF/1 code is PIC.
14899 lt_prog_compiler_static_GCJ='-non_shared'
14903 lt_prog_compiler_pic_GCJ='-Kpic'
14904 lt_prog_compiler_static_GCJ='-dn'
14908 lt_prog_compiler_wl_GCJ='-Wl,'
14909 lt_prog_compiler_pic_GCJ='-KPIC'
14910 lt_prog_compiler_static_GCJ='-Bstatic'
14914 lt_prog_compiler_wl_GCJ='-Qoption ld '
14915 lt_prog_compiler_pic_GCJ='-PIC'
14916 lt_prog_compiler_static_GCJ='-Bstatic'
14919 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14920 lt_prog_compiler_wl_GCJ='-Wl,'
14921 lt_prog_compiler_pic_GCJ='-KPIC'
14922 lt_prog_compiler_static_GCJ='-Bstatic'
14926 if test -d /usr/nec ;then
14927 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14928 lt_prog_compiler_static_GCJ='-Bstatic'
14933 lt_prog_compiler_pic_GCJ='-pic'
14934 lt_prog_compiler_static_GCJ='-Bstatic'
14938 lt_prog_compiler_can_build_shared_GCJ=no
14943 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14944 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14947 # Check to make sure the PIC flag actually works.
14949 if test -n "$lt_prog_compiler_pic_GCJ"; then
14950 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14952 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 lt_prog_compiler_pic_works_GCJ=no
14956 ac_outfile=conftest.$ac_objext
14957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14958 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14959 # Insert the option either (1) after the last *FLAGS variable, or
14960 # (2) before a word containing "conftest.", or (3) at the end.
14961 # Note that $ac_compile itself does not contain backslashes and begins
14962 # with a dollar sign (not a hyphen), so the echo should work correctly.
14963 # The option is referenced via a variable to avoid confusing sed.
14964 lt_compile=`echo "$ac_compile" | $SED \
14965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967 -e 's:$: $lt_compiler_flag:'`
14968 (eval echo "\"\$as_me:14968: $lt_compile\"" >&5)
14969 (eval "$lt_compile" 2>conftest.err)
14971 cat conftest.err >&5
14972 echo "$as_me:14972: \$? = $ac_status" >&5
14973 if (exit $ac_status) && test -s "$ac_outfile"; then
14974 # The compiler can only warn and ignore the option if not recognized
14975 # So say no if there are warnings
14976 if test ! -s conftest.err; then
14977 lt_prog_compiler_pic_works_GCJ=yes
14983 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14984 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14986 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14987 case $lt_prog_compiler_pic_GCJ in
14989 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14992 lt_prog_compiler_pic_GCJ=
14993 lt_prog_compiler_can_build_shared_GCJ=no
14998 # For platforms which do not support PIC, -DPIC is meaningless:
15000 lt_prog_compiler_pic_GCJ=
15003 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15007 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15008 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15009 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 lt_cv_prog_compiler_c_o_GCJ=no
15013 $rm -r conftest 2>/dev/null
15017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15019 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15020 # that will create temporary files in the current directory regardless of
15021 # the output directory. Thus, making CWD read-only will cause this test
15022 # to fail, enabling locking or at least warning the user not to do parallel
15026 lt_compiler_flag="-o out/conftest2.$ac_objext"
15027 # Insert the option either (1) after the last *FLAGS variable, or
15028 # (2) before a word containing "conftest.", or (3) at the end.
15029 # Note that $ac_compile itself does not contain backslashes and begins
15030 # with a dollar sign (not a hyphen), so the echo should work correctly.
15031 lt_compile=`echo "$ac_compile" | $SED \
15032 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15034 -e 's:$: $lt_compiler_flag:'`
15035 (eval echo "\"\$as_me:15035: $lt_compile\"" >&5)
15036 (eval "$lt_compile" 2>out/conftest.err)
15038 cat out/conftest.err >&5
15039 echo "$as_me:15039: \$? = $ac_status" >&5
15040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15042 # The compiler can only warn and ignore the option if not recognized
15043 # So say no if there are warnings
15044 if test ! -s out/conftest.err; then
15045 lt_cv_prog_compiler_c_o_GCJ=yes
15049 $rm conftest* out/*
15056 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15057 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15060 hard_links="nottested"
15061 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15062 # do not overwrite the value of need_locks provided by the user
15063 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15064 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15069 ln conftest.a conftest.b 2>&5 || hard_links=no
15070 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15071 echo "$as_me:$LINENO: result: $hard_links" >&5
15072 echo "${ECHO_T}$hard_links" >&6
15073 if test "$hard_links" = no; then
15074 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15075 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15082 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15083 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15086 allow_undefined_flag_GCJ=
15087 enable_shared_with_static_runtimes_GCJ=no
15089 archive_expsym_cmds_GCJ=
15090 old_archive_From_new_cmds_GCJ=
15091 old_archive_from_expsyms_cmds_GCJ=
15092 export_dynamic_flag_spec_GCJ=
15093 whole_archive_flag_spec_GCJ=
15094 thread_safe_flag_spec_GCJ=
15095 hardcode_libdir_flag_spec_GCJ=
15096 hardcode_libdir_flag_spec_ld_GCJ=
15097 hardcode_libdir_separator_GCJ=
15098 hardcode_direct_GCJ=no
15099 hardcode_minus_L_GCJ=no
15100 hardcode_shlibpath_var_GCJ=unsupported
15101 link_all_deplibs_GCJ=unknown
15102 hardcode_automatic_GCJ=no
15104 module_expsym_cmds_GCJ=
15105 always_export_symbols_GCJ=no
15106 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15107 # include_expsyms should be a list of space-separated symbols to be *always*
15108 # included in the symbol list
15109 include_expsyms_GCJ=
15110 # exclude_expsyms can be an extended regexp of symbols to exclude
15111 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15112 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15113 # as well as any symbol that contains `d'.
15114 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15115 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15116 # platforms (ab)use it in PIC code, but their linkers get confused if
15117 # the symbol is explicitly referenced. Since portable code cannot
15118 # rely on this symbol name, it's probably fine to never include it in
15119 # preloaded symbol tables.
15120 extract_expsyms_cmds=
15123 cygwin* | mingw* | pw32*)
15124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15125 # When not using gcc, we currently assume that we are using
15126 # Microsoft Visual C++.
15127 if test "$GCC" != yes; then
15137 if test "$with_gnu_ld" = yes; then
15138 # If archive_cmds runs LD, not CC, wlarc should be empty
15141 # See if GNU ld supports shared libraries.
15143 aix3* | aix4* | aix5*)
15144 # On AIX/PPC, the GNU linker is very broken
15145 if test "$host_cpu" != ia64; then
15149 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15150 *** to be unable to reliably create shared libraries on AIX.
15151 *** Therefore, libtool is disabling shared libraries support. If you
15152 *** really care for shared libraries, you may want to modify your PATH
15153 *** so that a non-GNU linker is found, and then restart.
15160 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)'
15161 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15162 hardcode_minus_L_GCJ=yes
15164 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15165 # that the semantics of dynamic libraries on AmigaOS, at least up
15166 # to version 4, is to share data among multiple programs linked
15167 # with the same dynamic library. Since this doesn't match the
15168 # behavior of shared libraries on other platforms, we can't use
15174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15175 allow_undefined_flag_GCJ=unsupported
15176 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15177 # support --undefined. This deserves some investigation. FIXME
15178 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15184 cygwin* | mingw* | pw32*)
15185 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15186 # as there is no search path for DLLs.
15187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15188 allow_undefined_flag_GCJ=unsupported
15189 always_export_symbols_GCJ=no
15190 enable_shared_with_static_runtimes_GCJ=yes
15191 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15193 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15194 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15195 # If the export-symbols file already is a .def file (1st line
15196 # is EXPORTS), use it as is; otherwise, prepend...
15197 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15198 cp $export_symbols $output_objdir/$soname.def;
15200 echo EXPORTS > $output_objdir/$soname.def;
15201 cat $export_symbols >> $output_objdir/$soname.def;
15203 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15211 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15214 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15215 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15220 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15224 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15225 *** create shared libraries on Solaris systems. Therefore, libtool
15226 *** is disabling shared libraries support. We urge you to upgrade GNU
15227 *** binutils to release 2.9.1 or newer. Another option is to modify
15228 *** your PATH or compiler configuration so that the native linker is
15229 *** used, and then restart.
15232 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15233 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15234 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15241 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15243 hardcode_direct_GCJ=yes
15244 hardcode_shlibpath_var_GCJ=no
15248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15249 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15250 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15257 if test "$ld_shlibs_GCJ" = yes; then
15258 runpath_var=LD_RUN_PATH
15259 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15260 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15261 # ancient GNU ld didn't support --whole-archive et. al.
15262 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15263 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15265 whole_archive_flag_spec_GCJ=
15269 # PORTME fill in a description of your system's linker (not GNU ld)
15272 allow_undefined_flag_GCJ=unsupported
15273 always_export_symbols_GCJ=yes
15274 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'
15275 # Note: this linker hardcodes the directories in LIBPATH if there
15276 # are no directories specified by -L.
15277 hardcode_minus_L_GCJ=yes
15278 if test "$GCC" = yes && test -z "$link_static_flag"; then
15279 # Neither direct hardcoding nor static linking is supported with a
15281 hardcode_direct_GCJ=unsupported
15286 if test "$host_cpu" = ia64; then
15287 # On IA64, the linker does run time linking by default, so we don't
15288 # have to do anything special.
15289 aix_use_runtimelinking=no
15290 exp_sym_flag='-Bexport'
15293 # If we're using GNU nm, then we don't want the "-C" option.
15294 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15295 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15296 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'
15298 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'
15300 aix_use_runtimelinking=no
15302 # Test if we are trying to use run time linking or normal
15303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15304 # need to do runtime linking.
15305 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15306 for ld_flag in $LDFLAGS; do
15307 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15308 aix_use_runtimelinking=yes
15314 exp_sym_flag='-bexport'
15315 no_entry_flag='-bnoentry'
15318 # When large executables or shared objects are built, AIX ld can
15319 # have problems creating the table of contents. If linking a library
15320 # or program results in "error TOC overflow" add -mminimal-toc to
15321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15324 archive_cmds_GCJ=''
15325 hardcode_direct_GCJ=yes
15326 hardcode_libdir_separator_GCJ=':'
15327 link_all_deplibs_GCJ=yes
15329 if test "$GCC" = yes; then
15330 case $host_os in aix4.012|aix4.012.*)
15331 # We only want to do this on AIX 4.2 and lower, the check
15332 # below for broken collect2 doesn't work under 4.3+
15333 collect2name=`${CC} -print-prog-name=collect2`
15334 if test -f "$collect2name" && \
15335 strings "$collect2name" | grep resolve_lib_name >/dev/null
15337 # We have reworked collect2
15338 hardcode_direct_GCJ=yes
15340 # We have old collect2
15341 hardcode_direct_GCJ=unsupported
15342 # It fails to find uninstalled libraries when the uninstalled
15343 # path is not listed in the libpath. Setting hardcode_minus_L
15344 # to unsupported forces relinking
15345 hardcode_minus_L_GCJ=yes
15346 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15347 hardcode_libdir_separator_GCJ=
15350 shared_flag='-shared'
15353 if test "$host_cpu" = ia64; then
15354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15355 # chokes on -Wl,-G. The following line is correct:
15358 if test "$aix_use_runtimelinking" = yes; then
15359 shared_flag='${wl}-G'
15361 shared_flag='${wl}-bM:SRE'
15366 # It seems that -bexpall does not export symbols beginning with
15367 # underscore (_), so it is better to generate a list of symbols to export.
15368 always_export_symbols_GCJ=yes
15369 if test "$aix_use_runtimelinking" = yes; then
15370 # Warning - without using the other runtime loading flags (-brtl),
15371 # -berok will link without error, but may produce a broken library.
15372 allow_undefined_flag_GCJ='-berok'
15373 # Determine the default libpath from the value encoded in an empty executable.
15374 cat >conftest.$ac_ext <<_ACEOF
15375 #line $LINENO "configure"
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392 (eval $ac_link) 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } &&
15396 { ac_try='test -s conftest$ac_exeext'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15405 # Check for a 64-bit object if we didn't find anything.
15406 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; }
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15416 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15417 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"
15419 if test "$host_cpu" = ia64; then
15420 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15421 allow_undefined_flag_GCJ="-z nodefs"
15422 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"
15424 # Determine the default libpath from the value encoded in an empty executable.
15425 cat >conftest.$ac_ext <<_ACEOF
15426 #line $LINENO "configure"
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15443 (eval $ac_link) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -s conftest$ac_exeext'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15456 # Check for a 64-bit object if we didn't find anything.
15457 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; }
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15467 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15468 # Warning - without using the other run time loading flags,
15469 # -berok will link without error, but may produce a broken library.
15470 no_undefined_flag_GCJ=' ${wl}-bernotok'
15471 allow_undefined_flag_GCJ=' ${wl}-berok'
15472 # -bexpall does not export symbols beginning with underscore (_)
15473 always_export_symbols_GCJ=yes
15474 # Exported symbols can be pulled into shared objects from archives
15475 whole_archive_flag_spec_GCJ=' '
15476 archive_cmds_need_lc_GCJ=yes
15477 # This is similar to how AIX traditionally builds it's shared libraries.
15478 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'
15484 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)'
15485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15486 hardcode_minus_L_GCJ=yes
15487 # see comment about different semantics on the GNU ld section
15492 export_dynamic_flag_spec_GCJ=-rdynamic
15495 cygwin* | mingw* | pw32*)
15496 # When not using gcc, we currently assume that we are using
15497 # Microsoft Visual C++.
15498 # hardcode_libdir_flag_spec is actually meaningless, as there is
15499 # no search path for DLLs.
15500 hardcode_libdir_flag_spec_GCJ=' '
15501 allow_undefined_flag_GCJ=unsupported
15502 # Tell ltmain to make .lib files, not .a files.
15504 # Tell ltmain to make .dll files, not .so files.
15506 # FIXME: Setting linknames here is a bad hack.
15507 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15508 # The linker will automatically build a .lib file if we build a DLL.
15509 old_archive_From_new_cmds_GCJ='true'
15510 # FIXME: Should let the user specify the lib program.
15511 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15512 fix_srcfile_path='`cygpath -w "$srcfile"`'
15513 enable_shared_with_static_runtimes_GCJ=yes
15516 darwin* | rhapsody*)
15517 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15518 archive_cmds_need_lc_GCJ=no
15520 rhapsody* | darwin1.[012])
15521 allow_undefined_flag_GCJ='-undefined suppress'
15524 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15527 # FIXME: Relying on posixy $() will cause problems for
15528 # cross-compilation, but unfortunately the echo tests do not
15529 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15530 # `"' quotes if we put them in here... so don't!
15531 lt_int_apple_cc_single_mod=no
15532 output_verbose_link_cmd='echo'
15533 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15534 lt_int_apple_cc_single_mod=yes
15536 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15537 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15539 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'
15541 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15542 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15543 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15544 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}'
15546 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}'
15548 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}'
15549 hardcode_direct_GCJ=no
15550 hardcode_automatic_GCJ=yes
15551 hardcode_shlibpath_var_GCJ=unsupported
15552 whole_archive_flag_spec_GCJ='-all_load $convenience'
15553 link_all_deplibs_GCJ=yes
15558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15559 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15560 hardcode_shlibpath_var_GCJ=no
15567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15568 # support. Future versions do this automatically, but an explicit c++rt0.o
15569 # does not break anything, and helps significantly (at the cost of a little
15572 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15573 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15574 hardcode_direct_GCJ=yes
15575 hardcode_shlibpath_var_GCJ=no
15578 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15580 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_direct_GCJ=yes
15582 hardcode_minus_L_GCJ=yes
15583 hardcode_shlibpath_var_GCJ=no
15586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15588 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15589 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15590 hardcode_direct_GCJ=yes
15591 hardcode_shlibpath_var_GCJ=no
15595 if test "$GCC" = yes; then
15596 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'
15598 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'
15600 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15601 hardcode_libdir_separator_GCJ=:
15602 hardcode_direct_GCJ=yes
15604 # hardcode_minus_L: Not really in the search PATH,
15605 # but as the default location of the library.
15606 hardcode_minus_L_GCJ=yes
15607 export_dynamic_flag_spec_GCJ='${wl}-E'
15611 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15612 case "$host_cpu" in
15614 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15621 case "$host_cpu" in
15623 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15626 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15630 if test "$with_gnu_ld" = no; then
15631 case "$host_cpu" in
15633 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15634 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15635 hardcode_libdir_separator_GCJ=:
15636 hardcode_direct_GCJ=no
15637 hardcode_shlibpath_var_GCJ=no
15640 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15641 hardcode_direct_GCJ=no
15642 hardcode_shlibpath_var_GCJ=no
15644 # hardcode_minus_L: Not really in the search PATH,
15645 # but as the default location of the library.
15646 hardcode_minus_L_GCJ=yes
15649 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15650 hardcode_libdir_separator_GCJ=:
15651 hardcode_direct_GCJ=yes
15652 export_dynamic_flag_spec_GCJ='${wl}-E'
15654 # hardcode_minus_L: Not really in the search PATH,
15655 # but as the default location of the library.
15656 hardcode_minus_L_GCJ=yes
15662 irix5* | irix6* | nonstopux*)
15663 if test "$GCC" = yes; then
15664 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'
15666 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'
15667 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15669 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15670 hardcode_libdir_separator_GCJ=:
15671 link_all_deplibs_GCJ=yes
15675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15676 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15678 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15680 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15681 hardcode_direct_GCJ=yes
15682 hardcode_shlibpath_var_GCJ=no
15686 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687 hardcode_direct_GCJ=yes
15688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15689 hardcode_libdir_separator_GCJ=:
15690 hardcode_shlibpath_var_GCJ=no
15694 hardcode_direct_GCJ=yes
15695 hardcode_shlibpath_var_GCJ=no
15696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15697 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15699 export_dynamic_flag_spec_GCJ='${wl}-E'
15702 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15703 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15704 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15707 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15708 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15715 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15716 hardcode_minus_L_GCJ=yes
15717 allow_undefined_flag_GCJ=unsupported
15718 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'
15719 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15723 if test "$GCC" = yes; then
15724 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15725 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'
15727 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15728 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'
15730 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15731 hardcode_libdir_separator_GCJ=:
15734 osf4* | osf5*) # as osf3* with the addition of -msym flag
15735 if test "$GCC" = yes; then
15736 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15737 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'
15738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15740 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15741 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'
15742 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~
15743 $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'
15745 # Both c and cxx compiler support -rpath directly
15746 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15748 hardcode_libdir_separator_GCJ=:
15752 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753 hardcode_shlibpath_var_GCJ=no
15754 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15755 runpath_var=LD_RUN_PATH
15756 hardcode_runpath_var=yes
15760 no_undefined_flag_GCJ=' -z text'
15761 if test "$GCC" = yes; then
15762 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15763 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15764 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15766 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15767 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15768 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15770 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15771 hardcode_shlibpath_var_GCJ=no
15773 solaris2.[0-5] | solaris2.[0-5].*) ;;
15774 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15775 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15777 link_all_deplibs_GCJ=yes
15781 if test "x$host_vendor" = xsequent; then
15782 # Use $CC to link under sequent, because it throws in some extra .o
15783 # files that make .init and .fini sections work.
15784 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15786 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15789 hardcode_direct_GCJ=yes
15790 hardcode_minus_L_GCJ=yes
15791 hardcode_shlibpath_var_GCJ=no
15795 case $host_vendor in
15797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15798 hardcode_direct_GCJ=yes # is this really true???
15801 ## LD is ld it makes a PLAMLIB
15802 ## CC just makes a GrossModule.
15803 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15804 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15805 hardcode_direct_GCJ=no
15808 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15812 runpath_var='LD_RUN_PATH'
15813 hardcode_shlibpath_var_GCJ=no
15817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_shlibpath_var_GCJ=no
15819 export_dynamic_flag_spec_GCJ='-Bexport'
15823 if test -d /usr/nec; then
15824 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15825 hardcode_shlibpath_var_GCJ=no
15826 runpath_var=LD_RUN_PATH
15827 hardcode_runpath_var=yes
15833 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15834 hardcode_direct_GCJ=yes
15835 hardcode_minus_L_GCJ=no
15836 hardcode_shlibpath_var_GCJ=no
15837 hardcode_runpath_var=yes
15838 runpath_var=LD_RUN_PATH
15841 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15842 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15843 if test "$GCC" = yes; then
15844 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15846 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15848 runpath_var='LD_RUN_PATH'
15849 hardcode_shlibpath_var_GCJ=no
15853 no_undefined_flag_GCJ=' -z text'
15854 # $CC -shared without GNU ld will not create a library from C++
15855 # object files and a static libstdc++, better avoid it by now
15856 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15857 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15858 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15859 hardcode_libdir_flag_spec_GCJ=
15860 hardcode_shlibpath_var_GCJ=no
15861 runpath_var='LD_RUN_PATH'
15865 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15866 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15867 hardcode_shlibpath_var_GCJ=no
15876 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15877 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15878 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15881 if test "$GCC" = yes; then
15882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15886 # Do we need to explicitly link libc?
15888 case "x$archive_cmds_need_lc_GCJ" in
15890 # Assume -lc should be added
15891 archive_cmds_need_lc_GCJ=yes
15893 if test "$enable_shared" = yes && test "$GCC" = yes; then
15894 case $archive_cmds_GCJ in
15896 # FIXME: we may have to deal with multi-command sequences.
15899 # Test whether the compiler implicitly links with -lc since on some
15900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15901 # to ld, don't add -lc before -lgcc.
15902 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15903 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908 (eval $ac_compile) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } 2>conftest.err; then
15914 libobjs=conftest.$ac_objext
15916 wl=$lt_prog_compiler_wl_GCJ
15922 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15923 allow_undefined_flag_GCJ=
15924 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15925 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }
15930 archive_cmds_need_lc_GCJ=no
15932 archive_cmds_need_lc_GCJ=yes
15934 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15936 cat conftest.err 1>&5
15939 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15940 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15947 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15948 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15949 hardcode_action_GCJ=
15950 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15951 test -n "$runpath_var GCJ" || \
15952 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15954 # We can hardcode non-existant directories.
15955 if test "$hardcode_direct_GCJ" != no &&
15956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15957 # have to relink, otherwise we might link with an installed library
15958 # when we should be linking with a yet-to-be-installed one
15959 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15960 test "$hardcode_minus_L_GCJ" != no; then
15961 # Linking always hardcodes the temporary library directory.
15962 hardcode_action_GCJ=relink
15964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15965 hardcode_action_GCJ=immediate
15968 # We cannot hardcode anything, or else we can only hardcode existing
15970 hardcode_action_GCJ=unsupported
15972 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15973 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15975 if test "$hardcode_action_GCJ" = relink; then
15976 # Fast installation is not supported
15977 enable_fast_install=no
15978 elif test "$shlibpath_overrides_runpath" = yes ||
15979 test "$enable_shared" = no; then
15980 # Fast installation is not necessary
15981 enable_fast_install=needless
15986 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15987 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15988 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15989 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15990 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15991 echo "$as_me:$LINENO: result: yes" >&5
15992 echo "${ECHO_T}yes" >&6
15994 # FIXME - insert some real tests, host_os isn't really good enough
15997 if test -n "$STRIP" ; then
15998 striplib="$STRIP -x"
15999 echo "$as_me:$LINENO: result: yes" >&5
16000 echo "${ECHO_T}yes" >&6
16002 echo "$as_me:$LINENO: result: no" >&5
16003 echo "${ECHO_T}no" >&6
16007 echo "$as_me:$LINENO: result: no" >&5
16008 echo "${ECHO_T}no" >&6
16013 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16014 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16015 library_names_spec=
16016 libname_spec='lib$name'
16020 postuninstall_cmds=
16024 shlibpath_overrides_runpath=unknown
16026 dynamic_linker="$host_os ld.so"
16027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16028 if test "$GCC" = yes; then
16029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16030 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16031 # if the path contains ";" then we assume it to be the separator
16032 # otherwise default to the standard path separator (i.e. ":") - it is
16033 # assumed that no part of a normal pathname contains ";" but that should
16034 # okay in the real world where ";" in dirpaths is itself problematic.
16035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16042 need_lib_prefix=unknown
16043 hardcode_into_libs=no
16045 # when you set need_version to no, make sure it does not cause -set_version
16046 # flags to be left without arguments
16047 need_version=unknown
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16053 shlibpath_var=LIBPATH
16055 # AIX 3 has no versioning support, so we append a major version to the name.
16056 soname_spec='${libname}${release}${shared_ext}$major'
16063 hardcode_into_libs=yes
16064 if test "$host_cpu" = ia64; then
16065 # AIX 5 supports IA64
16066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16067 shlibpath_var=LD_LIBRARY_PATH
16069 # With GCC up to 2.95.x, collect2 would create an import file
16070 # for dependence libraries. The import file would start with
16071 # the line `#! .'. This would cause the generated library to
16072 # depend on `.', always an invalid library. This was fixed in
16073 # development snapshots of GCC prior to 3.0.
16075 aix4 | aix4.[01] | aix4.[01].*)
16076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16081 can_build_shared=no
16085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16086 # soname into executable. Probably we can add versioning support to
16087 # collect2, so additional links can be useful in future.
16088 if test "$aix_use_runtimelinking" = yes; then
16089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16090 # instead of lib<name>.a to let people know that these are not
16091 # typical AIX shared libraries.
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 # We preserve .a as extension for shared libraries through AIX4.2
16095 # and later when we are not doing run time linking.
16096 library_names_spec='${libname}${release}.a $libname.a'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16099 shlibpath_var=LIBPATH
16104 library_names_spec='$libname.ixlibrary $libname.a'
16105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16106 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'
16110 library_names_spec='${libname}${shared_ext}'
16111 dynamic_linker="$host_os ld.so"
16112 shlibpath_var=LIBRARY_PATH
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16124 # the default ld.so.conf also contains /usr/contrib/lib and
16125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16126 # libtool to hard-code these into programs
16129 cygwin* | mingw* | pw32*)
16130 version_type=windows
16135 case $GCC,$host_os in
16136 yes,cygwin* | yes,mingw* | yes,pw32*)
16137 library_names_spec='$libname.dll.a'
16138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16139 postinstall_cmds='base_file=`basename \${file}`~
16140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16141 dldir=$destdir/`dirname \$dlpath`~
16142 test -d \$dldir || mkdir -p \$dldir~
16143 $install_prog $dir/$dlname \$dldir/$dlname'
16144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16145 dlpath=$dir/\$dldll~
16147 shlibpath_overrides_runpath=yes
16151 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16152 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16153 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16156 # MinGW DLLs use traditional 'lib' prefix
16157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16159 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16160 # It is most probably a Windows format PATH printed by
16161 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16162 # path with ; separators, and with drive letters. We can handle the
16163 # drive letters (cygwin fileutils understands them), so leave them,
16164 # especially as we might pass files found there to a mingw objdump,
16165 # which wouldn't understand a cygwinified path. Ahh.
16166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16172 # pw32 DLLs use 'pw' prefix rather than 'lib'
16173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16182 dynamic_linker='Win32 ld.exe'
16183 # FIXME: first we should search . and the directory the executable is in
16187 darwin* | rhapsody*)
16188 dynamic_linker="$host_os dyld"
16189 version_type=darwin
16192 # FIXME: Relying on posixy $() will cause problems for
16193 # cross-compilation, but unfortunately the echo tests do not
16194 # yet detect zsh echo's removal of \ escapes.
16195 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16196 soname_spec='${libname}${release}${major}$shared_ext'
16197 shlibpath_overrides_runpath=yes
16198 shlibpath_var=DYLD_LIBRARY_PATH
16199 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16200 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16201 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16202 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"`
16204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16213 shlibpath_var=LD_LIBRARY_PATH
16221 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16222 version_type=freebsd-$objformat
16223 case $version_type in
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16234 shlibpath_var=LD_LIBRARY_PATH
16237 shlibpath_overrides_runpath=yes
16239 freebsd3.01* | freebsdelf3.01*)
16240 shlibpath_overrides_runpath=yes
16241 hardcode_into_libs=yes
16244 shlibpath_overrides_runpath=no
16245 hardcode_into_libs=yes
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16255 soname_spec='${libname}${release}${shared_ext}$major'
16256 shlibpath_var=LD_LIBRARY_PATH
16257 hardcode_into_libs=yes
16260 hpux9* | hpux10* | hpux11*)
16261 # Give a soname corresponding to the major version so that dld.sl refuses to
16262 # link against other versions.
16266 case "$host_cpu" in
16269 hardcode_into_libs=yes
16270 dynamic_linker="$host_os dld.so"
16271 shlibpath_var=LD_LIBRARY_PATH
16272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 soname_spec='${libname}${release}${shared_ext}$major'
16275 if test "X$HPUX_IA64_MODE" = X32; then
16276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16284 hardcode_into_libs=yes
16285 dynamic_linker="$host_os dld.sl"
16286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16295 dynamic_linker="$host_os dld.sl"
16296 shlibpath_var=SHLIB_PATH
16297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16303 postinstall_cmds='chmod 555 $lib'
16306 irix5* | irix6* | nonstopux*)
16308 nonstopux*) version_type=nonstopux ;;
16310 if test "$lt_cv_prog_gnu_ld" = yes; then
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16321 irix5* | nonstopux*)
16322 libsuff= shlibsuff=
16325 case $LD in # libtool.m4 will add one of these switches to LD
16326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16327 libsuff= shlibsuff= libmagic=32-bit;;
16328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16329 libsuff=32 shlibsuff=N32 libmagic=N32;;
16330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16332 *) libsuff= shlibsuff= libmagic=never-match;;
16336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16337 shlibpath_overrides_runpath=no
16338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16340 hardcode_into_libs=yes
16343 # No shared lib support for Linux oldld, aout, or coff.
16344 linux*oldld* | linux*aout* | linux*coff*)
16348 # This must be Linux ELF.
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354 soname_spec='${libname}${release}${shared_ext}$major'
16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 shlibpath_overrides_runpath=no
16358 # This implies no fast_install, which is unacceptable.
16359 # Some rework will be needed to allow for fast_install
16360 # before this can be enabled.
16361 hardcode_into_libs=yes
16363 # We used to test for /lib/ld.so.1 and disable shared libraries on
16364 # powerpc, because MkLinux only supported shared libraries with the
16365 # GNU dynamic linker. Since this was broken with cross compilers,
16366 # most powerpc-linux boxes support dynamic linking these days and
16367 # people can always --disable-shared, the test was removed, and we
16368 # assume the GNU/Linux dynamic linker is in use.
16369 dynamic_linker='GNU/Linux ld.so'
16376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16379 dynamic_linker='NetBSD (a.out) ld.so'
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16382 soname_spec='${libname}${release}${shared_ext}$major'
16383 dynamic_linker='NetBSD ld.elf_so'
16385 shlibpath_var=LD_LIBRARY_PATH
16386 shlibpath_overrides_runpath=yes
16387 hardcode_into_libs=yes
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 shlibpath_overrides_runpath=yes
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402 soname_spec='${libname}${release}${shared_ext}$major'
16403 shlibpath_var=LD_LIBRARY_PATH
16404 shlibpath_overrides_runpath=yes
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16413 shlibpath_var=LD_LIBRARY_PATH
16414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16416 openbsd2.[89] | openbsd2.[89].*)
16417 shlibpath_overrides_runpath=no
16420 shlibpath_overrides_runpath=yes
16424 shlibpath_overrides_runpath=yes
16429 libname_spec='$name'
16432 library_names_spec='$libname${shared_ext} $libname.a'
16433 dynamic_linker='OS/2 ld.exe'
16434 shlibpath_var=LIBPATH
16437 osf3* | osf4* | osf5*)
16441 soname_spec='${libname}${release}${shared_ext}$major'
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443 shlibpath_var=LD_LIBRARY_PATH
16444 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16445 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16450 soname_spec='${libname}${release}${shared_ext}$major'
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452 shlibpath_var=LD_LIBRARY_PATH
16459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16460 soname_spec='${libname}${release}${shared_ext}$major'
16461 shlibpath_var=LD_LIBRARY_PATH
16462 shlibpath_overrides_runpath=yes
16463 hardcode_into_libs=yes
16464 # ldd complains unless libraries are executable
16465 postinstall_cmds='chmod +x $lib'
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 shlibpath_overrides_runpath=yes
16474 if test "$with_gnu_ld" = yes; then
16480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 case $host_vendor in
16487 shlibpath_overrides_runpath=no
16489 export_dynamic_flag_spec='${wl}-Blargedynsym'
16490 runpath_var=LD_RUN_PATH
16498 shlibpath_overrides_runpath=no
16499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16505 if test -d /usr/nec ;then
16507 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16508 soname_spec='$libname${shared_ext}.$major'
16509 shlibpath_var=LD_LIBRARY_PATH
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 shlibpath_var=LD_LIBRARY_PATH
16524 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16525 echo "${ECHO_T}$dynamic_linker" >&6
16526 test "$dynamic_linker" = no && can_build_shared=no
16528 if test "x$enable_dlopen" != xyes; then
16529 enable_dlopen=unknown
16530 enable_dlopen_self=unknown
16531 enable_dlopen_self_static=unknown
16538 lt_cv_dlopen="load_add_on"
16540 lt_cv_dlopen_self=yes
16544 lt_cv_dlopen="LoadLibrary"
16549 lt_cv_dlopen="dlopen"
16554 # if libdl is installed we need to link against it
16555 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16556 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 ac_check_lib_save_LIBS=$LIBS
16562 cat >conftest.$ac_ext <<_ACEOF
16563 #line $LINENO "configure"
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16570 /* Override any gcc2 internal prototype to avoid an error. */
16574 /* We use char because int might match the return type of a gcc2
16575 builtin and then its argument prototype would still apply. */
16585 rm -f conftest.$ac_objext conftest$ac_exeext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16587 (eval $ac_link) 2>&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } &&
16591 { ac_try='test -s conftest$ac_exeext'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_cv_lib_dl_dlopen=yes
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 ac_cv_lib_dl_dlopen=no
16604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16607 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16608 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16609 if test $ac_cv_lib_dl_dlopen = yes; then
16610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16613 lt_cv_dlopen="dyld"
16615 lt_cv_dlopen_self=yes
16622 echo "$as_me:$LINENO: checking for shl_load" >&5
16623 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16624 if test "${ac_cv_func_shl_load+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 cat >conftest.$ac_ext <<_ACEOF
16628 #line $LINENO "configure"
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 /* System header to define __stub macros and hopefully few prototypes,
16635 which can conflict with char shl_load (); below.
16636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16637 <limits.h> exists even on freestanding compilers. */
16639 # include <limits.h>
16641 # include <assert.h>
16643 /* Override any gcc2 internal prototype to avoid an error. */
16648 /* We use char because int might match the return type of a gcc2
16649 builtin and then its argument prototype would still apply. */
16651 /* The GNU C library defines this for functions which it implements
16652 to always fail with ENOSYS. Some functions are actually named
16653 something starting with __ and the normal name is an alias. */
16654 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16657 char (*f) () = shl_load;
16666 return f != shl_load;
16671 rm -f conftest.$ac_objext conftest$ac_exeext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16673 (eval $ac_link) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -s conftest$ac_exeext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_func_shl_load=yes
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 ac_cv_func_shl_load=no
16690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16692 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16693 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16694 if test $ac_cv_func_shl_load = yes; then
16695 lt_cv_dlopen="shl_load"
16697 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16698 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16699 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 ac_check_lib_save_LIBS=$LIBS
16704 cat >conftest.$ac_ext <<_ACEOF
16705 #line $LINENO "configure"
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16712 /* Override any gcc2 internal prototype to avoid an error. */
16716 /* We use char because int might match the return type of a gcc2
16717 builtin and then its argument prototype would still apply. */
16727 rm -f conftest.$ac_objext conftest$ac_exeext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16729 (eval $ac_link) 2>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -s conftest$ac_exeext'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_cv_lib_dld_shl_load=yes
16741 echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16744 ac_cv_lib_dld_shl_load=no
16746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16747 LIBS=$ac_check_lib_save_LIBS
16749 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16750 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16751 if test $ac_cv_lib_dld_shl_load = yes; then
16752 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16754 echo "$as_me:$LINENO: checking for dlopen" >&5
16755 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16756 if test "${ac_cv_func_dlopen+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 cat >conftest.$ac_ext <<_ACEOF
16760 #line $LINENO "configure"
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 /* System header to define __stub macros and hopefully few prototypes,
16767 which can conflict with char dlopen (); below.
16768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16769 <limits.h> exists even on freestanding compilers. */
16771 # include <limits.h>
16773 # include <assert.h>
16775 /* Override any gcc2 internal prototype to avoid an error. */
16780 /* We use char because int might match the return type of a gcc2
16781 builtin and then its argument prototype would still apply. */
16783 /* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16789 char (*f) () = dlopen;
16798 return f != dlopen;
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16805 (eval $ac_link) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -s conftest$ac_exeext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_cv_func_dlopen=yes
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 ac_cv_func_dlopen=no
16822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16824 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16825 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16826 if test $ac_cv_func_dlopen = yes; then
16827 lt_cv_dlopen="dlopen"
16829 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16830 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 ac_check_lib_save_LIBS=$LIBS
16836 cat >conftest.$ac_ext <<_ACEOF
16837 #line $LINENO "configure"
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16844 /* Override any gcc2 internal prototype to avoid an error. */
16848 /* We use char because int might match the return type of a gcc2
16849 builtin and then its argument prototype would still apply. */
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861 (eval $ac_link) 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_cv_lib_dl_dlopen=yes
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16876 ac_cv_lib_dl_dlopen=no
16878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16879 LIBS=$ac_check_lib_save_LIBS
16881 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16882 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16883 if test $ac_cv_lib_dl_dlopen = yes; then
16884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16886 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16887 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16888 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 ac_check_lib_save_LIBS=$LIBS
16892 LIBS="-lsvld $LIBS"
16893 cat >conftest.$ac_ext <<_ACEOF
16894 #line $LINENO "configure"
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16901 /* Override any gcc2 internal prototype to avoid an error. */
16905 /* We use char because int might match the return type of a gcc2
16906 builtin and then its argument prototype would still apply. */
16916 rm -f conftest.$ac_objext conftest$ac_exeext
16917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16918 (eval $ac_link) 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -s conftest$ac_exeext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_lib_svld_dlopen=yes
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 ac_cv_lib_svld_dlopen=no
16935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16938 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16939 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16940 if test $ac_cv_lib_svld_dlopen = yes; then
16941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16943 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16944 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16945 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 ac_check_lib_save_LIBS=$LIBS
16950 cat >conftest.$ac_ext <<_ACEOF
16951 #line $LINENO "configure"
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h. */
16958 /* Override any gcc2 internal prototype to avoid an error. */
16962 /* We use char because int might match the return type of a gcc2
16963 builtin and then its argument prototype would still apply. */
16973 rm -f conftest.$ac_objext conftest$ac_exeext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975 (eval $ac_link) 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try='test -s conftest$ac_exeext'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_lib_dld_dld_link=yes
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16990 ac_cv_lib_dld_dld_link=no
16992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16993 LIBS=$ac_check_lib_save_LIBS
16995 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16996 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16997 if test $ac_cv_lib_dld_dld_link = yes; then
16998 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17019 if test "x$lt_cv_dlopen" != xno; then
17025 case $lt_cv_dlopen in
17027 save_CPPFLAGS="$CPPFLAGS"
17028 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17030 save_LDFLAGS="$LDFLAGS"
17031 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17034 LIBS="$lt_cv_dlopen_libs $LIBS"
17036 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17037 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17038 if test "${lt_cv_dlopen_self+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 if test "$cross_compiling" = yes; then :
17042 lt_cv_dlopen_self=cross
17044 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17045 lt_status=$lt_dlunknown
17046 cat > conftest.$ac_ext <<EOF
17047 #line 17047 "configure"
17048 #include "confdefs.h"
17057 # define LT_DLGLOBAL RTLD_GLOBAL
17060 # define LT_DLGLOBAL DL_GLOBAL
17062 # define LT_DLGLOBAL 0
17066 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17067 find out it does not work in some platform. */
17068 #ifndef LT_DLLAZY_OR_NOW
17070 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17073 # define LT_DLLAZY_OR_NOW DL_LAZY
17076 # define LT_DLLAZY_OR_NOW RTLD_NOW
17079 # define LT_DLLAZY_OR_NOW DL_NOW
17081 # define LT_DLLAZY_OR_NOW 0
17089 extern "C" void exit (int);
17092 void fnord() { int i=42;}
17095 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17096 int status = $lt_dlunknown;
17100 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17101 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17102 /* dlclose (self); */
17108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17109 (eval $ac_link) 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17113 (./conftest; exit; ) 2>/dev/null
17115 case x$lt_status in
17116 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17117 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17118 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17121 # compilation failed
17122 lt_cv_dlopen_self=no
17129 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17130 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17132 if test "x$lt_cv_dlopen_self" = xyes; then
17133 LDFLAGS="$LDFLAGS $link_static_flag"
17134 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17135 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17136 if test "${lt_cv_dlopen_self_static+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 if test "$cross_compiling" = yes; then :
17140 lt_cv_dlopen_self_static=cross
17142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17143 lt_status=$lt_dlunknown
17144 cat > conftest.$ac_ext <<EOF
17145 #line 17145 "configure"
17146 #include "confdefs.h"
17155 # define LT_DLGLOBAL RTLD_GLOBAL
17158 # define LT_DLGLOBAL DL_GLOBAL
17160 # define LT_DLGLOBAL 0
17164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17165 find out it does not work in some platform. */
17166 #ifndef LT_DLLAZY_OR_NOW
17168 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17171 # define LT_DLLAZY_OR_NOW DL_LAZY
17174 # define LT_DLLAZY_OR_NOW RTLD_NOW
17177 # define LT_DLLAZY_OR_NOW DL_NOW
17179 # define LT_DLLAZY_OR_NOW 0
17187 extern "C" void exit (int);
17190 void fnord() { int i=42;}
17193 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17194 int status = $lt_dlunknown;
17198 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17199 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17200 /* dlclose (self); */
17206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207 (eval $ac_link) 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17211 (./conftest; exit; ) 2>/dev/null
17213 case x$lt_status in
17214 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17215 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17216 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17219 # compilation failed
17220 lt_cv_dlopen_self_static=no
17227 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17228 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17231 CPPFLAGS="$save_CPPFLAGS"
17232 LDFLAGS="$save_LDFLAGS"
17237 case $lt_cv_dlopen_self in
17238 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17239 *) enable_dlopen_self=unknown ;;
17242 case $lt_cv_dlopen_self_static in
17243 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17244 *) enable_dlopen_self_static=unknown ;;
17249 # The else clause should only fire when bootstrapping the
17250 # libtool distribution, otherwise you forgot to ship ltmain.sh
17251 # with your package, and you will get complaints that there are
17252 # no rules to generate ltmain.sh.
17253 if test -f "$ltmain"; then
17254 # See if we are running on zsh, and set the options which allow our commands through
17255 # without removal of \ escapes.
17256 if test -n "${ZSH_VERSION+set}" ; then
17257 setopt NO_GLOB_SUBST
17259 # Now quote all the things that may contain metacharacters while being
17260 # careful not to overquote the AC_SUBSTed values. We take copies of the
17261 # variables and quote the copies for generation of the libtool script.
17262 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17263 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17264 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17265 deplibs_check_method reload_flag reload_cmds need_locks \
17266 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17267 lt_cv_sys_global_symbol_to_c_name_address \
17268 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17269 old_postinstall_cmds old_postuninstall_cmds \
17273 lt_prog_compiler_wl_GCJ \
17274 lt_prog_compiler_pic_GCJ \
17275 lt_prog_compiler_static_GCJ \
17276 lt_prog_compiler_no_builtin_flag_GCJ \
17277 export_dynamic_flag_spec_GCJ \
17278 thread_safe_flag_spec_GCJ \
17279 whole_archive_flag_spec_GCJ \
17280 enable_shared_with_static_runtimes_GCJ \
17281 old_archive_cmds_GCJ \
17282 old_archive_from_new_cmds_GCJ \
17283 predep_objects_GCJ \
17284 postdep_objects_GCJ \
17287 compiler_lib_search_path_GCJ \
17289 archive_expsym_cmds_GCJ \
17290 postinstall_cmds_GCJ \
17291 postuninstall_cmds_GCJ \
17292 old_archive_from_expsyms_cmds_GCJ \
17293 allow_undefined_flag_GCJ \
17294 no_undefined_flag_GCJ \
17295 export_symbols_cmds_GCJ \
17296 hardcode_libdir_flag_spec_GCJ \
17297 hardcode_libdir_flag_spec_ld_GCJ \
17298 hardcode_libdir_separator_GCJ \
17299 hardcode_automatic_GCJ \
17301 module_expsym_cmds_GCJ \
17302 lt_cv_prog_compiler_c_o_GCJ \
17303 exclude_expsyms_GCJ \
17304 include_expsyms_GCJ; do
17307 old_archive_cmds_GCJ | \
17308 old_archive_from_new_cmds_GCJ | \
17309 archive_cmds_GCJ | \
17310 archive_expsym_cmds_GCJ | \
17311 module_cmds_GCJ | \
17312 module_expsym_cmds_GCJ | \
17313 old_archive_from_expsyms_cmds_GCJ | \
17314 export_symbols_cmds_GCJ | \
17315 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17316 postinstall_cmds | postuninstall_cmds | \
17317 old_postinstall_cmds | old_postuninstall_cmds | \
17318 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17319 # Double-quote double-evaled strings.
17320 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17329 *'\$0 --fallback-echo"')
17330 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17336 cat <<__EOF__ >> "$cfgfile"
17337 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17341 # Shell to use when invoking shell scripts.
17344 # Whether or not to build shared libraries.
17345 build_libtool_libs=$enable_shared
17347 # Whether or not to build static libraries.
17348 build_old_libs=$enable_static
17350 # Whether or not to add -lc for building shared libraries.
17351 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17353 # Whether or not to disallow shared libs when runtime libs are static
17354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17356 # Whether or not to optimize for fast installation.
17357 fast_install=$enable_fast_install
17360 host_alias=$host_alias
17363 # An echo program that does not interpret backslashes.
17368 AR_FLAGS=$lt_AR_FLAGS
17373 # A language-specific compiler.
17374 CC=$lt_compiler_GCJ
17376 # Is the compiler the GNU C compiler?
17382 # The linker used to build libraries.
17385 # Whether we need hard or soft links.
17388 # A BSD-compatible nm program.
17391 # A symbol stripping program
17394 # Used to examine libraries when file_magic_cmd begins "file"
17395 MAGIC_CMD=$MAGIC_CMD
17397 # Used on cygwin: DLL creation program.
17400 # Used on cygwin: object dumper.
17403 # Used on cygwin: assembler.
17406 # The name of the directory that contains temporary libtool files.
17409 # How to create reloadable object files.
17410 reload_flag=$lt_reload_flag
17411 reload_cmds=$lt_reload_cmds
17413 # How to pass a linker flag through the compiler.
17414 wl=$lt_lt_prog_compiler_wl_GCJ
17416 # Object file suffix (normally "o").
17417 objext="$ac_objext"
17419 # Old archive suffix (normally "a").
17422 # Shared library suffix (normally ".so").
17425 # Executable file suffix (normally "").
17428 # Additional compiler flags for building library objects.
17429 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17432 # What is the maximum length of a command?
17433 max_cmd_len=$lt_cv_sys_max_cmd_len
17435 # Does compiler simultaneously support -c and -o options?
17436 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17438 # Must we lock files when doing compilation ?
17439 need_locks=$lt_need_locks
17441 # Do we need the lib prefix for modules?
17442 need_lib_prefix=$need_lib_prefix
17444 # Do we need a version for libraries?
17445 need_version=$need_version
17447 # Whether dlopen is supported.
17448 dlopen_support=$enable_dlopen
17450 # Whether dlopen of programs is supported.
17451 dlopen_self=$enable_dlopen_self
17453 # Whether dlopen of statically linked programs is supported.
17454 dlopen_self_static=$enable_dlopen_self_static
17456 # Compiler flag to prevent dynamic linking.
17457 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17459 # Compiler flag to turn off builtin functions.
17460 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17462 # Compiler flag to allow reflexive dlopens.
17463 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17465 # Compiler flag to generate shared objects directly from archives.
17466 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17468 # Compiler flag to generate thread-safe objects.
17469 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17471 # Library versioning type.
17472 version_type=$version_type
17474 # Format of library name prefix.
17475 libname_spec=$lt_libname_spec
17477 # List of archive names. First name is the real one, the rest are links.
17478 # The last name is the one that the linker finds with -lNAME.
17479 library_names_spec=$lt_library_names_spec
17481 # The coded name of the library, if different from the real name.
17482 soname_spec=$lt_soname_spec
17484 # Commands used to build and install an old-style archive.
17486 old_archive_cmds=$lt_old_archive_cmds_GCJ
17487 old_postinstall_cmds=$lt_old_postinstall_cmds
17488 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17490 # Create an old-style archive from a shared archive.
17491 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17493 # Create a temporary old-style archive to link instead of a shared archive.
17494 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17496 # Commands used to build and install a shared archive.
17497 archive_cmds=$lt_archive_cmds_GCJ
17498 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17499 postinstall_cmds=$lt_postinstall_cmds
17500 postuninstall_cmds=$lt_postuninstall_cmds
17502 # Commands used to build a loadable module (assumed same as above if empty)
17503 module_cmds=$lt_module_cmds_GCJ
17504 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17506 # Commands to strip libraries.
17507 old_striplib=$lt_old_striplib
17508 striplib=$lt_striplib
17510 # Dependencies to place before the objects being linked to create a
17512 predep_objects=$lt_predep_objects_GCJ
17514 # Dependencies to place after the objects being linked to create a
17516 postdep_objects=$lt_postdep_objects_GCJ
17518 # Dependencies to place before the objects being linked to create a
17520 predeps=$lt_predeps_GCJ
17522 # Dependencies to place after the objects being linked to create a
17524 postdeps=$lt_postdeps_GCJ
17526 # The library search path used internally by the compiler when linking
17527 # a shared library.
17528 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17530 # Method to check whether dependent libraries are shared objects.
17531 deplibs_check_method=$lt_deplibs_check_method
17533 # Command to use when deplibs_check_method == file_magic.
17534 file_magic_cmd=$lt_file_magic_cmd
17536 # Flag that allows shared libraries with undefined symbols to be built.
17537 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17539 # Flag that forces no undefined symbols.
17540 no_undefined_flag=$lt_no_undefined_flag_GCJ
17542 # Commands used to finish a libtool library installation in a directory.
17543 finish_cmds=$lt_finish_cmds
17545 # Same as above, but a single script fragment to be evaled but not shown.
17546 finish_eval=$lt_finish_eval
17548 # Take the output of nm and produce a listing of raw symbols and C names.
17549 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17551 # Transform the output of nm in a proper C declaration
17552 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17554 # Transform the output of nm in a C name address pair
17555 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17557 # This is the shared library runtime path variable.
17558 runpath_var=$runpath_var
17560 # This is the shared library path variable.
17561 shlibpath_var=$shlibpath_var
17563 # Is shlibpath searched before the hard-coded library search path?
17564 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17566 # How to hardcode a shared library path into an executable.
17567 hardcode_action=$hardcode_action_GCJ
17569 # Whether we should hardcode library paths into libraries.
17570 hardcode_into_libs=$hardcode_into_libs
17572 # Flag to hardcode \$libdir into a binary during linking.
17573 # This must work even if \$libdir does not exist.
17574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17576 # If ld is used when linking, flag to hardcode \$libdir into
17577 # a binary during linking. This must work even if \$libdir does
17579 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17581 # Whether we need a single -rpath flag with a separated argument.
17582 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17584 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17585 # resulting binary.
17586 hardcode_direct=$hardcode_direct_GCJ
17588 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17589 # resulting binary.
17590 hardcode_minus_L=$hardcode_minus_L_GCJ
17592 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17593 # the resulting binary.
17594 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17596 # Set to yes if building a shared library automatically hardcodes DIR into the library
17597 # and all subsequent libraries and executables linked against it.
17598 hardcode_automatic=$hardcode_automatic_GCJ
17600 # Variables whose values should be saved in libtool wrapper scripts and
17601 # restored at relink time.
17602 variables_saved_for_relink="$variables_saved_for_relink"
17604 # Whether libtool must link a program against all its dependency libraries.
17605 link_all_deplibs=$link_all_deplibs_GCJ
17607 # Compile-time system search path for libraries
17608 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17610 # Run-time system search path for libraries
17611 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17613 # Fix the shell variable \$srcfile for the compiler.
17614 fix_srcfile_path="$fix_srcfile_path_GCJ"
17616 # Set to yes if exported symbols are required.
17617 always_export_symbols=$always_export_symbols_GCJ
17619 # The commands to list exported symbols.
17620 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17622 # The commands to extract the exported symbol list from a shared archive.
17623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17625 # Symbols that should not be listed in the preloaded symbols.
17626 exclude_expsyms=$lt_exclude_expsyms_GCJ
17628 # Symbols that must always be exported.
17629 include_expsyms=$lt_include_expsyms_GCJ
17631 # ### END LIBTOOL TAG CONFIG: $tagname
17637 # If there is no Makefile yet, we rely on a make rule to execute
17638 # `config.status --recheck' to rerun these tests and create the
17639 # libtool script then.
17640 test -f Makefile && make "$ltmain"
17645 ac_cpp='$CPP $CPPFLAGS'
17646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17661 # Source file extension for RC test sources.
17664 # Object file extension for compiled RC test sources.
17668 # Code to be used in simple compile tests
17669 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17671 # Code to be used in simple link tests
17672 lt_simple_link_test_code="$lt_simple_compile_test_code"
17674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17676 # If no C compiler was specified, use CC.
17679 # Allow CC to be a program name with arguments.
17683 # Allow CC to be a program name with arguments.
17688 lt_cv_prog_compiler_c_o_RC=yes
17690 # The else clause should only fire when bootstrapping the
17691 # libtool distribution, otherwise you forgot to ship ltmain.sh
17692 # with your package, and you will get complaints that there are
17693 # no rules to generate ltmain.sh.
17694 if test -f "$ltmain"; then
17695 # See if we are running on zsh, and set the options which allow our commands through
17696 # without removal of \ escapes.
17697 if test -n "${ZSH_VERSION+set}" ; then
17698 setopt NO_GLOB_SUBST
17700 # Now quote all the things that may contain metacharacters while being
17701 # careful not to overquote the AC_SUBSTed values. We take copies of the
17702 # variables and quote the copies for generation of the libtool script.
17703 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17706 deplibs_check_method reload_flag reload_cmds need_locks \
17707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17708 lt_cv_sys_global_symbol_to_c_name_address \
17709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17710 old_postinstall_cmds old_postuninstall_cmds \
17714 lt_prog_compiler_wl_RC \
17715 lt_prog_compiler_pic_RC \
17716 lt_prog_compiler_static_RC \
17717 lt_prog_compiler_no_builtin_flag_RC \
17718 export_dynamic_flag_spec_RC \
17719 thread_safe_flag_spec_RC \
17720 whole_archive_flag_spec_RC \
17721 enable_shared_with_static_runtimes_RC \
17722 old_archive_cmds_RC \
17723 old_archive_from_new_cmds_RC \
17724 predep_objects_RC \
17725 postdep_objects_RC \
17728 compiler_lib_search_path_RC \
17730 archive_expsym_cmds_RC \
17731 postinstall_cmds_RC \
17732 postuninstall_cmds_RC \
17733 old_archive_from_expsyms_cmds_RC \
17734 allow_undefined_flag_RC \
17735 no_undefined_flag_RC \
17736 export_symbols_cmds_RC \
17737 hardcode_libdir_flag_spec_RC \
17738 hardcode_libdir_flag_spec_ld_RC \
17739 hardcode_libdir_separator_RC \
17740 hardcode_automatic_RC \
17742 module_expsym_cmds_RC \
17743 lt_cv_prog_compiler_c_o_RC \
17744 exclude_expsyms_RC \
17745 include_expsyms_RC; do
17748 old_archive_cmds_RC | \
17749 old_archive_from_new_cmds_RC | \
17750 archive_cmds_RC | \
17751 archive_expsym_cmds_RC | \
17753 module_expsym_cmds_RC | \
17754 old_archive_from_expsyms_cmds_RC | \
17755 export_symbols_cmds_RC | \
17756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17757 postinstall_cmds | postuninstall_cmds | \
17758 old_postinstall_cmds | old_postuninstall_cmds | \
17759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17760 # Double-quote double-evaled strings.
17761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17770 *'\$0 --fallback-echo"')
17771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17777 cat <<__EOF__ >> "$cfgfile"
17778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17782 # Shell to use when invoking shell scripts.
17785 # Whether or not to build shared libraries.
17786 build_libtool_libs=$enable_shared
17788 # Whether or not to build static libraries.
17789 build_old_libs=$enable_static
17791 # Whether or not to add -lc for building shared libraries.
17792 build_libtool_need_lc=$archive_cmds_need_lc_RC
17794 # Whether or not to disallow shared libs when runtime libs are static
17795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17797 # Whether or not to optimize for fast installation.
17798 fast_install=$enable_fast_install
17801 host_alias=$host_alias
17804 # An echo program that does not interpret backslashes.
17809 AR_FLAGS=$lt_AR_FLAGS
17814 # A language-specific compiler.
17817 # Is the compiler the GNU C compiler?
17823 # The linker used to build libraries.
17826 # Whether we need hard or soft links.
17829 # A BSD-compatible nm program.
17832 # A symbol stripping program
17835 # Used to examine libraries when file_magic_cmd begins "file"
17836 MAGIC_CMD=$MAGIC_CMD
17838 # Used on cygwin: DLL creation program.
17841 # Used on cygwin: object dumper.
17844 # Used on cygwin: assembler.
17847 # The name of the directory that contains temporary libtool files.
17850 # How to create reloadable object files.
17851 reload_flag=$lt_reload_flag
17852 reload_cmds=$lt_reload_cmds
17854 # How to pass a linker flag through the compiler.
17855 wl=$lt_lt_prog_compiler_wl_RC
17857 # Object file suffix (normally "o").
17858 objext="$ac_objext"
17860 # Old archive suffix (normally "a").
17863 # Shared library suffix (normally ".so").
17866 # Executable file suffix (normally "").
17869 # Additional compiler flags for building library objects.
17870 pic_flag=$lt_lt_prog_compiler_pic_RC
17873 # What is the maximum length of a command?
17874 max_cmd_len=$lt_cv_sys_max_cmd_len
17876 # Does compiler simultaneously support -c and -o options?
17877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17879 # Must we lock files when doing compilation ?
17880 need_locks=$lt_need_locks
17882 # Do we need the lib prefix for modules?
17883 need_lib_prefix=$need_lib_prefix
17885 # Do we need a version for libraries?
17886 need_version=$need_version
17888 # Whether dlopen is supported.
17889 dlopen_support=$enable_dlopen
17891 # Whether dlopen of programs is supported.
17892 dlopen_self=$enable_dlopen_self
17894 # Whether dlopen of statically linked programs is supported.
17895 dlopen_self_static=$enable_dlopen_self_static
17897 # Compiler flag to prevent dynamic linking.
17898 link_static_flag=$lt_lt_prog_compiler_static_RC
17900 # Compiler flag to turn off builtin functions.
17901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17903 # Compiler flag to allow reflexive dlopens.
17904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17906 # Compiler flag to generate shared objects directly from archives.
17907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17909 # Compiler flag to generate thread-safe objects.
17910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17912 # Library versioning type.
17913 version_type=$version_type
17915 # Format of library name prefix.
17916 libname_spec=$lt_libname_spec
17918 # List of archive names. First name is the real one, the rest are links.
17919 # The last name is the one that the linker finds with -lNAME.
17920 library_names_spec=$lt_library_names_spec
17922 # The coded name of the library, if different from the real name.
17923 soname_spec=$lt_soname_spec
17925 # Commands used to build and install an old-style archive.
17927 old_archive_cmds=$lt_old_archive_cmds_RC
17928 old_postinstall_cmds=$lt_old_postinstall_cmds
17929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17931 # Create an old-style archive from a shared archive.
17932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17934 # Create a temporary old-style archive to link instead of a shared archive.
17935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17937 # Commands used to build and install a shared archive.
17938 archive_cmds=$lt_archive_cmds_RC
17939 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17940 postinstall_cmds=$lt_postinstall_cmds
17941 postuninstall_cmds=$lt_postuninstall_cmds
17943 # Commands used to build a loadable module (assumed same as above if empty)
17944 module_cmds=$lt_module_cmds_RC
17945 module_expsym_cmds=$lt_module_expsym_cmds_RC
17947 # Commands to strip libraries.
17948 old_striplib=$lt_old_striplib
17949 striplib=$lt_striplib
17951 # Dependencies to place before the objects being linked to create a
17953 predep_objects=$lt_predep_objects_RC
17955 # Dependencies to place after the objects being linked to create a
17957 postdep_objects=$lt_postdep_objects_RC
17959 # Dependencies to place before the objects being linked to create a
17961 predeps=$lt_predeps_RC
17963 # Dependencies to place after the objects being linked to create a
17965 postdeps=$lt_postdeps_RC
17967 # The library search path used internally by the compiler when linking
17968 # a shared library.
17969 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17971 # Method to check whether dependent libraries are shared objects.
17972 deplibs_check_method=$lt_deplibs_check_method
17974 # Command to use when deplibs_check_method == file_magic.
17975 file_magic_cmd=$lt_file_magic_cmd
17977 # Flag that allows shared libraries with undefined symbols to be built.
17978 allow_undefined_flag=$lt_allow_undefined_flag_RC
17980 # Flag that forces no undefined symbols.
17981 no_undefined_flag=$lt_no_undefined_flag_RC
17983 # Commands used to finish a libtool library installation in a directory.
17984 finish_cmds=$lt_finish_cmds
17986 # Same as above, but a single script fragment to be evaled but not shown.
17987 finish_eval=$lt_finish_eval
17989 # Take the output of nm and produce a listing of raw symbols and C names.
17990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17992 # Transform the output of nm in a proper C declaration
17993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17995 # Transform the output of nm in a C name address pair
17996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17998 # This is the shared library runtime path variable.
17999 runpath_var=$runpath_var
18001 # This is the shared library path variable.
18002 shlibpath_var=$shlibpath_var
18004 # Is shlibpath searched before the hard-coded library search path?
18005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18007 # How to hardcode a shared library path into an executable.
18008 hardcode_action=$hardcode_action_RC
18010 # Whether we should hardcode library paths into libraries.
18011 hardcode_into_libs=$hardcode_into_libs
18013 # Flag to hardcode \$libdir into a binary during linking.
18014 # This must work even if \$libdir does not exist.
18015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18017 # If ld is used when linking, flag to hardcode \$libdir into
18018 # a binary during linking. This must work even if \$libdir does
18020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18022 # Whether we need a single -rpath flag with a separated argument.
18023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18026 # resulting binary.
18027 hardcode_direct=$hardcode_direct_RC
18029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18030 # resulting binary.
18031 hardcode_minus_L=$hardcode_minus_L_RC
18033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18034 # the resulting binary.
18035 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18037 # Set to yes if building a shared library automatically hardcodes DIR into the library
18038 # and all subsequent libraries and executables linked against it.
18039 hardcode_automatic=$hardcode_automatic_RC
18041 # Variables whose values should be saved in libtool wrapper scripts and
18042 # restored at relink time.
18043 variables_saved_for_relink="$variables_saved_for_relink"
18045 # Whether libtool must link a program against all its dependency libraries.
18046 link_all_deplibs=$link_all_deplibs_RC
18048 # Compile-time system search path for libraries
18049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18051 # Run-time system search path for libraries
18052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18054 # Fix the shell variable \$srcfile for the compiler.
18055 fix_srcfile_path="$fix_srcfile_path_RC"
18057 # Set to yes if exported symbols are required.
18058 always_export_symbols=$always_export_symbols_RC
18060 # The commands to list exported symbols.
18061 export_symbols_cmds=$lt_export_symbols_cmds_RC
18063 # The commands to extract the exported symbol list from a shared archive.
18064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18066 # Symbols that should not be listed in the preloaded symbols.
18067 exclude_expsyms=$lt_exclude_expsyms_RC
18069 # Symbols that must always be exported.
18070 include_expsyms=$lt_include_expsyms_RC
18072 # ### END LIBTOOL TAG CONFIG: $tagname
18078 # If there is no Makefile yet, we rely on a make rule to execute
18079 # `config.status --recheck' to rerun these tests and create the
18080 # libtool script then.
18081 test -f Makefile && make "$ltmain"
18086 ac_cpp='$CPP $CPPFLAGS'
18087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18096 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18097 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18098 { (exit 1); exit 1; }; }
18102 # Append the new tag name to the list of available tags.
18103 if test -n "$tagname" ; then
18104 available_tags="$available_tags $tagname"
18110 # Now substitute the updated list of available tags.
18111 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18112 mv "${ofile}T" "$ofile"
18116 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18117 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18118 { (exit 1); exit 1; }; }
18124 # This can be used to rebuild libtool when needed
18125 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18127 # Always use our own libtool.
18128 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18130 # Prevent multiple expansion
18152 # Extract the first word of "dot", so it can be a program name with args.
18153 set dummy dot; ac_word=$2
18154 echo "$as_me:$LINENO: checking for $ac_word" >&5
18155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18156 if test "${ac_cv_path_DOT+set}" = set; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18161 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18165 for as_dir in $PATH
18168 test -z "$as_dir" && as_dir=.
18169 for ac_exec_ext in '' $ac_executable_extensions; do
18170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18171 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18178 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18182 DOT=$ac_cv_path_DOT
18184 if test -n "$DOT"; then
18185 echo "$as_me:$LINENO: result: $DOT" >&5
18186 echo "${ECHO_T}$DOT" >&6
18188 echo "$as_me:$LINENO: result: no" >&5
18189 echo "${ECHO_T}no" >&6
18192 # Extract the first word of "etags", so it can be a program name with args.
18193 set dummy etags; ac_word=$2
18194 echo "$as_me:$LINENO: checking for $ac_word" >&5
18195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18196 if test "${ac_cv_path_ETAGS+set}" = set; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18205 for as_dir in $PATH
18208 test -z "$as_dir" && as_dir=.
18209 for ac_exec_ext in '' $ac_executable_extensions; do
18210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18211 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18218 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18222 ETAGS=$ac_cv_path_ETAGS
18224 if test -n "$ETAGS"; then
18225 echo "$as_me:$LINENO: result: $ETAGS" >&5
18226 echo "${ECHO_T}$ETAGS" >&6
18228 echo "$as_me:$LINENO: result: no" >&5
18229 echo "${ECHO_T}no" >&6
18232 etags_version=`$ETAGS --version 2>&1`
18233 case "$etags_version" in
18234 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18235 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18236 *) ETAGSFLAGS="" ;;
18238 ETAGSFLAGS=$ETAGSFLAGS
18240 # Extract the first word of "python", so it can be a program name with args.
18241 set dummy python; ac_word=$2
18242 echo "$as_me:$LINENO: checking for $ac_word" >&5
18243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18244 if test "${ac_cv_path_PYTHON+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18253 for as_dir in $PATH
18256 test -z "$as_dir" && as_dir=.
18257 for ac_exec_ext in '' $ac_executable_extensions; do
18258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18259 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18266 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18270 PYTHON=$ac_cv_path_PYTHON
18272 if test -n "$PYTHON"; then
18273 echo "$as_me:$LINENO: result: $PYTHON" >&5
18274 echo "${ECHO_T}$PYTHON" >&6
18276 echo "$as_me:$LINENO: result: no" >&5
18277 echo "${ECHO_T}no" >&6
18280 if test "$PYTHON" = "false"
18282 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18283 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18285 # Extract the first word of "qmtest", so it can be a program name with args.
18286 set dummy qmtest; ac_word=$2
18287 echo "$as_me:$LINENO: checking for $ac_word" >&5
18288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18289 if test "${ac_cv_path_QMTEST+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18301 test -z "$as_dir" && as_dir=.
18302 for ac_exec_ext in '' $ac_executable_extensions; do
18303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18304 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18311 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18315 QMTEST=$ac_cv_path_QMTEST
18317 if test -n "$QMTEST"; then
18318 echo "$as_me:$LINENO: result: $QMTEST" >&5
18319 echo "${ECHO_T}$QMTEST" >&6
18321 echo "$as_me:$LINENO: result: no" >&5
18322 echo "${ECHO_T}no" >&6
18325 if test "$QMTEST" = "false"
18327 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18328 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18331 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18332 pymajor=`echo $pyversion | cut -d. -f1`
18333 pyminor=`echo $pyversion | cut -d. -f2`
18335 if test "$pymajor" -ge "2"
18337 if test "$pymajor" -eq "2"
18339 if test "$pyminor" -lt "2"
18341 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18342 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18347 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18353 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18354 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18355 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 ac_check_lib_save_LIBS=$LIBS
18360 cat >conftest.$ac_ext <<_ACEOF
18361 #line $LINENO "configure"
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18368 /* Override any gcc2 internal prototype to avoid an error. */
18372 /* We use char because int might match the return type of a gcc2
18373 builtin and then its argument prototype would still apply. */
18383 rm -f conftest.$ac_objext conftest$ac_exeext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18385 (eval $ac_link) 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } &&
18389 { ac_try='test -s conftest$ac_exeext'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_cv_lib_elf_elf_begin=yes
18397 echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18400 ac_cv_lib_elf_elf_begin=no
18402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18403 LIBS=$ac_check_lib_save_LIBS
18405 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18406 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18407 if test $ac_cv_lib_elf_elf_begin = yes; then
18408 cat >>confdefs.h <<_ACEOF
18409 #define HAVE_LIBELF 1
18417 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18418 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18419 if test "${ac_cv_search_dlopen+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18422 ac_func_search_save_LIBS=$LIBS
18423 ac_cv_search_dlopen=no
18424 cat >conftest.$ac_ext <<_ACEOF
18425 #line $LINENO "configure"
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18432 /* Override any gcc2 internal prototype to avoid an error. */
18436 /* We use char because int might match the return type of a gcc2
18437 builtin and then its argument prototype would still apply. */
18447 rm -f conftest.$ac_objext conftest$ac_exeext
18448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18449 (eval $ac_link) 2>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -s conftest$ac_exeext'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 ac_cv_search_dlopen="none required"
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18466 if test "$ac_cv_search_dlopen" = no; then
18467 for ac_lib in dl; do
18468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18469 cat >conftest.$ac_ext <<_ACEOF
18470 #line $LINENO "configure"
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18477 /* Override any gcc2 internal prototype to avoid an error. */
18481 /* We use char because int might match the return type of a gcc2
18482 builtin and then its argument prototype would still apply. */
18492 rm -f conftest.$ac_objext conftest$ac_exeext
18493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18494 (eval $ac_link) 2>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
18498 { ac_try='test -s conftest$ac_exeext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_search_dlopen="-l$ac_lib"
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18514 LIBS=$ac_func_search_save_LIBS
18516 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18517 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18518 if test "$ac_cv_search_dlopen" != no; then
18519 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18521 cat >>confdefs.h <<\_ACEOF
18522 #define HAVE_DLOPEN 1
18526 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18527 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18531 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18532 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18533 if test "${ac_cv_search_mallinfo+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 ac_func_search_save_LIBS=$LIBS
18537 ac_cv_search_mallinfo=no
18538 cat >conftest.$ac_ext <<_ACEOF
18539 #line $LINENO "configure"
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18546 /* Override any gcc2 internal prototype to avoid an error. */
18550 /* We use char because int might match the return type of a gcc2
18551 builtin and then its argument prototype would still apply. */
18561 rm -f conftest.$ac_objext conftest$ac_exeext
18562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18563 (eval $ac_link) 2>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -s conftest$ac_exeext'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 ac_cv_search_mallinfo="none required"
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18580 if test "$ac_cv_search_mallinfo" = no; then
18581 for ac_lib in malloc; do
18582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18583 cat >conftest.$ac_ext <<_ACEOF
18584 #line $LINENO "configure"
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18591 /* Override any gcc2 internal prototype to avoid an error. */
18595 /* We use char because int might match the return type of a gcc2
18596 builtin and then its argument prototype would still apply. */
18606 rm -f conftest.$ac_objext conftest$ac_exeext
18607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18608 (eval $ac_link) 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -s conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_search_mallinfo="-l$ac_lib"
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18628 LIBS=$ac_func_search_save_LIBS
18630 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18631 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18632 if test "$ac_cv_search_mallinfo" != no; then
18633 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18635 cat >>confdefs.h <<\_ACEOF
18636 #define HAVE_MALLINFO 1
18642 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18643 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18644 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18647 ac_func_search_save_LIBS=$LIBS
18648 ac_cv_search_pthread_mutex_lock=no
18649 cat >conftest.$ac_ext <<_ACEOF
18650 #line $LINENO "configure"
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18657 /* Override any gcc2 internal prototype to avoid an error. */
18661 /* We use char because int might match the return type of a gcc2
18662 builtin and then its argument prototype would still apply. */
18663 char pthread_mutex_lock ();
18667 pthread_mutex_lock ();
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18674 (eval $ac_link) 2>&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -s conftest$ac_exeext'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_cv_search_pthread_mutex_lock="none required"
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18691 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18692 for ac_lib in pthread; do
18693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18694 cat >conftest.$ac_ext <<_ACEOF
18695 #line $LINENO "configure"
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18702 /* Override any gcc2 internal prototype to avoid an error. */
18706 /* We use char because int might match the return type of a gcc2
18707 builtin and then its argument prototype would still apply. */
18708 char pthread_mutex_lock ();
18712 pthread_mutex_lock ();
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18719 (eval $ac_link) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } &&
18723 { ac_try='test -s conftest$ac_exeext'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18732 echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_func_search_save_LIBS
18741 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18742 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18743 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18744 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18745 HAVE_PTHREAD_MUTEX_LOCK=1
18747 HAVE_PTHREAD_MUTEX_LOCK=0
18752 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18753 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18754 if test "${ac_cv_header_stdc+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18757 cat >conftest.$ac_ext <<_ACEOF
18758 #line $LINENO "configure"
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 #include <stdlib.h>
18765 #include <stdarg.h>
18766 #include <string.h>
18777 rm -f conftest.$ac_objext
18778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18779 (eval $ac_compile) 2>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } &&
18783 { ac_try='test -s conftest.$ac_objext'
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18789 ac_cv_header_stdc=yes
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18794 ac_cv_header_stdc=no
18796 rm -f conftest.$ac_objext conftest.$ac_ext
18798 if test $ac_cv_header_stdc = yes; then
18799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18800 cat >conftest.$ac_ext <<_ACEOF
18801 #line $LINENO "configure"
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 #include <string.h>
18810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18811 $EGREP "memchr" >/dev/null 2>&1; then
18814 ac_cv_header_stdc=no
18820 if test $ac_cv_header_stdc = yes; then
18821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18822 cat >conftest.$ac_ext <<_ACEOF
18823 #line $LINENO "configure"
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 #include <stdlib.h>
18832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18833 $EGREP "free" >/dev/null 2>&1; then
18836 ac_cv_header_stdc=no
18842 if test $ac_cv_header_stdc = yes; then
18843 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18844 if test "$cross_compiling" = yes; then
18847 cat >conftest.$ac_ext <<_ACEOF
18848 #line $LINENO "configure"
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18855 #if ((' ' & 0x0FF) == 0x020)
18856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18859 # define ISLOWER(c) \
18860 (('a' <= (c) && (c) <= 'i') \
18861 || ('j' <= (c) && (c) <= 'r') \
18862 || ('s' <= (c) && (c) <= 'z'))
18863 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18871 for (i = 0; i < 256; i++)
18872 if (XOR (islower (i), ISLOWER (i))
18873 || toupper (i) != TOUPPER (i))
18878 rm -f conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880 (eval $ac_link) 2>&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18891 echo "$as_me: program exited with status $ac_status" >&5
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18895 ( exit $ac_status )
18896 ac_cv_header_stdc=no
18898 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18902 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18903 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18904 if test $ac_cv_header_stdc = yes; then
18906 cat >>confdefs.h <<\_ACEOF
18907 #define STDC_HEADERS 1
18912 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18913 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18914 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 cat >conftest.$ac_ext <<_ACEOF
18918 #line $LINENO "configure"
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18924 #include <sys/types.h>
18925 #include <sys/wait.h>
18926 #ifndef WEXITSTATUS
18927 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18930 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18938 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18943 rm -f conftest.$ac_objext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945 (eval $ac_compile) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -s conftest.$ac_objext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 ac_cv_header_sys_wait_h=yes
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 ac_cv_header_sys_wait_h=no
18962 rm -f conftest.$ac_objext conftest.$ac_ext
18964 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18965 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18966 if test $ac_cv_header_sys_wait_h = yes; then
18968 cat >>confdefs.h <<\_ACEOF
18969 #define HAVE_SYS_WAIT_H 1
18986 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
18988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18990 echo "$as_me:$LINENO: checking for $ac_header" >&5
18991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18998 # Is the header compilable?
18999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19001 cat >conftest.$ac_ext <<_ACEOF
19002 #line $LINENO "configure"
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 $ac_includes_default
19009 #include <$ac_header>
19011 rm -f conftest.$ac_objext
19012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19013 (eval $ac_compile) 2>&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
19017 { ac_try='test -s conftest.$ac_objext'
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 ac_header_compiler=yes
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 ac_header_compiler=no
19030 rm -f conftest.$ac_objext conftest.$ac_ext
19031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19032 echo "${ECHO_T}$ac_header_compiler" >&6
19034 # Is the header present?
19035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19037 cat >conftest.$ac_ext <<_ACEOF
19038 #line $LINENO "configure"
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 #include <$ac_header>
19046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19049 grep -v '^ *+' conftest.er1 >conftest.err
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } >/dev/null; then
19054 if test -s conftest.err; then
19055 ac_cpp_err=$ac_c_preproc_warn_flag
19062 if test -z "$ac_cpp_err"; then
19063 ac_header_preproc=yes
19065 echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19068 ac_header_preproc=no
19070 rm -f conftest.err conftest.$ac_ext
19071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19072 echo "${ECHO_T}$ac_header_preproc" >&6
19074 # So? What about this header?
19075 case $ac_header_compiler:$ac_header_preproc in
19077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19083 ## ------------------------------------ ##
19084 ## Report this to bug-autoconf@gnu.org. ##
19085 ## ------------------------------------ ##
19088 sed "s/^/$as_me: WARNING: /" >&2
19091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19099 ## ------------------------------------ ##
19100 ## Report this to bug-autoconf@gnu.org. ##
19101 ## ------------------------------------ ##
19104 sed "s/^/$as_me: WARNING: /" >&2
19107 echo "$as_me:$LINENO: checking for $ac_header" >&5
19108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 eval "$as_ac_Header=$ac_header_preproc"
19114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19119 cat >>confdefs.h <<_ACEOF
19120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19128 if test "${ac_cv_header_sys_types_h+set}" = set; then
19129 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19130 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19131 if test "${ac_cv_header_sys_types_h+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19135 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19137 # Is the header compilable?
19138 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19139 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19140 cat >conftest.$ac_ext <<_ACEOF
19141 #line $LINENO "configure"
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 $ac_includes_default
19148 #include <sys/types.h>
19150 rm -f conftest.$ac_objext
19151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19152 (eval $ac_compile) 2>&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); } &&
19156 { ac_try='test -s conftest.$ac_objext'
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; }; then
19162 ac_header_compiler=yes
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19167 ac_header_compiler=no
19169 rm -f conftest.$ac_objext conftest.$ac_ext
19170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19171 echo "${ECHO_T}$ac_header_compiler" >&6
19173 # Is the header present?
19174 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19175 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19176 cat >conftest.$ac_ext <<_ACEOF
19177 #line $LINENO "configure"
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 #include <sys/types.h>
19185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } >/dev/null; then
19193 if test -s conftest.err; then
19194 ac_cpp_err=$ac_c_preproc_warn_flag
19201 if test -z "$ac_cpp_err"; then
19202 ac_header_preproc=yes
19204 echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19207 ac_header_preproc=no
19209 rm -f conftest.err conftest.$ac_ext
19210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19211 echo "${ECHO_T}$ac_header_preproc" >&6
19213 # So? What about this header?
19214 case $ac_header_compiler:$ac_header_preproc in
19216 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19217 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19219 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19222 ## ------------------------------------ ##
19223 ## Report this to bug-autoconf@gnu.org. ##
19224 ## ------------------------------------ ##
19227 sed "s/^/$as_me: WARNING: /" >&2
19230 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19231 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19232 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19233 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19234 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19235 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19238 ## ------------------------------------ ##
19239 ## Report this to bug-autoconf@gnu.org. ##
19240 ## ------------------------------------ ##
19243 sed "s/^/$as_me: WARNING: /" >&2
19246 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19247 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19248 if test "${ac_cv_header_sys_types_h+set}" = set; then
19249 echo $ECHO_N "(cached) $ECHO_C" >&6
19251 ac_cv_header_sys_types_h=$ac_header_preproc
19253 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19254 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19257 if test $ac_cv_header_sys_types_h = yes; then
19258 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19260 INCLUDE_SYS_TYPES_H=''
19265 if test "${ac_cv_header_inttypes_h+set}" = set; then
19266 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19267 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19268 if test "${ac_cv_header_inttypes_h+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19272 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19274 # Is the header compilable?
19275 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19276 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19277 cat >conftest.$ac_ext <<_ACEOF
19278 #line $LINENO "configure"
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19284 $ac_includes_default
19285 #include <inttypes.h>
19287 rm -f conftest.$ac_objext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19289 (eval $ac_compile) 2>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -s conftest.$ac_objext'
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; }; then
19299 ac_header_compiler=yes
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 ac_header_compiler=no
19306 rm -f conftest.$ac_objext conftest.$ac_ext
19307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19308 echo "${ECHO_T}$ac_header_compiler" >&6
19310 # Is the header present?
19311 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19312 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19313 cat >conftest.$ac_ext <<_ACEOF
19314 #line $LINENO "configure"
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19320 #include <inttypes.h>
19322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19325 grep -v '^ *+' conftest.er1 >conftest.err
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } >/dev/null; then
19330 if test -s conftest.err; then
19331 ac_cpp_err=$ac_c_preproc_warn_flag
19338 if test -z "$ac_cpp_err"; then
19339 ac_header_preproc=yes
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 ac_header_preproc=no
19346 rm -f conftest.err conftest.$ac_ext
19347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19348 echo "${ECHO_T}$ac_header_preproc" >&6
19350 # So? What about this header?
19351 case $ac_header_compiler:$ac_header_preproc in
19353 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19354 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19355 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19356 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19359 ## ------------------------------------ ##
19360 ## Report this to bug-autoconf@gnu.org. ##
19361 ## ------------------------------------ ##
19364 sed "s/^/$as_me: WARNING: /" >&2
19367 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19368 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19369 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19370 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19371 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19372 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19375 ## ------------------------------------ ##
19376 ## Report this to bug-autoconf@gnu.org. ##
19377 ## ------------------------------------ ##
19380 sed "s/^/$as_me: WARNING: /" >&2
19383 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19384 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19385 if test "${ac_cv_header_inttypes_h+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 ac_cv_header_inttypes_h=$ac_header_preproc
19390 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19391 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19394 if test $ac_cv_header_inttypes_h = yes; then
19395 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19397 INCLUDE_INTTYPES_H=''
19402 if test "${ac_cv_header_stdint_h+set}" = set; then
19403 echo "$as_me:$LINENO: checking for stdint.h" >&5
19404 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19405 if test "${ac_cv_header_stdint_h+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19409 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19411 # Is the header compilable?
19412 echo "$as_me:$LINENO: checking stdint.h usability" >&5
19413 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19414 cat >conftest.$ac_ext <<_ACEOF
19415 #line $LINENO "configure"
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 $ac_includes_default
19422 #include <stdint.h>
19424 rm -f conftest.$ac_objext
19425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19426 (eval $ac_compile) 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
19430 { ac_try='test -s conftest.$ac_objext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_header_compiler=yes
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_header_compiler=no
19443 rm -f conftest.$ac_objext conftest.$ac_ext
19444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19445 echo "${ECHO_T}$ac_header_compiler" >&6
19447 # Is the header present?
19448 echo "$as_me:$LINENO: checking stdint.h presence" >&5
19449 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19450 cat >conftest.$ac_ext <<_ACEOF
19451 #line $LINENO "configure"
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <stdint.h>
19459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19462 grep -v '^ *+' conftest.er1 >conftest.err
19464 cat conftest.err >&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } >/dev/null; then
19467 if test -s conftest.err; then
19468 ac_cpp_err=$ac_c_preproc_warn_flag
19475 if test -z "$ac_cpp_err"; then
19476 ac_header_preproc=yes
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19481 ac_header_preproc=no
19483 rm -f conftest.err conftest.$ac_ext
19484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19485 echo "${ECHO_T}$ac_header_preproc" >&6
19487 # So? What about this header?
19488 case $ac_header_compiler:$ac_header_preproc in
19490 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19491 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19492 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19493 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19496 ## ------------------------------------ ##
19497 ## Report this to bug-autoconf@gnu.org. ##
19498 ## ------------------------------------ ##
19501 sed "s/^/$as_me: WARNING: /" >&2
19504 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19505 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19507 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19509 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19512 ## ------------------------------------ ##
19513 ## Report this to bug-autoconf@gnu.org. ##
19514 ## ------------------------------------ ##
19517 sed "s/^/$as_me: WARNING: /" >&2
19520 echo "$as_me:$LINENO: checking for stdint.h" >&5
19521 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19522 if test "${ac_cv_header_stdint_h+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 ac_cv_header_stdint_h=$ac_header_preproc
19527 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19528 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19531 if test $ac_cv_header_stdint_h = yes; then
19532 INCLUDE_STDINT_H='#include <stdint.h>'
19534 INCLUDE_STDINT_H=''
19541 echo "$as_me:$LINENO: checking for pid_t" >&5
19542 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19543 if test "${ac_cv_type_pid_t+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 cat >conftest.$ac_ext <<_ACEOF
19547 #line $LINENO "configure"
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 $ac_includes_default
19559 if (sizeof (pid_t))
19565 rm -f conftest.$ac_objext
19566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19567 (eval $ac_compile) 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -s conftest.$ac_objext'
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; }; then
19577 ac_cv_type_pid_t=yes
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_cv_type_pid_t=no
19584 rm -f conftest.$ac_objext conftest.$ac_ext
19586 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19587 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19588 if test $ac_cv_type_pid_t = yes; then
19592 cat >>confdefs.h <<_ACEOF
19598 echo "$as_me:$LINENO: checking for size_t" >&5
19599 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19600 if test "${ac_cv_type_size_t+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19604 #line $LINENO "configure"
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 $ac_includes_default
19616 if (sizeof (size_t))
19622 rm -f conftest.$ac_objext
19623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19624 (eval $ac_compile) 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -s conftest.$ac_objext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_cv_type_size_t=yes
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_cv_type_size_t=no
19641 rm -f conftest.$ac_objext conftest.$ac_ext
19643 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19644 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19645 if test $ac_cv_type_size_t = yes; then
19649 cat >>confdefs.h <<_ACEOF
19650 #define size_t unsigned
19655 echo "$as_me:$LINENO: checking for int64_t" >&5
19656 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19657 if test "${ac_cv_type_int64_t+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 cat >conftest.$ac_ext <<_ACEOF
19661 #line $LINENO "configure"
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19667 $ac_includes_default
19673 if (sizeof (int64_t))
19679 rm -f conftest.$ac_objext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19681 (eval $ac_compile) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -s conftest.$ac_objext'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 ac_cv_type_int64_t=yes
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19696 ac_cv_type_int64_t=no
19698 rm -f conftest.$ac_objext conftest.$ac_ext
19700 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19701 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19702 if test $ac_cv_type_int64_t = yes; then
19704 cat >>confdefs.h <<_ACEOF
19705 #define HAVE_INT64_T 1
19710 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19711 echo "$as_me: error: Type int64_t required but not found" >&2;}
19712 { (exit 1); exit 1; }; }
19715 echo "$as_me:$LINENO: checking for uint64_t" >&5
19716 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19717 if test "${ac_cv_type_uint64_t+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 cat >conftest.$ac_ext <<_ACEOF
19721 #line $LINENO "configure"
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 $ac_includes_default
19731 if ((uint64_t *) 0)
19733 if (sizeof (uint64_t))
19739 rm -f conftest.$ac_objext
19740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19741 (eval $ac_compile) 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try='test -s conftest.$ac_objext'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; }; then
19751 ac_cv_type_uint64_t=yes
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 ac_cv_type_uint64_t=no
19758 rm -f conftest.$ac_objext conftest.$ac_ext
19760 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19761 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19762 if test $ac_cv_type_uint64_t = yes; then
19764 cat >>confdefs.h <<_ACEOF
19765 #define HAVE_UINT64_T 1
19770 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19771 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19772 { (exit 1); exit 1; }; }
19775 echo "$as_me:$LINENO: checking for u_int64_t" >&5
19776 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
19777 if test "${ac_cv_type_u_int64_t+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 cat >conftest.$ac_ext <<_ACEOF
19781 #line $LINENO "configure"
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h. */
19787 $ac_includes_default
19791 if ((u_int64_t *) 0)
19793 if (sizeof (u_int64_t))
19799 rm -f conftest.$ac_objext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801 (eval $ac_compile) 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
19805 { ac_try='test -s conftest.$ac_objext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 ac_cv_type_u_int64_t=yes
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 ac_cv_type_u_int64_t=no
19818 rm -f conftest.$ac_objext conftest.$ac_ext
19820 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
19821 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
19822 if test $ac_cv_type_u_int64_t = yes; then
19824 cat >>confdefs.h <<_ACEOF
19825 #define HAVE_U_INT64_T 1
19831 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19832 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19833 if test "${ac_cv_header_time+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 cat >conftest.$ac_ext <<_ACEOF
19837 #line $LINENO "configure"
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h. */
19843 #include <sys/types.h>
19844 #include <sys/time.h>
19850 if ((struct tm *) 0)
19856 rm -f conftest.$ac_objext
19857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19858 (eval $ac_compile) 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } &&
19862 { ac_try='test -s conftest.$ac_objext'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 ac_cv_header_time=yes
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19873 ac_cv_header_time=no
19875 rm -f conftest.$ac_objext conftest.$ac_ext
19877 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19878 echo "${ECHO_T}$ac_cv_header_time" >&6
19879 if test $ac_cv_header_time = yes; then
19881 cat >>confdefs.h <<\_ACEOF
19882 #define TIME_WITH_SYS_TIME 1
19887 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19888 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19889 if test "${ac_cv_struct_tm+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19892 cat >conftest.$ac_ext <<_ACEOF
19893 #line $LINENO "configure"
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19899 #include <sys/types.h>
19905 struct tm *tp; tp->tm_sec;
19910 rm -f conftest.$ac_objext
19911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19912 (eval $ac_compile) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 ac_cv_struct_tm=time.h
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_cv_struct_tm=sys/time.h
19929 rm -f conftest.$ac_objext conftest.$ac_ext
19931 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19932 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19933 if test $ac_cv_struct_tm = sys/time.h; then
19935 cat >>confdefs.h <<\_ACEOF
19936 #define TM_IN_SYS_TIME 1
19943 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
19944 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
19948 ac_cpp='$CPP $CPPFLAGS'
19949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19953 if test "$cross_compiling" = yes; then
19954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19955 See \`config.log' for more details." >&5
19956 echo "$as_me: error: cannot run test program while cross compiling
19957 See \`config.log' for more details." >&2;}
19958 { (exit 1); exit 1; }; }
19960 cat >conftest.$ac_ext <<_ACEOF
19961 #line $LINENO "configure"
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19968 #include <stdlib.h>
19973 volatile double A, B;
19977 sprintf(Buffer, "%a", A);
19981 if (A != 0x1.999999999999ap-4)
19988 rm -f conftest$ac_exeext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990 (eval $ac_link) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
20001 echo "$as_me: program exited with status $ac_status" >&5
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ( exit $ac_status )
20008 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20011 ac_cpp='$CPP $CPPFLAGS'
20012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20016 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20017 echo "${ECHO_T}$ac_c_printf_a" >&6
20018 if test "$ac_c_printf_a" = "yes"; then
20020 cat >>confdefs.h <<\_ACEOF
20021 #define HAVE_PRINTF_A 1
20027 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20028 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20029 if test "${ac_cv_c_bigendian+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 # See if sys/param.h defines the BYTE_ORDER macro.
20033 cat >conftest.$ac_ext <<_ACEOF
20034 #line $LINENO "configure"
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <sys/types.h>
20041 #include <sys/param.h>
20046 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20047 bogus endian macros
20054 rm -f conftest.$ac_objext
20055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20056 (eval $ac_compile) 2>&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
20060 { ac_try='test -s conftest.$ac_objext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 # It does; now see whether it defined to BIG_ENDIAN or not.
20067 cat >conftest.$ac_ext <<_ACEOF
20068 #line $LINENO "configure"
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074 #include <sys/types.h>
20075 #include <sys/param.h>
20080 #if BYTE_ORDER != BIG_ENDIAN
20088 rm -f conftest.$ac_objext
20089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20090 (eval $ac_compile) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } &&
20094 { ac_try='test -s conftest.$ac_objext'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100 ac_cv_c_bigendian=yes
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20105 ac_cv_c_bigendian=no
20107 rm -f conftest.$ac_objext conftest.$ac_ext
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112 # It does not; compile a test program.
20113 if test "$cross_compiling" = yes; then
20114 # try to guess the endianness by grepping values into an object file
20115 ac_cv_c_bigendian=unknown
20116 cat >conftest.$ac_ext <<_ACEOF
20117 #line $LINENO "configure"
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20124 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20125 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20126 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20127 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20128 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20132 _ascii (); _ebcdic ();
20137 rm -f conftest.$ac_objext
20138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20139 (eval $ac_compile) 2>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } &&
20143 { ac_try='test -s conftest.$ac_objext'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; }; then
20149 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20150 ac_cv_c_bigendian=yes
20152 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20153 if test "$ac_cv_c_bigendian" = unknown; then
20154 ac_cv_c_bigendian=no
20156 # finding both strings is unlikely to happen, but who knows?
20157 ac_cv_c_bigendian=unknown
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20165 rm -f conftest.$ac_objext conftest.$ac_ext
20167 cat >conftest.$ac_ext <<_ACEOF
20168 #line $LINENO "configure"
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20177 /* Are we little or big endian? From Harbison&Steele. */
20181 char c[sizeof (long)];
20184 exit (u.c[sizeof (long) - 1] == 1);
20187 rm -f conftest$ac_exeext
20188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20189 (eval $ac_link) 2>&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; }; then
20198 ac_cv_c_bigendian=no
20200 echo "$as_me: program exited with status $ac_status" >&5
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 ( exit $ac_status )
20205 ac_cv_c_bigendian=yes
20207 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20210 rm -f conftest.$ac_objext conftest.$ac_ext
20212 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20213 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20214 case $ac_cv_c_bigendian in
20222 { { echo "$as_me:$LINENO: error: unknown endianness
20223 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20224 echo "$as_me: error: unknown endianness
20225 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20226 { (exit 1); exit 1; }; } ;;
20230 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20231 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20232 if test "${ac_cv_cxx_namespaces+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 ac_cpp='$CXXCPP $CPPFLAGS'
20239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20243 cat >conftest.$ac_ext <<_ACEOF
20244 #line $LINENO "configure"
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20250 namespace Outer { namespace Inner { int i = 0; }}
20254 using namespace Outer::Inner; return i;
20259 rm -f conftest.$ac_objext
20260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20261 (eval $ac_compile) 2>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } &&
20265 { ac_try='test -s conftest.$ac_objext'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
20271 ac_cv_cxx_namespaces=yes
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ac_cv_cxx_namespaces=no
20278 rm -f conftest.$ac_objext conftest.$ac_ext
20280 ac_cpp='$CPP $CPPFLAGS'
20281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20287 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20288 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20289 if test "$ac_cv_cxx_namespaces" = yes; then
20291 cat >>confdefs.h <<\_ACEOF
20292 #define HAVE_NAMESPACES
20297 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20298 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20299 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 ac_cpp='$CXXCPP $CPPFLAGS'
20307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20311 cat >conftest.$ac_ext <<_ACEOF
20312 #line $LINENO "configure"
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 #include <ext/hash_map>
20319 #ifdef HAVE_NAMESPACES
20320 using namespace std;
20325 hash_map<int, int> t;
20330 rm -f conftest.$ac_objext
20331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332 (eval $ac_compile) 2>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
20336 { ac_try='test -s conftest.$ac_objext'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; }; then
20342 ac_cv_cxx_have_std_ext_hash_map=yes
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ac_cv_cxx_have_std_ext_hash_map=no
20349 rm -f conftest.$ac_objext conftest.$ac_ext
20351 ac_cpp='$CPP $CPPFLAGS'
20352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20357 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20358 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20359 HAVE_STD_EXT_HASH_MAP=0
20360 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20362 HAVE_STD_EXT_HASH_MAP=1
20365 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20366 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20367 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 ac_cpp='$CXXCPP $CPPFLAGS'
20375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20379 cat >conftest.$ac_ext <<_ACEOF
20380 #line $LINENO "configure"
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20386 #include <ext/hash_map>
20387 #ifdef HAVE_NAMESPACES
20388 using namespace __gnu_cxx;
20393 hash_map<int,int> t;
20398 rm -f conftest.$ac_objext
20399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20400 (eval $ac_compile) 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -s conftest.$ac_objext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_cv_cxx_have_gnu_ext_hash_map=yes
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20415 ac_cv_cxx_have_gnu_ext_hash_map=no
20417 rm -f conftest.$ac_objext conftest.$ac_ext
20419 ac_cpp='$CPP $CPPFLAGS'
20420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20425 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20426 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20427 HAVE_GNU_EXT_HASH_MAP=0
20428 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20430 HAVE_GNU_EXT_HASH_MAP=1
20433 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20434 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20435 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 ac_cpp='$CXXCPP $CPPFLAGS'
20443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20447 cat >conftest.$ac_ext <<_ACEOF
20448 #line $LINENO "configure"
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20454 #include <hash_map>
20458 hash_map<int,int> t;
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465 (eval $ac_compile) 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try='test -s conftest.$ac_objext'
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_cv_cxx_have_global_hash_map=yes
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_cv_cxx_have_global_hash_map=no
20482 rm -f conftest.$ac_objext conftest.$ac_ext
20484 ac_cpp='$CPP $CPPFLAGS'
20485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20490 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20491 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20492 HAVE_GLOBAL_HASH_MAP=0
20493 if test "$ac_cv_cxx_have_global_hash_map" = yes
20495 HAVE_GLOBAL_HASH_MAP=1
20498 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20499 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20500 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 ac_cpp='$CXXCPP $CPPFLAGS'
20508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20512 cat >conftest.$ac_ext <<_ACEOF
20513 #line $LINENO "configure"
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 #include <ext/hash_set>
20520 #ifdef HAVE_NAMESPACES
20521 using namespace std;
20531 rm -f conftest.$ac_objext
20532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20533 (eval $ac_compile) 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } &&
20537 { ac_try='test -s conftest.$ac_objext'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 ac_cv_cxx_have_std_ext_hash_set=yes
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20548 ac_cv_cxx_have_std_ext_hash_set=no
20550 rm -f conftest.$ac_objext conftest.$ac_ext
20552 ac_cpp='$CPP $CPPFLAGS'
20553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20559 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20560 HAVE_STD_EXT_HASH_SET=0
20561 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20563 HAVE_STD_EXT_HASH_SET=1
20566 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20567 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20568 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 ac_cpp='$CXXCPP $CPPFLAGS'
20576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20580 cat >conftest.$ac_ext <<_ACEOF
20581 #line $LINENO "configure"
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20587 #include <ext/hash_set>
20588 #ifdef HAVE_NAMESPACES
20589 using namespace __gnu_cxx;
20599 rm -f conftest.$ac_objext
20600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20601 (eval $ac_compile) 2>&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
20605 { ac_try='test -s conftest.$ac_objext'
20606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607 (eval $ac_try) 2>&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; }; then
20611 ac_cv_cxx_have_gnu_ext_hash_set=yes
20613 echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20616 ac_cv_cxx_have_gnu_ext_hash_set=no
20618 rm -f conftest.$ac_objext conftest.$ac_ext
20620 ac_cpp='$CPP $CPPFLAGS'
20621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20626 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20627 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20628 HAVE_GNU_EXT_HASH_SET=0
20629 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20631 HAVE_GNU_EXT_HASH_SET=1
20634 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20635 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20636 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20643 ac_cpp='$CXXCPP $CPPFLAGS'
20644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20648 cat >conftest.$ac_ext <<_ACEOF
20649 #line $LINENO "configure"
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20655 #include <hash_set>
20659 hash_set<int> t; return 0;
20664 rm -f conftest.$ac_objext
20665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20666 (eval $ac_compile) 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -s conftest.$ac_objext'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
20676 ac_cv_cxx_have_global_hash_set=yes
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20681 ac_cv_cxx_have_global_hash_set=no
20683 rm -f conftest.$ac_objext conftest.$ac_ext
20685 ac_cpp='$CPP $CPPFLAGS'
20686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20691 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20692 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20693 HAVE_GLOBAL_HASH_SET=0
20694 if test "$ac_cv_cxx_have_global_hash_set" = yes
20696 HAVE_GLOBAL_HASH_SET=1
20699 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20700 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20701 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 ac_cpp='$CXXCPP $CPPFLAGS'
20709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20713 cat >conftest.$ac_ext <<_ACEOF
20714 #line $LINENO "configure"
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 #include <iterator>
20721 #ifdef HAVE_NAMESPACES
20722 using namespace std;
20727 iterator<int,int,int> t; return 0;
20732 rm -f conftest.$ac_objext
20733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734 (eval $ac_compile) 2>&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
20738 { ac_try='test -s conftest.$ac_objext'
20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740 (eval $ac_try) 2>&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; }; then
20744 ac_cv_cxx_have_std_iterator=yes
20746 echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20749 ac_cv_cxx_have_std_iterator=no
20751 rm -f conftest.$ac_objext conftest.$ac_ext
20753 ac_cpp='$CPP $CPPFLAGS'
20754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20760 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20761 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20762 HAVE_STD_ITERATOR=0
20763 if test "$ac_cv_cxx_have_std_iterator" = yes
20765 HAVE_STD_ITERATOR=1
20768 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20769 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20770 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20777 ac_cpp='$CXXCPP $CPPFLAGS'
20778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20782 cat >conftest.$ac_ext <<_ACEOF
20783 #line $LINENO "configure"
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20789 #include <iterator>
20790 #ifdef HAVE_NAMESPACES
20791 using namespace std;
20796 bidirectional_iterator<int,int> t; return 0;
20801 rm -f conftest.$ac_objext
20802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20803 (eval $ac_compile) 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
20807 { ac_try='test -s conftest.$ac_objext'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 ac_cv_cxx_have_bi_iterator=yes
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ac_cv_cxx_have_bi_iterator=no
20820 rm -f conftest.$ac_objext conftest.$ac_ext
20822 ac_cpp='$CPP $CPPFLAGS'
20823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20829 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20830 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20832 if test "$ac_cv_cxx_have_bi_iterator" = yes
20837 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20838 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20839 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 ac_cpp='$CXXCPP $CPPFLAGS'
20847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20851 cat >conftest.$ac_ext <<_ACEOF
20852 #line $LINENO "configure"
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 #include <iterator>
20859 #ifdef HAVE_NAMESPACES
20860 using namespace std;
20865 forward_iterator<int,int> t; return 0;
20870 rm -f conftest.$ac_objext
20871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20872 (eval $ac_compile) 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } &&
20876 { ac_try='test -s conftest.$ac_objext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 ac_cv_cxx_have_fwd_iterator=yes
20884 echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20887 ac_cv_cxx_have_fwd_iterator=no
20889 rm -f conftest.$ac_objext conftest.$ac_ext
20891 ac_cpp='$CPP $CPPFLAGS'
20892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20898 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20899 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20900 HAVE_FWD_ITERATOR=0
20901 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20903 HAVE_FWD_ITERATOR=1
20908 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20909 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20910 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20914 ac_cpp='$CXXCPP $CPPFLAGS'
20915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20919 cat >conftest.$ac_ext <<_ACEOF
20920 #line $LINENO "configure"
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20927 int foo(float f) {return isnan(f);}
20929 rm -f conftest.$ac_objext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931 (eval $ac_compile) 2>&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } &&
20935 { ac_try='test -s conftest.$ac_objext'
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; }; then
20941 ac_cv_func_isnan_in_math_h=yes
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20946 ac_cv_func_isnan_in_math_h=no
20948 rm -f conftest.$ac_objext conftest.$ac_ext
20950 ac_cpp='$CPP $CPPFLAGS'
20951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20956 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20957 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20958 if test "$ac_cv_func_isnan_in_math_h" = "yes"
20961 cat >>confdefs.h <<\_ACEOF
20962 #define HAVE_ISNAN_IN_MATH_H 1
20966 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20967 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20968 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20972 ac_cpp='$CXXCPP $CPPFLAGS'
20973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20977 cat >conftest.$ac_ext <<_ACEOF
20978 #line $LINENO "configure"
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20985 int foo(float f) {return isnan(f);}
20987 rm -f conftest.$ac_objext
20988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20989 (eval $ac_compile) 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try='test -s conftest.$ac_objext'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
20999 ac_cv_func_isnan_in_cmath=yes
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 ac_cv_func_isnan_in_cmath=no
21006 rm -f conftest.$ac_objext conftest.$ac_ext
21008 ac_cpp='$CPP $CPPFLAGS'
21009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21015 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21016 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21019 cat >>confdefs.h <<\_ACEOF
21020 #define HAVE_ISNAN_IN_CMATH 1
21024 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21025 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21026 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 ac_cpp='$CXXCPP $CPPFLAGS'
21031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21035 cat >conftest.$ac_ext <<_ACEOF
21036 #line $LINENO "configure"
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21043 using std::isnan; int foo(float f) {return isnan(f);}
21045 rm -f conftest.$ac_objext
21046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21047 (eval $ac_compile) 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 { ac_try='test -s conftest.$ac_objext'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_cv_func_std_isnan_in_cmath=yes
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21062 ac_cv_func_std_isnan_in_cmath=no
21064 rm -f conftest.$ac_objext conftest.$ac_ext
21066 ac_cpp='$CPP $CPPFLAGS'
21067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21072 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21073 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21074 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21077 cat >>confdefs.h <<\_ACEOF
21078 #define HAVE_STD_ISNAN_IN_CMATH 1
21084 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21085 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21086 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21090 ac_cpp='$CXXCPP $CPPFLAGS'
21091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21095 cat >conftest.$ac_ext <<_ACEOF
21096 #line $LINENO "configure"
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21103 int foo(float f) {return isinf(f);}
21105 rm -f conftest.$ac_objext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21107 (eval $ac_compile) 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } &&
21111 { ac_try='test -s conftest.$ac_objext'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; }; then
21117 ac_cv_func_isinf_in_math_h=yes
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_cv_func_isinf_in_math_h=no
21124 rm -f conftest.$ac_objext conftest.$ac_ext
21126 ac_cpp='$CPP $CPPFLAGS'
21127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21132 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21133 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21134 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21137 cat >>confdefs.h <<\_ACEOF
21138 #define HAVE_ISINF_IN_MATH_H 1
21142 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21143 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21144 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21148 ac_cpp='$CXXCPP $CPPFLAGS'
21149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21153 cat >conftest.$ac_ext <<_ACEOF
21154 #line $LINENO "configure"
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21161 int foo(float f) {return isinf(f);}
21163 rm -f conftest.$ac_objext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21165 (eval $ac_compile) 2>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } &&
21169 { ac_try='test -s conftest.$ac_objext'
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; }; then
21175 ac_cv_func_isinf_in_cmath=yes
21177 echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21180 ac_cv_func_isinf_in_cmath=no
21182 rm -f conftest.$ac_objext conftest.$ac_ext
21184 ac_cpp='$CPP $CPPFLAGS'
21185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21190 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21191 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21192 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21195 cat >>confdefs.h <<\_ACEOF
21196 #define HAVE_ISINF_IN_CMATH 1
21200 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21201 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21202 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 ac_cpp='$CXXCPP $CPPFLAGS'
21207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21211 cat >conftest.$ac_ext <<_ACEOF
21212 #line $LINENO "configure"
21215 cat confdefs.h >>conftest.$ac_ext
21216 cat >>conftest.$ac_ext <<_ACEOF
21217 /* end confdefs.h. */
21219 using std::isinf; int foo(float f) {return isinf(f);}
21221 rm -f conftest.$ac_objext
21222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21223 (eval $ac_compile) 2>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } &&
21227 { ac_try='test -s conftest.$ac_objext'
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 ac_cv_func_std_isinf_in_cmath=yes
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238 ac_cv_func_std_isinf_in_cmath=no
21240 rm -f conftest.$ac_objext conftest.$ac_ext
21242 ac_cpp='$CPP $CPPFLAGS'
21243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21248 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21249 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21250 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_STD_ISINF_IN_CMATH 1
21258 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21259 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21260 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 ac_cpp='$CXXCPP $CPPFLAGS'
21265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21269 cat >conftest.$ac_ext <<_ACEOF
21270 #line $LINENO "configure"
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21276 #include <ieeefp.h>
21277 int foo(float f) {return finite(f);}
21279 rm -f conftest.$ac_objext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21281 (eval $ac_compile) 2>&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
21285 { ac_try='test -s conftest.$ac_objext'
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; }; then
21291 ac_cv_func_finite_in_ieeefp_h=yes
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21296 ac_cv_func_finite_in_ieeefp_h=no
21298 rm -f conftest.$ac_objext conftest.$ac_ext
21300 ac_cpp='$CPP $CPPFLAGS'
21301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21306 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21307 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21308 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21311 cat >>confdefs.h <<\_ACEOF
21312 #define HAVE_FINITE_IN_IEEEFP_H 1
21318 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21319 # for constant arguments. Useless!
21320 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21321 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21322 if test "${ac_cv_working_alloca_h+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 cat >conftest.$ac_ext <<_ACEOF
21326 #line $LINENO "configure"
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 #include <alloca.h>
21336 char *p = (char *) alloca (2 * sizeof (int));
21341 rm -f conftest.$ac_objext conftest$ac_exeext
21342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21343 (eval $ac_link) 2>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } &&
21347 { ac_try='test -s conftest$ac_exeext'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; }; then
21353 ac_cv_working_alloca_h=yes
21355 echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21358 ac_cv_working_alloca_h=no
21360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21362 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21363 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21364 if test $ac_cv_working_alloca_h = yes; then
21366 cat >>confdefs.h <<\_ACEOF
21367 #define HAVE_ALLOCA_H 1
21372 echo "$as_me:$LINENO: checking for alloca" >&5
21373 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21374 if test "${ac_cv_func_alloca_works+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 cat >conftest.$ac_ext <<_ACEOF
21378 #line $LINENO "configure"
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21385 # define alloca __builtin_alloca
21388 # include <malloc.h>
21389 # define alloca _alloca
21392 # include <alloca.h>
21397 # ifndef alloca /* predefined by HP cc +Olibcalls */
21408 char *p = (char *) alloca (1);
21413 rm -f conftest.$ac_objext conftest$ac_exeext
21414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415 (eval $ac_link) 2>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } &&
21419 { ac_try='test -s conftest$ac_exeext'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
21425 ac_cv_func_alloca_works=yes
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21430 ac_cv_func_alloca_works=no
21432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21434 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21435 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21437 if test $ac_cv_func_alloca_works = yes; then
21439 cat >>confdefs.h <<\_ACEOF
21440 #define HAVE_ALLOCA 1
21444 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21445 # that cause trouble. Some versions do not even contain alloca or
21446 # contain a buggy version. If you still want to use their alloca,
21447 # use ar to extract alloca.o from them instead of compiling alloca.c.
21449 ALLOCA=alloca.$ac_objext
21451 cat >>confdefs.h <<\_ACEOF
21456 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21457 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21458 if test "${ac_cv_os_cray+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21461 cat >conftest.$ac_ext <<_ACEOF
21462 #line $LINENO "configure"
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #if defined(CRAY) && ! defined(CRAY2)
21475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21476 $EGREP "webecray" >/dev/null 2>&1; then
21484 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21485 echo "${ECHO_T}$ac_cv_os_cray" >&6
21486 if test $ac_cv_os_cray = yes; then
21487 for ac_func in _getb67 GETB67 getb67; do
21488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21489 echo "$as_me:$LINENO: checking for $ac_func" >&5
21490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21491 if eval "test \"\${$as_ac_var+set}\" = set"; then
21492 echo $ECHO_N "(cached) $ECHO_C" >&6
21494 cat >conftest.$ac_ext <<_ACEOF
21495 #line $LINENO "configure"
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 /* System header to define __stub macros and hopefully few prototypes,
21502 which can conflict with char $ac_func (); below.
21503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21504 <limits.h> exists even on freestanding compilers. */
21506 # include <limits.h>
21508 # include <assert.h>
21510 /* Override any gcc2 internal prototype to avoid an error. */
21515 /* We use char because int might match the return type of a gcc2
21516 builtin and then its argument prototype would still apply. */
21518 /* The GNU C library defines this for functions which it implements
21519 to always fail with ENOSYS. Some functions are actually named
21520 something starting with __ and the normal name is an alias. */
21521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21524 char (*f) () = $ac_func;
21533 return f != $ac_func;
21538 rm -f conftest.$ac_objext conftest$ac_exeext
21539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21540 (eval $ac_link) 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } &&
21544 { ac_try='test -s conftest$ac_exeext'
21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546 (eval $ac_try) 2>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 eval "$as_ac_var=yes"
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21555 eval "$as_ac_var=no"
21557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21561 if test `eval echo '${'$as_ac_var'}'` = yes; then
21563 cat >>confdefs.h <<_ACEOF
21564 #define CRAY_STACKSEG_END $ac_func
21573 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21574 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21575 if test "${ac_cv_c_stack_direction+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 if test "$cross_compiling" = yes; then
21579 ac_cv_c_stack_direction=0
21581 cat >conftest.$ac_ext <<_ACEOF
21582 #line $LINENO "configure"
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21589 find_stack_direction ()
21591 static char *addr = 0;
21596 return find_stack_direction ();
21599 return (&dummy > addr) ? 1 : -1;
21605 exit (find_stack_direction () < 0);
21608 rm -f conftest$ac_exeext
21609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21610 (eval $ac_link) 2>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615 (eval $ac_try) 2>&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); }; }; then
21619 ac_cv_c_stack_direction=1
21621 echo "$as_me: program exited with status $ac_status" >&5
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21625 ( exit $ac_status )
21626 ac_cv_c_stack_direction=-1
21628 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21631 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21632 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21634 cat >>confdefs.h <<_ACEOF
21635 #define STACK_DIRECTION $ac_cv_c_stack_direction
21643 for ac_header in stdlib.h unistd.h
21645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21647 echo "$as_me:$LINENO: checking for $ac_header" >&5
21648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21655 # Is the header compilable?
21656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21658 cat >conftest.$ac_ext <<_ACEOF
21659 #line $LINENO "configure"
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 $ac_includes_default
21666 #include <$ac_header>
21668 rm -f conftest.$ac_objext
21669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21670 (eval $ac_compile) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } &&
21674 { ac_try='test -s conftest.$ac_objext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_header_compiler=yes
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 ac_header_compiler=no
21687 rm -f conftest.$ac_objext conftest.$ac_ext
21688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21689 echo "${ECHO_T}$ac_header_compiler" >&6
21691 # Is the header present?
21692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21694 cat >conftest.$ac_ext <<_ACEOF
21695 #line $LINENO "configure"
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21701 #include <$ac_header>
21703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21706 grep -v '^ *+' conftest.er1 >conftest.err
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } >/dev/null; then
21711 if test -s conftest.err; then
21712 ac_cpp_err=$ac_c_preproc_warn_flag
21719 if test -z "$ac_cpp_err"; then
21720 ac_header_preproc=yes
21722 echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21725 ac_header_preproc=no
21727 rm -f conftest.err conftest.$ac_ext
21728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21729 echo "${ECHO_T}$ac_header_preproc" >&6
21731 # So? What about this header?
21732 case $ac_header_compiler:$ac_header_preproc in
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21740 ## ------------------------------------ ##
21741 ## Report this to bug-autoconf@gnu.org. ##
21742 ## ------------------------------------ ##
21745 sed "s/^/$as_me: WARNING: /" >&2
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21756 ## ------------------------------------ ##
21757 ## Report this to bug-autoconf@gnu.org. ##
21758 ## ------------------------------------ ##
21761 sed "s/^/$as_me: WARNING: /" >&2
21764 echo "$as_me:$LINENO: checking for $ac_header" >&5
21765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21767 echo $ECHO_N "(cached) $ECHO_C" >&6
21769 eval "$as_ac_Header=$ac_header_preproc"
21771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21776 cat >>confdefs.h <<_ACEOF
21777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21785 for ac_func in getpagesize
21787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21788 echo "$as_me:$LINENO: checking for $ac_func" >&5
21789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21790 if eval "test \"\${$as_ac_var+set}\" = set"; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21793 cat >conftest.$ac_ext <<_ACEOF
21794 #line $LINENO "configure"
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 /* System header to define __stub macros and hopefully few prototypes,
21801 which can conflict with char $ac_func (); below.
21802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21803 <limits.h> exists even on freestanding compilers. */
21805 # include <limits.h>
21807 # include <assert.h>
21809 /* Override any gcc2 internal prototype to avoid an error. */
21814 /* We use char because int might match the return type of a gcc2
21815 builtin and then its argument prototype would still apply. */
21817 /* The GNU C library defines this for functions which it implements
21818 to always fail with ENOSYS. Some functions are actually named
21819 something starting with __ and the normal name is an alias. */
21820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21823 char (*f) () = $ac_func;
21832 return f != $ac_func;
21837 rm -f conftest.$ac_objext conftest$ac_exeext
21838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21839 (eval $ac_link) 2>&5
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } &&
21843 { ac_try='test -s conftest$ac_exeext'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }; then
21849 eval "$as_ac_var=yes"
21851 echo "$as_me: failed program was:" >&5
21852 sed 's/^/| /' conftest.$ac_ext >&5
21854 eval "$as_ac_var=no"
21856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21860 if test `eval echo '${'$as_ac_var'}'` = yes; then
21861 cat >>confdefs.h <<_ACEOF
21862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21868 echo "$as_me:$LINENO: checking for working mmap" >&5
21869 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21870 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21873 if test "$cross_compiling" = yes; then
21874 ac_cv_func_mmap_fixed_mapped=no
21876 cat >conftest.$ac_ext <<_ACEOF
21877 #line $LINENO "configure"
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h. */
21883 $ac_includes_default
21884 /* malloc might have been renamed as rpl_malloc. */
21887 /* Thanks to Mike Haertel and Jim Avera for this test.
21888 Here is a matrix of mmap possibilities:
21889 mmap private not fixed
21890 mmap private fixed at somewhere currently unmapped
21891 mmap private fixed at somewhere already mapped
21892 mmap shared not fixed
21893 mmap shared fixed at somewhere currently unmapped
21894 mmap shared fixed at somewhere already mapped
21895 For private mappings, we should verify that changes cannot be read()
21896 back from the file, nor mmap's back from the file at a different
21897 address. (There have been systems where private was not correctly
21898 implemented like the infamous i386 svr4.0, and systems where the
21899 VM page cache was not coherent with the file system buffer cache
21900 like early versions of FreeBSD and possibly contemporary NetBSD.)
21901 For shared mappings, we should conversely verify that changes get
21902 propagated back to all the places they're supposed to be.
21904 Grep wants private fixed already mapped.
21905 The main things grep needs to know about mmap are:
21906 * does it exist and is it safe to write into the mmap'd area
21907 * how to use it (BSD variants) */
21910 #include <sys/mman.h>
21912 #if !STDC_HEADERS && !HAVE_STDLIB_H
21916 /* This mess was copied from the GNU getpagesize.h. */
21917 #if !HAVE_GETPAGESIZE
21918 /* Assume that all systems that can run configure have sys/param.h. */
21919 # if !HAVE_SYS_PARAM_H
21920 # define HAVE_SYS_PARAM_H 1
21923 # ifdef _SC_PAGESIZE
21924 # define getpagesize() sysconf(_SC_PAGESIZE)
21925 # else /* no _SC_PAGESIZE */
21926 # if HAVE_SYS_PARAM_H
21927 # include <sys/param.h>
21928 # ifdef EXEC_PAGESIZE
21929 # define getpagesize() EXEC_PAGESIZE
21930 # else /* no EXEC_PAGESIZE */
21932 # define getpagesize() NBPG * CLSIZE
21935 # endif /* no CLSIZE */
21936 # else /* no NBPG */
21938 # define getpagesize() NBPC
21939 # else /* no NBPC */
21941 # define getpagesize() PAGESIZE
21942 # endif /* PAGESIZE */
21943 # endif /* no NBPC */
21944 # endif /* no NBPG */
21945 # endif /* no EXEC_PAGESIZE */
21946 # else /* no HAVE_SYS_PARAM_H */
21947 # define getpagesize() 8192 /* punt totally */
21948 # endif /* no HAVE_SYS_PARAM_H */
21949 # endif /* no _SC_PAGESIZE */
21951 #endif /* no HAVE_GETPAGESIZE */
21956 char *data, *data2, *data3;
21960 pagesize = getpagesize ();
21962 /* First, make a file with some known garbage in it. */
21963 data = (char *) malloc (pagesize);
21966 for (i = 0; i < pagesize; ++i)
21967 *(data + i) = rand ();
21969 fd = creat ("conftest.mmap", 0600);
21972 if (write (fd, data, pagesize) != pagesize)
21976 /* Next, try to mmap the file at a fixed address which already has
21977 something else allocated at it. If we can, also make sure that
21978 we see the same garbage. */
21979 fd = open ("conftest.mmap", O_RDWR);
21982 data2 = (char *) malloc (2 * pagesize);
21985 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21986 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21987 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21989 for (i = 0; i < pagesize; ++i)
21990 if (*(data + i) != *(data2 + i))
21993 /* Finally, make sure that changes to the mapped area do not
21994 percolate back to the file as seen by read(). (This is a bug on
21995 some variants of i386 svr4.0.) */
21996 for (i = 0; i < pagesize; ++i)
21997 *(data2 + i) = *(data2 + i) + 1;
21998 data3 = (char *) malloc (pagesize);
22001 if (read (fd, data3, pagesize) != pagesize)
22003 for (i = 0; i < pagesize; ++i)
22004 if (*(data + i) != *(data3 + i))
22010 rm -f conftest$ac_exeext
22011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22012 (eval $ac_link) 2>&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ac_cv_func_mmap_fixed_mapped=yes
22023 echo "$as_me: program exited with status $ac_status" >&5
22024 echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22027 ( exit $ac_status )
22028 ac_cv_func_mmap_fixed_mapped=no
22030 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22033 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22034 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22035 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22037 cat >>confdefs.h <<\_ACEOF
22038 #define HAVE_MMAP 1
22042 rm -f conftest.mmap
22044 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22046 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22047 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22049 echo "$as_me:$LINENO: checking for mmap of files" >&5
22050 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22051 if test "${ac_cv_func_mmap_file+set}" = set; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22057 ac_cpp='$CPP $CPPFLAGS'
22058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22062 if test "$cross_compiling" = yes; then
22063 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22064 See \`config.log' for more details." >&5
22065 echo "$as_me: error: cannot run test program while cross compiling
22066 See \`config.log' for more details." >&2;}
22067 { (exit 1); exit 1; }; }
22069 cat >conftest.$ac_ext <<_ACEOF
22070 #line $LINENO "configure"
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22077 #ifdef HAVE_SYS_TYPES_H
22078 #include <sys/types.h>
22081 #ifdef HAVE_SYS_MMAN_H
22082 #include <sys/mman.h>
22085 #ifdef HAVE_FCNTL_H
22091 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22093 rm -f conftest$ac_exeext
22094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22095 (eval $ac_link) 2>&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 ac_cv_func_mmap_file=yes
22106 echo "$as_me: program exited with status $ac_status" >&5
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22110 ( exit $ac_status )
22111 ac_cv_func_mmap_file=no
22113 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22116 ac_cpp='$CPP $CPPFLAGS'
22117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22123 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22124 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22125 if test "$ac_cv_func_mmap_file" = yes; then
22127 cat >>confdefs.h <<\_ACEOF
22128 #define HAVE_MMAP_FILE
22135 if test "$ac_cv_func_mmap_file" = "no"
22137 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22138 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22140 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22141 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22142 if test "${ac_cv_header_mmap_anon+set}" = set; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22148 ac_cpp='$CPP $CPPFLAGS'
22149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22153 cat >conftest.$ac_ext <<_ACEOF
22154 #line $LINENO "configure"
22157 cat confdefs.h >>conftest.$ac_ext
22158 cat >>conftest.$ac_ext <<_ACEOF
22159 /* end confdefs.h. */
22160 #include <sys/mman.h>
22161 #include <unistd.h>
22166 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22171 rm -f conftest.$ac_objext
22172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22173 (eval $ac_compile) 2>&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } &&
22177 { ac_try='test -s conftest.$ac_objext'
22178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179 (eval $ac_try) 2>&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; }; then
22183 ac_cv_header_mmap_anon=yes
22185 echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22188 ac_cv_header_mmap_anon=no
22190 rm -f conftest.$ac_objext conftest.$ac_ext
22192 ac_cpp='$CPP $CPPFLAGS'
22193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22199 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22200 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22201 if test "$ac_cv_header_mmap_anon" = yes; then
22203 cat >>confdefs.h <<\_ACEOF
22204 #define HAVE_MMAP_ANONYMOUS
22209 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22210 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22211 if test "${ac_cv_type_signal+set}" = set; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22214 cat >conftest.$ac_ext <<_ACEOF
22215 #line $LINENO "configure"
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22221 #include <sys/types.h>
22222 #include <signal.h>
22227 extern "C" void (*signal (int, void (*)(int)))(int);
22229 void (*signal ()) ();
22240 rm -f conftest.$ac_objext
22241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22242 (eval $ac_compile) 2>&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } &&
22246 { ac_try='test -s conftest.$ac_objext'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; }; then
22252 ac_cv_type_signal=void
22254 echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22257 ac_cv_type_signal=int
22259 rm -f conftest.$ac_objext conftest.$ac_ext
22261 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22262 echo "${ECHO_T}$ac_cv_type_signal" >&6
22264 cat >>confdefs.h <<_ACEOF
22265 #define RETSIGTYPE $ac_cv_type_signal
22278 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
22280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22281 echo "$as_me:$LINENO: checking for $ac_func" >&5
22282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22283 if eval "test \"\${$as_ac_var+set}\" = set"; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 cat >conftest.$ac_ext <<_ACEOF
22287 #line $LINENO "configure"
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22293 /* System header to define __stub macros and hopefully few prototypes,
22294 which can conflict with char $ac_func (); below.
22295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22296 <limits.h> exists even on freestanding compilers. */
22298 # include <limits.h>
22300 # include <assert.h>
22302 /* Override any gcc2 internal prototype to avoid an error. */
22307 /* We use char because int might match the return type of a gcc2
22308 builtin and then its argument prototype would still apply. */
22310 /* The GNU C library defines this for functions which it implements
22311 to always fail with ENOSYS. Some functions are actually named
22312 something starting with __ and the normal name is an alias. */
22313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22316 char (*f) () = $ac_func;
22325 return f != $ac_func;
22330 rm -f conftest.$ac_objext conftest$ac_exeext
22331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22332 (eval $ac_link) 2>&5
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } &&
22336 { ac_try='test -s conftest$ac_exeext'
22337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22338 (eval $ac_try) 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; }; then
22342 eval "$as_ac_var=yes"
22344 echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 eval "$as_ac_var=no"
22349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22353 if test `eval echo '${'$as_ac_var'}'` = yes; then
22354 cat >>confdefs.h <<_ACEOF
22355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22361 echo "$as_me:$LINENO: checking for mprotect" >&5
22362 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22363 if test "${ac_cv_func_mprotect+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22366 cat >conftest.$ac_ext <<_ACEOF
22367 #line $LINENO "configure"
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22373 /* System header to define __stub macros and hopefully few prototypes,
22374 which can conflict with char mprotect (); below.
22375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22376 <limits.h> exists even on freestanding compilers. */
22378 # include <limits.h>
22380 # include <assert.h>
22382 /* Override any gcc2 internal prototype to avoid an error. */
22387 /* We use char because int might match the return type of a gcc2
22388 builtin and then its argument prototype would still apply. */
22390 /* The GNU C library defines this for functions which it implements
22391 to always fail with ENOSYS. Some functions are actually named
22392 something starting with __ and the normal name is an alias. */
22393 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22396 char (*f) () = mprotect;
22405 return f != mprotect;
22410 rm -f conftest.$ac_objext conftest$ac_exeext
22411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22412 (eval $ac_link) 2>&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); } &&
22416 { ac_try='test -s conftest$ac_exeext'
22417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22418 (eval $ac_try) 2>&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); }; }; then
22422 ac_cv_func_mprotect=yes
22424 echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22427 ac_cv_func_mprotect=no
22429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22431 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22432 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22433 if test $ac_cv_func_mprotect = yes; then
22436 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22437 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22438 { (exit 1); exit 1; }; }
22443 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
22444 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
22448 ac_cpp='$CPP $CPPFLAGS'
22449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22453 oldcflags="$CFLAGS"
22454 CFLAGS="$CFLAGS -Wl,-R."
22455 cat >conftest.$ac_ext <<_ACEOF
22456 int main() { return 0; }
22458 rm -f conftest.$ac_objext conftest$ac_exeext
22459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22460 (eval $ac_link) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } &&
22464 { ac_try='test -s conftest$ac_exeext'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; }; then
22470 ac_cv_link_use_r=yes
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22475 ac_cv_link_use_r=no
22477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22478 CFLAGS="$oldcflags"
22480 ac_cpp='$CPP $CPPFLAGS'
22481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22485 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
22486 echo "${ECHO_T}$ac_cv_link_use_r" >&6
22487 if test "$ac_cv_link_use_r" = yes
22490 cat >>confdefs.h <<\_ACEOF
22491 #define HAVE_LINK_R 1
22497 # Check whether --enable-optimized or --disable-optimized was given.
22498 if test "${enable_optimized+set}" = set; then
22499 enableval="$enable_optimized"
22504 if test ${enableval} = "no"
22509 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22516 # Check whether --enable-spec95 or --disable-spec95 was given.
22517 if test "${enable_spec95+set}" = set; then
22518 enableval="$enable_spec95"
22519 checkresult=$enableval
22523 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
22524 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
22525 case "$checkresult" in
22527 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
22528 if test -d "$defaultdir"
22530 SPEC95_ROOT=$defaultdir
22532 USE_SPEC95=USE_SPEC95=1
22534 checkresult="yes, found in $defaultdir"
22544 *) if test -d "$checkresult"
22546 SPEC95_ROOT="$checkresult"
22548 USE_SPEC95=USE_SPEC95=1
22550 checkresult="yes, in $checkresult"
22554 checkresult="no, not found in $checkresult"
22558 echo "$as_me:$LINENO: result: $checkresult" >&5
22559 echo "${ECHO_T}$checkresult" >&6
22563 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22564 if test "${enable_spec2000+set}" = set; then
22565 enableval="$enable_spec2000"
22566 checkresult=$enableval
22570 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
22571 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
22572 case "$checkresult" in
22574 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22575 if test -d "$defaultdir"
22577 SPEC2000_ROOT=$defaultdir
22579 USE_SPEC2000=USE_SPEC2000=1
22581 checkresult="yes, found in $defaultdir"
22591 *) if test -d "$checkresult"
22593 SPEC2000_ROOT="$checkresult"
22595 USE_SPEC2000=USE_SPEC2000=1
22597 checkresult="yes, in $checkresult"
22601 checkresult="no, not found in $checkresult"
22605 echo "$as_me:$LINENO: result: $checkresult" >&5
22606 echo "${ECHO_T}$checkresult" >&6
22610 # Check whether --enable-povray or --disable-povray was given.
22611 if test "${enable_povray+set}" = set; then
22612 enableval="$enable_povray"
22613 checkresult=$enableval
22617 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
22618 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
22619 case "$checkresult" in
22621 defaultdir=/home/vadve/shared/benchmarks/povray31
22622 if test -d "$defaultdir"
22624 POVRAY_ROOT=$defaultdir
22626 USE_POVRAY=USE_POVRAY=1
22628 checkresult="yes, found in $defaultdir"
22638 *) if test -d "$checkresult"
22640 POVRAY_ROOT="$checkresult"
22642 USE_POVRAY=USE_POVRAY=1
22644 checkresult="yes, in $checkresult"
22648 checkresult="no, not found in $checkresult"
22652 echo "$as_me:$LINENO: result: $checkresult" >&5
22653 echo "${ECHO_T}$checkresult" >&6
22657 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22658 if test "${enable_precompiled_bytecode+set}" = set; then
22659 enableval="$enable_precompiled_bytecode"
22664 if test ${enableval} = "no"
22669 UPB=USE_PRECOMPILED_BYTECODE=1
22673 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22674 if test "${enable_llc_diffs+set}" = set; then
22675 enableval="$enable_llc_diffs"
22680 if test ${enableval} = "no"
22682 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22689 # Check whether --enable-jit or --disable-jit was given.
22690 if test "${enable_jit+set}" = set; then
22691 enableval="$enable_jit"
22696 if test ${enableval} = "no"
22703 JIT=TARGET_HAS_JIT=1
22707 JIT=TARGET_HAS_JIT=1
22718 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22719 if test "${with_llvmgccdir+set}" = set; then
22720 withval="$with_llvmgccdir"
22721 LLVMGCCDIR=$withval
22724 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22725 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22727 if test -d "$LLVMGCCDIR"
22729 if test -x "$LLVMGCCDIR/bin/gcc"
22731 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22735 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22736 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22737 if test "$LLVM_GCC_CHECK" = "no"
22741 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22742 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22744 if test -x "$LLVM_GCC_CHECK"
22746 cp /dev/null conftest.c
22747 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22753 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22754 LLVMCC1=$llvmcc1path
22756 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22757 LLVMCC1PLUS=$llvmcc1pluspath
22760 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22761 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22762 if test "$LLVM_GCC_SANE" = "no"
22768 # Check whether --with-bcrepos or --without-bcrepos was given.
22769 if test "${with_bcrepos+set}" = set; then
22770 withval="$with_bcrepos"
22774 BCR=/home/vadve/lattner/LLVMPrograms
22779 # Check whether --with-papi or --without-papi was given.
22780 if test "${with_papi+set}" = set; then
22781 withval="$with_papi"
22785 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22789 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22790 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22791 eval "SHLIBEXT=$shrext"
22792 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22793 echo "${ECHO_T}$SHLIBEXT" >&6
22797 cat >>confdefs.h <<_ACEOF
22798 #define SHLIBEXT "$SHLIBEXT"
22802 # Translate the various configuration directories and other basic
22803 # information into substitutions that will end up in config.h.in so
22804 # that these configured values can be hard-wired into a program.
22805 eval LLVM_PREFIX="${prefix}";
22806 eval LLVM_BINDIR="${prefix}/bin";
22807 eval LLVM_LIBDIR="${prefix}/lib";
22808 eval LLVM_DATADIR="${prefix}/data";
22809 eval LLVM_DOCSDIR="${prefix}/docs";
22810 eval LLVM_ETCDIR="${prefix}/etc";
22811 eval LLVM_INCLUDEDIR="${prefix}/include";
22812 eval LLVM_INFODIR="${prefix}/info";
22813 eval LLVM_MANDIR="${prefix}/man";
22814 LLVM_CONFIGTIME=`date`
22826 cat >>confdefs.h <<_ACEOF
22827 #define LLVM_PREFIX "$LLVM_PREFIX"
22831 cat >>confdefs.h <<_ACEOF
22832 #define LLVM_BINDIR "$LLVM_BINDIR"
22836 cat >>confdefs.h <<_ACEOF
22837 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22841 cat >>confdefs.h <<_ACEOF
22842 #define LLVM_DATADIR "$LLVM_DATADIR"
22846 cat >>confdefs.h <<_ACEOF
22847 #define LLVM_DATADIR "$LLVM_DOCSDIR"
22851 cat >>confdefs.h <<_ACEOF
22852 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22856 cat >>confdefs.h <<_ACEOF
22857 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22861 cat >>confdefs.h <<_ACEOF
22862 #define LLVM_INFODIR "$LLVM_INFODIR"
22866 cat >>confdefs.h <<_ACEOF
22867 #define LLVM_MANDIR "$LLVM_MANDIR"
22871 cat >>confdefs.h <<_ACEOF
22872 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22876 cat >confcache <<\_ACEOF
22877 # This file is a shell script that caches the results of configure
22878 # tests run on this system so they can be shared between configure
22879 # scripts and configure runs, see configure's option --config-cache.
22880 # It is not useful on other systems. If it contains results you don't
22881 # want to keep, you may remove or edit it.
22883 # config.status only pays attention to the cache file if you give it
22884 # the --recheck option to rerun configure.
22886 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22887 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22888 # following values.
22892 # The following way of writing the cache mishandles newlines in values,
22893 # but we know of no workaround that is simple, portable, and efficient.
22894 # So, don't put newlines in cache variables' values.
22895 # Ultrix sh set writes to stderr and can't be redirected directly,
22896 # and sets the high bit in the cache file unless we assign to the vars.
22899 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22901 # `set' does not quote correctly, so add quotes (double-quote
22902 # substitution turns \\\\ into \\, and sed turns \\ into \).
22905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22908 # `set' quotes correctly as required by POSIX, so do not add quotes.
22910 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22919 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22921 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22922 if test -w $cache_file; then
22923 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22924 cat confcache >$cache_file
22926 echo "not updating unwritable cache $cache_file"
22931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22932 # Let make expand exec_prefix.
22933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22935 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22936 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22937 # trailing colons and then remove the whole line if VPATH becomes empty
22938 # (actually we leave an empty line to preserve line numbers).
22939 if test "x$srcdir" = x.; then
22940 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22941 s/:*\$(srcdir):*/:/;
22942 s/:*\${srcdir}:*/:/;
22944 s/^\([^=]*=[ ]*\):*/\1/;
22950 DEFS=-DHAVE_CONFIG_H
22954 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22955 # 1. Remove the extension, and $U if already installed.
22956 ac_i=`echo "$ac_i" |
22957 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22959 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22960 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22962 LIBOBJS=$ac_libobjs
22964 LTLIBOBJS=$ac_ltlibobjs
22968 : ${CONFIG_STATUS=./config.status}
22969 ac_clean_files_save=$ac_clean_files
22970 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22971 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22972 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22973 cat >$CONFIG_STATUS <<_ACEOF
22975 # Generated by $as_me.
22976 # Run this file to recreate the current configuration.
22977 # Compiler output produced by configure, useful for debugging
22978 # configure, is in config.log if it exists.
22981 ac_cs_recheck=false
22983 SHELL=\${CONFIG_SHELL-$SHELL}
22986 cat >>$CONFIG_STATUS <<\_ACEOF
22987 ## --------------------- ##
22988 ## M4sh Initialization. ##
22989 ## --------------------- ##
22991 # Be Bourne compatible
22992 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22995 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22996 # is contrary to our usage. Disable this feature.
22997 alias -g '${1+"$@"}'='"$@"'
22998 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23002 # Support unset when possible.
23003 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23010 # Work around bugs in pre-3.0 UWIN ksh.
23011 $as_unset ENV MAIL MAILPATH
23018 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23019 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23020 LC_TELEPHONE LC_TIME
23022 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23023 eval $as_var=C; export $as_var
23029 # Required to use basename.
23030 if expr a : '\(a\)' >/dev/null 2>&1; then
23036 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23037 as_basename=basename
23043 # Name of the executable.
23044 as_me=`$as_basename "$0" ||
23045 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23046 X"$0" : 'X\(//\)$' \| \
23047 X"$0" : 'X\(/\)$' \| \
23048 . : '\(.\)' 2>/dev/null ||
23050 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23051 /^X\/\(\/\/\)$/{ s//\1/; q; }
23052 /^X\/\(\/\).*/{ s//\1/; q; }
23056 # PATH needs CR, and LINENO needs CR and PATH.
23057 # Avoid depending upon Character Ranges.
23058 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23059 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23060 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23061 as_cr_digits='0123456789'
23062 as_cr_alnum=$as_cr_Letters$as_cr_digits
23064 # The user is always right.
23065 if test "${PATH_SEPARATOR+set}" != set; then
23066 echo "#! /bin/sh" >conf$$.sh
23067 echo "exit 0" >>conf$$.sh
23069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23078 as_lineno_1=$LINENO
23079 as_lineno_2=$LINENO
23080 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23081 test "x$as_lineno_1" != "x$as_lineno_2" &&
23082 test "x$as_lineno_3" = "x$as_lineno_2" || {
23083 # Find who we are. Look in the path if we contain no path at all
23086 *[\\/]* ) as_myself=$0 ;;
23087 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23088 for as_dir in $PATH
23091 test -z "$as_dir" && as_dir=.
23092 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23097 # We did not find ourselves, most probably we were run as `sh COMMAND'
23098 # in which case we are not to be found in the path.
23099 if test "x$as_myself" = x; then
23102 if test ! -f "$as_myself"; then
23103 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23104 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23105 { (exit 1); exit 1; }; }
23107 case $CONFIG_SHELL in
23109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23110 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23113 test -z "$as_dir" && as_dir=.
23114 for as_base in sh bash ksh sh5; do
23117 if ("$as_dir/$as_base" -c '
23118 as_lineno_1=$LINENO
23119 as_lineno_2=$LINENO
23120 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23121 test "x$as_lineno_1" != "x$as_lineno_2" &&
23122 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23123 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23124 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23125 CONFIG_SHELL=$as_dir/$as_base
23126 export CONFIG_SHELL
23127 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23135 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23136 # uniformly replaced by the line number. The first 'sed' inserts a
23137 # line-number line before each line; the second 'sed' does the real
23138 # work. The second script uses 'N' to pair each line-number line
23139 # with the numbered line, and appends trailing '-' during
23140 # substitution so that $LINENO is not a special case at line end.
23141 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23142 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23143 sed '=' <$as_myself |
23148 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23151 s,^['$as_cr_digits']*\n,,
23152 ' >$as_me.lineno &&
23153 chmod +x $as_me.lineno ||
23154 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23155 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23156 { (exit 1); exit 1; }; }
23158 # Don't try to exec as it changes $[0], causing all sort of problems
23159 # (the dirname of $[0] is not the place where we might find the
23160 # original and so on. Autoconf is especially sensible to this).
23162 # Exit status is that of the last command.
23167 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23168 *c*,-n*) ECHO_N= ECHO_C='
23170 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23171 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23174 if expr a : '\(a\)' >/dev/null 2>&1; then
23180 rm -f conf$$ conf$$.exe conf$$.file
23182 if ln -s conf$$.file conf$$ 2>/dev/null; then
23183 # We could just check for DJGPP; but this test a) works b) is more generic
23184 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23185 if test -f conf$$.exe; then
23186 # Don't use ln at all; we don't have any links
23191 elif ln conf$$.file conf$$ 2>/dev/null; then
23196 rm -f conf$$ conf$$.exe conf$$.file
23198 if mkdir -p . 2>/dev/null; then
23204 as_executable_p="test -f"
23206 # Sed expression to map a string onto a valid CPP name.
23207 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23209 # Sed expression to map a string onto a valid variable name.
23210 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23214 # We need space, tab and new line, in precisely that order.
23224 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23225 # report actual input values of CONFIG_FILES etc. instead of their
23226 # values after options handling. Logging --version etc. is OK.
23230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23231 ## Running $as_me. ##
23236 This file was extended by LLVM $as_me 1.4, which was
23237 generated by GNU Autoconf 2.57. Invocation command line was
23239 CONFIG_FILES = $CONFIG_FILES
23240 CONFIG_HEADERS = $CONFIG_HEADERS
23241 CONFIG_LINKS = $CONFIG_LINKS
23242 CONFIG_COMMANDS = $CONFIG_COMMANDS
23246 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23250 # Files that config.status was made for.
23251 if test -n "$ac_config_files"; then
23252 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23255 if test -n "$ac_config_headers"; then
23256 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23259 if test -n "$ac_config_links"; then
23260 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23263 if test -n "$ac_config_commands"; then
23264 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23267 cat >>$CONFIG_STATUS <<\_ACEOF
23270 \`$as_me' instantiates files from templates according to the
23271 current configuration.
23273 Usage: $0 [OPTIONS] [FILE]...
23275 -h, --help print this help, then exit
23276 -V, --version print version number, then exit
23277 -q, --quiet do not print progress messages
23278 -d, --debug don't remove temporary files
23279 --recheck update $as_me by reconfiguring in the same conditions
23280 --file=FILE[:TEMPLATE]
23281 instantiate the configuration file FILE
23282 --header=FILE[:TEMPLATE]
23283 instantiate the configuration header FILE
23285 Configuration files:
23288 Configuration headers:
23291 Configuration links:
23294 Configuration commands:
23297 Report bugs to <bug-autoconf@gnu.org>."
23300 cat >>$CONFIG_STATUS <<_ACEOF
23302 LLVM config.status 1.4
23303 configured by $0, generated by GNU Autoconf 2.57,
23304 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23306 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23307 Free Software Foundation, Inc.
23308 This config.status script is free software; the Free Software Foundation
23309 gives unlimited permission to copy, distribute and modify it."
23314 cat >>$CONFIG_STATUS <<\_ACEOF
23315 # If no file are specified by the user, then we need to provide default
23316 # value. By we need to know if files were specified by the user.
23322 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23323 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23331 *) # This is not an option, so the user has probably given explicit
23334 ac_need_defaults=false;;
23338 # Handling of the options.
23340 cat >>$CONFIG_STATUS <<\_ACEOF
23341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23343 --version | --vers* | -V )
23344 echo "$ac_cs_version"; exit 0 ;;
23346 # Conflict between --help and --header
23347 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23348 Try \`$0 --help' for more information." >&5
23349 echo "$as_me: error: ambiguous option: $1
23350 Try \`$0 --help' for more information." >&2;}
23351 { (exit 1); exit 1; }; };;
23352 --help | --hel | -h )
23353 echo "$ac_cs_usage"; exit 0 ;;
23354 --debug | --d* | -d )
23356 --file | --fil | --fi | --f )
23358 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23359 ac_need_defaults=false;;
23360 --header | --heade | --head | --hea )
23362 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23363 ac_need_defaults=false;;
23364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23365 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23368 # This is an error.
23369 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23370 Try \`$0 --help' for more information." >&5
23371 echo "$as_me: error: unrecognized option: $1
23372 Try \`$0 --help' for more information." >&2;}
23373 { (exit 1); exit 1; }; } ;;
23375 *) ac_config_targets="$ac_config_targets $1" ;;
23381 ac_configure_extra_args=
23383 if $ac_cs_silent; then
23385 ac_configure_extra_args="$ac_configure_extra_args --silent"
23389 cat >>$CONFIG_STATUS <<_ACEOF
23390 if \$ac_cs_recheck; then
23391 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23392 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23397 cat >>$CONFIG_STATUS <<_ACEOF
23399 # INIT-COMMANDS section.
23402 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23458 cat >>$CONFIG_STATUS <<\_ACEOF
23459 for ac_config_target in $ac_config_targets
23461 case "$ac_config_target" in
23462 # Handling of arguments.
23463 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23464 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
23465 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
23466 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
23467 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
23468 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
23469 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
23470 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23471 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23472 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23473 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23474 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23475 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23476 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23477 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23478 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23479 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23480 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23481 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
23482 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23483 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23484 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23485 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23486 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23487 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23488 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23489 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23490 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23491 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23492 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23493 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23494 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
23495 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23496 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23497 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23498 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
23499 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
23500 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23501 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23502 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23503 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23504 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23505 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23506 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23507 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23508 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23509 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23510 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23511 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23512 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23513 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23514 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23515 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23516 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23517 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23518 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23519 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23520 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23521 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23522 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23523 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23524 { (exit 1); exit 1; }; };;
23528 # If the user did not use the arguments to specify the items to instantiate,
23529 # then the envvar interface is used. Set only those that are not.
23530 # We use the long form for the default assignment because of an extremely
23531 # bizarre bug on SunOS 4.1.3.
23532 if $ac_need_defaults; then
23533 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23534 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23535 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23536 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23539 # Have a temporary directory for convenience. Make it in the build tree
23540 # simply because there is no reason to put it here, and in addition,
23541 # creating and moving files from /tmp can sometimes cause problems.
23542 # Create a temporary directory, and hook for its removal unless debugging.
23545 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23546 trap '{ (exit 1); exit 1; }' 1 2 13 15
23549 # Create a (secure) tmp directory for tmp files.
23552 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23553 test -n "$tmp" && test -d "$tmp"
23556 tmp=./confstat$$-$RANDOM
23557 (umask 077 && mkdir $tmp)
23560 echo "$me: cannot create a temporary directory in ." >&2
23561 { (exit 1); exit 1; }
23566 cat >>$CONFIG_STATUS <<_ACEOF
23569 # CONFIG_FILES section.
23572 # No need to generate the scripts if there are no CONFIG_FILES.
23573 # This happens for instance when ./config.status config.h
23574 if test -n "\$CONFIG_FILES"; then
23575 # Protect against being on the right side of a sed subst in config.status.
23576 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23577 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23578 s,@SHELL@,$SHELL,;t t
23579 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23580 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23581 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23582 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23583 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23584 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23585 s,@exec_prefix@,$exec_prefix,;t t
23586 s,@prefix@,$prefix,;t t
23587 s,@program_transform_name@,$program_transform_name,;t t
23588 s,@bindir@,$bindir,;t t
23589 s,@sbindir@,$sbindir,;t t
23590 s,@libexecdir@,$libexecdir,;t t
23591 s,@datadir@,$datadir,;t t
23592 s,@sysconfdir@,$sysconfdir,;t t
23593 s,@sharedstatedir@,$sharedstatedir,;t t
23594 s,@localstatedir@,$localstatedir,;t t
23595 s,@libdir@,$libdir,;t t
23596 s,@includedir@,$includedir,;t t
23597 s,@oldincludedir@,$oldincludedir,;t t
23598 s,@infodir@,$infodir,;t t
23599 s,@mandir@,$mandir,;t t
23600 s,@build_alias@,$build_alias,;t t
23601 s,@host_alias@,$host_alias,;t t
23602 s,@target_alias@,$target_alias,;t t
23603 s,@DEFS@,$DEFS,;t t
23604 s,@ECHO_C@,$ECHO_C,;t t
23605 s,@ECHO_N@,$ECHO_N,;t t
23606 s,@ECHO_T@,$ECHO_T,;t t
23607 s,@LIBS@,$LIBS,;t t
23608 s,@subdirs@,$subdirs,;t t
23609 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23610 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23611 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23612 s,@build@,$build,;t t
23613 s,@build_cpu@,$build_cpu,;t t
23614 s,@build_vendor@,$build_vendor,;t t
23615 s,@build_os@,$build_os,;t t
23616 s,@host@,$host,;t t
23617 s,@host_cpu@,$host_cpu,;t t
23618 s,@host_vendor@,$host_vendor,;t t
23619 s,@host_os@,$host_os,;t t
23620 s,@target@,$target,;t t
23621 s,@target_cpu@,$target_cpu,;t t
23622 s,@target_vendor@,$target_vendor,;t t
23623 s,@target_os@,$target_os,;t t
23625 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23626 s,@ARCH@,$ARCH,;t t
23628 s,@CXXFLAGS@,$CXXFLAGS,;t t
23629 s,@LDFLAGS@,$LDFLAGS,;t t
23630 s,@CPPFLAGS@,$CPPFLAGS,;t t
23631 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23632 s,@EXEEXT@,$EXEEXT,;t t
23633 s,@OBJEXT@,$OBJEXT,;t t
23635 s,@CFLAGS@,$CFLAGS,;t t
23636 s,@ac_ct_CC@,$ac_ct_CC,;t t
23638 s,@ifGNUmake@,$ifGNUmake,;t t
23640 s,@LEXLIB@,$LEXLIB,;t t
23641 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23642 s,@YACC@,$YACC,;t t
23643 s,@BISON@,$BISON,;t t
23644 s,@EGREP@,$EGREP,;t t
23645 s,@LN_S@,$LN_S,;t t
23646 s,@ECHO@,$ECHO,;t t
23648 s,@ac_ct_AR@,$ac_ct_AR,;t t
23649 s,@RANLIB@,$RANLIB,;t t
23650 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23651 s,@STRIP@,$STRIP,;t t
23652 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23653 s,@CXXCPP@,$CXXCPP,;t t
23655 s,@FFLAGS@,$FFLAGS,;t t
23656 s,@ac_ct_F77@,$ac_ct_F77,;t t
23657 s,@LIBTOOL@,$LIBTOOL,;t t
23659 s,@ETAGS@,$ETAGS,;t t
23660 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
23661 s,@PYTHON@,$PYTHON,;t t
23662 s,@QMTEST@,$QMTEST,;t t
23663 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
23664 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23665 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
23666 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
23667 s,@ENDIAN@,$ENDIAN,;t t
23668 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23669 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23670 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23671 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23672 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23673 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
23674 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23675 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23676 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
23677 s,@ALLOCA@,$ALLOCA,;t t
23678 s,@MMAP_FILE@,$MMAP_FILE,;t t
23679 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23680 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
23681 s,@USE_SPEC95@,$USE_SPEC95,;t t
23682 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
23683 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
23684 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
23685 s,@USE_POVRAY@,$USE_POVRAY,;t t
23687 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23689 s,@LLVMCC1@,$LLVMCC1,;t t
23690 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
23692 s,@PAPIDIR@,$PAPIDIR,;t t
23693 s,@SHLIBEXT@,$SHLIBEXT,;t t
23694 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
23695 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
23696 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
23697 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
23698 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
23699 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
23700 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
23701 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
23702 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
23703 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
23704 s,@LIBOBJS@,$LIBOBJS,;t t
23705 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23710 cat >>$CONFIG_STATUS <<\_ACEOF
23711 # Split the substitutions into bite-sized pieces for seds with
23712 # small command number limits, like on Digital OSF/1 and HP-UX.
23713 ac_max_sed_lines=48
23714 ac_sed_frag=1 # Number of current file.
23715 ac_beg=1 # First line for current file.
23716 ac_end=$ac_max_sed_lines # Line after last line for current file.
23719 while $ac_more_lines; do
23720 if test $ac_beg -gt 1; then
23721 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23723 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23725 if test ! -s $tmp/subs.frag; then
23726 ac_more_lines=false
23728 # The purpose of the label and of the branching condition is to
23729 # speed up the sed processing (if there are no `@' at all, there
23730 # is no need to browse any of the substitutions).
23731 # These are the two extra sed commands mentioned above.
23733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23734 if test -z "$ac_sed_cmds"; then
23735 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23737 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23739 ac_sed_frag=`expr $ac_sed_frag + 1`
23741 ac_end=`expr $ac_end + $ac_max_sed_lines`
23744 if test -z "$ac_sed_cmds"; then
23747 fi # test -n "$CONFIG_FILES"
23750 cat >>$CONFIG_STATUS <<\_ACEOF
23751 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23752 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23754 - | *:- | *:-:* ) # input from stdin
23756 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23757 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23758 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23759 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23760 * ) ac_file_in=$ac_file.in ;;
23763 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23764 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23766 X"$ac_file" : 'X\(//\)[^/]' \| \
23767 X"$ac_file" : 'X\(//\)$' \| \
23768 X"$ac_file" : 'X\(/\)' \| \
23769 . : '\(.\)' 2>/dev/null ||
23771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23773 /^X\(\/\/\)$/{ s//\1/; q; }
23774 /^X\(\/\).*/{ s//\1/; q; }
23776 { if $as_mkdir_p; then
23781 while test ! -d "$as_dir"; do
23782 as_dirs="$as_dir $as_dirs"
23783 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23785 X"$as_dir" : 'X\(//\)[^/]' \| \
23786 X"$as_dir" : 'X\(//\)$' \| \
23787 X"$as_dir" : 'X\(/\)' \| \
23788 . : '\(.\)' 2>/dev/null ||
23790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23792 /^X\(\/\/\)$/{ s//\1/; q; }
23793 /^X\(\/\).*/{ s//\1/; q; }
23796 test ! -n "$as_dirs" || mkdir $as_dirs
23797 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23798 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23799 { (exit 1); exit 1; }; }; }
23803 if test "$ac_dir" != .; then
23804 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23805 # A "../" for each directory in $ac_dir_suffix.
23806 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23808 ac_dir_suffix= ac_top_builddir=
23812 .) # No --srcdir option. We are building in place.
23814 if test -z "$ac_top_builddir"; then
23817 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23819 [\\/]* | ?:[\\/]* ) # Absolute path.
23820 ac_srcdir=$srcdir$ac_dir_suffix;
23821 ac_top_srcdir=$srcdir ;;
23822 *) # Relative path.
23823 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23824 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23826 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23828 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23829 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23830 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23831 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23836 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23839 if test x"$ac_file" != x-; then
23840 { echo "$as_me:$LINENO: creating $ac_file" >&5
23841 echo "$as_me: creating $ac_file" >&6;}
23844 # Let's still pretend it is `configure' which instantiates (i.e., don't
23845 # use $as_me), people would be surprised to read:
23846 # /* config.h. Generated by config.status. */
23847 if test x"$ac_file" = x-; then
23850 configure_input="$ac_file. "
23852 configure_input=$configure_input"Generated from `echo $ac_file_in |
23853 sed 's,.*/,,'` by configure."
23855 # First look for the input files in the build tree, otherwise in the
23857 ac_file_inputs=`IFS=:
23858 for f in $ac_file_in; do
23860 -) echo $tmp/stdin ;;
23862 # Absolute (can't be DOS-style, as IFS=:)
23863 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23864 echo "$as_me: error: cannot find input file: $f" >&2;}
23865 { (exit 1); exit 1; }; }
23868 if test -f "$f"; then
23871 elif test -f "$srcdir/$f"; then
23876 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23877 echo "$as_me: error: cannot find input file: $f" >&2;}
23878 { (exit 1); exit 1; }; }
23881 done` || { (exit 1); exit 1; }
23883 cat >>$CONFIG_STATUS <<_ACEOF
23887 cat >>$CONFIG_STATUS <<\_ACEOF
23889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23890 s,@configure_input@,$configure_input,;t t
23891 s,@srcdir@,$ac_srcdir,;t t
23892 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23893 s,@top_srcdir@,$ac_top_srcdir,;t t
23894 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23895 s,@builddir@,$ac_builddir,;t t
23896 s,@abs_builddir@,$ac_abs_builddir,;t t
23897 s,@top_builddir@,$ac_top_builddir,;t t
23898 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23899 s,@INSTALL@,$ac_INSTALL,;t t
23900 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23902 if test x"$ac_file" != x-; then
23903 mv $tmp/out $ac_file
23911 cat >>$CONFIG_STATUS <<\_ACEOF
23914 # CONFIG_HEADER section.
23917 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23918 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23920 # ac_d sets the value in "#define NAME VALUE" lines.
23921 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23922 ac_dB='[ ].*$,\1#\2'
23925 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23926 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23927 ac_uB='$,\1#\2define\3'
23931 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23934 - | *:- | *:-:* ) # input from stdin
23936 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23938 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23939 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23940 * ) ac_file_in=$ac_file.in ;;
23943 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23944 echo "$as_me: creating $ac_file" >&6;}
23946 # First look for the input files in the build tree, otherwise in the
23948 ac_file_inputs=`IFS=:
23949 for f in $ac_file_in; do
23951 -) echo $tmp/stdin ;;
23953 # Absolute (can't be DOS-style, as IFS=:)
23954 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23955 echo "$as_me: error: cannot find input file: $f" >&2;}
23956 { (exit 1); exit 1; }; }
23959 if test -f "$f"; then
23962 elif test -f "$srcdir/$f"; then
23967 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23968 echo "$as_me: error: cannot find input file: $f" >&2;}
23969 { (exit 1); exit 1; }; }
23972 done` || { (exit 1); exit 1; }
23973 # Remove the trailing spaces.
23974 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23978 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23979 # `conftest.undefs', that substitutes the proper values into
23980 # config.h.in to produce config.h. The first handles `#define'
23981 # templates, and the second `#undef' templates.
23982 # And first: Protect against being on the right side of a sed subst in
23983 # config.status. Protect against being in an unquoted here document
23984 # in config.status.
23985 rm -f conftest.defines conftest.undefs
23986 # Using a here document instead of a string reduces the quoting nightmare.
23987 # Putting comments in sed scripts is not portable.
23989 # `end' is used to avoid that the second main sed command (meant for
23990 # 0-ary CPP macros) applies to n-ary macro definitions.
23991 # See the Autoconf documentation for `clear'.
23992 cat >confdef2sed.sed <<\_ACEOF
23997 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23999 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24002 # If some macros were called several times there might be several times
24003 # the same #defines, which is useless. Nevertheless, we may not want to
24004 # sort them, since we want the *last* AC-DEFINE to be honored.
24005 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24006 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24007 rm -f confdef2sed.sed
24009 # This sed command replaces #undef with comments. This is necessary, for
24010 # example, in the case of _POSIX_SOURCE, which is predefined and required
24011 # on some systems where configure will not decide to define it.
24012 cat >>conftest.undefs <<\_ACEOF
24013 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24016 # Break up conftest.defines because some shells have a limit on the size
24017 # of here documents, and old seds have small limits too (100 cmds).
24018 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24019 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24020 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24021 echo ' :' >>$CONFIG_STATUS
24022 rm -f conftest.tail
24023 while grep . conftest.defines >/dev/null
24025 # Write a limited-size here document to $tmp/defines.sed.
24026 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24027 # Speed up: don't consider the non `#define' lines.
24028 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24029 # Work around the forget-to-reset-the-flag bug.
24030 echo 't clr' >>$CONFIG_STATUS
24031 echo ': clr' >>$CONFIG_STATUS
24032 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24034 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24036 mv $tmp/out $tmp/in
24038 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24039 rm -f conftest.defines
24040 mv conftest.tail conftest.defines
24042 rm -f conftest.defines
24043 echo ' fi # grep' >>$CONFIG_STATUS
24044 echo >>$CONFIG_STATUS
24046 # Break up conftest.undefs because some shells have a limit on the size
24047 # of here documents, and old seds have small limits too (100 cmds).
24048 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24049 rm -f conftest.tail
24050 while grep . conftest.undefs >/dev/null
24052 # Write a limited-size here document to $tmp/undefs.sed.
24053 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24054 # Speed up: don't consider the non `#undef'
24055 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24056 # Work around the forget-to-reset-the-flag bug.
24057 echo 't clr' >>$CONFIG_STATUS
24058 echo ': clr' >>$CONFIG_STATUS
24059 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24061 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24063 mv $tmp/out $tmp/in
24065 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24066 rm -f conftest.undefs
24067 mv conftest.tail conftest.undefs
24069 rm -f conftest.undefs
24071 cat >>$CONFIG_STATUS <<\_ACEOF
24072 # Let's still pretend it is `configure' which instantiates (i.e., don't
24073 # use $as_me), people would be surprised to read:
24074 # /* config.h. Generated by config.status. */
24075 if test x"$ac_file" = x-; then
24076 echo "/* Generated by configure. */" >$tmp/config.h
24078 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24080 cat $tmp/in >>$tmp/config.h
24082 if test x"$ac_file" != x-; then
24083 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24084 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24085 echo "$as_me: $ac_file is unchanged" >&6;}
24087 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24089 X"$ac_file" : 'X\(//\)[^/]' \| \
24090 X"$ac_file" : 'X\(//\)$' \| \
24091 X"$ac_file" : 'X\(/\)' \| \
24092 . : '\(.\)' 2>/dev/null ||
24094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24096 /^X\(\/\/\)$/{ s//\1/; q; }
24097 /^X\(\/\).*/{ s//\1/; q; }
24099 { if $as_mkdir_p; then
24104 while test ! -d "$as_dir"; do
24105 as_dirs="$as_dir $as_dirs"
24106 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24108 X"$as_dir" : 'X\(//\)[^/]' \| \
24109 X"$as_dir" : 'X\(//\)$' \| \
24110 X"$as_dir" : 'X\(/\)' \| \
24111 . : '\(.\)' 2>/dev/null ||
24113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24115 /^X\(\/\/\)$/{ s//\1/; q; }
24116 /^X\(\/\).*/{ s//\1/; q; }
24119 test ! -n "$as_dirs" || mkdir $as_dirs
24120 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24121 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24122 { (exit 1); exit 1; }; }; }
24125 mv $tmp/config.h $ac_file
24129 rm -f $tmp/config.h
24133 cat >>$CONFIG_STATUS <<\_ACEOF
24136 # CONFIG_LINKS section.
24139 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24140 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24141 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24143 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24144 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24146 if test ! -r $srcdir/$ac_source; then
24147 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24148 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24149 { (exit 1); exit 1; }; }
24153 # Make relative symlinks.
24154 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24155 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24156 X"$ac_dest" : 'X\(//\)[^/]' \| \
24157 X"$ac_dest" : 'X\(//\)$' \| \
24158 X"$ac_dest" : 'X\(/\)' \| \
24159 . : '\(.\)' 2>/dev/null ||
24161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24163 /^X\(\/\/\)$/{ s//\1/; q; }
24164 /^X\(\/\).*/{ s//\1/; q; }
24166 { if $as_mkdir_p; then
24167 mkdir -p "$ac_dest_dir"
24169 as_dir="$ac_dest_dir"
24171 while test ! -d "$as_dir"; do
24172 as_dirs="$as_dir $as_dirs"
24173 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24175 X"$as_dir" : 'X\(//\)[^/]' \| \
24176 X"$as_dir" : 'X\(//\)$' \| \
24177 X"$as_dir" : 'X\(/\)' \| \
24178 . : '\(.\)' 2>/dev/null ||
24180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24182 /^X\(\/\/\)$/{ s//\1/; q; }
24183 /^X\(\/\).*/{ s//\1/; q; }
24186 test ! -n "$as_dirs" || mkdir $as_dirs
24187 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24188 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24189 { (exit 1); exit 1; }; }; }
24193 if test "$ac_dest_dir" != .; then
24194 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24195 # A "../" for each directory in $ac_dir_suffix.
24196 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24198 ac_dir_suffix= ac_top_builddir=
24202 .) # No --srcdir option. We are building in place.
24204 if test -z "$ac_top_builddir"; then
24207 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24209 [\\/]* | ?:[\\/]* ) # Absolute path.
24210 ac_srcdir=$srcdir$ac_dir_suffix;
24211 ac_top_srcdir=$srcdir ;;
24212 *) # Relative path.
24213 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24214 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24216 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
24218 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
24219 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
24220 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
24221 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
24225 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24226 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24229 # Try a symlink, then a hard link, then a copy.
24230 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24231 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24232 cp -p $srcdir/$ac_source $ac_dest ||
24233 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24234 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24235 { (exit 1); exit 1; }; }
24238 cat >>$CONFIG_STATUS <<\_ACEOF
24241 # CONFIG_COMMANDS section.
24243 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24244 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24245 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24246 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24247 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24248 X"$ac_dest" : 'X\(//\)[^/]' \| \
24249 X"$ac_dest" : 'X\(//\)$' \| \
24250 X"$ac_dest" : 'X\(/\)' \| \
24251 . : '\(.\)' 2>/dev/null ||
24253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24254 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24255 /^X\(\/\/\)$/{ s//\1/; q; }
24256 /^X\(\/\).*/{ s//\1/; q; }
24260 if test "$ac_dir" != .; then
24261 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24262 # A "../" for each directory in $ac_dir_suffix.
24263 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24265 ac_dir_suffix= ac_top_builddir=
24269 .) # No --srcdir option. We are building in place.
24271 if test -z "$ac_top_builddir"; then
24274 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24276 [\\/]* | ?:[\\/]* ) # Absolute path.
24277 ac_srcdir=$srcdir$ac_dir_suffix;
24278 ac_top_srcdir=$srcdir ;;
24279 *) # Relative path.
24280 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24281 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24283 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24285 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24286 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24287 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24288 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24291 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24292 echo "$as_me: executing $ac_dest commands" >&6;}
24294 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24295 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24296 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
24297 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24298 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24299 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24300 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24301 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24302 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24303 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24304 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24305 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
24306 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24307 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24308 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24309 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24310 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24311 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24312 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24313 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24314 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24315 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24316 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24317 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24318 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
24319 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24320 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24321 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 ;;
24322 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 ;;
24323 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 ;;
24324 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24325 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24326 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 ;;
24327 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 ;;
24328 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 ;;
24329 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 ;;
24330 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 ;;
24331 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 ;;
24332 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 ;;
24333 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 ;;
24334 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 ;;
24335 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 ;;
24336 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 ;;
24337 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 ;;
24338 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 ;;
24339 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24340 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24341 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 ;;
24342 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24343 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24344 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24349 cat >>$CONFIG_STATUS <<\_ACEOF
24351 { (exit 0); exit 0; }
24353 chmod +x $CONFIG_STATUS
24354 ac_clean_files=$ac_clean_files_save
24357 # configure is writing to config.log, and then calls config.status.
24358 # config.status does its own redirection, appending to config.log.
24359 # Unfortunately, on DOS this fails, as config.log is still kept open
24360 # by configure, so config.status won't be able to write to it; its
24361 # output is simply discarded. So we exec the FD to /dev/null,
24362 # effectively closing config.log, so it can be properly (re)opened and
24363 # appended to by config.status. When coming back to configure, we
24364 # need to make the FD available again.
24365 if test "$no_create" != yes; then
24367 ac_config_status_args=
24368 test "$silent" = yes &&
24369 ac_config_status_args="$ac_config_status_args --quiet"
24371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24374 # would make configure fail if this is the last instruction.
24375 $ac_cs_success || { (exit 1); exit 1; }
24379 # CONFIG_SUBDIRS section.
24381 if test "$no_recursion" != yes; then
24383 # Remove --cache-file and --srcdir arguments so they do not pile up.
24384 ac_sub_configure_args=
24386 for ac_arg in $ac_configure_args; do
24387 if test -n "$ac_prev"; then
24392 -cache-file | --cache-file | --cache-fil | --cache-fi \
24393 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24394 ac_prev=cache_file ;;
24395 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24396 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24399 --config-cache | -C)
24401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24405 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24407 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24409 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24413 # Always prepend --prefix to ensure using the same prefix
24414 # in subdir configurations.
24415 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24418 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24420 # Do not complain, so a configure script can configure whichever
24421 # parts of a large source tree are present.
24422 test -d $srcdir/$ac_dir || continue
24424 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24425 echo "$as_me: configuring in $ac_dir" >&6;}
24426 { if $as_mkdir_p; then
24431 while test ! -d "$as_dir"; do
24432 as_dirs="$as_dir $as_dirs"
24433 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24435 X"$as_dir" : 'X\(//\)[^/]' \| \
24436 X"$as_dir" : 'X\(//\)$' \| \
24437 X"$as_dir" : 'X\(/\)' \| \
24438 . : '\(.\)' 2>/dev/null ||
24440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24441 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24442 /^X\(\/\/\)$/{ s//\1/; q; }
24443 /^X\(\/\).*/{ s//\1/; q; }
24446 test ! -n "$as_dirs" || mkdir $as_dirs
24447 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24448 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24449 { (exit 1); exit 1; }; }; }
24453 if test "$ac_dir" != .; then
24454 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24455 # A "../" for each directory in $ac_dir_suffix.
24456 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24458 ac_dir_suffix= ac_top_builddir=
24462 .) # No --srcdir option. We are building in place.
24464 if test -z "$ac_top_builddir"; then
24467 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24469 [\\/]* | ?:[\\/]* ) # Absolute path.
24470 ac_srcdir=$srcdir$ac_dir_suffix;
24471 ac_top_srcdir=$srcdir ;;
24472 *) # Relative path.
24473 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24474 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24476 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24478 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24479 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24480 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24481 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24486 # Check for guested configure; otherwise get Cygnus style configure.
24487 if test -f $ac_srcdir/configure.gnu; then
24488 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24489 elif test -f $ac_srcdir/configure; then
24490 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24491 elif test -f $ac_srcdir/configure.in; then
24492 ac_sub_configure=$ac_configure
24494 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24495 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24499 # The recursion is here.
24500 if test -n "$ac_sub_configure"; then
24501 # Make the cache file name correct relative to the subdirectory.
24502 case $cache_file in
24503 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24504 *) # Relative path.
24505 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24508 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24509 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24510 # The eval makes quoting arguments work.
24511 eval $ac_sub_configure $ac_sub_configure_args \
24512 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24513 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24514 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24515 { (exit 1); exit 1; }; }
24523 if test $llvmgccwarn = yes
24525 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24526 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24527 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24528 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24529 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24530 echo "$as_me: WARNING: ***** " >&2;}
24531 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24532 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24533 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24534 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24535 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24536 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}