2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
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.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY 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.0] 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.0]:";;
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-purify Compile with purify (default is NO)
1034 --enable-optimized Compile with optimizations enabled (default is NO)
1035 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
1036 --enable-precompiled_bytecode
1037 Use pre-compiled bytecode (default is NO)
1038 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1039 --enable-jit Enable Just In Time Compiling (default is YES)
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1048 include additional configurations [automatic]
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
1052 --with-purify Location of purify program
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
1134 [LLVM] configure [1.0]
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.0], 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/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 -d ${srcdir}/projects/${i}
1530 subdirs="$subdirs projects/${i}"
1536 ac_config_headers="$ac_config_headers include/Config/config.h"
1538 ac_config_commands="$ac_config_commands Makefile"
1541 ac_config_commands="$ac_config_commands Makefile.common"
1544 ac_config_commands="$ac_config_commands lib/Makefile"
1547 ac_config_commands="$ac_config_commands runtime/Makefile"
1550 ac_config_commands="$ac_config_commands test/Makefile"
1553 ac_config_commands="$ac_config_commands test/Makefile.tests"
1556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1562 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1568 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1571 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1574 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1577 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1580 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1583 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1586 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1589 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1592 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1595 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1598 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1601 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1604 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1607 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1610 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1619 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1622 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1664 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1670 ac_config_commands="$ac_config_commands tools/Makefile"
1673 ac_config_commands="$ac_config_commands utils/Makefile"
1676 ac_config_commands="$ac_config_commands projects/Makefile"
1681 # Find a good install program. We prefer a C program (faster),
1682 # so one script is as good as another. But avoid the broken or
1683 # incompatible versions:
1684 # SysV /etc/install, /usr/sbin/install
1685 # SunOS /usr/etc/install
1686 # IRIX /sbin/install
1688 # AmigaOS /C/install, which installs bootblocks on floppy discs
1689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1692 # ./install, which can be erroneously created by make from ./install.sh.
1693 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1694 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1695 if test -z "$INSTALL"; then
1696 if test "${ac_cv_path_install+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 # Account for people who put trailing slashes in PATH elements.
1706 ./ | .// | /cC/* | \
1707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1710 # OSF1 and SCO ODT 3.0 have their own names for install.
1711 # Don't use installbsd from OSF since it installs stuff as root
1713 for ac_prog in ginstall scoinst install; do
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1716 if test $ac_prog = install &&
1717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1718 # AIX install. It has an incompatible calling convention.
1720 elif test $ac_prog = install &&
1721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1722 # program-specific install script used by HP pwplus--don't use.
1725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1737 if test "${ac_cv_path_install+set}" = set; then
1738 INSTALL=$ac_cv_path_install
1740 # As a last resort, use the slow shell script. We don't cache a
1741 # path for INSTALL within a source directory, because that will
1742 # break other packages using the cache if that directory is
1743 # removed, or if the path is relative.
1744 INSTALL=$ac_install_sh
1747 echo "$as_me:$LINENO: result: $INSTALL" >&5
1748 echo "${ECHO_T}$INSTALL" >&6
1750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1751 # It thinks the first close brace ends the variable substitution.
1752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1759 # Make sure we can run config.sub.
1760 $ac_config_sub sun4 >/dev/null 2>&1 ||
1761 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1762 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1763 { (exit 1); exit 1; }; }
1765 echo "$as_me:$LINENO: checking build system type" >&5
1766 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1767 if test "${ac_cv_build+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 ac_cv_build_alias=$build_alias
1771 test -z "$ac_cv_build_alias" &&
1772 ac_cv_build_alias=`$ac_config_guess`
1773 test -z "$ac_cv_build_alias" &&
1774 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1775 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1776 { (exit 1); exit 1; }; }
1777 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1779 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1783 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1784 echo "${ECHO_T}$ac_cv_build" >&6
1786 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791 echo "$as_me:$LINENO: checking host system type" >&5
1792 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1793 if test "${ac_cv_host+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 ac_cv_host_alias=$host_alias
1797 test -z "$ac_cv_host_alias" &&
1798 ac_cv_host_alias=$ac_cv_build_alias
1799 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1800 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1801 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1802 { (exit 1); exit 1; }; }
1805 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1806 echo "${ECHO_T}$ac_cv_host" >&6
1808 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1809 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1810 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813 echo "$as_me:$LINENO: checking target system type" >&5
1814 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1815 if test "${ac_cv_target+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 ac_cv_target_alias=$target_alias
1819 test "x$ac_cv_target_alias" = "x" &&
1820 ac_cv_target_alias=$ac_cv_host_alias
1821 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1822 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1823 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1824 { (exit 1); exit 1; }; }
1827 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1828 echo "${ECHO_T}$ac_cv_target" >&6
1829 target=$ac_cv_target
1830 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1831 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1832 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1835 # The aliases save the names the user supplied, while $host etc.
1836 # will get canonicalized.
1837 test -n "$target_alias" &&
1838 test "$program_prefix$program_suffix$program_transform_name" = \
1840 program_prefix=${target_alias}-
1846 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1848 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1856 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1858 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1874 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1883 sparc*-*) ARCH=Sparc
1886 powerpc*-*) ARCH=PowerPC
1896 ac_cpp='$CXXCPP $CPPFLAGS'
1897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1900 if test -n "$ac_tool_prefix"; then
1901 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CXX+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$CXX"; then
1911 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 if test -n "$CXX"; then
1931 echo "$as_me:$LINENO: result: $CXX" >&5
1932 echo "${ECHO_T}$CXX" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1938 test -n "$CXX" && break
1941 if test -z "$CXX"; then
1943 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1945 # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 if test -n "$ac_ct_CXX"; then
1953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CXX="$ac_prog"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1972 if test -n "$ac_ct_CXX"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1974 echo "${ECHO_T}$ac_ct_CXX" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1980 test -n "$ac_ct_CXX" && break
1982 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1988 # Provide some information about the compiler.
1989 echo "$as_me:$LINENO:" \
1990 "checking for C++ compiler version" >&5
1991 ac_compiler=`set X $ac_compile; echo $2`
1992 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993 (eval $ac_compiler --version </dev/null >&5) 2>&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }
1997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998 (eval $ac_compiler -v </dev/null >&5) 2>&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003 (eval $ac_compiler -V </dev/null >&5) 2>&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2024 ac_clean_files_save=$ac_clean_files
2025 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2026 # Try to create an executable without -o first, disregard a.out.
2027 # It will help us diagnose broken compilers, and finding out an intuition
2029 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2030 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2031 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2032 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2033 (eval $ac_link_default) 2>&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; then
2037 # Find the output, starting from the most likely. This scheme is
2038 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2041 # Be careful to initialize this variable, since it used to be cached.
2042 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2044 # b.out is created by i960 compilers.
2045 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2047 test -f "$ac_file" || continue
2049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2052 # This is the source file.
2055 # We found the default executable, but exeext='' is most
2059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060 # FIXME: I believe we export ac_cv_exeext for Libtool,
2061 # but it would be cool to find out if it's true. Does anybody
2062 # maintain Libtool? --akim.
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2073 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: C++ compiler cannot create executables
2076 See \`config.log' for more details." >&2;}
2077 { (exit 77); exit 77; }; }
2080 ac_exeext=$ac_cv_exeext
2081 echo "$as_me:$LINENO: result: $ac_file" >&5
2082 echo "${ECHO_T}$ac_file" >&6
2084 # Check the compiler produces executables we can run. If not, either
2085 # the compiler is broken, or we cross compile.
2086 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2087 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2088 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2089 # If not cross compiling, check that we can run a simple program.
2090 if test "$cross_compiling" != yes; then
2091 if { ac_try='./$ac_file'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; }; then
2099 if test "$cross_compiling" = maybe; then
2102 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2103 If you meant to cross compile, use \`--host'.
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: cannot run C++ compiled programs.
2106 If you meant to cross compile, use \`--host'.
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2112 echo "$as_me:$LINENO: result: yes" >&5
2113 echo "${ECHO_T}yes" >&6
2115 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2116 ac_clean_files=$ac_clean_files_save
2117 # Check the compiler produces executables we can run. If not, either
2118 # the compiler is broken, or we cross compile.
2119 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2120 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2121 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2122 echo "${ECHO_T}$cross_compiling" >&6
2124 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2125 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2127 (eval $ac_link) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; then
2131 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2132 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2133 # work properly (i.e., refer to `conftest.exe'), while it won't with
2135 for ac_file in conftest.exe conftest conftest.*; do
2136 test -f "$ac_file" || continue
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2149 See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
2153 rm -f conftest$ac_cv_exeext
2154 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2155 echo "${ECHO_T}$ac_cv_exeext" >&6
2157 rm -f conftest.$ac_ext
2158 EXEEXT=$ac_cv_exeext
2160 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2161 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2162 if test "${ac_cv_objext+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 cat >conftest.$ac_ext <<_ACEOF
2166 #line $LINENO "configure"
2169 cat confdefs.h >>conftest.$ac_ext
2170 cat >>conftest.$ac_ext <<_ACEOF
2171 /* end confdefs.h. */
2181 rm -f conftest.o conftest.obj
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2198 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2201 See \`config.log' for more details." >&2;}
2202 { (exit 1); exit 1; }; }
2205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2207 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2208 echo "${ECHO_T}$ac_cv_objext" >&6
2209 OBJEXT=$ac_cv_objext
2211 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2212 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2213 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #line $LINENO "configure"
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>conftest.$ac_ext <<_ACEOF
2222 /* end confdefs.h. */
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2254 rm -f conftest.$ac_objext conftest.$ac_ext
2255 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2258 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2259 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2260 GXX=`test $ac_compiler_gnu = yes && echo yes`
2261 ac_test_CXXFLAGS=${CXXFLAGS+set}
2262 ac_save_CXXFLAGS=$CXXFLAGS
2264 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2265 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2266 if test "${ac_cv_prog_cxx_g+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 ac_cv_prog_cxx_g=yes
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2304 rm -f conftest.$ac_objext conftest.$ac_ext
2306 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2308 if test "$ac_test_CXXFLAGS" = set; then
2309 CXXFLAGS=$ac_save_CXXFLAGS
2310 elif test $ac_cv_prog_cxx_g = yes; then
2311 if test "$GXX" = yes; then
2317 if test "$GXX" = yes; then
2323 for ac_declaration in \
2325 '#include <stdlib.h>' \
2326 'extern "C" void std::exit (int) throw (); using std::exit;' \
2327 'extern "C" void std::exit (int); using std::exit;' \
2328 'extern "C" void exit (int) throw ();' \
2329 'extern "C" void exit (int);' \
2332 cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2368 rm -f conftest.$ac_objext conftest.$ac_ext
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2403 rm -f conftest.$ac_objext conftest.$ac_ext
2406 if test -n "$ac_declaration"; then
2407 echo '#ifdef __cplusplus' >>confdefs.h
2408 echo $ac_declaration >>confdefs.h
2409 echo '#endif' >>confdefs.h
2413 ac_cpp='$CPP $CPPFLAGS'
2414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 if test -n "$CC"; then
2454 echo "$as_me:$LINENO: result: $CC" >&5
2455 echo "${ECHO_T}$CC" >&6
2457 echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2461 test -n "$CC" && break
2464 if test -z "$CC"; then
2468 # Extract the first word of "$ac_prog", so it can be a program name with args.
2469 set dummy $ac_prog; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if test -n "$ac_ct_CC"; then
2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_ac_ct_CC="$ac_prog"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497 echo "${ECHO_T}$ac_ct_CC" >&6
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2503 test -n "$ac_ct_CC" && break
2510 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2511 See \`config.log' for more details." >&5
2512 echo "$as_me: error: no acceptable C compiler found in \$PATH
2513 See \`config.log' for more details." >&2;}
2514 { (exit 1); exit 1; }; }
2516 # Provide some information about the compiler.
2517 echo "$as_me:$LINENO:" \
2518 "checking for C compiler version" >&5
2519 ac_compiler=`set X $ac_compile; echo $2`
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2521 (eval $ac_compiler --version </dev/null >&5) 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2526 (eval $ac_compiler -v </dev/null >&5) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2531 (eval $ac_compiler -V </dev/null >&5) 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2536 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2579 rm -f conftest.$ac_objext conftest.$ac_ext
2580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2583 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2584 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2585 GCC=`test $ac_compiler_gnu = yes && echo yes`
2586 ac_test_CFLAGS=${CFLAGS+set}
2587 ac_save_CFLAGS=$CFLAGS
2589 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2591 if test "${ac_cv_prog_cc_g+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 cat >conftest.$ac_ext <<_ACEOF
2595 #line $LINENO "configure"
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2629 rm -f conftest.$ac_objext conftest.$ac_ext
2631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633 if test "$ac_test_CFLAGS" = set; then
2634 CFLAGS=$ac_save_CFLAGS
2635 elif test $ac_cv_prog_cc_g = yes; then
2636 if test "$GCC" = yes; then
2642 if test "$GCC" = yes; then
2648 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 ac_cv_prog_cc_stdc=no
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2664 #include <sys/types.h>
2665 #include <sys/stat.h>
2666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2667 struct buf { int x; };
2668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669 static char *e (p, i)
2675 static char *f (char * (*g) (char **, int), char **p, ...)
2680 s = g (p, va_arg (v,int));
2684 int test (int i, double x);
2685 struct s1 {int (*f) (int a);};
2686 struct s2 {int (*f) (double a);};
2687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2698 # Don't try gcc -ansi; that turns off useful extensions and
2699 # breaks some systems' header files.
2700 # AIX -qlanglvl=ansi
2701 # Ultrix and OSF/1 -std1
2702 # HP-UX 10.20 and later -Ae
2703 # HP-UX older versions -Aa -D_HPUX_SOURCE
2704 # SVR4 -Xc -D__EXTENSIONS__
2705 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 ac_cv_prog_cc_stdc=$ac_arg
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.$ac_objext
2729 rm -f conftest.$ac_ext conftest.$ac_objext
2734 case "x$ac_cv_prog_cc_stdc" in
2736 echo "$as_me:$LINENO: result: none needed" >&5
2737 echo "${ECHO_T}none needed" >&6 ;;
2739 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2740 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2741 CC="$CC $ac_cv_prog_cc_stdc" ;;
2744 # Some people use a C++ compiler to compile C. Since we use `exit',
2745 # in C++ we need to declare it. In case someone uses the same compiler
2746 # for both compiling C and C++ we need to have the C++ compiler decide
2747 # the declaration of exit, since it's the most demanding environment.
2748 cat >conftest.$ac_ext <<_ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 for ac_declaration in \
2767 '#include <stdlib.h>' \
2768 'extern "C" void std::exit (int) throw (); using std::exit;' \
2769 'extern "C" void std::exit (int); using std::exit;' \
2770 'extern "C" void exit (int) throw ();' \
2771 'extern "C" void exit (int);' \
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2791 rm -f conftest.$ac_objext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793 (eval $ac_compile) 2>&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.$ac_objext conftest.$ac_ext
2811 cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2845 rm -f conftest.$ac_objext conftest.$ac_ext
2848 if test -n "$ac_declaration"; then
2849 echo '#ifdef __cplusplus' >>confdefs.h
2850 echo $ac_declaration >>confdefs.h
2851 echo '#endif' >>confdefs.h
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f conftest.$ac_objext conftest.$ac_ext
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2872 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2873 # On Suns, sometimes $CPP names a directory.
2874 if test -n "$CPP" && test -d "$CPP"; then
2877 if test -z "$CPP"; then
2878 if test "${ac_cv_prog_CPP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 # Double quotes because CPP needs to be expanded
2882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2885 for ac_c_preproc_warn_flag in '' yes
2887 # Use a header file that comes with gcc, so configuring glibc
2888 # with a fresh cross-compiler works.
2889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890 # <limits.h> exists even on freestanding compilers.
2891 # On the NeXT, cc -E runs the code through the compiler's parser,
2892 # not just through cpp. "Syntax error" is here to catch this case.
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line $LINENO "configure"
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2901 # include <limits.h>
2903 # include <assert.h>
2907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } >/dev/null; then
2915 if test -s conftest.err; then
2916 ac_cpp_err=$ac_c_preproc_warn_flag
2923 if test -z "$ac_cpp_err"; then
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 # Broken: fails on valid input.
2932 rm -f conftest.err conftest.$ac_ext
2934 # OK, works on sane cases. Now check whether non-existent headers
2935 # can be detected and how.
2936 cat >conftest.$ac_ext <<_ACEOF
2937 #line $LINENO "configure"
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2943 #include <ac_nonexistent.h>
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null; then
2953 if test -s conftest.err; then
2954 ac_cpp_err=$ac_c_preproc_warn_flag
2961 if test -z "$ac_cpp_err"; then
2962 # Broken: success on invalid input.
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 # Passes both tests.
2972 rm -f conftest.err conftest.$ac_ext
2975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2976 rm -f conftest.err conftest.$ac_ext
2977 if $ac_preproc_ok; then
2989 echo "$as_me:$LINENO: result: $CPP" >&5
2990 echo "${ECHO_T}$CPP" >&6
2992 for ac_c_preproc_warn_flag in '' yes
2994 # Use a header file that comes with gcc, so configuring glibc
2995 # with a fresh cross-compiler works.
2996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997 # <limits.h> exists even on freestanding compilers.
2998 # On the NeXT, cc -E runs the code through the compiler's parser,
2999 # not just through cpp. "Syntax error" is here to catch this case.
3000 cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3008 # include <limits.h>
3010 # include <assert.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
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 # Broken: fails on valid input.
3039 rm -f conftest.err conftest.$ac_ext
3041 # OK, works on sane cases. Now check whether non-existent headers
3042 # can be detected and how.
3043 cat >conftest.$ac_ext <<_ACEOF
3044 #line $LINENO "configure"
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3050 #include <ac_nonexistent.h>
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } >/dev/null; then
3060 if test -s conftest.err; then
3061 ac_cpp_err=$ac_c_preproc_warn_flag
3068 if test -z "$ac_cpp_err"; then
3069 # Broken: success on invalid input.
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 # Passes both tests.
3079 rm -f conftest.err conftest.$ac_ext
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then
3087 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 if test "$GCC" != "yes"
3103 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3104 echo "$as_me: error: gcc required but not found" >&2;}
3105 { (exit 1); exit 1; }; }
3108 if test "$GXX" != "yes"
3110 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3111 echo "$as_me: error: g++ required but not found" >&2;}
3112 { (exit 1); exit 1; }; }
3115 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3116 if test "$gccmajor" -lt "3"
3118 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3119 echo "$as_me: error: gcc 3.x required" >&2;}
3120 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: checking for GNU make" >&5
3124 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3125 if test "${_cv_gnu_make_command+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 _cv_gnu_make_command='' ;
3129 for a in "$MAKE" make gmake gnumake ; do
3130 if test -z "$a" ; then continue ; fi ;
3131 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3132 _cv_gnu_make_command=$a ;
3138 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3139 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3140 if test "x$_cv_gnu_make_command" != "x" ; then
3144 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3145 echo "${ECHO_T}\"Not found\"" >&6;
3149 if test -z "$_cv_gnu_make_command"
3151 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3152 echo "$as_me: error: GNU Make required but not found" >&2;}
3153 { (exit 1); exit 1; }; }
3157 echo "$as_me:$LINENO: checking " >&5
3158 echo $ECHO_N "checking ... $ECHO_C" >&6
3159 if test "${ac_cv_has_flex+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 for ac_prog in flex lex
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_LEX+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 if test -n "$LEX"; then
3172 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_LEX="$ac_prog"
3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 if test -n "$LEX"; then
3192 echo "$as_me:$LINENO: result: $LEX" >&5
3193 echo "${ECHO_T}$LEX" >&6
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3199 test -n "$LEX" && break
3201 test -n "$LEX" || LEX=":"
3203 if test -z "$LEXLIB"
3205 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3206 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3207 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 ac_check_lib_save_LIBS=$LIBS
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3220 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3235 rm -f conftest.$ac_objext conftest$ac_exeext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237 (eval $ac_link) 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -s conftest$ac_exeext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 ac_cv_lib_fl_yywrap=yes
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 ac_cv_lib_fl_yywrap=no
3254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3257 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3258 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3259 if test $ac_cv_lib_fl_yywrap = yes; then
3262 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3263 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3264 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 ac_check_lib_save_LIBS=$LIBS
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line $LINENO "configure"
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3277 /* Override any gcc2 internal prototype to avoid an error. */
3281 /* We use char because int might match the return type of a gcc2
3282 builtin and then its argument prototype would still apply. */
3292 rm -f conftest.$ac_objext conftest$ac_exeext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3294 (eval $ac_link) 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -s conftest$ac_exeext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_lib_l_yywrap=yes
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 ac_cv_lib_l_yywrap=no
3311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312 LIBS=$ac_check_lib_save_LIBS
3314 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3315 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316 if test $ac_cv_lib_l_yywrap = yes; then
3324 if test "x$LEX" != "x:"; then
3325 echo "$as_me:$LINENO: checking lex output file root" >&5
3326 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327 if test "${ac_cv_prog_lex_root+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 # The minimal lex program is just a single line: %%. But some broken lexes
3331 # (Solaris, I think it was) want two %% lines, so accommodate them.
3332 cat >conftest.l <<_ACEOF
3336 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3337 (eval $LEX conftest.l) 2>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }
3341 if test -f lex.yy.c; then
3342 ac_cv_prog_lex_root=lex.yy
3343 elif test -f lexyy.c; then
3344 ac_cv_prog_lex_root=lexyy
3346 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3347 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3348 { (exit 1); exit 1; }; }
3351 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3352 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3354 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3356 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3357 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3358 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 # POSIX says lex can declare yytext either as a pointer or an array; the
3362 # default is implementation-dependent. Figure out which it is, since
3363 # not all implementations provide the %pointer and %array declarations.
3364 ac_cv_prog_lex_yytext_pointer=no
3365 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3367 LIBS="$LIBS $LEXLIB"
3368 cat >conftest.$ac_ext <<_ACEOF
3369 `cat $LEX_OUTPUT_ROOT.c`
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373 (eval $ac_link) 2>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest$ac_exeext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_prog_lex_yytext_pointer=yes
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3391 rm -f "${LEX_OUTPUT_ROOT}.c"
3394 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3395 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3396 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3398 cat >>confdefs.h <<\_ACEOF
3399 #define YYTEXT_POINTER 1
3407 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3408 echo "${ECHO_T}$ac_cv_has_flex" >&6
3409 if test "$LEX" != "flex"; then
3410 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3411 echo "$as_me: error: flex not found but required" >&2;}
3412 { (exit 1); exit 1; }; }
3415 echo "$as_me:$LINENO: checking " >&5
3416 echo $ECHO_N "checking ... $ECHO_C" >&6
3417 if test "${ac_cv_has_bison+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 for ac_prog in 'bison -y' byacc
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426 if test "${ac_cv_prog_YACC+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 if test -n "$YACC"; then
3430 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 ac_cv_prog_YACC="$ac_prog"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 YACC=$ac_cv_prog_YACC
3449 if test -n "$YACC"; then
3450 echo "$as_me:$LINENO: result: $YACC" >&5
3451 echo "${ECHO_T}$YACC" >&6
3453 echo "$as_me:$LINENO: result: no" >&5
3454 echo "${ECHO_T}no" >&6
3457 test -n "$YACC" && break
3459 test -n "$YACC" || YACC="yacc"
3463 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3464 echo "${ECHO_T}$ac_cv_has_bison" >&6
3465 if test "$YACC" != "bison -y"; then
3466 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3467 echo "$as_me: error: bison not found but required" >&2;}
3468 { (exit 1); exit 1; }; }
3475 # Check whether --enable-shared or --disable-shared was given.
3476 if test "${enable_shared+set}" = set; then
3477 enableval="$enable_shared"
3478 p=${PACKAGE-default}
3480 yes) enable_shared=yes ;;
3481 no) enable_shared=no ;;
3484 # Look at the argument we got. We use all the common list separators.
3485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3486 for pkg in $enableval; do
3488 if test "X$pkg" = "X$p"; then
3499 # Check whether --enable-static or --disable-static was given.
3500 if test "${enable_static+set}" = set; then
3501 enableval="$enable_static"
3502 p=${PACKAGE-default}
3504 yes) enable_static=yes ;;
3505 no) enable_static=no ;;
3508 # Look at the argument we got. We use all the common list separators.
3509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3510 for pkg in $enableval; do
3512 if test "X$pkg" = "X$p"; then
3523 # Check whether --enable-fast-install or --disable-fast-install was given.
3524 if test "${enable_fast_install+set}" = set; then
3525 enableval="$enable_fast_install"
3526 p=${PACKAGE-default}
3528 yes) enable_fast_install=yes ;;
3529 no) enable_fast_install=no ;;
3531 enable_fast_install=no
3532 # Look at the argument we got. We use all the common list separators.
3533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3534 for pkg in $enableval; do
3536 if test "X$pkg" = "X$p"; then
3537 enable_fast_install=yes
3544 enable_fast_install=yes
3547 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3548 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3549 if test "${lt_cv_path_SED+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 # Loop through the user's path and test for sed and gsed.
3553 # Then use that list of sed's as ones to test for truncation.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir=.
3559 for lt_ac_prog in sed gsed; do
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3562 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3569 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3570 # along with /bin/sed that truncates output.
3571 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3572 test ! -f $lt_ac_sed && break
3573 cat /dev/null > conftest.in
3575 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3576 # Check for GNU sed and select it if it is found.
3577 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3578 lt_cv_path_SED=$lt_ac_sed
3582 cat conftest.in conftest.in >conftest.tmp
3583 mv conftest.tmp conftest.in
3584 cp conftest.in conftest.nl
3586 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3587 cmp -s conftest.out conftest.nl || break
3588 # 10000 chars as input seems more than enough
3589 test $lt_ac_count -gt 10 && break
3590 lt_ac_count=`expr $lt_ac_count + 1`
3591 if test $lt_ac_count -gt $lt_ac_max; then
3592 lt_ac_max=$lt_ac_count
3593 lt_cv_path_SED=$lt_ac_sed
3601 echo "$as_me:$LINENO: result: $SED" >&5
3602 echo "${ECHO_T}$SED" >&6
3604 echo "$as_me:$LINENO: checking for egrep" >&5
3605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606 if test "${ac_cv_prog_egrep+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610 then ac_cv_prog_egrep='grep -E'
3611 else ac_cv_prog_egrep='egrep'
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616 EGREP=$ac_cv_prog_egrep
3620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3621 if test "${with_gnu_ld+set}" = set; then
3622 withval="$with_gnu_ld"
3623 test "$withval" = no || with_gnu_ld=yes
3628 if test "$GCC" = yes; then
3629 # Check if gcc -print-prog-name=ld gives a path.
3630 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3631 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3634 # gcc leaves a trailing carriage return which upsets mingw
3635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3640 # Accept absolute paths.
3642 re_direlt='/[^/][^/]*/\.\./'
3643 # Canonicalize the path of ld
3644 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3645 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3646 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3648 test -z "$LD" && LD="$ac_prog"
3651 # If it fails, then pretend we aren't using GCC.
3655 # If it is relative, then search for the first ld in PATH.
3659 elif test "$with_gnu_ld" = yes; then
3660 echo "$as_me:$LINENO: checking for GNU ld" >&5
3661 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3663 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3664 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3666 if test "${lt_cv_path_LD+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 if test -z "$LD"; then
3670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3671 for ac_dir in $PATH; do
3673 test -z "$ac_dir" && ac_dir=.
3674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3675 lt_cv_path_LD="$ac_dir/$ac_prog"
3676 # Check to see if the program is GNU ld. I'd rather use --version,
3677 # but apparently some GNU ld's only accept -v.
3678 # Break only if it was the GNU/non-GNU ld that we prefer.
3679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3680 *GNU* | *'with BFD'*)
3681 test "$with_gnu_ld" != no && break
3684 test "$with_gnu_ld" != yes && break
3691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3696 if test -n "$LD"; then
3697 echo "$as_me:$LINENO: result: $LD" >&5
3698 echo "${ECHO_T}$LD" >&6
3700 echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3703 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3704 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3705 { (exit 1); exit 1; }; }
3706 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3707 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3708 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3712 case `"$LD" -v 2>&1 </dev/null` in
3713 *GNU* | *'with BFD'*)
3714 lt_cv_prog_gnu_ld=yes
3717 lt_cv_prog_gnu_ld=no
3721 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3722 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3723 with_gnu_ld=$lt_cv_prog_gnu_ld
3726 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3727 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3728 if test "${lt_cv_ld_reload_flag+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 lt_cv_ld_reload_flag='-r'
3733 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3734 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3735 reload_flag=$lt_cv_ld_reload_flag
3736 case $reload_flag in
3738 *) reload_flag=" $reload_flag" ;;
3740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3742 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3743 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3744 if test "${lt_cv_path_NM+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if test -n "$NM"; then
3748 # Let the user override the test.
3751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3752 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3754 test -z "$ac_dir" && ac_dir=.
3755 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3757 # Check to see if the nm accepts a BSD-compat flag.
3758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3759 # nm: unknown option "B" ignored
3760 # Tru64's nm complains that /dev/null is an invalid object file
3761 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3762 */dev/null* | *'Invalid file or object type'*)
3763 lt_cv_path_NM="$tmp_nm -B"
3767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3769 lt_cv_path_NM="$tmp_nm -p"
3773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3774 continue # so that we can try to find one that supports BSD flags
3781 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3784 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3785 echo "${ECHO_T}$lt_cv_path_NM" >&6
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3791 if test "$LN_S" = "ln -s"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3799 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3800 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3801 if test "${lt_cv_deplibs_check_method+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 lt_cv_file_magic_cmd='$MAGIC_CMD'
3805 lt_cv_file_magic_test_file=
3806 lt_cv_deplibs_check_method='unknown'
3807 # Need to set the preceding variable on all platforms that support
3808 # interlibrary dependencies.
3809 # 'none' -- dependencies not supported.
3810 # `unknown' -- same as none, but documents that we really don't know.
3811 # 'pass_all' -- all dependencies passed with no checks.
3812 # 'test_compile' -- check by making test program.
3813 # 'file_magic [[regex]]' -- check by looking for files in library path
3814 # which responds to the $file_magic_cmd with a given extended regex.
3815 # If you have `file' or equivalent on your system and you're not sure
3816 # whether `pass_all' will *always* work, you probably want this one.
3820 lt_cv_deplibs_check_method=pass_all
3824 lt_cv_deplibs_check_method=pass_all
3828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3829 lt_cv_file_magic_cmd='/usr/bin/file -L'
3830 lt_cv_file_magic_test_file=/shlib/libc.so
3833 cygwin* | mingw* | pw32*)
3834 # win32_libid is a shell function defined in ltmain.sh
3835 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3836 lt_cv_file_magic_cmd='win32_libid'
3839 darwin* | rhapsody*)
3840 # this will be overwritten by pass_all, but leave it in just in case
3841 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3842 lt_cv_file_magic_cmd='/usr/bin/file -L'
3844 rhapsody* | darwin1.[012])
3845 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3848 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3851 lt_cv_deplibs_check_method=pass_all
3855 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3858 # Not sure whether the presence of OpenBSD here was a mistake.
3859 # Let's accept both of them until this is cleared up.
3860 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3861 lt_cv_file_magic_cmd=/usr/bin/file
3862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3866 lt_cv_deplibs_check_method=pass_all
3871 lt_cv_deplibs_check_method=pass_all
3874 hpux10.20* | hpux11*)
3875 lt_cv_file_magic_cmd=/usr/bin/file
3878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3879 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3882 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]'
3883 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3887 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3892 irix5* | irix6* | nonstopux*)
3894 irix5* | nonstopux*)
3895 # this will be overridden with pass_all, but let us keep it just in case
3896 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3900 *-32|*"-32 ") libmagic=32-bit;;
3901 *-n32|*"-n32 ") libmagic=N32;;
3902 *-64|*"-64 ") libmagic=64-bit;;
3903 *) libmagic=never-match;;
3905 # this will be overridden with pass_all, but let us keep it just in case
3906 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3909 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3910 lt_cv_deplibs_check_method=pass_all
3913 # This must be Linux ELF.
3916 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3917 lt_cv_deplibs_check_method=pass_all ;;
3919 # glibc up to 2.1.1 does not perform some relocations on ARM
3920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3922 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3926 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3935 lt_cv_file_magic_cmd=/usr/bin/file
3936 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3940 lt_cv_deplibs_check_method=unknown
3944 lt_cv_file_magic_cmd=/usr/bin/file
3945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3946 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3949 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3953 osf3* | osf4* | osf5*)
3954 # this will be overridden with pass_all, but let us keep it just in case
3955 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3956 lt_cv_file_magic_test_file=/shlib/libc.so
3957 lt_cv_deplibs_check_method=pass_all
3961 lt_cv_deplibs_check_method=pass_all
3965 lt_cv_deplibs_check_method=pass_all
3966 lt_cv_file_magic_test_file=/lib/libc.so
3969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3970 case $host_vendor in
3972 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]'
3973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3976 lt_cv_deplibs_check_method=pass_all
3979 lt_cv_file_magic_cmd='/bin/file'
3980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3983 lt_cv_file_magic_cmd='/bin/file'
3984 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3985 lt_cv_file_magic_test_file=/lib/libc.so
3988 lt_cv_deplibs_check_method=pass_all
3993 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3994 lt_cv_deplibs_check_method=pass_all
3999 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4000 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4001 file_magic_cmd=$lt_cv_file_magic_cmd
4002 deplibs_check_method=$lt_cv_deplibs_check_method
4003 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4008 # If no C compiler was specified, use CC.
4011 # Allow CC to be a program name with arguments.
4014 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4015 if test "${enable_libtool_lock+set}" = set; then
4016 enableval="$enable_libtool_lock"
4019 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4021 # Some flags need to be propagated to the compiler or linker for good
4025 # Find out which ABI we are using.
4026 echo 'int i;' > conftest.$ac_ext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; then
4032 case `/usr/bin/file conftest.$ac_objext` in
4044 # Find out which ABI we are using.
4045 echo '#line 4045 "configure"' > conftest.$ac_ext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; then
4051 if test "$lt_cv_prog_gnu_ld" = yes; then
4052 case `/usr/bin/file conftest.$ac_objext` in
4054 LD="${LD-ld} -melf32bsmip"
4057 LD="${LD-ld} -melf32bmipn32"
4060 LD="${LD-ld} -melf64bmip"
4064 case `/usr/bin/file conftest.$ac_objext` in
4080 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4081 # Find out which ABI we are using.
4082 echo 'int i;' > conftest.$ac_ext
4083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084 (eval $ac_compile) 2>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; then
4088 case "`/usr/bin/file conftest.o`" in
4092 LD="${LD-ld} -m elf_i386"
4095 LD="${LD-ld} -m elf32ppclinux"
4098 LD="${LD-ld} -m elf_s390"
4101 LD="${LD-ld} -m elf32_sparc"
4108 LD="${LD-ld} -m elf_x86_64"
4110 ppc*-*linux*|powerpc*-*linux*)
4111 LD="${LD-ld} -m elf64ppc"
4114 LD="${LD-ld} -m elf64_s390"
4117 LD="${LD-ld} -m elf64_sparc"
4127 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4128 SAVE_CFLAGS="$CFLAGS"
4129 CFLAGS="$CFLAGS -belf"
4130 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4131 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4132 if test "${lt_cv_cc_needs_belf+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141 cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 lt_cv_cc_needs_belf=yes
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 lt_cv_cc_needs_belf=no
4176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4185 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4186 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4187 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4188 CFLAGS="$SAVE_CFLAGS"
4194 need_locks="$enable_libtool_lock"
4198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4200 if test "${ac_cv_header_stdc+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 ac_cv_header_stdc=yes
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 ac_cv_header_stdc=no
4242 rm -f conftest.$ac_objext conftest.$ac_ext
4244 if test $ac_cv_header_stdc = yes; then
4245 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4246 cat >conftest.$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "memchr" >/dev/null 2>&1; then
4260 ac_cv_header_stdc=no
4266 if test $ac_cv_header_stdc = yes; then
4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4268 cat >conftest.$ac_ext <<_ACEOF
4269 #line $LINENO "configure"
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "free" >/dev/null 2>&1; then
4282 ac_cv_header_stdc=no
4288 if test $ac_cv_header_stdc = yes; then
4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290 if test "$cross_compiling" = yes; then
4293 cat >conftest.$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4301 #if ((' ' & 0x0FF) == 0x020)
4302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4305 # define ISLOWER(c) \
4306 (('a' <= (c) && (c) <= 'i') \
4307 || ('j' <= (c) && (c) <= 'r') \
4308 || ('s' <= (c) && (c) <= 'z'))
4309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4317 for (i = 0; i < 256; i++)
4318 if (XOR (islower (i), ISLOWER (i))
4319 || toupper (i) != TOUPPER (i))
4324 rm -f conftest$ac_exeext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326 (eval $ac_link) 2>&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4337 echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_header_stdc=no
4344 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4350 if test $ac_cv_header_stdc = yes; then
4352 cat >>confdefs.h <<\_ACEOF
4353 #define STDC_HEADERS 1
4358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4369 inttypes.h stdint.h unistd.h
4371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372 echo "$as_me:$LINENO: checking for $ac_header" >&5
4373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 cat >conftest.$ac_ext <<_ACEOF
4378 #line $LINENO "configure"
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 $ac_includes_default
4386 #include <$ac_header>
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 eval "$as_ac_Header=yes"
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 eval "$as_ac_Header=no"
4407 rm -f conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412 cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4422 for ac_header in dlfcn.h
4424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426 echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4434 # Is the header compilable?
4435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4445 #include <$ac_header>
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_header_compiler=yes
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4464 ac_header_compiler=no
4466 rm -f conftest.$ac_objext conftest.$ac_ext
4467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4468 echo "${ECHO_T}$ac_header_compiler" >&6
4470 # Is the header present?
4471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4473 cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 #include <$ac_header>
4482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4485 grep -v '^ *+' conftest.er1 >conftest.err
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } >/dev/null; then
4490 if test -s conftest.err; then
4491 ac_cpp_err=$ac_c_preproc_warn_flag
4498 if test -z "$ac_cpp_err"; then
4499 ac_header_preproc=yes
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 ac_header_preproc=no
4506 rm -f conftest.err conftest.$ac_ext
4507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4508 echo "${ECHO_T}$ac_header_preproc" >&6
4510 # So? What about this header?
4511 case $ac_header_compiler:$ac_header_preproc in
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4519 ## ------------------------------------ ##
4520 ## Report this to bug-autoconf@gnu.org. ##
4521 ## ------------------------------------ ##
4524 sed "s/^/$as_me: WARNING: /" >&2
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4535 ## ------------------------------------ ##
4536 ## Report this to bug-autoconf@gnu.org. ##
4537 ## ------------------------------------ ##
4540 sed "s/^/$as_me: WARNING: /" >&2
4543 echo "$as_me:$LINENO: checking for $ac_header" >&5
4544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 eval "$as_ac_Header=$ac_header_preproc"
4550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4555 cat >>confdefs.h <<_ACEOF
4556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564 ac_cpp='$CXXCPP $CPPFLAGS'
4565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4568 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4569 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4570 if test -z "$CXXCPP"; then
4571 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 # Double quotes because CXXCPP needs to be expanded
4575 for CXXCPP in "$CXX -E" "/lib/cpp"
4578 for ac_cxx_preproc_warn_flag in '' yes
4580 # Use a header file that comes with gcc, so configuring glibc
4581 # with a fresh cross-compiler works.
4582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583 # <limits.h> exists even on freestanding compilers.
4584 # On the NeXT, cc -E runs the code through the compiler's parser,
4585 # not just through cpp. "Syntax error" is here to catch this case.
4586 cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4594 # include <limits.h>
4596 # include <assert.h>
4600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4603 grep -v '^ *+' conftest.er1 >conftest.err
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } >/dev/null; then
4608 if test -s conftest.err; then
4609 ac_cpp_err=$ac_cxx_preproc_warn_flag
4616 if test -z "$ac_cpp_err"; then
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 # Broken: fails on valid input.
4625 rm -f conftest.err conftest.$ac_ext
4627 # OK, works on sane cases. Now check whether non-existent headers
4628 # can be detected and how.
4629 cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 #include <ac_nonexistent.h>
4638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4641 grep -v '^ *+' conftest.er1 >conftest.err
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null; then
4646 if test -s conftest.err; then
4647 ac_cpp_err=$ac_cxx_preproc_warn_flag
4654 if test -z "$ac_cpp_err"; then
4655 # Broken: success on invalid input.
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 # Passes both tests.
4665 rm -f conftest.err conftest.$ac_ext
4668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4669 rm -f conftest.err conftest.$ac_ext
4670 if $ac_preproc_ok; then
4675 ac_cv_prog_CXXCPP=$CXXCPP
4678 CXXCPP=$ac_cv_prog_CXXCPP
4680 ac_cv_prog_CXXCPP=$CXXCPP
4682 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4683 echo "${ECHO_T}$CXXCPP" >&6
4685 for ac_cxx_preproc_warn_flag in '' yes
4687 # Use a header file that comes with gcc, so configuring glibc
4688 # with a fresh cross-compiler works.
4689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4690 # <limits.h> exists even on freestanding compilers.
4691 # On the NeXT, cc -E runs the code through the compiler's parser,
4692 # not just through cpp. "Syntax error" is here to catch this case.
4693 cat >conftest.$ac_ext <<_ACEOF
4694 #line $LINENO "configure"
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4701 # include <limits.h>
4703 # include <assert.h>
4707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4710 grep -v '^ *+' conftest.er1 >conftest.err
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } >/dev/null; then
4715 if test -s conftest.err; then
4716 ac_cpp_err=$ac_cxx_preproc_warn_flag
4723 if test -z "$ac_cpp_err"; then
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 # Broken: fails on valid input.
4732 rm -f conftest.err conftest.$ac_ext
4734 # OK, works on sane cases. Now check whether non-existent headers
4735 # can be detected and how.
4736 cat >conftest.$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #include <ac_nonexistent.h>
4745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null; then
4753 if test -s conftest.err; then
4754 ac_cpp_err=$ac_cxx_preproc_warn_flag
4761 if test -z "$ac_cpp_err"; then
4762 # Broken: success on invalid input.
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 # Passes both tests.
4772 rm -f conftest.err conftest.$ac_ext
4775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4776 rm -f conftest.err conftest.$ac_ext
4777 if $ac_preproc_ok; then
4780 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4781 See \`config.log' for more details." >&5
4782 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4783 See \`config.log' for more details." >&2;}
4784 { (exit 1); exit 1; }; }
4788 ac_cpp='$CXXCPP $CPPFLAGS'
4789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4795 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4796 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4798 if test -n "$ac_tool_prefix"; then
4799 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4803 echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4805 if test "${ac_cv_prog_F77+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 if test -n "$F77"; then
4809 ac_cv_prog_F77="$F77" # Let the user override the test.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 if test -n "$F77"; then
4829 echo "$as_me:$LINENO: result: $F77" >&5
4830 echo "${ECHO_T}$F77" >&6
4832 echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6
4836 test -n "$F77" && break
4839 if test -z "$F77"; then
4841 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4843 # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4847 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 if test -n "$ac_ct_F77"; then
4851 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_prog_ac_ct_F77="$ac_prog"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4870 if test -n "$ac_ct_F77"; then
4871 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4872 echo "${ECHO_T}$ac_ct_F77" >&6
4874 echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6
4878 test -n "$ac_ct_F77" && break
4885 # Provide some information about the compiler.
4886 echo "$as_me:4886:" \
4887 "checking for Fortran 77 compiler version" >&5
4888 ac_compiler=`set X $ac_compile; echo $2`
4889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4890 (eval $ac_compiler --version </dev/null >&5) 2>&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }
4894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4895 (eval $ac_compiler -v </dev/null >&5) 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }
4899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4900 (eval $ac_compiler -V </dev/null >&5) 2>&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }
4905 # If we don't use `.F' as extension, the preprocessor is not run on the
4909 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4910 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4911 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 cat >conftest.$ac_ext <<_ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4941 rm -f conftest.$ac_objext conftest.$ac_ext
4942 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4945 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4946 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4948 G77=`test $ac_compiler_gnu = yes && echo yes`
4949 ac_test_FFLAGS=${FFLAGS+set}
4950 ac_save_FFLAGS=$FFLAGS
4952 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4953 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4954 if test "${ac_cv_prog_f77_g+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 cat >conftest.$ac_ext <<_ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965 (eval $ac_compile) 2>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -s conftest.$ac_objext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_cv_prog_f77_g=yes
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4982 rm -f conftest.$ac_objext conftest.$ac_ext
4985 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4986 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4987 if test "$ac_test_FFLAGS" = set; then
4988 FFLAGS=$ac_save_FFLAGS
4989 elif test $ac_cv_prog_f77_g = yes; then
4990 if test "$G77" = yes; then
4996 if test "$G77" = yes; then
5003 ac_cpp='$CPP $CPPFLAGS'
5004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5012 # find the maximum length of command line arguments
5013 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5014 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5015 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 # On DJGPP, this test can blow up pretty badly due to problems in libc
5024 # (any single argument exceeding 2000 bytes causes a buffer overrun
5025 # during glob expansion). Even if it were fixed, the result of this
5026 # check would be larger than it should be.
5027 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5031 # Under GNU Hurd, this test is not required because there is
5032 # no limit to the length of command line arguments.
5033 # Libtool will interpret -1 as no limit whatsoever
5034 lt_cv_sys_max_cmd_len=-1;
5038 # On Win9x/ME, this test blows up -- it succeeds, but takes
5039 # about 5 minutes as the teststring grows exponentially.
5040 # Worse, since 9x/ME are not pre-emptively multitasking,
5041 # you end up with a "frozen" computer, even though with patience
5042 # the test eventually succeeds (with a max line length of 256k).
5043 # Instead, let's just punt: use the minimum linelength reported by
5044 # all of the supported platforms: 8192 (on NT/2K/XP).
5045 lt_cv_sys_max_cmd_len=8192;
5049 # If test is not a shell built-in, we'll probably end up computing a
5050 # maximum length that is only half of the actual maximum length, but
5052 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5053 = "XX$testring") >/dev/null 2>&1 &&
5054 new_result=`expr "X$testring" : ".*" 2>&1` &&
5055 lt_cv_sys_max_cmd_len=$new_result &&
5056 test $i != 17 # 1/2 MB should be enough
5059 testring=$testring$testring
5062 # Add a significant safety factor because C++ compilers can tack on massive
5063 # amounts of additional arguments before passing them to the linker.
5064 # It appears as though 1/2 is a usable value.
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5071 if test -n $lt_cv_sys_max_cmd_len ; then
5072 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5073 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5075 echo "$as_me:$LINENO: result: none" >&5
5076 echo "${ECHO_T}none" >&6
5082 # Check for command to grab the raw symbol name followed by C symbol from nm.
5083 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5084 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5085 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 # These are sane defaults that work on at least a few old systems.
5090 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5092 # Character class describing NM global symbol codes.
5093 symcode='[BCDEGRST]'
5095 # Regexp to match symbols that can be accessed directly from C.
5096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5098 # Transform the above into a raw symbol and a C symbol.
5099 symxfrm='\1 \2\3 \3'
5101 # Transform an extracted symbol line into a proper C declaration
5102 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5104 # Transform an extracted symbol line into symbol name and symbol address
5105 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'"
5107 # Define system-specific variables.
5112 cygwin* | mingw* | pw32*)
5113 symcode='[ABCDGISTW]'
5115 hpux*) # Its linker distinguishes data from code symbols
5116 if test "$host_cpu" = ia64; then
5117 symcode='[ABCDEGRST]'
5119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5120 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'"
5123 symcode='[BCDEGRST]'
5126 symcode='[BCDEGQRST]'
5136 # Handle CRLF in mingw tool chain
5140 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5144 # If we're using GNU nm, then use its standard symbol codes.
5145 case `$NM -V 2>&1` in
5146 *GNU* | *'with BFD'*)
5147 symcode='[ABCDGISTW]' ;;
5150 # Try without a prefix undercore, then with it.
5151 for ac_symprfx in "" "_"; do
5153 # Write the raw and C identifiers.
5154 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5156 # Check to see that the pipe works correctly.
5160 cat > conftest.$ac_ext <<EOF
5165 void nm_test_func(){}
5169 int main(){nm_test_var='a';nm_test_func();return(0);}
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; then
5177 # Now try to grab the symbols.
5179 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5180 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } && test -s "$nlist"; then
5184 # Try sorting and uniquifying the output.
5185 if sort "$nlist" | uniq > "$nlist"T; then
5186 mv -f "$nlist"T "$nlist"
5191 # Make sure that we snagged all the symbols we need.
5192 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5193 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5194 cat <<EOF > conftest.$ac_ext
5200 # Now generate the symbol file.
5201 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5203 cat <<EOF >> conftest.$ac_ext
5204 #if defined (__STDC__) && __STDC__
5205 # define lt_ptr_t void *
5207 # define lt_ptr_t char *
5211 /* The mapping between symbol names and symbols. */
5216 lt_preloaded_symbols[] =
5219 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5220 cat <<\EOF >> conftest.$ac_ext
5228 # Now try linking the two files.
5229 mv conftest.$ac_objext conftstm.$ac_objext
5230 lt_save_LIBS="$LIBS"
5231 lt_save_CFLAGS="$CFLAGS"
5232 LIBS="conftstm.$ac_objext"
5233 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235 (eval $ac_link) 2>&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5241 LIBS="$lt_save_LIBS"
5242 CFLAGS="$lt_save_CFLAGS"
5244 echo "cannot find nm_test_func in $nlist" >&5
5247 echo "cannot find nm_test_var in $nlist" >&5
5250 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5253 echo "$progname: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5256 rm -f conftest* conftst*
5258 # Do not use the global_symbol_pipe unless it works.
5259 if test "$pipe_works" = yes; then
5262 lt_cv_sys_global_symbol_pipe=
5268 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5269 lt_cv_sys_global_symbol_to_cdecl=
5271 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5272 echo "$as_me:$LINENO: result: failed" >&5
5273 echo "${ECHO_T}failed" >&6
5275 echo "$as_me:$LINENO: result: ok" >&5
5276 echo "${ECHO_T}ok" >&6
5279 echo "$as_me:$LINENO: checking for objdir" >&5
5280 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5281 if test "${lt_cv_objdir+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 rm -f .libs 2>/dev/null
5285 mkdir .libs 2>/dev/null
5286 if test -d .libs; then
5289 # MS-DOS does not allow filenames that begin with a dot.
5292 rmdir .libs 2>/dev/null
5294 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5295 echo "${ECHO_T}$lt_cv_objdir" >&6
5296 objdir=$lt_cv_objdir
5304 # AIX sometimes has problems with the GCC collect2 program. For some
5305 # reason, if we set the COLLECT_NAMES environment variable, the problems
5306 # vanish in a puff of smoke.
5307 if test "X${COLLECT_NAMES+set}" != Xset; then
5309 export COLLECT_NAMES
5314 # Sed substitution that helps us do robust quoting. It backslashifies
5315 # metacharacters that are still active within double-quoted strings.
5316 Xsed='sed -e s/^X//'
5317 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5319 # Same as above, but do not quote variable references.
5320 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5322 # Sed substitution to delay expansion of an escaped shell variable in a
5323 # double_quote_subst'ed string.
5324 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5326 # Sed substitution to avoid accidental globbing in evaled expressions
5327 no_glob_subst='s/\*/\\\*/g'
5334 can_build_shared=yes
5336 # All known linkers require a `.a' archive for static linking (except M$VC,
5337 # which needs '.lib').
5339 ltmain="$ac_aux_dir/ltmain.sh"
5340 ofile="$default_ofile"
5341 with_gnu_ld="$lt_cv_prog_gnu_ld"
5343 if test -n "$ac_tool_prefix"; then
5344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}ar; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_prog_AR+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 if test -n "$AR"; then
5352 ac_cv_prog_AR="$AR" # Let the user override the test.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_AR="${ac_tool_prefix}ar"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 if test -n "$AR"; then
5372 echo "$as_me:$LINENO: result: $AR" >&5
5373 echo "${ECHO_T}$AR" >&6
5375 echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5380 if test -z "$ac_cv_prog_AR"; then
5382 # Extract the first word of "ar", so it can be a program name with args.
5383 set dummy ar; ac_word=$2
5384 echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5386 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 if test -n "$ac_ct_AR"; then
5390 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399 ac_cv_prog_ac_ct_AR="ar"
5400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5409 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5410 if test -n "$ac_ct_AR"; then
5411 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5412 echo "${ECHO_T}$ac_ct_AR" >&6
5414 echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5423 if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5426 echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428 if test "${ac_cv_prog_RANLIB+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 if test -n "$RANLIB"; then
5432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 RANLIB=$ac_cv_prog_RANLIB
5451 if test -n "$RANLIB"; then
5452 echo "$as_me:$LINENO: result: $RANLIB" >&5
5453 echo "${ECHO_T}$RANLIB" >&6
5455 echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5460 if test -z "$ac_cv_prog_RANLIB"; then
5461 ac_ct_RANLIB=$RANLIB
5462 # Extract the first word of "ranlib", so it can be a program name with args.
5463 set dummy ranlib; ac_word=$2
5464 echo "$as_me:$LINENO: checking for $ac_word" >&5
5465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5466 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 if test -n "$ac_ct_RANLIB"; then
5470 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_ac_ct_RANLIB="ranlib"
5480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5489 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5490 if test -n "$ac_ct_RANLIB"; then
5491 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5492 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5494 echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5498 RANLIB=$ac_ct_RANLIB
5500 RANLIB="$ac_cv_prog_RANLIB"
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5505 set dummy ${ac_tool_prefix}strip; ac_word=$2
5506 echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508 if test "${ac_cv_prog_STRIP+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 if test -n "$STRIP"; then
5512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 STRIP=$ac_cv_prog_STRIP
5531 if test -n "$STRIP"; then
5532 echo "$as_me:$LINENO: result: $STRIP" >&5
5533 echo "${ECHO_T}$STRIP" >&6
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5540 if test -z "$ac_cv_prog_STRIP"; then
5542 # Extract the first word of "strip", so it can be a program name with args.
5543 set dummy strip; ac_word=$2
5544 echo "$as_me:$LINENO: checking for $ac_word" >&5
5545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 if test -n "$ac_ct_STRIP"; then
5550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559 ac_cv_prog_ac_ct_STRIP="strip"
5560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5570 if test -n "$ac_ct_STRIP"; then
5571 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5572 echo "${ECHO_T}$ac_ct_STRIP" >&6
5574 echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6
5580 STRIP="$ac_cv_prog_STRIP"
5585 old_CFLAGS="$CFLAGS"
5587 # Set sane defaults for various variables
5588 test -z "$AR" && AR=ar
5589 test -z "$AR_FLAGS" && AR_FLAGS=cru
5590 test -z "$AS" && AS=as
5591 test -z "$CC" && CC=cc
5592 test -z "$LTCC" && LTCC=$CC
5593 test -z "$DLLTOOL" && DLLTOOL=dlltool
5594 test -z "$LD" && LD=ld
5595 test -z "$LN_S" && LN_S="ln -s"
5596 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5597 test -z "$NM" && NM=nm
5598 test -z "$SED" && SED=sed
5599 test -z "$OBJDUMP" && OBJDUMP=objdump
5600 test -z "$RANLIB" && RANLIB=:
5601 test -z "$STRIP" && STRIP=:
5602 test -z "$ac_objext" && ac_objext=o
5604 # Determine commands to create old-style static archives.
5605 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5606 old_postinstall_cmds='chmod 644 $oldlib'
5607 old_postuninstall_cmds=
5609 if test -n "$RANLIB"; then
5612 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5615 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5618 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5621 # Only perform the check for file, if the check method requires it
5622 case $deplibs_check_method in
5624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5625 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5626 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5635 lt_save_MAGIC_CMD="$MAGIC_CMD"
5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5637 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5638 for ac_dir in $ac_dummy; do
5640 test -z "$ac_dir" && ac_dir=.
5641 if test -f $ac_dir/${ac_tool_prefix}file; then
5642 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5643 if test -n "$file_magic_test_file"; then
5644 case $deplibs_check_method in
5646 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5648 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5649 $EGREP "$file_magic_regex" > /dev/null; then
5654 *** Warning: the command libtool uses to detect shared libraries,
5655 *** $file_magic_cmd, produces output that libtool cannot recognize.
5656 *** The result is that libtool may fail to recognize shared libraries
5657 *** as such. This will affect the creation of libtool libraries that
5658 *** depend on shared libraries, but programs linked with such libtool
5659 *** libraries will work regardless of this problem. Nevertheless, you
5660 *** may want to report the problem to your system manager and/or to
5661 *** bug-libtool@gnu.org
5671 MAGIC_CMD="$lt_save_MAGIC_CMD"
5676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5677 if test -n "$MAGIC_CMD"; then
5678 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5679 echo "${ECHO_T}$MAGIC_CMD" >&6
5681 echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6
5685 if test -z "$lt_cv_path_MAGIC_CMD"; then
5686 if test -n "$ac_tool_prefix"; then
5687 echo "$as_me:$LINENO: checking for file" >&5
5688 echo $ECHO_N "checking for file... $ECHO_C" >&6
5689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5697 lt_save_MAGIC_CMD="$MAGIC_CMD"
5698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5700 for ac_dir in $ac_dummy; do
5702 test -z "$ac_dir" && ac_dir=.
5703 if test -f $ac_dir/file; then
5704 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5705 if test -n "$file_magic_test_file"; then
5706 case $deplibs_check_method in
5708 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5711 $EGREP "$file_magic_regex" > /dev/null; then
5716 *** Warning: the command libtool uses to detect shared libraries,
5717 *** $file_magic_cmd, produces output that libtool cannot recognize.
5718 *** The result is that libtool may fail to recognize shared libraries
5719 *** as such. This will affect the creation of libtool libraries that
5720 *** depend on shared libraries, but programs linked with such libtool
5721 *** libraries will work regardless of this problem. Nevertheless, you
5722 *** may want to report the problem to your system manager and/or to
5723 *** bug-libtool@gnu.org
5733 MAGIC_CMD="$lt_save_MAGIC_CMD"
5738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5739 if test -n "$MAGIC_CMD"; then
5740 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5741 echo "${ECHO_T}$MAGIC_CMD" >&6
5743 echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6
5759 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5760 if test "${enable_libtool_lock+set}" = set; then
5761 enableval="$enable_libtool_lock"
5764 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5767 # Check whether --with-pic or --without-pic was given.
5768 if test "${with_pic+set}" = set; then
5774 test -z "$pic_mode" && pic_mode=default
5776 # Use C for the default configuration in the libtool script
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786 # Source file extension for C test sources.
5789 # Object file extension for compiled C test sources.
5793 # Code to be used in simple compile tests
5794 lt_simple_compile_test_code="int some_variable = 0;\n"
5796 # Code to be used in simple link tests
5797 lt_simple_link_test_code='int main(){return(0);}\n'
5800 # If no C compiler was specified, use CC.
5803 # Allow CC to be a program name with arguments.
5808 # Check for any special shared library compilation flags.
5811 if test "$GCC" = no; then
5814 lt_prog_cc_shlib='-belf'
5818 if test -n "$lt_prog_cc_shlib"; then
5819 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5820 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5821 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5823 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5824 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5825 lt_cv_prog_cc_can_build_shared=no
5831 # Check to make sure the static flag actually works.
5833 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5834 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5835 if test "${lt_prog_compiler_static_works+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 lt_prog_compiler_static_works=no
5839 save_LDFLAGS="$LDFLAGS"
5840 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5841 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5843 # The compiler can only warn and ignore the option if not recognized
5844 # So say no if there are warnings
5845 if test -s conftest.err; then
5846 # Append any errors to the config.log.
5847 cat conftest.err 1>&5
5849 lt_prog_compiler_static_works=yes
5853 LDFLAGS="$save_LDFLAGS"
5856 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5857 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5859 if test x"$lt_prog_compiler_static_works" = xyes; then
5862 lt_prog_compiler_static=
5868 ## There is no encapsulation within the following macros, do not change
5869 ## the running order or otherwise move them around unless you know exactly
5870 ## what you are doing...
5872 lt_prog_compiler_no_builtin_flag=
5874 if test "$GCC" = yes; then
5875 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5877 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5878 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5879 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 lt_cv_prog_compiler_rtti_exceptions=no
5883 ac_outfile=conftest.$ac_objext
5884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5885 lt_compiler_flag="-fno-rtti -fno-exceptions"
5886 # Insert the option either (1) after the last *FLAGS variable, or
5887 # (2) before a word containing "conftest.", or (3) at the end.
5888 # Note that $ac_compile itself does not contain backslashes and begins
5889 # with a dollar sign (not a hyphen), so the echo should work correctly.
5890 # The option is referenced via a variable to avoid confusing sed.
5891 lt_compile=`echo "$ac_compile" | $SED \
5892 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5894 -e 's:$: $lt_compiler_flag:'`
5895 (eval echo "\"\$as_me:5895: $lt_compile\"" >&5)
5896 (eval "$lt_compile" 2>conftest.err)
5898 cat conftest.err >&5
5899 echo "$as_me:5899: \$? = $ac_status" >&5
5900 if (exit $ac_status) && test -s "$ac_outfile"; then
5901 # The compiler can only warn and ignore the option if not recognized
5902 # So say no if there are warnings
5903 if test ! -s conftest.err; then
5904 lt_cv_prog_compiler_rtti_exceptions=yes
5910 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5911 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5913 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5914 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5921 lt_prog_compiler_wl=
5922 lt_prog_compiler_pic=
5923 lt_prog_compiler_static=
5925 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5926 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5928 if test "$GCC" = yes; then
5929 lt_prog_compiler_wl='-Wl,'
5930 lt_prog_compiler_static='-static'
5934 # All AIX code is PIC.
5935 if test "$host_cpu" = ia64; then
5936 # AIX 5 now supports IA64 processor
5937 lt_prog_compiler_static='-Bstatic'
5942 # FIXME: we need at least 68020 code to build shared libraries, but
5943 # adding the `-m68020' flag to GCC prevents building anything better,
5945 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5948 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5949 # PIC is the default for these OSes.
5952 mingw* | pw32* | os2*)
5953 # This hack is so that the source file can tell whether it is being
5954 # built for inclusion in a dll (and should export symbols for example).
5955 lt_prog_compiler_pic='-DDLL_EXPORT'
5958 darwin* | rhapsody*)
5959 # PIC is the default on this platform
5960 # Common symbols not allowed in MH_DYLIB files
5961 lt_prog_compiler_pic='-fno-common'
5965 # Just because we use GCC doesn't mean we suddenly get shared libraries
5966 # on systems that don't support them.
5967 lt_prog_compiler_can_build_shared=no
5972 if test -d /usr/nec; then
5973 lt_prog_compiler_pic=-Kconform_pic
5978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5985 lt_prog_compiler_pic='-fPIC'
5991 lt_prog_compiler_pic='-fPIC'
5995 # PORTME Check for flag to pass linker flags through the system compiler.
5998 lt_prog_compiler_wl='-Wl,'
5999 if test "$host_cpu" = ia64; then
6000 # AIX 5 now supports IA64 processor
6001 lt_prog_compiler_static='-Bstatic'
6003 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6007 mingw* | pw32* | os2*)
6008 # This hack is so that the source file can tell whether it is being
6009 # built for inclusion in a dll (and should export symbols for example).
6010 lt_prog_compiler_pic='-DDLL_EXPORT'
6013 hpux9* | hpux10* | hpux11*)
6014 lt_prog_compiler_wl='-Wl,'
6015 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6022 lt_prog_compiler_pic='+Z'
6025 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6026 lt_prog_compiler_static='${wl}-a ${wl}archive'
6029 irix5* | irix6* | nonstopux*)
6030 lt_prog_compiler_wl='-Wl,'
6031 # PIC (with -KPIC) is the default.
6032 lt_prog_compiler_static='-non_shared'
6036 lt_prog_compiler_pic='-KPIC'
6037 lt_prog_compiler_static='-Bstatic'
6043 lt_prog_compiler_wl='-Wl,'
6044 lt_prog_compiler_pic='-KPIC'
6045 lt_prog_compiler_static='-static'
6048 lt_prog_compiler_wl='-Wl,'
6049 # All Alpha code is PIC.
6050 lt_prog_compiler_static='-non_shared'
6055 osf3* | osf4* | osf5*)
6056 lt_prog_compiler_wl='-Wl,'
6057 # All OSF/1 code is PIC.
6058 lt_prog_compiler_static='-non_shared'
6062 lt_prog_compiler_pic='-Kpic'
6063 lt_prog_compiler_static='-dn'
6067 lt_prog_compiler_wl='-Wl,'
6068 lt_prog_compiler_pic='-KPIC'
6069 lt_prog_compiler_static='-Bstatic'
6073 lt_prog_compiler_wl='-Qoption ld '
6074 lt_prog_compiler_pic='-PIC'
6075 lt_prog_compiler_static='-Bstatic'
6078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6079 lt_prog_compiler_wl='-Wl,'
6080 lt_prog_compiler_pic='-KPIC'
6081 lt_prog_compiler_static='-Bstatic'
6085 if test -d /usr/nec ;then
6086 lt_prog_compiler_pic='-Kconform_pic'
6087 lt_prog_compiler_static='-Bstatic'
6092 lt_prog_compiler_pic='-pic'
6093 lt_prog_compiler_static='-Bstatic'
6097 lt_prog_compiler_can_build_shared=no
6102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6103 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6106 # Check to make sure the PIC flag actually works.
6108 if test -n "$lt_prog_compiler_pic"; then
6109 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6110 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6111 if test "${lt_prog_compiler_pic_works+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 lt_prog_compiler_pic_works=no
6115 ac_outfile=conftest.$ac_objext
6116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6117 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6118 # Insert the option either (1) after the last *FLAGS variable, or
6119 # (2) before a word containing "conftest.", or (3) at the end.
6120 # Note that $ac_compile itself does not contain backslashes and begins
6121 # with a dollar sign (not a hyphen), so the echo should work correctly.
6122 # The option is referenced via a variable to avoid confusing sed.
6123 lt_compile=`echo "$ac_compile" | $SED \
6124 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6126 -e 's:$: $lt_compiler_flag:'`
6127 (eval echo "\"\$as_me:6127: $lt_compile\"" >&5)
6128 (eval "$lt_compile" 2>conftest.err)
6130 cat conftest.err >&5
6131 echo "$as_me:6131: \$? = $ac_status" >&5
6132 if (exit $ac_status) && test -s "$ac_outfile"; then
6133 # The compiler can only warn and ignore the option if not recognized
6134 # So say no if there are warnings
6135 if test ! -s conftest.err; then
6136 lt_prog_compiler_pic_works=yes
6142 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6143 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6145 if test x"$lt_prog_compiler_pic_works" = xyes; then
6146 case $lt_prog_compiler_pic in
6148 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6151 lt_prog_compiler_pic=
6152 lt_prog_compiler_can_build_shared=no
6157 # For platforms which do not support PIC, -DPIC is meaningless:
6159 lt_prog_compiler_pic=
6162 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6166 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6167 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6168 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 lt_cv_prog_compiler_c_o=no
6172 $rm -r conftest 2>/dev/null
6176 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6178 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6179 # that will create temporary files in the current directory regardless of
6180 # the output directory. Thus, making CWD read-only will cause this test
6181 # to fail, enabling locking or at least warning the user not to do parallel
6185 lt_compiler_flag="-o out/conftest2.$ac_objext"
6186 # Insert the option either (1) after the last *FLAGS variable, or
6187 # (2) before a word containing "conftest.", or (3) at the end.
6188 # Note that $ac_compile itself does not contain backslashes and begins
6189 # with a dollar sign (not a hyphen), so the echo should work correctly.
6190 lt_compile=`echo "$ac_compile" | $SED \
6191 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6193 -e 's:$: $lt_compiler_flag:'`
6194 (eval echo "\"\$as_me:6194: $lt_compile\"" >&5)
6195 (eval "$lt_compile" 2>out/conftest.err)
6197 cat out/conftest.err >&5
6198 echo "$as_me:6198: \$? = $ac_status" >&5
6199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6201 # The compiler can only warn and ignore the option if not recognized
6202 # So say no if there are warnings
6203 if test ! -s out/conftest.err; then
6204 lt_cv_prog_compiler_c_o=yes
6215 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6216 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6219 hard_links="nottested"
6220 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6221 # do not overwrite the value of need_locks provided by the user
6222 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6223 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6228 ln conftest.a conftest.b 2>&5 || hard_links=no
6229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6230 echo "$as_me:$LINENO: result: $hard_links" >&5
6231 echo "${ECHO_T}$hard_links" >&6
6232 if test "$hard_links" = no; then
6233 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6234 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6241 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6245 allow_undefined_flag=
6246 enable_shared_with_static_runtimes=no
6248 archive_expsym_cmds=
6249 old_archive_From_new_cmds=
6250 old_archive_from_expsyms_cmds=
6251 export_dynamic_flag_spec=
6252 whole_archive_flag_spec=
6253 thread_safe_flag_spec=
6254 hardcode_libdir_flag_spec=
6255 hardcode_libdir_flag_spec_ld=
6256 hardcode_libdir_separator=
6259 hardcode_shlibpath_var=unsupported
6260 link_all_deplibs=unknown
6261 hardcode_automatic=no
6264 always_export_symbols=no
6265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6266 # include_expsyms should be a list of space-separated symbols to be *always*
6267 # included in the symbol list
6269 # exclude_expsyms can be an extended regexp of symbols to exclude
6270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6272 # as well as any symbol that contains `d'.
6273 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6275 # platforms (ab)use it in PIC code, but their linkers get confused if
6276 # the symbol is explicitly referenced. Since portable code cannot
6277 # rely on this symbol name, it's probably fine to never include it in
6278 # preloaded symbol tables.
6279 extract_expsyms_cmds=
6282 cygwin* | mingw* | pw32*)
6283 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6284 # When not using gcc, we currently assume that we are using
6285 # Microsoft Visual C++.
6286 if test "$GCC" != yes; then
6296 if test "$with_gnu_ld" = yes; then
6297 # If archive_cmds runs LD, not CC, wlarc should be empty
6300 # See if GNU ld supports shared libraries.
6302 aix3* | aix4* | aix5*)
6303 # On AIX/PPC, the GNU linker is very broken
6304 if test "$host_cpu" != ia64; then
6308 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6309 *** to be unable to reliably create shared libraries on AIX.
6310 *** Therefore, libtool is disabling shared libraries support. If you
6311 *** really care for shared libraries, you may want to modify your PATH
6312 *** so that a non-GNU linker is found, and then restart.
6319 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)'
6320 hardcode_libdir_flag_spec='-L$libdir'
6321 hardcode_minus_L=yes
6323 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6324 # that the semantics of dynamic libraries on AmigaOS, at least up
6325 # to version 4, is to share data among multiple programs linked
6326 # with the same dynamic library. Since this doesn't match the
6327 # behavior of shared libraries on other platforms, we can't use
6333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6334 allow_undefined_flag=unsupported
6335 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6336 # support --undefined. This deserves some investigation. FIXME
6337 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6343 cygwin* | mingw* | pw32*)
6344 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6345 # as there is no search path for DLLs.
6346 hardcode_libdir_flag_spec='-L$libdir'
6347 allow_undefined_flag=unsupported
6348 always_export_symbols=no
6349 enable_shared_with_static_runtimes=yes
6350 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6352 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6354 # If the export-symbols file already is a .def file (1st line
6355 # is EXPORTS), use it as is; otherwise, prepend...
6356 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6357 cp $export_symbols $output_objdir/$soname.def;
6359 echo EXPORTS > $output_objdir/$soname.def;
6360 cat $export_symbols >> $output_objdir/$soname.def;
6362 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6370 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6379 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6384 *** create shared libraries on Solaris systems. Therefore, libtool
6385 *** is disabling shared libraries support. We urge you to upgrade GNU
6386 *** binutils to release 2.9.1 or newer. Another option is to modify
6387 *** your PATH or compiler configuration so that the native linker is
6388 *** used, and then restart.
6391 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6400 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6403 hardcode_shlibpath_var=no
6407 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6416 if test "$ld_shlibs" = yes; then
6417 runpath_var=LD_RUN_PATH
6418 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6419 export_dynamic_flag_spec='${wl}--export-dynamic'
6420 # ancient GNU ld didn't support --whole-archive et. al.
6421 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6422 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6424 whole_archive_flag_spec=
6428 # PORTME fill in a description of your system's linker (not GNU ld)
6431 allow_undefined_flag=unsupported
6432 always_export_symbols=yes
6433 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'
6434 # Note: this linker hardcodes the directories in LIBPATH if there
6435 # are no directories specified by -L.
6436 hardcode_minus_L=yes
6437 if test "$GCC" = yes && test -z "$link_static_flag"; then
6438 # Neither direct hardcoding nor static linking is supported with a
6440 hardcode_direct=unsupported
6445 if test "$host_cpu" = ia64; then
6446 # On IA64, the linker does run time linking by default, so we don't
6447 # have to do anything special.
6448 aix_use_runtimelinking=no
6449 exp_sym_flag='-Bexport'
6452 # If we're using GNU nm, then we don't want the "-C" option.
6453 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6454 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6455 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'
6457 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'
6459 aix_use_runtimelinking=no
6461 # Test if we are trying to use run time linking or normal
6462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6463 # need to do runtime linking.
6464 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6465 for ld_flag in $LDFLAGS; do
6466 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6467 aix_use_runtimelinking=yes
6473 exp_sym_flag='-bexport'
6474 no_entry_flag='-bnoentry'
6477 # When large executables or shared objects are built, AIX ld can
6478 # have problems creating the table of contents. If linking a library
6479 # or program results in "error TOC overflow" add -mminimal-toc to
6480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6485 hardcode_libdir_separator=':'
6486 link_all_deplibs=yes
6488 if test "$GCC" = yes; then
6489 case $host_os in aix4.012|aix4.012.*)
6490 # We only want to do this on AIX 4.2 and lower, the check
6491 # below for broken collect2 doesn't work under 4.3+
6492 collect2name=`${CC} -print-prog-name=collect2`
6493 if test -f "$collect2name" && \
6494 strings "$collect2name" | grep resolve_lib_name >/dev/null
6496 # We have reworked collect2
6499 # We have old collect2
6500 hardcode_direct=unsupported
6501 # It fails to find uninstalled libraries when the uninstalled
6502 # path is not listed in the libpath. Setting hardcode_minus_L
6503 # to unsupported forces relinking
6504 hardcode_minus_L=yes
6505 hardcode_libdir_flag_spec='-L$libdir'
6506 hardcode_libdir_separator=
6509 shared_flag='-shared'
6512 if test "$host_cpu" = ia64; then
6513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6514 # chokes on -Wl,-G. The following line is correct:
6517 if test "$aix_use_runtimelinking" = yes; then
6518 shared_flag='${wl}-G'
6520 shared_flag='${wl}-bM:SRE'
6525 # It seems that -bexpall does not export symbols beginning with
6526 # underscore (_), so it is better to generate a list of symbols to export.
6527 always_export_symbols=yes
6528 if test "$aix_use_runtimelinking" = yes; then
6529 # Warning - without using the other runtime loading flags (-brtl),
6530 # -berok will link without error, but may produce a broken library.
6531 allow_undefined_flag='-berok'
6532 # Determine the default libpath from the value encoded in an empty executable.
6533 cat >conftest.$ac_ext <<_ACEOF
6534 #line $LINENO "configure"
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6549 rm -f conftest.$ac_objext conftest$ac_exeext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551 (eval $ac_link) 2>&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -s conftest$ac_exeext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6564 # Check for a 64-bit object if we didn't find anything.
6565 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; }
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6575 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6576 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"
6578 if test "$host_cpu" = ia64; then
6579 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6580 allow_undefined_flag="-z nodefs"
6581 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"
6583 # Determine the default libpath from the value encoded in an empty executable.
6584 cat >conftest.$ac_ext <<_ACEOF
6585 #line $LINENO "configure"
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602 (eval $ac_link) 2>&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6615 # Check for a 64-bit object if we didn't find anything.
6616 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; }
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6626 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6627 # Warning - without using the other run time loading flags,
6628 # -berok will link without error, but may produce a broken library.
6629 no_undefined_flag=' ${wl}-bernotok'
6630 allow_undefined_flag=' ${wl}-berok'
6631 # -bexpall does not export symbols beginning with underscore (_)
6632 always_export_symbols=yes
6633 # Exported symbols can be pulled into shared objects from archives
6634 whole_archive_flag_spec=' '
6635 archive_cmds_need_lc=yes
6636 # This is similar to how AIX traditionally builds it's shared libraries.
6637 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'
6643 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)'
6644 hardcode_libdir_flag_spec='-L$libdir'
6645 hardcode_minus_L=yes
6646 # see comment about different semantics on the GNU ld section
6651 export_dynamic_flag_spec=-rdynamic
6654 cygwin* | mingw* | pw32*)
6655 # When not using gcc, we currently assume that we are using
6656 # Microsoft Visual C++.
6657 # hardcode_libdir_flag_spec is actually meaningless, as there is
6658 # no search path for DLLs.
6659 hardcode_libdir_flag_spec=' '
6660 allow_undefined_flag=unsupported
6661 # Tell ltmain to make .lib files, not .a files.
6663 # Tell ltmain to make .dll files, not .so files.
6665 # FIXME: Setting linknames here is a bad hack.
6666 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6667 # The linker will automatically build a .lib file if we build a DLL.
6668 old_archive_From_new_cmds='true'
6669 # FIXME: Should let the user specify the lib program.
6670 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6671 fix_srcfile_path='`cygpath -w "$srcfile"`'
6672 enable_shared_with_static_runtimes=yes
6675 darwin* | rhapsody*)
6676 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6677 archive_cmds_need_lc=no
6679 rhapsody* | darwin1.[012])
6680 allow_undefined_flag='-undefined suppress'
6683 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6686 # FIXME: Relying on posixy $() will cause problems for
6687 # cross-compilation, but unfortunately the echo tests do not
6688 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6689 # `"' quotes if we put them in here... so don't!
6690 lt_int_apple_cc_single_mod=no
6691 output_verbose_link_cmd='echo'
6692 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6693 lt_int_apple_cc_single_mod=yes
6695 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6696 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6698 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'
6700 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6701 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6702 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6703 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}'
6705 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}'
6707 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}'
6709 hardcode_automatic=yes
6710 hardcode_shlibpath_var=unsupported
6711 whole_archive_flag_spec='-all_load $convenience'
6712 link_all_deplibs=yes
6717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6718 hardcode_libdir_flag_spec='-L$libdir'
6719 hardcode_shlibpath_var=no
6726 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6727 # support. Future versions do this automatically, but an explicit c++rt0.o
6728 # does not break anything, and helps significantly (at the cost of a little
6731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6732 hardcode_libdir_flag_spec='-R$libdir'
6734 hardcode_shlibpath_var=no
6737 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6741 hardcode_minus_L=yes
6742 hardcode_shlibpath_var=no
6745 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6747 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6748 hardcode_libdir_flag_spec='-R$libdir'
6750 hardcode_shlibpath_var=no
6754 if test "$GCC" = yes; then
6755 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'
6757 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'
6759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6760 hardcode_libdir_separator=:
6763 # hardcode_minus_L: Not really in the search PATH,
6764 # but as the default location of the library.
6765 hardcode_minus_L=yes
6766 export_dynamic_flag_spec='${wl}-E'
6770 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6773 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6776 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6782 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6785 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6789 if test "$with_gnu_ld" = no; then
6792 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6793 hardcode_libdir_flag_spec_ld='+b $libdir'
6794 hardcode_libdir_separator=:
6796 hardcode_shlibpath_var=no
6799 hardcode_libdir_flag_spec='-L$libdir'
6801 hardcode_shlibpath_var=no
6803 # hardcode_minus_L: Not really in the search PATH,
6804 # but as the default location of the library.
6805 hardcode_minus_L=yes
6808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6809 hardcode_libdir_separator=:
6811 export_dynamic_flag_spec='${wl}-E'
6813 # hardcode_minus_L: Not really in the search PATH,
6814 # but as the default location of the library.
6815 hardcode_minus_L=yes
6821 irix5* | irix6* | nonstopux*)
6822 if test "$GCC" = yes; then
6823 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'
6825 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'
6826 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6829 hardcode_libdir_separator=:
6830 link_all_deplibs=yes
6834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6837 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6839 hardcode_libdir_flag_spec='-R$libdir'
6841 hardcode_shlibpath_var=no
6845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6848 hardcode_libdir_separator=:
6849 hardcode_shlibpath_var=no
6854 hardcode_shlibpath_var=no
6855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6858 export_dynamic_flag_spec='${wl}-E'
6861 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6863 hardcode_libdir_flag_spec='-R$libdir'
6866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6874 hardcode_libdir_flag_spec='-L$libdir'
6875 hardcode_minus_L=yes
6876 allow_undefined_flag=unsupported
6877 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'
6878 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6882 if test "$GCC" = yes; then
6883 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6884 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'
6886 allow_undefined_flag=' -expect_unresolved \*'
6887 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'
6889 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6890 hardcode_libdir_separator=:
6893 osf4* | osf5*) # as osf3* with the addition of -msym flag
6894 if test "$GCC" = yes; then
6895 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6896 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'
6897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6899 allow_undefined_flag=' -expect_unresolved \*'
6900 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'
6901 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6902 $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'
6904 # Both c and cxx compiler support -rpath directly
6905 hardcode_libdir_flag_spec='-rpath $libdir'
6907 hardcode_libdir_separator=:
6911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6912 hardcode_shlibpath_var=no
6913 export_dynamic_flag_spec='${wl}-Bexport'
6914 runpath_var=LD_RUN_PATH
6915 hardcode_runpath_var=yes
6919 no_undefined_flag=' -z text'
6920 if test "$GCC" = yes; then
6921 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6923 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6925 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6926 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6927 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6929 hardcode_libdir_flag_spec='-R$libdir'
6930 hardcode_shlibpath_var=no
6932 solaris2.[0-5] | solaris2.[0-5].*) ;;
6933 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6934 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6936 link_all_deplibs=yes
6940 if test "x$host_vendor" = xsequent; then
6941 # Use $CC to link under sequent, because it throws in some extra .o
6942 # files that make .init and .fini sections work.
6943 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6945 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6947 hardcode_libdir_flag_spec='-L$libdir'
6949 hardcode_minus_L=yes
6950 hardcode_shlibpath_var=no
6954 case $host_vendor in
6956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6957 hardcode_direct=yes # is this really true???
6960 ## LD is ld it makes a PLAMLIB
6961 ## CC just makes a GrossModule.
6962 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6963 reload_cmds='$CC -r -o $output$reload_objs'
6967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6968 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6971 runpath_var='LD_RUN_PATH'
6972 hardcode_shlibpath_var=no
6976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6977 hardcode_shlibpath_var=no
6978 export_dynamic_flag_spec='-Bexport'
6982 if test -d /usr/nec; then
6983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6984 hardcode_shlibpath_var=no
6985 runpath_var=LD_RUN_PATH
6986 hardcode_runpath_var=yes
6992 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6995 hardcode_shlibpath_var=no
6996 hardcode_runpath_var=yes
6997 runpath_var=LD_RUN_PATH
7000 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7001 no_undefined_flag='${wl}-z ${wl}text'
7002 if test "$GCC" = yes; then
7003 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7005 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7007 runpath_var='LD_RUN_PATH'
7008 hardcode_shlibpath_var=no
7012 no_undefined_flag=' -z text'
7013 # $CC -shared without GNU ld will not create a library from C++
7014 # object files and a static libstdc++, better avoid it by now
7015 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7016 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7018 hardcode_libdir_flag_spec=
7019 hardcode_shlibpath_var=no
7020 runpath_var='LD_RUN_PATH'
7024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7025 hardcode_libdir_flag_spec='-L$libdir'
7026 hardcode_shlibpath_var=no
7035 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7036 echo "${ECHO_T}$ld_shlibs" >&6
7037 test "$ld_shlibs" = no && can_build_shared=no
7039 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7040 if test "$GCC" = yes; then
7041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7045 # Do we need to explicitly link libc?
7047 case "x$archive_cmds_need_lc" in
7049 # Assume -lc should be added
7050 archive_cmds_need_lc=yes
7052 if test "$enable_shared" = yes && test "$GCC" = yes; then
7053 case $archive_cmds in
7055 # FIXME: we may have to deal with multi-command sequences.
7058 # Test whether the compiler implicitly links with -lc since on some
7059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7060 # to ld, don't add -lc before -lgcc.
7061 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7062 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7064 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } 2>conftest.err; then
7073 libobjs=conftest.$ac_objext
7075 wl=$lt_prog_compiler_wl
7081 lt_save_allow_undefined_flag=$allow_undefined_flag
7082 allow_undefined_flag=
7083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7084 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }
7089 archive_cmds_need_lc=no
7091 archive_cmds_need_lc=yes
7093 allow_undefined_flag=$lt_save_allow_undefined_flag
7095 cat conftest.err 1>&5
7098 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7099 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7106 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7109 if test -n "$hardcode_libdir_flag_spec" || \
7110 test -n "$runpath_var " || \
7111 test "X$hardcode_automatic"="Xyes" ; then
7113 # We can hardcode non-existant directories.
7114 if test "$hardcode_direct" != no &&
7115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7116 # have to relink, otherwise we might link with an installed library
7117 # when we should be linking with a yet-to-be-installed one
7118 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7119 test "$hardcode_minus_L" != no; then
7120 # Linking always hardcodes the temporary library directory.
7121 hardcode_action=relink
7123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7124 hardcode_action=immediate
7127 # We cannot hardcode anything, or else we can only hardcode existing
7129 hardcode_action=unsupported
7131 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7132 echo "${ECHO_T}$hardcode_action" >&6
7134 if test "$hardcode_action" = relink; then
7135 # Fast installation is not supported
7136 enable_fast_install=no
7137 elif test "$shlibpath_overrides_runpath" = yes ||
7138 test "$enable_shared" = no; then
7139 # Fast installation is not necessary
7140 enable_fast_install=needless
7145 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7146 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7147 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7148 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7149 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7150 echo "$as_me:$LINENO: result: yes" >&5
7151 echo "${ECHO_T}yes" >&6
7153 # FIXME - insert some real tests, host_os isn't really good enough
7156 if test -n "$STRIP" ; then
7157 striplib="$STRIP -x"
7158 echo "$as_me:$LINENO: result: yes" >&5
7159 echo "${ECHO_T}yes" >&6
7161 echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7166 echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6
7172 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7173 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7175 libname_spec='lib$name'
7183 shlibpath_overrides_runpath=unknown
7185 dynamic_linker="$host_os ld.so"
7186 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7187 if test "$GCC" = yes; then
7188 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7189 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7190 # if the path contains ";" then we assume it to be the separator
7191 # otherwise default to the standard path separator (i.e. ":") - it is
7192 # assumed that no part of a normal pathname contains ";" but that should
7193 # okay in the real world where ";" in dirpaths is itself problematic.
7194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7199 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7201 need_lib_prefix=unknown
7202 hardcode_into_libs=no
7204 # when you set need_version to no, make sure it does not cause -set_version
7205 # flags to be left without arguments
7206 need_version=unknown
7211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7212 shlibpath_var=LIBPATH
7214 # AIX 3 has no versioning support, so we append a major version to the name.
7215 soname_spec='${libname}${release}${shared_ext}$major'
7222 hardcode_into_libs=yes
7223 if test "$host_cpu" = ia64; then
7224 # AIX 5 supports IA64
7225 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7226 shlibpath_var=LD_LIBRARY_PATH
7228 # With GCC up to 2.95.x, collect2 would create an import file
7229 # for dependence libraries. The import file would start with
7230 # the line `#! .'. This would cause the generated library to
7231 # depend on `.', always an invalid library. This was fixed in
7232 # development snapshots of GCC prior to 3.0.
7234 aix4 | aix4.[01] | aix4.[01].*)
7235 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7237 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7244 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7245 # soname into executable. Probably we can add versioning support to
7246 # collect2, so additional links can be useful in future.
7247 if test "$aix_use_runtimelinking" = yes; then
7248 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7249 # instead of lib<name>.a to let people know that these are not
7250 # typical AIX shared libraries.
7251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7253 # We preserve .a as extension for shared libraries through AIX4.2
7254 # and later when we are not doing run time linking.
7255 library_names_spec='${libname}${release}.a $libname.a'
7256 soname_spec='${libname}${release}${shared_ext}$major'
7258 shlibpath_var=LIBPATH
7263 library_names_spec='$libname.ixlibrary $libname.a'
7264 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7265 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'
7269 library_names_spec='${libname}${shared_ext}'
7270 dynamic_linker="$host_os ld.so"
7271 shlibpath_var=LIBRARY_PATH
7277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7278 soname_spec='${libname}${release}${shared_ext}$major'
7279 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7280 shlibpath_var=LD_LIBRARY_PATH
7281 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7282 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7283 # the default ld.so.conf also contains /usr/contrib/lib and
7284 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7285 # libtool to hard-code these into programs
7288 cygwin* | mingw* | pw32*)
7289 version_type=windows
7294 case $GCC,$host_os in
7295 yes,cygwin* | yes,mingw* | yes,pw32*)
7296 library_names_spec='$libname.dll.a'
7297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7298 postinstall_cmds='base_file=`basename \${file}`~
7299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7300 dldir=$destdir/`dirname \$dlpath`~
7301 test -d \$dldir || mkdir -p \$dldir~
7302 $install_prog $dir/$dlname \$dldir/$dlname'
7303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7304 dlpath=$dir/\$dldll~
7306 shlibpath_overrides_runpath=yes
7310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7312 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7315 # MinGW DLLs use traditional 'lib' prefix
7316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7317 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7318 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7319 # It is most probably a Windows format PATH printed by
7320 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7321 # path with ; separators, and with drive letters. We can handle the
7322 # drive letters (cygwin fileutils understands them), so leave them,
7323 # especially as we might pass files found there to a mingw objdump,
7324 # which wouldn't understand a cygwinified path. Ahh.
7325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7331 # pw32 DLLs use 'pw' prefix rather than 'lib'
7332 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7338 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7341 dynamic_linker='Win32 ld.exe'
7342 # FIXME: first we should search . and the directory the executable is in
7346 darwin* | rhapsody*)
7347 dynamic_linker="$host_os dyld"
7351 # FIXME: Relying on posixy $() will cause problems for
7352 # cross-compilation, but unfortunately the echo tests do not
7353 # yet detect zsh echo's removal of \ escapes.
7354 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7355 soname_spec='${libname}${release}${major}$shared_ext'
7356 shlibpath_overrides_runpath=yes
7357 shlibpath_var=DYLD_LIBRARY_PATH
7358 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7359 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7360 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7361 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"`
7363 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7371 soname_spec='${libname}${release}${shared_ext}$major'
7372 shlibpath_var=LD_LIBRARY_PATH
7380 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7381 version_type=freebsd-$objformat
7382 case $version_type in
7384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7393 shlibpath_var=LD_LIBRARY_PATH
7396 shlibpath_overrides_runpath=yes
7398 freebsd3.01* | freebsdelf3.01*)
7399 shlibpath_overrides_runpath=yes
7400 hardcode_into_libs=yes
7403 shlibpath_overrides_runpath=no
7404 hardcode_into_libs=yes
7413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7414 soname_spec='${libname}${release}${shared_ext}$major'
7415 shlibpath_var=LD_LIBRARY_PATH
7416 hardcode_into_libs=yes
7419 hpux9* | hpux10* | hpux11*)
7420 # Give a soname corresponding to the major version so that dld.sl refuses to
7421 # link against other versions.
7428 hardcode_into_libs=yes
7429 dynamic_linker="$host_os dld.so"
7430 shlibpath_var=LD_LIBRARY_PATH
7431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7433 soname_spec='${libname}${release}${shared_ext}$major'
7434 if test "X$HPUX_IA64_MODE" = X32; then
7435 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7443 hardcode_into_libs=yes
7444 dynamic_linker="$host_os dld.sl"
7445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7448 soname_spec='${libname}${release}${shared_ext}$major'
7449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7454 dynamic_linker="$host_os dld.sl"
7455 shlibpath_var=SHLIB_PATH
7456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458 soname_spec='${libname}${release}${shared_ext}$major'
7461 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7462 postinstall_cmds='chmod 555 $lib'
7465 irix5* | irix6* | nonstopux*)
7467 nonstopux*) version_type=nonstopux ;;
7469 if test "$lt_cv_prog_gnu_ld" = yes; then
7477 soname_spec='${libname}${release}${shared_ext}$major'
7478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7480 irix5* | nonstopux*)
7484 case $LD in # libtool.m4 will add one of these switches to LD
7485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7486 libsuff= shlibsuff= libmagic=32-bit;;
7487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7488 libsuff=32 shlibsuff=N32 libmagic=N32;;
7489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7491 *) libsuff= shlibsuff= libmagic=never-match;;
7495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7496 shlibpath_overrides_runpath=no
7497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7499 hardcode_into_libs=yes
7502 # No shared lib support for Linux oldld, aout, or coff.
7503 linux*oldld* | linux*aout* | linux*coff*)
7507 # This must be Linux ELF.
7512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7513 soname_spec='${libname}${release}${shared_ext}$major'
7514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7515 shlibpath_var=LD_LIBRARY_PATH
7516 shlibpath_overrides_runpath=no
7517 # This implies no fast_install, which is unacceptable.
7518 # Some rework will be needed to allow for fast_install
7519 # before this can be enabled.
7520 hardcode_into_libs=yes
7522 # We used to test for /lib/ld.so.1 and disable shared libraries on
7523 # powerpc, because MkLinux only supported shared libraries with the
7524 # GNU dynamic linker. Since this was broken with cross compilers,
7525 # most powerpc-linux boxes support dynamic linking these days and
7526 # people can always --disable-shared, the test was removed, and we
7527 # assume the GNU/Linux dynamic linker is in use.
7528 dynamic_linker='GNU/Linux ld.so'
7535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7538 dynamic_linker='NetBSD (a.out) ld.so'
7540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7541 soname_spec='${libname}${release}${shared_ext}$major'
7542 dynamic_linker='NetBSD ld.elf_so'
7544 shlibpath_var=LD_LIBRARY_PATH
7545 shlibpath_overrides_runpath=yes
7546 hardcode_into_libs=yes
7551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7552 shlibpath_var=LD_LIBRARY_PATH
7553 shlibpath_overrides_runpath=yes
7560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7561 soname_spec='${libname}${release}${shared_ext}$major'
7562 shlibpath_var=LD_LIBRARY_PATH
7563 shlibpath_overrides_runpath=yes
7570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7572 shlibpath_var=LD_LIBRARY_PATH
7573 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7575 openbsd2.[89] | openbsd2.[89].*)
7576 shlibpath_overrides_runpath=no
7579 shlibpath_overrides_runpath=yes
7583 shlibpath_overrides_runpath=yes
7588 libname_spec='$name'
7591 library_names_spec='$libname${shared_ext} $libname.a'
7592 dynamic_linker='OS/2 ld.exe'
7593 shlibpath_var=LIBPATH
7596 osf3* | osf4* | osf5*)
7600 soname_spec='${libname}${release}${shared_ext}$major'
7601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7602 shlibpath_var=LD_LIBRARY_PATH
7603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7609 soname_spec='${libname}${release}${shared_ext}$major'
7610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7611 shlibpath_var=LD_LIBRARY_PATH
7618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7619 soname_spec='${libname}${release}${shared_ext}$major'
7620 shlibpath_var=LD_LIBRARY_PATH
7621 shlibpath_overrides_runpath=yes
7622 hardcode_into_libs=yes
7623 # ldd complains unless libraries are executable
7624 postinstall_cmds='chmod +x $lib'
7629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7630 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7631 shlibpath_var=LD_LIBRARY_PATH
7632 shlibpath_overrides_runpath=yes
7633 if test "$with_gnu_ld" = yes; then
7639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642 soname_spec='${libname}${release}${shared_ext}$major'
7643 shlibpath_var=LD_LIBRARY_PATH
7644 case $host_vendor in
7646 shlibpath_overrides_runpath=no
7648 export_dynamic_flag_spec='${wl}-Blargedynsym'
7649 runpath_var=LD_RUN_PATH
7657 shlibpath_overrides_runpath=no
7658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7664 if test -d /usr/nec ;then
7666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7667 soname_spec='$libname${shared_ext}.$major'
7668 shlibpath_var=LD_LIBRARY_PATH
7674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7675 soname_spec='${libname}${release}${shared_ext}$major'
7676 shlibpath_var=LD_LIBRARY_PATH
7683 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7684 echo "${ECHO_T}$dynamic_linker" >&6
7685 test "$dynamic_linker" = no && can_build_shared=no
7687 if test "x$enable_dlopen" != xyes; then
7688 enable_dlopen=unknown
7689 enable_dlopen_self=unknown
7690 enable_dlopen_self_static=unknown
7697 lt_cv_dlopen="load_add_on"
7699 lt_cv_dlopen_self=yes
7703 lt_cv_dlopen="LoadLibrary"
7708 lt_cv_dlopen="dlopen"
7713 # if libdl is installed we need to link against it
7714 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7715 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 ac_check_lib_save_LIBS=$LIBS
7721 cat >conftest.$ac_ext <<_ACEOF
7722 #line $LINENO "configure"
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7729 /* Override any gcc2 internal prototype to avoid an error. */
7733 /* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -s conftest$ac_exeext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 ac_cv_lib_dl_dlopen=yes
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_cv_lib_dl_dlopen=no
7763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7766 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7767 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7768 if test $ac_cv_lib_dl_dlopen = yes; then
7769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7774 lt_cv_dlopen_self=yes
7781 echo "$as_me:$LINENO: checking for shl_load" >&5
7782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7783 if test "${ac_cv_func_shl_load+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 cat >conftest.$ac_ext <<_ACEOF
7787 #line $LINENO "configure"
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 /* System header to define __stub macros and hopefully few prototypes,
7794 which can conflict with char shl_load (); below.
7795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7796 <limits.h> exists even on freestanding compilers. */
7798 # include <limits.h>
7800 # include <assert.h>
7802 /* Override any gcc2 internal prototype to avoid an error. */
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7810 /* The GNU C library defines this for functions which it implements
7811 to always fail with ENOSYS. Some functions are actually named
7812 something starting with __ and the normal name is an alias. */
7813 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7816 char (*f) () = shl_load;
7825 return f != shl_load;
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7832 (eval $ac_link) 2>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -s conftest$ac_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_func_shl_load=yes
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 ac_cv_func_shl_load=no
7849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7851 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7852 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7853 if test $ac_cv_func_shl_load = yes; then
7854 lt_cv_dlopen="shl_load"
7856 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7857 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7858 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 ac_check_lib_save_LIBS=$LIBS
7863 cat >conftest.$ac_ext <<_ACEOF
7864 #line $LINENO "configure"
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7871 /* Override any gcc2 internal prototype to avoid an error. */
7875 /* We use char because int might match the return type of a gcc2
7876 builtin and then its argument prototype would still apply. */
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7888 (eval $ac_link) 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_lib_dld_shl_load=yes
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 ac_cv_lib_dld_shl_load=no
7905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7906 LIBS=$ac_check_lib_save_LIBS
7908 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7909 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7910 if test $ac_cv_lib_dld_shl_load = yes; then
7911 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7913 echo "$as_me:$LINENO: checking for dlopen" >&5
7914 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7915 if test "${ac_cv_func_dlopen+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 cat >conftest.$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 /* System header to define __stub macros and hopefully few prototypes,
7926 which can conflict with char dlopen (); below.
7927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7928 <limits.h> exists even on freestanding compilers. */
7930 # include <limits.h>
7932 # include <assert.h>
7934 /* Override any gcc2 internal prototype to avoid an error. */
7939 /* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7942 /* The GNU C library defines this for functions which it implements
7943 to always fail with ENOSYS. Some functions are actually named
7944 something starting with __ and the normal name is an alias. */
7945 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7948 char (*f) () = dlopen;
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_func_dlopen=yes
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7979 ac_cv_func_dlopen=no
7981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7983 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7984 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7985 if test $ac_cv_func_dlopen = yes; then
7986 lt_cv_dlopen="dlopen"
7988 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7989 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7990 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 ac_check_lib_save_LIBS=$LIBS
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8003 /* Override any gcc2 internal prototype to avoid an error. */
8007 /* We use char because int might match the return type of a gcc2
8008 builtin and then its argument prototype would still apply. */
8018 rm -f conftest.$ac_objext conftest$ac_exeext
8019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8020 (eval $ac_link) 2>&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -s conftest$ac_exeext'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030 ac_cv_lib_dl_dlopen=yes
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8035 ac_cv_lib_dl_dlopen=no
8037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8038 LIBS=$ac_check_lib_save_LIBS
8040 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8041 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8042 if test $ac_cv_lib_dl_dlopen = yes; then
8043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8045 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8046 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8047 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 ac_check_lib_save_LIBS=$LIBS
8052 cat >conftest.$ac_ext <<_ACEOF
8053 #line $LINENO "configure"
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8060 /* Override any gcc2 internal prototype to avoid an error. */
8064 /* We use char because int might match the return type of a gcc2
8065 builtin and then its argument prototype would still apply. */
8075 rm -f conftest.$ac_objext conftest$ac_exeext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077 (eval $ac_link) 2>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -s conftest$ac_exeext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 ac_cv_lib_svld_dlopen=yes
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 ac_cv_lib_svld_dlopen=no
8094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8095 LIBS=$ac_check_lib_save_LIBS
8097 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8098 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8099 if test $ac_cv_lib_svld_dlopen = yes; then
8100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8102 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 ac_check_lib_save_LIBS=$LIBS
8109 cat >conftest.$ac_ext <<_ACEOF
8110 #line $LINENO "configure"
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8117 /* Override any gcc2 internal prototype to avoid an error. */
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_cv_lib_dld_dld_link=yes
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_cv_lib_dld_dld_link=no
8151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8152 LIBS=$ac_check_lib_save_LIBS
8154 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8155 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8156 if test $ac_cv_lib_dld_dld_link = yes; then
8157 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8178 if test "x$lt_cv_dlopen" != xno; then
8184 case $lt_cv_dlopen in
8186 save_CPPFLAGS="$CPPFLAGS"
8187 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8189 save_LDFLAGS="$LDFLAGS"
8190 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8193 LIBS="$lt_cv_dlopen_libs $LIBS"
8195 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8196 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8197 if test "${lt_cv_dlopen_self+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 if test "$cross_compiling" = yes; then :
8201 lt_cv_dlopen_self=cross
8203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8204 lt_status=$lt_dlunknown
8205 cat > conftest.$ac_ext <<EOF
8206 #line 8206 "configure"
8207 #include "confdefs.h"
8216 # define LT_DLGLOBAL RTLD_GLOBAL
8219 # define LT_DLGLOBAL DL_GLOBAL
8221 # define LT_DLGLOBAL 0
8225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8226 find out it does not work in some platform. */
8227 #ifndef LT_DLLAZY_OR_NOW
8229 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8232 # define LT_DLLAZY_OR_NOW DL_LAZY
8235 # define LT_DLLAZY_OR_NOW RTLD_NOW
8238 # define LT_DLLAZY_OR_NOW DL_NOW
8240 # define LT_DLLAZY_OR_NOW 0
8248 extern "C" void exit (int);
8251 void fnord() { int i=42;}
8254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8255 int status = $lt_dlunknown;
8259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8260 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8261 /* dlclose (self); */
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8272 (./conftest; exit; ) 2>/dev/null
8275 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8276 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8277 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8280 # compilation failed
8281 lt_cv_dlopen_self=no
8288 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8289 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8291 if test "x$lt_cv_dlopen_self" = xyes; then
8292 LDFLAGS="$LDFLAGS $link_static_flag"
8293 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8294 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8295 if test "${lt_cv_dlopen_self_static+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 if test "$cross_compiling" = yes; then :
8299 lt_cv_dlopen_self_static=cross
8301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8302 lt_status=$lt_dlunknown
8303 cat > conftest.$ac_ext <<EOF
8304 #line 8304 "configure"
8305 #include "confdefs.h"
8314 # define LT_DLGLOBAL RTLD_GLOBAL
8317 # define LT_DLGLOBAL DL_GLOBAL
8319 # define LT_DLGLOBAL 0
8323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8324 find out it does not work in some platform. */
8325 #ifndef LT_DLLAZY_OR_NOW
8327 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8330 # define LT_DLLAZY_OR_NOW DL_LAZY
8333 # define LT_DLLAZY_OR_NOW RTLD_NOW
8336 # define LT_DLLAZY_OR_NOW DL_NOW
8338 # define LT_DLLAZY_OR_NOW 0
8346 extern "C" void exit (int);
8349 void fnord() { int i=42;}
8352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8353 int status = $lt_dlunknown;
8357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8359 /* dlclose (self); */
8365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366 (eval $ac_link) 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8370 (./conftest; exit; ) 2>/dev/null
8373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8375 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8378 # compilation failed
8379 lt_cv_dlopen_self_static=no
8386 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8387 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8390 CPPFLAGS="$save_CPPFLAGS"
8391 LDFLAGS="$save_LDFLAGS"
8396 case $lt_cv_dlopen_self in
8397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8398 *) enable_dlopen_self=unknown ;;
8401 case $lt_cv_dlopen_self_static in
8402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8403 *) enable_dlopen_self_static=unknown ;;
8408 # Report which librarie types wil actually be built
8409 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8410 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8411 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8412 echo "${ECHO_T}$can_build_shared" >&6
8414 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8415 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8416 test "$can_build_shared" = "no" && enable_shared=no
8418 # On AIX, shared libraries and static libraries use the same namespace, and
8419 # are all built from PIC.
8422 test "$enable_shared" = yes && enable_static=no
8423 if test -n "$RANLIB"; then
8424 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8425 postinstall_cmds='$RANLIB $lib'
8430 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8431 test "$enable_shared" = yes && enable_static=no
8434 darwin* | rhapsody*)
8435 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8436 archive_cmds_need_lc=no
8438 rhapsody* | darwin1.[012])
8439 allow_undefined_flag='-undefined suppress'
8442 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8445 # FIXME: Relying on posixy $() will cause problems for
8446 # cross-compilation, but unfortunately the echo tests do not
8447 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8448 # `"' quotes if we put them in here... so don't!
8449 output_verbose_link_cmd='echo'
8450 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8451 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8453 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}'
8454 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}'
8456 hardcode_automatic=yes
8457 hardcode_shlibpath_var=unsupported
8458 whole_archive_flag_spec='-all_load $convenience'
8459 link_all_deplibs=yes
8463 echo "$as_me:$LINENO: result: $enable_shared" >&5
8464 echo "${ECHO_T}$enable_shared" >&6
8466 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8467 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8468 # Make sure either enable_shared or enable_static is yes.
8469 test "$enable_shared" = yes || enable_static=yes
8470 echo "$as_me:$LINENO: result: $enable_static" >&5
8471 echo "${ECHO_T}$enable_static" >&6
8473 # The else clause should only fire when bootstrapping the
8474 # libtool distribution, otherwise you forgot to ship ltmain.sh
8475 # with your package, and you will get complaints that there are
8476 # no rules to generate ltmain.sh.
8477 if test -f "$ltmain"; then
8478 # See if we are running on zsh, and set the options which allow our commands through
8479 # without removal of \ escapes.
8480 if test -n "${ZSH_VERSION+set}" ; then
8481 setopt NO_GLOB_SUBST
8483 # Now quote all the things that may contain metacharacters while being
8484 # careful not to overquote the AC_SUBSTed values. We take copies of the
8485 # variables and quote the copies for generation of the libtool script.
8486 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8487 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8488 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8489 deplibs_check_method reload_flag reload_cmds need_locks \
8490 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8491 lt_cv_sys_global_symbol_to_c_name_address \
8492 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8493 old_postinstall_cmds old_postuninstall_cmds \
8497 lt_prog_compiler_wl \
8498 lt_prog_compiler_pic \
8499 lt_prog_compiler_static \
8500 lt_prog_compiler_no_builtin_flag \
8501 export_dynamic_flag_spec \
8502 thread_safe_flag_spec \
8503 whole_archive_flag_spec \
8504 enable_shared_with_static_runtimes \
8506 old_archive_from_new_cmds \
8511 compiler_lib_search_path \
8513 archive_expsym_cmds \
8515 postuninstall_cmds \
8516 old_archive_from_expsyms_cmds \
8517 allow_undefined_flag \
8519 export_symbols_cmds \
8520 hardcode_libdir_flag_spec \
8521 hardcode_libdir_flag_spec_ld \
8522 hardcode_libdir_separator \
8523 hardcode_automatic \
8525 module_expsym_cmds \
8526 lt_cv_prog_compiler_c_o \
8531 old_archive_cmds | \
8532 old_archive_from_new_cmds | \
8534 archive_expsym_cmds | \
8536 module_expsym_cmds | \
8537 old_archive_from_expsyms_cmds | \
8538 export_symbols_cmds | \
8539 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8540 postinstall_cmds | postuninstall_cmds | \
8541 old_postinstall_cmds | old_postuninstall_cmds | \
8542 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8543 # Double-quote double-evaled strings.
8544 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8553 *'\$0 --fallback-echo"')
8554 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8559 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8561 { echo "$as_me:$LINENO: creating $ofile" >&5
8562 echo "$as_me: creating $ofile" >&6;}
8564 cat <<__EOF__ >> "$cfgfile"
8567 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8568 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8569 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8571 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8572 # Free Software Foundation, Inc.
8574 # This file is part of GNU Libtool:
8575 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8577 # This program is free software; you can redistribute it and/or modify
8578 # it under the terms of the GNU General Public License as published by
8579 # the Free Software Foundation; either version 2 of the License, or
8580 # (at your option) any later version.
8582 # This program is distributed in the hope that it will be useful, but
8583 # WITHOUT ANY WARRANTY; without even the implied warranty of
8584 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8585 # General Public License for more details.
8587 # You should have received a copy of the GNU General Public License
8588 # along with this program; if not, write to the Free Software
8589 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8591 # As a special exception to the GNU General Public License, if you
8592 # distribute this file as part of a program that contains a
8593 # configuration script generated by Autoconf, you may include it under
8594 # the same distribution terms that you use for the rest of that program.
8596 # A sed program that does not truncate output.
8599 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8600 Xsed="$SED -e s/^X//"
8602 # The HP-UX ksh and POSIX shell print the target directory to stdout
8604 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8606 # The names of the tagged configurations supported by this script.
8609 # ### BEGIN LIBTOOL CONFIG
8611 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8613 # Shell to use when invoking shell scripts.
8616 # Whether or not to build shared libraries.
8617 build_libtool_libs=$enable_shared
8619 # Whether or not to build static libraries.
8620 build_old_libs=$enable_static
8622 # Whether or not to add -lc for building shared libraries.
8623 build_libtool_need_lc=$archive_cmds_need_lc
8625 # Whether or not to disallow shared libs when runtime libs are static
8626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8628 # Whether or not to optimize for fast installation.
8629 fast_install=$enable_fast_install
8632 host_alias=$host_alias
8635 # An echo program that does not interpret backslashes.
8640 AR_FLAGS=$lt_AR_FLAGS
8645 # A language-specific compiler.
8648 # Is the compiler the GNU C compiler?
8654 # The linker used to build libraries.
8657 # Whether we need hard or soft links.
8660 # A BSD-compatible nm program.
8663 # A symbol stripping program
8666 # Used to examine libraries when file_magic_cmd begins "file"
8667 MAGIC_CMD=$MAGIC_CMD
8669 # Used on cygwin: DLL creation program.
8672 # Used on cygwin: object dumper.
8675 # Used on cygwin: assembler.
8678 # The name of the directory that contains temporary libtool files.
8681 # How to create reloadable object files.
8682 reload_flag=$lt_reload_flag
8683 reload_cmds=$lt_reload_cmds
8685 # How to pass a linker flag through the compiler.
8686 wl=$lt_lt_prog_compiler_wl
8688 # Object file suffix (normally "o").
8691 # Old archive suffix (normally "a").
8694 # Shared library suffix (normally ".so").
8697 # Executable file suffix (normally "").
8700 # Additional compiler flags for building library objects.
8701 pic_flag=$lt_lt_prog_compiler_pic
8704 # What is the maximum length of a command?
8705 max_cmd_len=$lt_cv_sys_max_cmd_len
8707 # Does compiler simultaneously support -c and -o options?
8708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8710 # Must we lock files when doing compilation ?
8711 need_locks=$lt_need_locks
8713 # Do we need the lib prefix for modules?
8714 need_lib_prefix=$need_lib_prefix
8716 # Do we need a version for libraries?
8717 need_version=$need_version
8719 # Whether dlopen is supported.
8720 dlopen_support=$enable_dlopen
8722 # Whether dlopen of programs is supported.
8723 dlopen_self=$enable_dlopen_self
8725 # Whether dlopen of statically linked programs is supported.
8726 dlopen_self_static=$enable_dlopen_self_static
8728 # Compiler flag to prevent dynamic linking.
8729 link_static_flag=$lt_lt_prog_compiler_static
8731 # Compiler flag to turn off builtin functions.
8732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8734 # Compiler flag to allow reflexive dlopens.
8735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8737 # Compiler flag to generate shared objects directly from archives.
8738 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8740 # Compiler flag to generate thread-safe objects.
8741 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8743 # Library versioning type.
8744 version_type=$version_type
8746 # Format of library name prefix.
8747 libname_spec=$lt_libname_spec
8749 # List of archive names. First name is the real one, the rest are links.
8750 # The last name is the one that the linker finds with -lNAME.
8751 library_names_spec=$lt_library_names_spec
8753 # The coded name of the library, if different from the real name.
8754 soname_spec=$lt_soname_spec
8756 # Commands used to build and install an old-style archive.
8758 old_archive_cmds=$lt_old_archive_cmds
8759 old_postinstall_cmds=$lt_old_postinstall_cmds
8760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8762 # Create an old-style archive from a shared archive.
8763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8765 # Create a temporary old-style archive to link instead of a shared archive.
8766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8768 # Commands used to build and install a shared archive.
8769 archive_cmds=$lt_archive_cmds
8770 archive_expsym_cmds=$lt_archive_expsym_cmds
8771 postinstall_cmds=$lt_postinstall_cmds
8772 postuninstall_cmds=$lt_postuninstall_cmds
8774 # Commands used to build a loadable module (assumed same as above if empty)
8775 module_cmds=$lt_module_cmds
8776 module_expsym_cmds=$lt_module_expsym_cmds
8778 # Commands to strip libraries.
8779 old_striplib=$lt_old_striplib
8780 striplib=$lt_striplib
8782 # Dependencies to place before the objects being linked to create a
8784 predep_objects=$lt_predep_objects
8786 # Dependencies to place after the objects being linked to create a
8788 postdep_objects=$lt_postdep_objects
8790 # Dependencies to place before the objects being linked to create a
8794 # Dependencies to place after the objects being linked to create a
8796 postdeps=$lt_postdeps
8798 # The library search path used internally by the compiler when linking
8800 compiler_lib_search_path=$lt_compiler_lib_search_path
8802 # Method to check whether dependent libraries are shared objects.
8803 deplibs_check_method=$lt_deplibs_check_method
8805 # Command to use when deplibs_check_method == file_magic.
8806 file_magic_cmd=$lt_file_magic_cmd
8808 # Flag that allows shared libraries with undefined symbols to be built.
8809 allow_undefined_flag=$lt_allow_undefined_flag
8811 # Flag that forces no undefined symbols.
8812 no_undefined_flag=$lt_no_undefined_flag
8814 # Commands used to finish a libtool library installation in a directory.
8815 finish_cmds=$lt_finish_cmds
8817 # Same as above, but a single script fragment to be evaled but not shown.
8818 finish_eval=$lt_finish_eval
8820 # Take the output of nm and produce a listing of raw symbols and C names.
8821 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8823 # Transform the output of nm in a proper C declaration
8824 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8826 # Transform the output of nm in a C name address pair
8827 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8829 # This is the shared library runtime path variable.
8830 runpath_var=$runpath_var
8832 # This is the shared library path variable.
8833 shlibpath_var=$shlibpath_var
8835 # Is shlibpath searched before the hard-coded library search path?
8836 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8838 # How to hardcode a shared library path into an executable.
8839 hardcode_action=$hardcode_action
8841 # Whether we should hardcode library paths into libraries.
8842 hardcode_into_libs=$hardcode_into_libs
8844 # Flag to hardcode \$libdir into a binary during linking.
8845 # This must work even if \$libdir does not exist.
8846 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8848 # If ld is used when linking, flag to hardcode \$libdir into
8849 # a binary during linking. This must work even if \$libdir does
8851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8853 # Whether we need a single -rpath flag with a separated argument.
8854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8856 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8858 hardcode_direct=$hardcode_direct
8860 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8862 hardcode_minus_L=$hardcode_minus_L
8864 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8865 # the resulting binary.
8866 hardcode_shlibpath_var=$hardcode_shlibpath_var
8868 # Set to yes if building a shared library automatically hardcodes DIR into the library
8869 # and all subsequent libraries and executables linked against it.
8870 hardcode_automatic=$hardcode_automatic
8872 # Variables whose values should be saved in libtool wrapper scripts and
8873 # restored at relink time.
8874 variables_saved_for_relink="$variables_saved_for_relink"
8876 # Whether libtool must link a program against all its dependency libraries.
8877 link_all_deplibs=$link_all_deplibs
8879 # Compile-time system search path for libraries
8880 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8882 # Run-time system search path for libraries
8883 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8885 # Fix the shell variable \$srcfile for the compiler.
8886 fix_srcfile_path="$fix_srcfile_path"
8888 # Set to yes if exported symbols are required.
8889 always_export_symbols=$always_export_symbols
8891 # The commands to list exported symbols.
8892 export_symbols_cmds=$lt_export_symbols_cmds
8894 # The commands to extract the exported symbol list from a shared archive.
8895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8897 # Symbols that should not be listed in the preloaded symbols.
8898 exclude_expsyms=$lt_exclude_expsyms
8900 # Symbols that must always be exported.
8901 include_expsyms=$lt_include_expsyms
8903 # ### END LIBTOOL CONFIG
8910 cat <<\EOF >> "$cfgfile"
8912 # AIX sometimes has problems with the GCC collect2 program. For some
8913 # reason, if we set the COLLECT_NAMES environment variable, the problems
8914 # vanish in a puff of smoke.
8915 if test "X${COLLECT_NAMES+set}" != Xset; then
8917 export COLLECT_NAMES
8923 # We use sed instead of cat because bash on DJGPP gets confused if
8924 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8925 # text mode, it properly converts lines to CR/LF. This bash problem
8926 # is reportedly fixed, but why not run on old versions too?
8927 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8929 mv -f "$cfgfile" "$ofile" || \
8930 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8934 # If there is no Makefile yet, we rely on a make rule to execute
8935 # `config.status --recheck' to rerun these tests and create the
8936 # libtool script then.
8937 test -f Makefile && make "$ltmain"
8942 ac_cpp='$CPP $CPPFLAGS'
8943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8950 # Check whether --with-tags or --without-tags was given.
8951 if test "${with_tags+set}" = set; then
8952 withval="$with_tags"
8956 if test -f "$ltmain" && test -n "$tagnames"; then
8957 if test ! -f "${ofile}"; then
8958 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8959 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8962 if test -z "$LTCC"; then
8963 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8964 if test -z "$LTCC"; then
8965 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8966 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8968 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8969 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8973 # Extract list of available tagged configurations in $ofile.
8974 # Note that this assumes the entire list is on one line.
8975 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8978 for tagname in $tagnames; do
8980 # Check whether tagname contains only valid characters
8981 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8983 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8984 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8985 { (exit 1); exit 1; }; }
8989 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8991 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8992 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8993 { (exit 1); exit 1; }; }
8996 # Update the list of available tags.
8997 if test -n "$tagname"; then
8998 echo appending configuration tag \"$tagname\" to $ofile
9002 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9004 ac_cpp='$CXXCPP $CPPFLAGS'
9005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9012 archive_cmds_need_lc_CXX=no
9013 allow_undefined_flag_CXX=
9014 always_export_symbols_CXX=no
9015 archive_expsym_cmds_CXX=
9016 export_dynamic_flag_spec_CXX=
9017 hardcode_direct_CXX=no
9018 hardcode_libdir_flag_spec_CXX=
9019 hardcode_libdir_flag_spec_ld_CXX=
9020 hardcode_libdir_separator_CXX=
9021 hardcode_minus_L_CXX=no
9022 hardcode_automatic_CXX=no
9024 module_expsym_cmds_CXX=
9025 link_all_deplibs_CXX=unknown
9026 old_archive_cmds_CXX=$old_archive_cmds
9027 no_undefined_flag_CXX=
9028 whole_archive_flag_spec_CXX=
9029 enable_shared_with_static_runtimes_CXX=no
9031 # Dependencies to place before and after the object being linked:
9033 postdep_objects_CXX=
9036 compiler_lib_search_path_CXX=
9038 # Source file extension for C++ test sources.
9041 # Object file extension for compiled C++ test sources.
9045 # Code to be used in simple compile tests
9046 lt_simple_compile_test_code="int some_variable = 0;\n"
9048 # Code to be used in simple link tests
9049 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9051 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9053 # If no C compiler was specified, use CC.
9056 # Allow CC to be a program name with arguments.
9060 # Allow CC to be a program name with arguments.
9065 lt_save_with_gnu_ld=$with_gnu_ld
9066 lt_save_path_LD=$lt_cv_path_LD
9067 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9068 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9070 unset lt_cv_prog_gnu_ld
9072 if test -n "${lt_cv_path_LDCXX+set}"; then
9073 lt_cv_path_LD=$lt_cv_path_LDCXX
9077 test -z "${LDCXX+set}" || LD=$LDCXX
9081 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9083 # We don't want -fno-exception wen compiling C++ code, so set the
9084 # no_builtin_flag separately
9085 if test "$GXX" = yes; then
9086 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9088 lt_prog_compiler_no_builtin_flag_CXX=
9091 if test "$GXX" = yes; then
9092 # Set up default GNU C++ configuration
9095 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9096 if test "${with_gnu_ld+set}" = set; then
9097 withval="$with_gnu_ld"
9098 test "$withval" = no || with_gnu_ld=yes
9103 if test "$GCC" = yes; then
9104 # Check if gcc -print-prog-name=ld gives a path.
9105 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9106 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9109 # gcc leaves a trailing carriage return which upsets mingw
9110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9115 # Accept absolute paths.
9117 re_direlt='/[^/][^/]*/\.\./'
9118 # Canonicalize the path of ld
9119 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9120 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9121 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9123 test -z "$LD" && LD="$ac_prog"
9126 # If it fails, then pretend we aren't using GCC.
9130 # If it is relative, then search for the first ld in PATH.
9134 elif test "$with_gnu_ld" = yes; then
9135 echo "$as_me:$LINENO: checking for GNU ld" >&5
9136 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9138 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9139 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9141 if test "${lt_cv_path_LD+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 if test -z "$LD"; then
9145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9146 for ac_dir in $PATH; do
9148 test -z "$ac_dir" && ac_dir=.
9149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9150 lt_cv_path_LD="$ac_dir/$ac_prog"
9151 # Check to see if the program is GNU ld. I'd rather use --version,
9152 # but apparently some GNU ld's only accept -v.
9153 # Break only if it was the GNU/non-GNU ld that we prefer.
9154 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9155 *GNU* | *'with BFD'*)
9156 test "$with_gnu_ld" != no && break
9159 test "$with_gnu_ld" != yes && break
9166 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9171 if test -n "$LD"; then
9172 echo "$as_me:$LINENO: result: $LD" >&5
9173 echo "${ECHO_T}$LD" >&6
9175 echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9178 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9179 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9180 { (exit 1); exit 1; }; }
9181 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9182 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9183 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9187 case `"$LD" -v 2>&1 </dev/null` in
9188 *GNU* | *'with BFD'*)
9189 lt_cv_prog_gnu_ld=yes
9192 lt_cv_prog_gnu_ld=no
9196 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9197 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9198 with_gnu_ld=$lt_cv_prog_gnu_ld
9202 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9203 # archiving commands below assume that GNU ld is being used.
9204 if test "$with_gnu_ld" = yes; then
9205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206 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'
9208 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9209 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9211 # If archive_cmds runs LD, not CC, wlarc should be empty
9212 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9213 # investigate it a little bit more. (MM)
9216 # ancient GNU ld didn't support --whole-archive et. al.
9217 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9218 grep 'no-whole-archive' > /dev/null; then
9219 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9221 whole_archive_flag_spec_CXX=
9227 # A generic and very simple default shared library creation
9228 # command for GNU C++ for the case where it uses the native
9229 # linker, instead of GNU ld. If possible, this setting should
9230 # overridden to take advantage of the native linker features on
9231 # the platform it is being used on.
9232 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9235 # Commands to make compiler produce verbose output that lists
9236 # what "hidden" libraries, object files and flags are used when
9237 # linking a shared library.
9238 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9246 # PORTME: fill in a description of your system's C++ link characteristics
9247 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9248 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9252 # FIXME: insert proper C++ library support
9256 if test "$host_cpu" = ia64; then
9257 # On IA64, the linker does run time linking by default, so we don't
9258 # have to do anything special.
9259 aix_use_runtimelinking=no
9260 exp_sym_flag='-Bexport'
9263 aix_use_runtimelinking=no
9265 # Test if we are trying to use run time linking or normal
9266 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9267 # need to do runtime linking.
9268 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9269 for ld_flag in $LDFLAGS; do
9272 aix_use_runtimelinking=yes
9279 exp_sym_flag='-bexport'
9280 no_entry_flag='-bnoentry'
9283 # When large executables or shared objects are built, AIX ld can
9284 # have problems creating the table of contents. If linking a library
9285 # or program results in "error TOC overflow" add -mminimal-toc to
9286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9290 hardcode_direct_CXX=yes
9291 hardcode_libdir_separator_CXX=':'
9292 link_all_deplibs_CXX=yes
9294 if test "$GXX" = yes; then
9295 case $host_os in aix4.012|aix4.012.*)
9296 # We only want to do this on AIX 4.2 and lower, the check
9297 # below for broken collect2 doesn't work under 4.3+
9298 collect2name=`${CC} -print-prog-name=collect2`
9299 if test -f "$collect2name" && \
9300 strings "$collect2name" | grep resolve_lib_name >/dev/null
9302 # We have reworked collect2
9303 hardcode_direct_CXX=yes
9305 # We have old collect2
9306 hardcode_direct_CXX=unsupported
9307 # It fails to find uninstalled libraries when the uninstalled
9308 # path is not listed in the libpath. Setting hardcode_minus_L
9309 # to unsupported forces relinking
9310 hardcode_minus_L_CXX=yes
9311 hardcode_libdir_flag_spec_CXX='-L$libdir'
9312 hardcode_libdir_separator_CXX=
9315 shared_flag='-shared'
9318 if test "$host_cpu" = ia64; then
9319 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9320 # chokes on -Wl,-G. The following line is correct:
9323 if test "$aix_use_runtimelinking" = yes; then
9324 shared_flag='${wl}-G'
9326 shared_flag='${wl}-bM:SRE'
9331 # It seems that -bexpall does not export symbols beginning with
9332 # underscore (_), so it is better to generate a list of symbols to export.
9333 always_export_symbols_CXX=yes
9334 if test "$aix_use_runtimelinking" = yes; then
9335 # Warning - without using the other runtime loading flags (-brtl),
9336 # -berok will link without error, but may produce a broken library.
9337 allow_undefined_flag_CXX='-berok'
9338 # Determine the default libpath from the value encoded in an empty executable.
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line $LINENO "configure"
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -s conftest$ac_exeext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9370 # Check for a 64-bit object if we didn't find anything.
9371 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; }
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9381 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9383 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"
9385 if test "$host_cpu" = ia64; then
9386 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9387 allow_undefined_flag_CXX="-z nodefs"
9388 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"
9390 # Determine the default libpath from the value encoded in an empty executable.
9391 cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -s conftest$ac_exeext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9422 # Check for a 64-bit object if we didn't find anything.
9423 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; }
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9433 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9434 # Warning - without using the other run time loading flags,
9435 # -berok will link without error, but may produce a broken library.
9436 no_undefined_flag_CXX=' ${wl}-bernotok'
9437 allow_undefined_flag_CXX=' ${wl}-berok'
9438 # -bexpall does not export symbols beginning with underscore (_)
9439 always_export_symbols_CXX=yes
9440 # Exported symbols can be pulled into shared objects from archives
9441 whole_archive_flag_spec_CXX=' '
9442 archive_cmds_need_lc_CXX=yes
9443 # This is similar to how AIX traditionally builds it's shared libraries.
9444 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'
9449 case $cc_basename in
9451 # FIXME: insert proper C++ library support
9457 cygwin* | mingw* | pw32*)
9458 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9459 # as there is no search path for DLLs.
9460 hardcode_libdir_flag_spec_CXX='-L$libdir'
9461 allow_undefined_flag_CXX=unsupported
9462 always_export_symbols_CXX=no
9463 enable_shared_with_static_runtimes_CXX=yes
9465 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9466 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'
9467 # If the export-symbols file already is a .def file (1st line
9468 # is EXPORTS), use it as is; otherwise, prepend...
9469 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9470 cp $export_symbols $output_objdir/$soname.def;
9472 echo EXPORTS > $output_objdir/$soname.def;
9473 cat $export_symbols >> $output_objdir/$soname.def;
9475 $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'
9481 darwin* | rhapsody*)
9482 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9483 archive_cmds_need_lc_CXX=no
9485 rhapsody* | darwin1.[012])
9486 allow_undefined_flag_CXX='-undefined suppress'
9489 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9492 lt_int_apple_cc_single_mod=no
9493 output_verbose_link_cmd='echo'
9494 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9495 lt_int_apple_cc_single_mod=yes
9497 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9498 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9500 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'
9502 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9505 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9506 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}'
9508 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}'
9510 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}'
9511 hardcode_direct_CXX=no
9512 hardcode_automatic_CXX=yes
9513 hardcode_shlibpath_var_CXX=unsupported
9514 whole_archive_flag_spec_CXX='-all_load $convenience'
9515 link_all_deplibs_CXX=yes
9520 case $cc_basename in
9522 # FIXME: insert proper C++ library support
9526 # Green Hills C++ Compiler
9527 # FIXME: insert proper C++ library support
9531 # FIXME: insert proper C++ library support
9537 # C++ shared libraries reported to be fairly broken before switch to ELF
9541 archive_cmds_need_lc_CXX=no
9544 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9551 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9552 hardcode_libdir_separator_CXX=:
9553 export_dynamic_flag_spec_CXX='${wl}-E'
9554 hardcode_direct_CXX=yes
9555 hardcode_minus_L_CXX=yes # Not in the search PATH,
9556 # but as the default
9557 # location of the library.
9559 case $cc_basename in
9561 # FIXME: insert proper C++ library support
9565 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'
9566 # Commands to make compiler produce verbose output that lists
9567 # what "hidden" libraries, object files and flags are used when
9568 # linking a shared library.
9570 # There doesn't appear to be a way to prevent this compiler from
9571 # explicitly linking system object files so we need to strip them
9572 # from the output so that they don't get included in the library
9574 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'
9577 if test "$GXX" = yes; then
9578 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'
9580 # FIXME: insert proper C++ library support
9587 if test $with_gnu_ld = no; then
9590 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9591 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9592 hardcode_libdir_separator_CXX=:
9595 hardcode_libdir_flag_spec_CXX='-L$libdir'
9598 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9599 hardcode_libdir_separator_CXX=:
9600 export_dynamic_flag_spec_CXX='${wl}-E'
9606 hardcode_direct_CXX=no
9607 hardcode_shlibpath_var_CXX=no
9610 hardcode_direct_CXX=no
9611 hardcode_shlibpath_var_CXX=no
9612 hardcode_minus_L_CXX=yes # Not in the search PATH,
9613 # but as the default
9614 # location of the library.
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.
9624 case $cc_basename in
9626 # FIXME: insert proper C++ library support
9632 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9635 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9638 # Commands to make compiler produce verbose output that lists
9639 # what "hidden" libraries, object files and flags are used when
9640 # linking a shared library.
9642 # There doesn't appear to be a way to prevent this compiler from
9643 # explicitly linking system object files so we need to strip them
9644 # from the output so that they don't get included in the library
9646 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'
9649 if test "$GXX" = yes; then
9650 if test $with_gnu_ld = no; then
9653 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9656 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'
9661 # FIXME: insert proper C++ library support
9668 case $cc_basename in
9671 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'
9673 # Archives containing C++ object files must be created using
9674 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9675 # necessary to make sure instantiated templates are included
9677 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9680 if test "$GXX" = yes; then
9681 if test "$with_gnu_ld" = no; then
9682 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'
9684 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'
9687 link_all_deplibs_CXX=yes
9690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9691 hardcode_libdir_separator_CXX=:
9694 case $cc_basename in
9696 # Kuck and Associates, Inc. (KAI) C++ Compiler
9698 # KCC will only create a shared library if the output file
9699 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9700 # to its proper name (with version) after linking.
9701 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'
9702 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'
9703 # Commands to make compiler produce verbose output that lists
9704 # what "hidden" libraries, object files and flags are used when
9705 # linking a shared library.
9707 # There doesn't appear to be a way to prevent this compiler from
9708 # explicitly linking system object files so we need to strip them
9709 # from the output so that they don't get included in the library
9711 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'
9713 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9716 # Archives containing C++ object files must be created using
9717 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9718 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9723 archive_cmds_need_lc_CXX=no
9724 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9725 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'
9726 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9728 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9732 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733 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'
9735 runpath_var=LD_RUN_PATH
9736 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9737 hardcode_libdir_separator_CXX=:
9739 # Commands to make compiler produce verbose output that lists
9740 # what "hidden" libraries, object files and flags are used when
9741 # linking a shared library.
9743 # There doesn't appear to be a way to prevent this compiler from
9744 # explicitly linking system object files so we need to strip them
9745 # from the output so that they don't get included in the library
9747 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'
9752 # FIXME: insert proper C++ library support
9756 # FIXME: insert proper C++ library support
9760 case $cc_basename in
9762 # FIXME: insert proper C++ library support
9766 # FIXME: insert proper C++ library support
9772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9773 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9775 hardcode_libdir_flag_spec_CXX='-R$libdir'
9776 hardcode_direct_CXX=yes
9777 hardcode_shlibpath_var_CXX=no
9779 # Workaround some broken pre-1.5 toolchains
9780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9783 case $cc_basename in
9785 # Kuck and Associates, Inc. (KAI) C++ Compiler
9787 # KCC will only create a shared library if the output file
9788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9789 # to its proper name (with version) after linking.
9790 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'
9792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9793 hardcode_libdir_separator_CXX=:
9795 # Archives containing C++ object files must be created using
9796 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9797 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9801 # Rational C++ 2.4.1
9802 # FIXME: insert proper C++ library support
9806 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9807 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'
9809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9810 hardcode_libdir_separator_CXX=:
9812 # Commands to make compiler produce verbose output that lists
9813 # what "hidden" libraries, object files and flags are used when
9814 # linking a shared library.
9816 # There doesn't appear to be a way to prevent this compiler from
9817 # explicitly linking system object files so we need to strip them
9818 # from the output so that they don't get included in the library
9820 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'
9823 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9824 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9825 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'
9827 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9828 hardcode_libdir_separator_CXX=:
9830 # Commands to make compiler produce verbose output that lists
9831 # what "hidden" libraries, object files and flags are used when
9832 # linking a shared library.
9833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9836 # FIXME: insert proper C++ library support
9843 case $cc_basename in
9845 # Kuck and Associates, Inc. (KAI) C++ Compiler
9847 # KCC will only create a shared library if the output file
9848 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9849 # to its proper name (with version) after linking.
9850 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'
9852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9853 hardcode_libdir_separator_CXX=:
9855 # Archives containing C++ object files must be created using
9856 # the KAI C++ compiler.
9857 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9860 # Rational C++ 2.4.1
9861 # FIXME: insert proper C++ library support
9865 allow_undefined_flag_CXX=' -expect_unresolved \*'
9866 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'
9867 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9868 echo "-hidden">> $lib.exp~
9869 $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~
9872 hardcode_libdir_flag_spec_CXX='-rpath $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}-msym ${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 # FIXME: insert proper C++ library support
9910 archive_cmds_need_lc_CXX=no
9911 case $cc_basename in
9913 # FIXME: insert proper C++ library support
9917 # FIXME: insert proper C++ library support
9923 case $cc_basename in
9926 # FIXME: insert proper C++ library support
9931 # FIXME: insert proper C++ library support
9935 # FIXME: insert proper C++ library support
9941 case $cc_basename in
9943 # Sun C++ 4.2, 5.x and Centerline C++
9944 no_undefined_flag_CXX=' -zdefs'
9945 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9946 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9947 $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'
9949 hardcode_libdir_flag_spec_CXX='-R$libdir'
9950 hardcode_shlibpath_var_CXX=no
9952 solaris2.0-5 | solaris2.0-5.*) ;;
9954 # The C++ compiler is used as linker so we must use $wl
9955 # flag to pass the commands to the underlying system
9957 # Supported since Solaris 2.6 (maybe 2.5.1?)
9958 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9961 link_all_deplibs_CXX=yes
9963 # Commands to make compiler produce verbose output that lists
9964 # what "hidden" libraries, object files and flags are used when
9965 # linking a shared library.
9967 # There doesn't appear to be a way to prevent this compiler from
9968 # explicitly linking system object files so we need to strip them
9969 # from the output so that they don't get included in the library
9971 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'
9973 # Archives containing C++ object files must be created using
9974 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9975 # necessary to make sure instantiated templates are included
9977 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9980 # Green Hills C++ Compiler
9981 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9983 # The C++ compiler must be used to create the archive.
9984 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9987 # GNU C++ compiler with Solaris linker
9988 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9989 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9990 if $CC --version | grep -v '^2\.7' > /dev/null; then
9991 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9992 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9993 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9995 # Commands to make compiler produce verbose output that lists
9996 # what "hidden" libraries, object files and flags are used when
9997 # linking a shared library.
9998 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10000 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10002 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10003 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10004 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10006 # Commands to make compiler produce verbose output that lists
10007 # what "hidden" libraries, object files and flags are used when
10008 # linking a shared library.
10009 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10012 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10017 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10018 archive_cmds_need_lc_CXX=no
10021 case $cc_basename in
10023 # NonStop-UX NCC 3.20
10024 # FIXME: insert proper C++ library support
10028 # FIXME: insert proper C++ library support
10034 # FIXME: insert proper C++ library support
10038 # FIXME: insert proper C++ library support
10042 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10043 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10044 test "$ld_shlibs_CXX" = no && can_build_shared=no
10050 ## There is no encapsulation within the following macros, do not change
10051 ## the running order or otherwise move them around unless you know exactly
10052 ## what you are doing...
10054 cat > conftest.$ac_ext <<EOF
10058 Foo (void) { a = 0; }
10064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10065 (eval $ac_compile) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; then
10069 # Parse the compiler output and extract the necessary
10070 # objects, libraries and library flags.
10072 # Sentinel used to keep track of whether or not we are before
10073 # the conftest object file.
10074 pre_test_object_deps_done=no
10076 # The `*' in the case matches for architectures that use `case' in
10077 # $output_verbose_cmd can trigger glob expansion during the loop
10078 # eval without this substitution.
10079 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10081 for p in `eval $output_verbose_link_cmd`; do
10085 # Some compilers place space between "-{L,R}" and the path.
10086 # Remove the space.
10087 if test $p = "-L" \
10088 || test $p = "-R"; then
10095 if test "$pre_test_object_deps_done" = no; then
10098 # Internal compiler library paths should come after those
10099 # provided the user. The postdeps already come after the
10100 # user supplied libs so there is no need to process them.
10101 if test -z "$compiler_lib_search_path_CXX"; then
10102 compiler_lib_search_path_CXX="${prev}${p}"
10104 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10107 # The "-l" case would never come before the object being
10108 # linked, so don't bother handling this case.
10111 if test -z "$postdeps_CXX"; then
10112 postdeps_CXX="${prev}${p}"
10114 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10120 # This assumes that the test object file only shows up
10121 # once in the compiler output.
10122 if test "$p" = "conftest.$objext"; then
10123 pre_test_object_deps_done=yes
10127 if test "$pre_test_object_deps_done" = no; then
10128 if test -z "$predep_objects_CXX"; then
10129 predep_objects_CXX="$p"
10131 predep_objects_CXX="$predep_objects_CXX $p"
10134 if test -z "$postdep_objects_CXX"; then
10135 postdep_objects_CXX="$p"
10137 postdep_objects_CXX="$postdep_objects_CXX $p"
10142 *) ;; # Ignore the rest.
10150 echo "libtool.m4: error: problem compiling CXX test program"
10153 $rm -f confest.$objext
10155 case " $postdeps_CXX " in
10156 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10159 lt_prog_compiler_wl_CXX=
10160 lt_prog_compiler_pic_CXX=
10161 lt_prog_compiler_static_CXX=
10163 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10164 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10166 # C++ specific cases for pic, static, wl, etc.
10167 if test "$GXX" = yes; then
10168 lt_prog_compiler_wl_CXX='-Wl,'
10169 lt_prog_compiler_static_CXX='-static'
10173 # All AIX code is PIC.
10174 if test "$host_cpu" = ia64; then
10175 # AIX 5 now supports IA64 processor
10176 lt_prog_compiler_static_CXX='-Bstatic'
10180 # FIXME: we need at least 68020 code to build shared libraries, but
10181 # adding the `-m68020' flag to GCC prevents building anything better,
10183 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10185 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10186 # PIC is the default for these OSes.
10188 mingw* | os2* | pw32*)
10189 # This hack is so that the source file can tell whether it is being
10190 # built for inclusion in a dll (and should export symbols for example).
10191 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10193 darwin* | rhapsody*)
10194 # PIC is the default on this platform
10195 # Common symbols not allowed in MH_DYLIB files
10196 lt_prog_compiler_pic_CXX='-fno-common'
10199 # DJGPP does not support shared libraries at all
10200 lt_prog_compiler_pic_CXX=
10203 if test -d /usr/nec; then
10204 lt_prog_compiler_pic_CXX=-Kconform_pic
10208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10209 # not for PA HP-UX.
10210 case "$host_cpu" in
10214 lt_prog_compiler_pic_CXX='-fPIC'
10219 lt_prog_compiler_pic_CXX='-fPIC'
10225 # All AIX code is PIC.
10226 if test "$host_cpu" = ia64; then
10227 # AIX 5 now supports IA64 processor
10228 lt_prog_compiler_static_CXX='-Bstatic'
10230 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10234 case $cc_basename in
10236 # Green Hills C++ Compiler
10237 # _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"
10242 case $cc_basename in
10244 lt_prog_compiler_pic_CXX='-KPIC'
10247 # Green Hills C++ Compiler
10248 lt_prog_compiler_pic_CXX='-pic'
10255 # FreeBSD uses GNU C++
10257 hpux9* | hpux10* | hpux11*)
10258 case $cc_basename in
10260 lt_prog_compiler_wl_CXX='-Wl,'
10261 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10262 if test "$host_cpu" != ia64; then
10263 lt_prog_compiler_pic_CXX='+Z'
10267 lt_prog_compiler_wl_CXX='-Wl,'
10268 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10269 case "$host_cpu" in
10274 lt_prog_compiler_pic_CXX='+Z'
10282 irix5* | irix6* | nonstopux*)
10283 case $cc_basename in
10285 lt_prog_compiler_wl_CXX='-Wl,'
10286 lt_prog_compiler_static_CXX='-non_shared'
10287 # CC pic flag -KPIC is the default.
10294 case $cc_basename in
10297 lt_prog_compiler_wl_CXX='--backend -Wl,'
10298 lt_prog_compiler_pic_CXX='-fPIC'
10302 lt_prog_compiler_wl_CXX='-Wl,'
10303 lt_prog_compiler_pic_CXX='-KPIC'
10304 lt_prog_compiler_static_CXX='-static'
10308 # Make sure the PIC flag is empty. It appears that all Alpha
10309 # Linux and Compaq Tru64 Unix objects are PIC.
10310 lt_prog_compiler_pic_CXX=
10311 lt_prog_compiler_static_CXX='-non_shared'
10322 case $cc_basename in
10324 lt_prog_compiler_pic_CXX='-W c,exportall'
10332 osf3* | osf4* | osf5*)
10333 case $cc_basename in
10335 lt_prog_compiler_wl_CXX='--backend -Wl,'
10338 # Rational C++ 2.4.1
10339 lt_prog_compiler_pic_CXX='-pic'
10342 # Digital/Compaq C++
10343 lt_prog_compiler_wl_CXX='-Wl,'
10344 # Make sure the PIC flag is empty. It appears that all Alpha
10345 # Linux and Compaq Tru64 Unix objects are PIC.
10346 lt_prog_compiler_pic_CXX=
10347 lt_prog_compiler_static_CXX='-non_shared'
10356 case $cc_basename in
10358 lt_prog_compiler_pic_CXX='-fPIC'
10365 case $cc_basename in
10367 # Sun C++ 4.2, 5.x and Centerline C++
10368 lt_prog_compiler_pic_CXX='-KPIC'
10369 lt_prog_compiler_static_CXX='-Bstatic'
10370 lt_prog_compiler_wl_CXX='-Qoption ld '
10373 # Green Hills C++ Compiler
10374 lt_prog_compiler_pic_CXX='-PIC'
10381 case $cc_basename in
10384 lt_prog_compiler_pic_CXX='-pic'
10385 lt_prog_compiler_static_CXX='-Bstatic'
10389 lt_prog_compiler_pic_CXX='-pic'
10396 case $cc_basename in
10398 # NonStop-UX NCC 3.20
10399 lt_prog_compiler_pic_CXX='-KPIC'
10410 lt_prog_compiler_can_build_shared_CXX=no
10415 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10416 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10419 # Check to make sure the PIC flag actually works.
10421 if test -n "$lt_prog_compiler_pic_CXX"; then
10422 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10423 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10424 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 lt_prog_compiler_pic_works_CXX=no
10428 ac_outfile=conftest.$ac_objext
10429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10430 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10431 # Insert the option either (1) after the last *FLAGS variable, or
10432 # (2) before a word containing "conftest.", or (3) at the end.
10433 # Note that $ac_compile itself does not contain backslashes and begins
10434 # with a dollar sign (not a hyphen), so the echo should work correctly.
10435 # The option is referenced via a variable to avoid confusing sed.
10436 lt_compile=`echo "$ac_compile" | $SED \
10437 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10439 -e 's:$: $lt_compiler_flag:'`
10440 (eval echo "\"\$as_me:10440: $lt_compile\"" >&5)
10441 (eval "$lt_compile" 2>conftest.err)
10443 cat conftest.err >&5
10444 echo "$as_me:10444: \$? = $ac_status" >&5
10445 if (exit $ac_status) && test -s "$ac_outfile"; then
10446 # The compiler can only warn and ignore the option if not recognized
10447 # So say no if there are warnings
10448 if test ! -s conftest.err; then
10449 lt_prog_compiler_pic_works_CXX=yes
10455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10456 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10458 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10459 case $lt_prog_compiler_pic_CXX in
10461 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10464 lt_prog_compiler_pic_CXX=
10465 lt_prog_compiler_can_build_shared_CXX=no
10470 # For platforms which do not support PIC, -DPIC is meaningless:
10472 lt_prog_compiler_pic_CXX=
10475 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10479 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10480 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10481 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 lt_cv_prog_compiler_c_o_CXX=no
10485 $rm -r conftest 2>/dev/null
10489 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10491 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10492 # that will create temporary files in the current directory regardless of
10493 # the output directory. Thus, making CWD read-only will cause this test
10494 # to fail, enabling locking or at least warning the user not to do parallel
10498 lt_compiler_flag="-o out/conftest2.$ac_objext"
10499 # Insert the option either (1) after the last *FLAGS variable, or
10500 # (2) before a word containing "conftest.", or (3) at the end.
10501 # Note that $ac_compile itself does not contain backslashes and begins
10502 # with a dollar sign (not a hyphen), so the echo should work correctly.
10503 lt_compile=`echo "$ac_compile" | $SED \
10504 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10506 -e 's:$: $lt_compiler_flag:'`
10507 (eval echo "\"\$as_me:10507: $lt_compile\"" >&5)
10508 (eval "$lt_compile" 2>out/conftest.err)
10510 cat out/conftest.err >&5
10511 echo "$as_me:10511: \$? = $ac_status" >&5
10512 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10514 # The compiler can only warn and ignore the option if not recognized
10515 # So say no if there are warnings
10516 if test ! -s out/conftest.err; then
10517 lt_cv_prog_compiler_c_o_CXX=yes
10521 $rm conftest* out/*
10528 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10529 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10532 hard_links="nottested"
10533 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10534 # do not overwrite the value of need_locks provided by the user
10535 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10536 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10541 ln conftest.a conftest.b 2>&5 || hard_links=no
10542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10543 echo "$as_me:$LINENO: result: $hard_links" >&5
10544 echo "${ECHO_T}$hard_links" >&6
10545 if test "$hard_links" = no; then
10546 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10547 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10554 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10555 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10560 # If we're using GNU nm, then we don't want the "-C" option.
10561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10562 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10563 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'
10565 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'
10569 export_symbols_cmds_CXX="$ltdll_cmds"
10572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10575 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10579 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10580 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10581 test "$ld_shlibs_CXX" = no && can_build_shared=no
10583 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10584 if test "$GCC" = yes; then
10585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10589 # Do we need to explicitly link libc?
10591 case "x$archive_cmds_need_lc_CXX" in
10593 # Assume -lc should be added
10594 archive_cmds_need_lc_CXX=yes
10596 if test "$enable_shared" = yes && test "$GCC" = yes; then
10597 case $archive_cmds_CXX in
10599 # FIXME: we may have to deal with multi-command sequences.
10602 # Test whether the compiler implicitly links with -lc since on some
10603 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10604 # to ld, don't add -lc before -lgcc.
10605 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10606 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10608 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611 (eval $ac_compile) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } 2>conftest.err; then
10617 libobjs=conftest.$ac_objext
10619 wl=$lt_prog_compiler_wl_CXX
10625 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10626 allow_undefined_flag_CXX=
10627 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10628 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }
10633 archive_cmds_need_lc_CXX=no
10635 archive_cmds_need_lc_CXX=yes
10637 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10639 cat conftest.err 1>&5
10642 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10643 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10650 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10651 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10652 hardcode_action_CXX=
10653 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10654 test -n "$runpath_var CXX" || \
10655 test "X$hardcode_automatic_CXX"="Xyes" ; then
10657 # We can hardcode non-existant directories.
10658 if test "$hardcode_direct_CXX" != no &&
10659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10660 # have to relink, otherwise we might link with an installed library
10661 # when we should be linking with a yet-to-be-installed one
10662 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10663 test "$hardcode_minus_L_CXX" != no; then
10664 # Linking always hardcodes the temporary library directory.
10665 hardcode_action_CXX=relink
10667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10668 hardcode_action_CXX=immediate
10671 # We cannot hardcode anything, or else we can only hardcode existing
10673 hardcode_action_CXX=unsupported
10675 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10676 echo "${ECHO_T}$hardcode_action_CXX" >&6
10678 if test "$hardcode_action_CXX" = relink; then
10679 # Fast installation is not supported
10680 enable_fast_install=no
10681 elif test "$shlibpath_overrides_runpath" = yes ||
10682 test "$enable_shared" = no; then
10683 # Fast installation is not necessary
10684 enable_fast_install=needless
10689 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10690 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10691 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10692 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10693 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10694 echo "$as_me:$LINENO: result: yes" >&5
10695 echo "${ECHO_T}yes" >&6
10697 # FIXME - insert some real tests, host_os isn't really good enough
10700 if test -n "$STRIP" ; then
10701 striplib="$STRIP -x"
10702 echo "$as_me:$LINENO: result: yes" >&5
10703 echo "${ECHO_T}yes" >&6
10705 echo "$as_me:$LINENO: result: no" >&5
10706 echo "${ECHO_T}no" >&6
10710 echo "$as_me:$LINENO: result: no" >&5
10711 echo "${ECHO_T}no" >&6
10716 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10717 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10718 library_names_spec=
10719 libname_spec='lib$name'
10723 postuninstall_cmds=
10727 shlibpath_overrides_runpath=unknown
10729 dynamic_linker="$host_os ld.so"
10730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10731 if test "$GCC" = yes; then
10732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10733 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10734 # if the path contains ";" then we assume it to be the separator
10735 # otherwise default to the standard path separator (i.e. ":") - it is
10736 # assumed that no part of a normal pathname contains ";" but that should
10737 # okay in the real world where ";" in dirpaths is itself problematic.
10738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10745 need_lib_prefix=unknown
10746 hardcode_into_libs=no
10748 # when you set need_version to no, make sure it does not cause -set_version
10749 # flags to be left without arguments
10750 need_version=unknown
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10756 shlibpath_var=LIBPATH
10758 # AIX 3 has no versioning support, so we append a major version to the name.
10759 soname_spec='${libname}${release}${shared_ext}$major'
10766 hardcode_into_libs=yes
10767 if test "$host_cpu" = ia64; then
10768 # AIX 5 supports IA64
10769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10770 shlibpath_var=LD_LIBRARY_PATH
10772 # With GCC up to 2.95.x, collect2 would create an import file
10773 # for dependence libraries. The import file would start with
10774 # the line `#! .'. This would cause the generated library to
10775 # depend on `.', always an invalid library. This was fixed in
10776 # development snapshots of GCC prior to 3.0.
10778 aix4 | aix4.[01] | aix4.[01].*)
10779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10781 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10784 can_build_shared=no
10788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10789 # soname into executable. Probably we can add versioning support to
10790 # collect2, so additional links can be useful in future.
10791 if test "$aix_use_runtimelinking" = yes; then
10792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10793 # instead of lib<name>.a to let people know that these are not
10794 # typical AIX shared libraries.
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 # We preserve .a as extension for shared libraries through AIX4.2
10798 # and later when we are not doing run time linking.
10799 library_names_spec='${libname}${release}.a $libname.a'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10802 shlibpath_var=LIBPATH
10807 library_names_spec='$libname.ixlibrary $libname.a'
10808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10809 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'
10813 library_names_spec='${libname}${shared_ext}'
10814 dynamic_linker="$host_os ld.so"
10815 shlibpath_var=LIBRARY_PATH
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10827 # the default ld.so.conf also contains /usr/contrib/lib and
10828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10829 # libtool to hard-code these into programs
10832 cygwin* | mingw* | pw32*)
10833 version_type=windows
10838 case $GCC,$host_os in
10839 yes,cygwin* | yes,mingw* | yes,pw32*)
10840 library_names_spec='$libname.dll.a'
10841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10842 postinstall_cmds='base_file=`basename \${file}`~
10843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10844 dldir=$destdir/`dirname \$dlpath`~
10845 test -d \$dldir || mkdir -p \$dldir~
10846 $install_prog $dir/$dlname \$dldir/$dlname'
10847 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10848 dlpath=$dir/\$dldll~
10850 shlibpath_overrides_runpath=yes
10854 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10855 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10856 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10859 # MinGW DLLs use traditional 'lib' prefix
10860 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10861 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10862 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10863 # It is most probably a Windows format PATH printed by
10864 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10865 # path with ; separators, and with drive letters. We can handle the
10866 # drive letters (cygwin fileutils understands them), so leave them,
10867 # especially as we might pass files found there to a mingw objdump,
10868 # which wouldn't understand a cygwinified path. Ahh.
10869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10875 # pw32 DLLs use 'pw' prefix rather than 'lib'
10876 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10882 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10885 dynamic_linker='Win32 ld.exe'
10886 # FIXME: first we should search . and the directory the executable is in
10890 darwin* | rhapsody*)
10891 dynamic_linker="$host_os dyld"
10892 version_type=darwin
10895 # FIXME: Relying on posixy $() will cause problems for
10896 # cross-compilation, but unfortunately the echo tests do not
10897 # yet detect zsh echo's removal of \ escapes.
10898 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10899 soname_spec='${libname}${release}${major}$shared_ext'
10900 shlibpath_overrides_runpath=yes
10901 shlibpath_var=DYLD_LIBRARY_PATH
10902 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10903 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10904 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10905 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"`
10907 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 shlibpath_var=LD_LIBRARY_PATH
10924 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10925 version_type=freebsd-$objformat
10926 case $version_type in
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10937 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes
10942 freebsd3.01* | freebsdelf3.01*)
10943 shlibpath_overrides_runpath=yes
10944 hardcode_into_libs=yes
10947 shlibpath_overrides_runpath=no
10948 hardcode_into_libs=yes
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 hardcode_into_libs=yes
10963 hpux9* | hpux10* | hpux11*)
10964 # Give a soname corresponding to the major version so that dld.sl refuses to
10965 # link against other versions.
10969 case "$host_cpu" in
10972 hardcode_into_libs=yes
10973 dynamic_linker="$host_os dld.so"
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 if test "X$HPUX_IA64_MODE" = X32; then
10979 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10987 hardcode_into_libs=yes
10988 dynamic_linker="$host_os dld.sl"
10989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10998 dynamic_linker="$host_os dld.sl"
10999 shlibpath_var=SHLIB_PATH
11000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11005 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11006 postinstall_cmds='chmod 555 $lib'
11009 irix5* | irix6* | nonstopux*)
11011 nonstopux*) version_type=nonstopux ;;
11013 if test "$lt_cv_prog_gnu_ld" = yes; then
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11024 irix5* | nonstopux*)
11025 libsuff= shlibsuff=
11028 case $LD in # libtool.m4 will add one of these switches to LD
11029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11030 libsuff= shlibsuff= libmagic=32-bit;;
11031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11032 libsuff=32 shlibsuff=N32 libmagic=N32;;
11033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11035 *) libsuff= shlibsuff= libmagic=never-match;;
11039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11040 shlibpath_overrides_runpath=no
11041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11043 hardcode_into_libs=yes
11046 # No shared lib support for Linux oldld, aout, or coff.
11047 linux*oldld* | linux*aout* | linux*coff*)
11051 # This must be Linux ELF.
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=no
11061 # This implies no fast_install, which is unacceptable.
11062 # Some rework will be needed to allow for fast_install
11063 # before this can be enabled.
11064 hardcode_into_libs=yes
11066 # We used to test for /lib/ld.so.1 and disable shared libraries on
11067 # powerpc, because MkLinux only supported shared libraries with the
11068 # GNU dynamic linker. Since this was broken with cross compilers,
11069 # most powerpc-linux boxes support dynamic linking these days and
11070 # people can always --disable-shared, the test was removed, and we
11071 # assume the GNU/Linux dynamic linker is in use.
11072 dynamic_linker='GNU/Linux ld.so'
11079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11082 dynamic_linker='NetBSD (a.out) ld.so'
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 dynamic_linker='NetBSD ld.elf_so'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=yes
11090 hardcode_into_libs=yes
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11119 openbsd2.[89] | openbsd2.[89].*)
11120 shlibpath_overrides_runpath=no
11123 shlibpath_overrides_runpath=yes
11127 shlibpath_overrides_runpath=yes
11132 libname_spec='$name'
11135 library_names_spec='$libname${shared_ext} $libname.a'
11136 dynamic_linker='OS/2 ld.exe'
11137 shlibpath_var=LIBPATH
11140 osf3* | osf4* | osf5*)
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11166 hardcode_into_libs=yes
11167 # ldd complains unless libraries are executable
11168 postinstall_cmds='chmod +x $lib'
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11174 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=yes
11177 if test "$with_gnu_ld" = yes; then
11183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 case $host_vendor in
11190 shlibpath_overrides_runpath=no
11192 export_dynamic_flag_spec='${wl}-Blargedynsym'
11193 runpath_var=LD_RUN_PATH
11201 shlibpath_overrides_runpath=no
11202 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11208 if test -d /usr/nec ;then
11210 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11211 soname_spec='$libname${shared_ext}.$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 shlibpath_var=LD_LIBRARY_PATH
11227 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11228 echo "${ECHO_T}$dynamic_linker" >&6
11229 test "$dynamic_linker" = no && can_build_shared=no
11231 if test "x$enable_dlopen" != xyes; then
11232 enable_dlopen=unknown
11233 enable_dlopen_self=unknown
11234 enable_dlopen_self_static=unknown
11241 lt_cv_dlopen="load_add_on"
11243 lt_cv_dlopen_self=yes
11247 lt_cv_dlopen="LoadLibrary"
11252 lt_cv_dlopen="dlopen"
11257 # if libdl is installed we need to link against it
11258 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 ac_check_lib_save_LIBS=$LIBS
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11273 /* Override any gcc2 internal prototype to avoid an error. */
11277 /* We use char because int might match the return type of a gcc2
11278 builtin and then its argument prototype would still apply. */
11288 rm -f conftest.$ac_objext conftest$ac_exeext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -s conftest$ac_exeext'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 ac_cv_lib_dl_dlopen=yes
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 ac_cv_lib_dl_dlopen=no
11307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11312 if test $ac_cv_lib_dl_dlopen = yes; then
11313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11316 lt_cv_dlopen="dyld"
11318 lt_cv_dlopen_self=yes
11325 echo "$as_me:$LINENO: checking for shl_load" >&5
11326 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11327 if test "${ac_cv_func_shl_load+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 cat >conftest.$ac_ext <<_ACEOF
11331 #line $LINENO "configure"
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 /* System header to define __stub macros and hopefully few prototypes,
11338 which can conflict with char shl_load (); below.
11339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340 <limits.h> exists even on freestanding compilers. */
11342 # include <limits.h>
11344 # include <assert.h>
11346 /* Override any gcc2 internal prototype to avoid an error. */
11351 /* We use char because int might match the return type of a gcc2
11352 builtin and then its argument prototype would still apply. */
11354 /* The GNU C library defines this for functions which it implements
11355 to always fail with ENOSYS. Some functions are actually named
11356 something starting with __ and the normal name is an alias. */
11357 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11360 char (*f) () = shl_load;
11369 return f != shl_load;
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11376 (eval $ac_link) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -s conftest$ac_exeext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_func_shl_load=yes
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_cv_func_shl_load=no
11393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11395 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11396 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11397 if test $ac_cv_func_shl_load = yes; then
11398 lt_cv_dlopen="shl_load"
11400 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11401 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11402 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 ac_check_lib_save_LIBS=$LIBS
11407 cat >conftest.$ac_ext <<_ACEOF
11408 #line $LINENO "configure"
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11415 /* Override any gcc2 internal prototype to avoid an error. */
11419 /* We use char because int might match the return type of a gcc2
11420 builtin and then its argument prototype would still apply. */
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11432 (eval $ac_link) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 ac_cv_lib_dld_shl_load=yes
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11447 ac_cv_lib_dld_shl_load=no
11449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11452 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11453 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11454 if test $ac_cv_lib_dld_shl_load = yes; then
11455 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11457 echo "$as_me:$LINENO: checking for dlopen" >&5
11458 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11459 if test "${ac_cv_func_dlopen+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 cat >conftest.$ac_ext <<_ACEOF
11463 #line $LINENO "configure"
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 /* System header to define __stub macros and hopefully few prototypes,
11470 which can conflict with char dlopen (); below.
11471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472 <limits.h> exists even on freestanding compilers. */
11474 # include <limits.h>
11476 # include <assert.h>
11478 /* Override any gcc2 internal prototype to avoid an error. */
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11486 /* The GNU C library defines this for functions which it implements
11487 to always fail with ENOSYS. Some functions are actually named
11488 something starting with __ and the normal name is an alias. */
11489 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11492 char (*f) () = dlopen;
11501 return f != dlopen;
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -s conftest$ac_exeext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_func_dlopen=yes
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_cv_func_dlopen=no
11525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11527 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11528 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11529 if test $ac_cv_func_dlopen = yes; then
11530 lt_cv_dlopen="dlopen"
11532 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11533 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 ac_check_lib_save_LIBS=$LIBS
11539 cat >conftest.$ac_ext <<_ACEOF
11540 #line $LINENO "configure"
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11547 /* Override any gcc2 internal prototype to avoid an error. */
11551 /* We use char because int might match the return type of a gcc2
11552 builtin and then its argument prototype would still apply. */
11562 rm -f conftest.$ac_objext conftest$ac_exeext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11564 (eval $ac_link) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -s conftest$ac_exeext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_cv_lib_dl_dlopen=yes
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 ac_cv_lib_dl_dlopen=no
11581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11582 LIBS=$ac_check_lib_save_LIBS
11584 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11585 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11586 if test $ac_cv_lib_dl_dlopen = yes; then
11587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11589 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11590 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11591 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 ac_check_lib_save_LIBS=$LIBS
11595 LIBS="-lsvld $LIBS"
11596 cat >conftest.$ac_ext <<_ACEOF
11597 #line $LINENO "configure"
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11604 /* Override any gcc2 internal prototype to avoid an error. */
11608 /* We use char because int might match the return type of a gcc2
11609 builtin and then its argument prototype would still apply. */
11619 rm -f conftest.$ac_objext conftest$ac_exeext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11621 (eval $ac_link) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -s conftest$ac_exeext'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_cv_lib_svld_dlopen=yes
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 ac_cv_lib_svld_dlopen=no
11638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11641 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11642 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11643 if test $ac_cv_lib_svld_dlopen = yes; then
11644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11646 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11647 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11648 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 ac_check_lib_save_LIBS=$LIBS
11653 cat >conftest.$ac_ext <<_ACEOF
11654 #line $LINENO "configure"
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11661 /* Override any gcc2 internal prototype to avoid an error. */
11665 /* We use char because int might match the return type of a gcc2
11666 builtin and then its argument prototype would still apply. */
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678 (eval $ac_link) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_lib_dld_dld_link=yes
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_cv_lib_dld_dld_link=no
11695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11698 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11699 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11700 if test $ac_cv_lib_dld_dld_link = yes; then
11701 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11722 if test "x$lt_cv_dlopen" != xno; then
11728 case $lt_cv_dlopen in
11730 save_CPPFLAGS="$CPPFLAGS"
11731 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11733 save_LDFLAGS="$LDFLAGS"
11734 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11737 LIBS="$lt_cv_dlopen_libs $LIBS"
11739 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11740 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11741 if test "${lt_cv_dlopen_self+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 if test "$cross_compiling" = yes; then :
11745 lt_cv_dlopen_self=cross
11747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11748 lt_status=$lt_dlunknown
11749 cat > conftest.$ac_ext <<EOF
11750 #line 11750 "configure"
11751 #include "confdefs.h"
11760 # define LT_DLGLOBAL RTLD_GLOBAL
11763 # define LT_DLGLOBAL DL_GLOBAL
11765 # define LT_DLGLOBAL 0
11769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11770 find out it does not work in some platform. */
11771 #ifndef LT_DLLAZY_OR_NOW
11773 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11776 # define LT_DLLAZY_OR_NOW DL_LAZY
11779 # define LT_DLLAZY_OR_NOW RTLD_NOW
11782 # define LT_DLLAZY_OR_NOW DL_NOW
11784 # define LT_DLLAZY_OR_NOW 0
11792 extern "C" void exit (int);
11795 void fnord() { int i=42;}
11798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11799 int status = $lt_dlunknown;
11803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11804 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11805 /* dlclose (self); */
11811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812 (eval $ac_link) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11816 (./conftest; exit; ) 2>/dev/null
11818 case x$lt_status in
11819 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11820 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11821 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11824 # compilation failed
11825 lt_cv_dlopen_self=no
11832 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11833 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11835 if test "x$lt_cv_dlopen_self" = xyes; then
11836 LDFLAGS="$LDFLAGS $link_static_flag"
11837 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11838 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11839 if test "${lt_cv_dlopen_self_static+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 if test "$cross_compiling" = yes; then :
11843 lt_cv_dlopen_self_static=cross
11845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11846 lt_status=$lt_dlunknown
11847 cat > conftest.$ac_ext <<EOF
11848 #line 11848 "configure"
11849 #include "confdefs.h"
11858 # define LT_DLGLOBAL RTLD_GLOBAL
11861 # define LT_DLGLOBAL DL_GLOBAL
11863 # define LT_DLGLOBAL 0
11867 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11868 find out it does not work in some platform. */
11869 #ifndef LT_DLLAZY_OR_NOW
11871 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11874 # define LT_DLLAZY_OR_NOW DL_LAZY
11877 # define LT_DLLAZY_OR_NOW RTLD_NOW
11880 # define LT_DLLAZY_OR_NOW DL_NOW
11882 # define LT_DLLAZY_OR_NOW 0
11890 extern "C" void exit (int);
11893 void fnord() { int i=42;}
11896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11897 int status = $lt_dlunknown;
11901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11902 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11903 /* dlclose (self); */
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910 (eval $ac_link) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11914 (./conftest; exit; ) 2>/dev/null
11916 case x$lt_status in
11917 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11918 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11919 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11922 # compilation failed
11923 lt_cv_dlopen_self_static=no
11930 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11931 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11934 CPPFLAGS="$save_CPPFLAGS"
11935 LDFLAGS="$save_LDFLAGS"
11940 case $lt_cv_dlopen_self in
11941 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11942 *) enable_dlopen_self=unknown ;;
11945 case $lt_cv_dlopen_self_static in
11946 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11947 *) enable_dlopen_self_static=unknown ;;
11952 # The else clause should only fire when bootstrapping the
11953 # libtool distribution, otherwise you forgot to ship ltmain.sh
11954 # with your package, and you will get complaints that there are
11955 # no rules to generate ltmain.sh.
11956 if test -f "$ltmain"; then
11957 # See if we are running on zsh, and set the options which allow our commands through
11958 # without removal of \ escapes.
11959 if test -n "${ZSH_VERSION+set}" ; then
11960 setopt NO_GLOB_SUBST
11962 # Now quote all the things that may contain metacharacters while being
11963 # careful not to overquote the AC_SUBSTed values. We take copies of the
11964 # variables and quote the copies for generation of the libtool script.
11965 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11966 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11967 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11968 deplibs_check_method reload_flag reload_cmds need_locks \
11969 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11970 lt_cv_sys_global_symbol_to_c_name_address \
11971 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11972 old_postinstall_cmds old_postuninstall_cmds \
11976 lt_prog_compiler_wl_CXX \
11977 lt_prog_compiler_pic_CXX \
11978 lt_prog_compiler_static_CXX \
11979 lt_prog_compiler_no_builtin_flag_CXX \
11980 export_dynamic_flag_spec_CXX \
11981 thread_safe_flag_spec_CXX \
11982 whole_archive_flag_spec_CXX \
11983 enable_shared_with_static_runtimes_CXX \
11984 old_archive_cmds_CXX \
11985 old_archive_from_new_cmds_CXX \
11986 predep_objects_CXX \
11987 postdep_objects_CXX \
11990 compiler_lib_search_path_CXX \
11992 archive_expsym_cmds_CXX \
11993 postinstall_cmds_CXX \
11994 postuninstall_cmds_CXX \
11995 old_archive_from_expsyms_cmds_CXX \
11996 allow_undefined_flag_CXX \
11997 no_undefined_flag_CXX \
11998 export_symbols_cmds_CXX \
11999 hardcode_libdir_flag_spec_CXX \
12000 hardcode_libdir_flag_spec_ld_CXX \
12001 hardcode_libdir_separator_CXX \
12002 hardcode_automatic_CXX \
12004 module_expsym_cmds_CXX \
12005 lt_cv_prog_compiler_c_o_CXX \
12006 exclude_expsyms_CXX \
12007 include_expsyms_CXX; do
12010 old_archive_cmds_CXX | \
12011 old_archive_from_new_cmds_CXX | \
12012 archive_cmds_CXX | \
12013 archive_expsym_cmds_CXX | \
12014 module_cmds_CXX | \
12015 module_expsym_cmds_CXX | \
12016 old_archive_from_expsyms_cmds_CXX | \
12017 export_symbols_cmds_CXX | \
12018 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12019 postinstall_cmds | postuninstall_cmds | \
12020 old_postinstall_cmds | old_postuninstall_cmds | \
12021 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12022 # Double-quote double-evaled strings.
12023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12032 *'\$0 --fallback-echo"')
12033 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12039 cat <<__EOF__ >> "$cfgfile"
12040 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12042 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12044 # Shell to use when invoking shell scripts.
12047 # Whether or not to build shared libraries.
12048 build_libtool_libs=$enable_shared
12050 # Whether or not to build static libraries.
12051 build_old_libs=$enable_static
12053 # Whether or not to add -lc for building shared libraries.
12054 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12056 # Whether or not to disallow shared libs when runtime libs are static
12057 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12059 # Whether or not to optimize for fast installation.
12060 fast_install=$enable_fast_install
12063 host_alias=$host_alias
12066 # An echo program that does not interpret backslashes.
12071 AR_FLAGS=$lt_AR_FLAGS
12076 # A language-specific compiler.
12077 CC=$lt_compiler_CXX
12079 # Is the compiler the GNU C compiler?
12085 # The linker used to build libraries.
12088 # Whether we need hard or soft links.
12091 # A BSD-compatible nm program.
12094 # A symbol stripping program
12097 # Used to examine libraries when file_magic_cmd begins "file"
12098 MAGIC_CMD=$MAGIC_CMD
12100 # Used on cygwin: DLL creation program.
12103 # Used on cygwin: object dumper.
12106 # Used on cygwin: assembler.
12109 # The name of the directory that contains temporary libtool files.
12112 # How to create reloadable object files.
12113 reload_flag=$lt_reload_flag
12114 reload_cmds=$lt_reload_cmds
12116 # How to pass a linker flag through the compiler.
12117 wl=$lt_lt_prog_compiler_wl_CXX
12119 # Object file suffix (normally "o").
12120 objext="$ac_objext"
12122 # Old archive suffix (normally "a").
12125 # Shared library suffix (normally ".so").
12128 # Executable file suffix (normally "").
12131 # Additional compiler flags for building library objects.
12132 pic_flag=$lt_lt_prog_compiler_pic_CXX
12135 # What is the maximum length of a command?
12136 max_cmd_len=$lt_cv_sys_max_cmd_len
12138 # Does compiler simultaneously support -c and -o options?
12139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12141 # Must we lock files when doing compilation ?
12142 need_locks=$lt_need_locks
12144 # Do we need the lib prefix for modules?
12145 need_lib_prefix=$need_lib_prefix
12147 # Do we need a version for libraries?
12148 need_version=$need_version
12150 # Whether dlopen is supported.
12151 dlopen_support=$enable_dlopen
12153 # Whether dlopen of programs is supported.
12154 dlopen_self=$enable_dlopen_self
12156 # Whether dlopen of statically linked programs is supported.
12157 dlopen_self_static=$enable_dlopen_self_static
12159 # Compiler flag to prevent dynamic linking.
12160 link_static_flag=$lt_lt_prog_compiler_static_CXX
12162 # Compiler flag to turn off builtin functions.
12163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12165 # Compiler flag to allow reflexive dlopens.
12166 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12168 # Compiler flag to generate shared objects directly from archives.
12169 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12171 # Compiler flag to generate thread-safe objects.
12172 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12174 # Library versioning type.
12175 version_type=$version_type
12177 # Format of library name prefix.
12178 libname_spec=$lt_libname_spec
12180 # List of archive names. First name is the real one, the rest are links.
12181 # The last name is the one that the linker finds with -lNAME.
12182 library_names_spec=$lt_library_names_spec
12184 # The coded name of the library, if different from the real name.
12185 soname_spec=$lt_soname_spec
12187 # Commands used to build and install an old-style archive.
12189 old_archive_cmds=$lt_old_archive_cmds_CXX
12190 old_postinstall_cmds=$lt_old_postinstall_cmds
12191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12193 # Create an old-style archive from a shared archive.
12194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12196 # Create a temporary old-style archive to link instead of a shared archive.
12197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12199 # Commands used to build and install a shared archive.
12200 archive_cmds=$lt_archive_cmds_CXX
12201 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12202 postinstall_cmds=$lt_postinstall_cmds
12203 postuninstall_cmds=$lt_postuninstall_cmds
12205 # Commands used to build a loadable module (assumed same as above if empty)
12206 module_cmds=$lt_module_cmds_CXX
12207 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12209 # Commands to strip libraries.
12210 old_striplib=$lt_old_striplib
12211 striplib=$lt_striplib
12213 # Dependencies to place before the objects being linked to create a
12215 predep_objects=$lt_predep_objects_CXX
12217 # Dependencies to place after the objects being linked to create a
12219 postdep_objects=$lt_postdep_objects_CXX
12221 # Dependencies to place before the objects being linked to create a
12223 predeps=$lt_predeps_CXX
12225 # Dependencies to place after the objects being linked to create a
12227 postdeps=$lt_postdeps_CXX
12229 # The library search path used internally by the compiler when linking
12230 # a shared library.
12231 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12233 # Method to check whether dependent libraries are shared objects.
12234 deplibs_check_method=$lt_deplibs_check_method
12236 # Command to use when deplibs_check_method == file_magic.
12237 file_magic_cmd=$lt_file_magic_cmd
12239 # Flag that allows shared libraries with undefined symbols to be built.
12240 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12242 # Flag that forces no undefined symbols.
12243 no_undefined_flag=$lt_no_undefined_flag_CXX
12245 # Commands used to finish a libtool library installation in a directory.
12246 finish_cmds=$lt_finish_cmds
12248 # Same as above, but a single script fragment to be evaled but not shown.
12249 finish_eval=$lt_finish_eval
12251 # Take the output of nm and produce a listing of raw symbols and C names.
12252 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12254 # Transform the output of nm in a proper C declaration
12255 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12257 # Transform the output of nm in a C name address pair
12258 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12260 # This is the shared library runtime path variable.
12261 runpath_var=$runpath_var
12263 # This is the shared library path variable.
12264 shlibpath_var=$shlibpath_var
12266 # Is shlibpath searched before the hard-coded library search path?
12267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12269 # How to hardcode a shared library path into an executable.
12270 hardcode_action=$hardcode_action_CXX
12272 # Whether we should hardcode library paths into libraries.
12273 hardcode_into_libs=$hardcode_into_libs
12275 # Flag to hardcode \$libdir into a binary during linking.
12276 # This must work even if \$libdir does not exist.
12277 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12279 # If ld is used when linking, flag to hardcode \$libdir into
12280 # a binary during linking. This must work even if \$libdir does
12282 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12284 # Whether we need a single -rpath flag with a separated argument.
12285 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12287 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12288 # resulting binary.
12289 hardcode_direct=$hardcode_direct_CXX
12291 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12292 # resulting binary.
12293 hardcode_minus_L=$hardcode_minus_L_CXX
12295 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12296 # the resulting binary.
12297 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12299 # Set to yes if building a shared library automatically hardcodes DIR into the library
12300 # and all subsequent libraries and executables linked against it.
12301 hardcode_automatic=$hardcode_automatic_CXX
12303 # Variables whose values should be saved in libtool wrapper scripts and
12304 # restored at relink time.
12305 variables_saved_for_relink="$variables_saved_for_relink"
12307 # Whether libtool must link a program against all its dependency libraries.
12308 link_all_deplibs=$link_all_deplibs_CXX
12310 # Compile-time system search path for libraries
12311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12313 # Run-time system search path for libraries
12314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12316 # Fix the shell variable \$srcfile for the compiler.
12317 fix_srcfile_path="$fix_srcfile_path_CXX"
12319 # Set to yes if exported symbols are required.
12320 always_export_symbols=$always_export_symbols_CXX
12322 # The commands to list exported symbols.
12323 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12325 # The commands to extract the exported symbol list from a shared archive.
12326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12328 # Symbols that should not be listed in the preloaded symbols.
12329 exclude_expsyms=$lt_exclude_expsyms_CXX
12331 # Symbols that must always be exported.
12332 include_expsyms=$lt_include_expsyms_CXX
12334 # ### END LIBTOOL TAG CONFIG: $tagname
12340 # If there is no Makefile yet, we rely on a make rule to execute
12341 # `config.status --recheck' to rerun these tests and create the
12342 # libtool script then.
12343 test -f Makefile && make "$ltmain"
12348 ac_cpp='$CPP $CPPFLAGS'
12349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12357 with_gnu_ldcxx=$with_gnu_ld
12358 with_gnu_ld=$lt_save_with_gnu_ld
12359 lt_cv_path_LDCXX=$lt_cv_path_LD
12360 lt_cv_path_LD=$lt_save_path_LD
12361 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12362 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12370 if test -n "$F77" && test "X$F77" != "Xno"; then
12373 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12374 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12375 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12378 archive_cmds_need_lc_F77=no
12379 allow_undefined_flag_F77=
12380 always_export_symbols_F77=no
12381 archive_expsym_cmds_F77=
12382 export_dynamic_flag_spec_F77=
12383 hardcode_direct_F77=no
12384 hardcode_libdir_flag_spec_F77=
12385 hardcode_libdir_flag_spec_ld_F77=
12386 hardcode_libdir_separator_F77=
12387 hardcode_minus_L_F77=no
12388 hardcode_automatic_F77=no
12390 module_expsym_cmds_F77=
12391 link_all_deplibs_F77=unknown
12392 old_archive_cmds_F77=$old_archive_cmds
12393 no_undefined_flag_F77=
12394 whole_archive_flag_spec_F77=
12395 enable_shared_with_static_runtimes_F77=no
12397 # Source file extension for f77 test sources.
12400 # Object file extension for compiled f77 test sources.
12404 # Code to be used in simple compile tests
12405 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12407 # Code to be used in simple link tests
12408 lt_simple_link_test_code=" program t\n end\n"
12410 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12412 # If no C compiler was specified, use CC.
12415 # Allow CC to be a program name with arguments.
12419 # Allow CC to be a program name with arguments.
12424 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12426 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12427 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12428 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12429 echo "${ECHO_T}$can_build_shared" >&6
12431 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12432 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12433 test "$can_build_shared" = "no" && enable_shared=no
12435 # On AIX, shared libraries and static libraries use the same namespace, and
12436 # are all built from PIC.
12439 test "$enable_shared" = yes && enable_static=no
12440 if test -n "$RANLIB"; then
12441 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12442 postinstall_cmds='$RANLIB $lib'
12446 test "$enable_shared" = yes && enable_static=no
12449 echo "$as_me:$LINENO: result: $enable_shared" >&5
12450 echo "${ECHO_T}$enable_shared" >&6
12452 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12453 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12454 # Make sure either enable_shared or enable_static is yes.
12455 test "$enable_shared" = yes || enable_static=yes
12456 echo "$as_me:$LINENO: result: $enable_static" >&5
12457 echo "${ECHO_T}$enable_static" >&6
12459 test "$ld_shlibs_F77" = no && can_build_shared=no
12464 lt_prog_compiler_wl_F77=
12465 lt_prog_compiler_pic_F77=
12466 lt_prog_compiler_static_F77=
12468 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12471 if test "$GCC" = yes; then
12472 lt_prog_compiler_wl_F77='-Wl,'
12473 lt_prog_compiler_static_F77='-static'
12477 # All AIX code is PIC.
12478 if test "$host_cpu" = ia64; then
12479 # AIX 5 now supports IA64 processor
12480 lt_prog_compiler_static_F77='-Bstatic'
12485 # FIXME: we need at least 68020 code to build shared libraries, but
12486 # adding the `-m68020' flag to GCC prevents building anything better,
12488 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12491 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12492 # PIC is the default for these OSes.
12495 mingw* | pw32* | os2*)
12496 # This hack is so that the source file can tell whether it is being
12497 # built for inclusion in a dll (and should export symbols for example).
12498 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12501 darwin* | rhapsody*)
12502 # PIC is the default on this platform
12503 # Common symbols not allowed in MH_DYLIB files
12504 lt_prog_compiler_pic_F77='-fno-common'
12508 # Just because we use GCC doesn't mean we suddenly get shared libraries
12509 # on systems that don't support them.
12510 lt_prog_compiler_can_build_shared_F77=no
12515 if test -d /usr/nec; then
12516 lt_prog_compiler_pic_F77=-Kconform_pic
12521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12522 # not for PA HP-UX.
12523 case "$host_cpu" in
12528 lt_prog_compiler_pic_F77='-fPIC'
12534 lt_prog_compiler_pic_F77='-fPIC'
12538 # PORTME Check for flag to pass linker flags through the system compiler.
12541 lt_prog_compiler_wl_F77='-Wl,'
12542 if test "$host_cpu" = ia64; then
12543 # AIX 5 now supports IA64 processor
12544 lt_prog_compiler_static_F77='-Bstatic'
12546 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12550 mingw* | pw32* | os2*)
12551 # This hack is so that the source file can tell whether it is being
12552 # built for inclusion in a dll (and should export symbols for example).
12553 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12556 hpux9* | hpux10* | hpux11*)
12557 lt_prog_compiler_wl_F77='-Wl,'
12558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12559 # not for PA HP-UX.
12560 case "$host_cpu" in
12565 lt_prog_compiler_pic_F77='+Z'
12568 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12569 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12572 irix5* | irix6* | nonstopux*)
12573 lt_prog_compiler_wl_F77='-Wl,'
12574 # PIC (with -KPIC) is the default.
12575 lt_prog_compiler_static_F77='-non_shared'
12579 lt_prog_compiler_pic_F77='-KPIC'
12580 lt_prog_compiler_static_F77='-Bstatic'
12586 lt_prog_compiler_wl_F77='-Wl,'
12587 lt_prog_compiler_pic_F77='-KPIC'
12588 lt_prog_compiler_static_F77='-static'
12591 lt_prog_compiler_wl_F77='-Wl,'
12592 # All Alpha code is PIC.
12593 lt_prog_compiler_static_F77='-non_shared'
12598 osf3* | osf4* | osf5*)
12599 lt_prog_compiler_wl_F77='-Wl,'
12600 # All OSF/1 code is PIC.
12601 lt_prog_compiler_static_F77='-non_shared'
12605 lt_prog_compiler_pic_F77='-Kpic'
12606 lt_prog_compiler_static_F77='-dn'
12610 lt_prog_compiler_wl_F77='-Wl,'
12611 lt_prog_compiler_pic_F77='-KPIC'
12612 lt_prog_compiler_static_F77='-Bstatic'
12616 lt_prog_compiler_wl_F77='-Qoption ld '
12617 lt_prog_compiler_pic_F77='-PIC'
12618 lt_prog_compiler_static_F77='-Bstatic'
12621 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12622 lt_prog_compiler_wl_F77='-Wl,'
12623 lt_prog_compiler_pic_F77='-KPIC'
12624 lt_prog_compiler_static_F77='-Bstatic'
12628 if test -d /usr/nec ;then
12629 lt_prog_compiler_pic_F77='-Kconform_pic'
12630 lt_prog_compiler_static_F77='-Bstatic'
12635 lt_prog_compiler_pic_F77='-pic'
12636 lt_prog_compiler_static_F77='-Bstatic'
12640 lt_prog_compiler_can_build_shared_F77=no
12645 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12646 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12649 # Check to make sure the PIC flag actually works.
12651 if test -n "$lt_prog_compiler_pic_F77"; then
12652 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12653 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12654 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 lt_prog_compiler_pic_works_F77=no
12658 ac_outfile=conftest.$ac_objext
12659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12660 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12661 # Insert the option either (1) after the last *FLAGS variable, or
12662 # (2) before a word containing "conftest.", or (3) at the end.
12663 # Note that $ac_compile itself does not contain backslashes and begins
12664 # with a dollar sign (not a hyphen), so the echo should work correctly.
12665 # The option is referenced via a variable to avoid confusing sed.
12666 lt_compile=`echo "$ac_compile" | $SED \
12667 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12669 -e 's:$: $lt_compiler_flag:'`
12670 (eval echo "\"\$as_me:12670: $lt_compile\"" >&5)
12671 (eval "$lt_compile" 2>conftest.err)
12673 cat conftest.err >&5
12674 echo "$as_me:12674: \$? = $ac_status" >&5
12675 if (exit $ac_status) && test -s "$ac_outfile"; then
12676 # The compiler can only warn and ignore the option if not recognized
12677 # So say no if there are warnings
12678 if test ! -s conftest.err; then
12679 lt_prog_compiler_pic_works_F77=yes
12685 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12686 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12688 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12689 case $lt_prog_compiler_pic_F77 in
12691 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12694 lt_prog_compiler_pic_F77=
12695 lt_prog_compiler_can_build_shared_F77=no
12700 # For platforms which do not support PIC, -DPIC is meaningless:
12702 lt_prog_compiler_pic_F77=
12705 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12709 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12710 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12711 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 lt_cv_prog_compiler_c_o_F77=no
12715 $rm -r conftest 2>/dev/null
12719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12721 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12722 # that will create temporary files in the current directory regardless of
12723 # the output directory. Thus, making CWD read-only will cause this test
12724 # to fail, enabling locking or at least warning the user not to do parallel
12728 lt_compiler_flag="-o out/conftest2.$ac_objext"
12729 # Insert the option either (1) after the last *FLAGS variable, or
12730 # (2) before a word containing "conftest.", or (3) at the end.
12731 # Note that $ac_compile itself does not contain backslashes and begins
12732 # with a dollar sign (not a hyphen), so the echo should work correctly.
12733 lt_compile=`echo "$ac_compile" | $SED \
12734 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12736 -e 's:$: $lt_compiler_flag:'`
12737 (eval echo "\"\$as_me:12737: $lt_compile\"" >&5)
12738 (eval "$lt_compile" 2>out/conftest.err)
12740 cat out/conftest.err >&5
12741 echo "$as_me:12741: \$? = $ac_status" >&5
12742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12744 # The compiler can only warn and ignore the option if not recognized
12745 # So say no if there are warnings
12746 if test ! -s out/conftest.err; then
12747 lt_cv_prog_compiler_c_o_F77=yes
12751 $rm conftest* out/*
12758 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12759 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12762 hard_links="nottested"
12763 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12764 # do not overwrite the value of need_locks provided by the user
12765 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12766 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12771 ln conftest.a conftest.b 2>&5 || hard_links=no
12772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12773 echo "$as_me:$LINENO: result: $hard_links" >&5
12774 echo "${ECHO_T}$hard_links" >&6
12775 if test "$hard_links" = no; then
12776 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12777 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12784 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12788 allow_undefined_flag_F77=
12789 enable_shared_with_static_runtimes_F77=no
12791 archive_expsym_cmds_F77=
12792 old_archive_From_new_cmds_F77=
12793 old_archive_from_expsyms_cmds_F77=
12794 export_dynamic_flag_spec_F77=
12795 whole_archive_flag_spec_F77=
12796 thread_safe_flag_spec_F77=
12797 hardcode_libdir_flag_spec_F77=
12798 hardcode_libdir_flag_spec_ld_F77=
12799 hardcode_libdir_separator_F77=
12800 hardcode_direct_F77=no
12801 hardcode_minus_L_F77=no
12802 hardcode_shlibpath_var_F77=unsupported
12803 link_all_deplibs_F77=unknown
12804 hardcode_automatic_F77=no
12806 module_expsym_cmds_F77=
12807 always_export_symbols_F77=no
12808 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12809 # include_expsyms should be a list of space-separated symbols to be *always*
12810 # included in the symbol list
12811 include_expsyms_F77=
12812 # exclude_expsyms can be an extended regexp of symbols to exclude
12813 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12814 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12815 # as well as any symbol that contains `d'.
12816 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12817 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12818 # platforms (ab)use it in PIC code, but their linkers get confused if
12819 # the symbol is explicitly referenced. Since portable code cannot
12820 # rely on this symbol name, it's probably fine to never include it in
12821 # preloaded symbol tables.
12822 extract_expsyms_cmds=
12825 cygwin* | mingw* | pw32*)
12826 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12827 # When not using gcc, we currently assume that we are using
12828 # Microsoft Visual C++.
12829 if test "$GCC" != yes; then
12839 if test "$with_gnu_ld" = yes; then
12840 # If archive_cmds runs LD, not CC, wlarc should be empty
12843 # See if GNU ld supports shared libraries.
12845 aix3* | aix4* | aix5*)
12846 # On AIX/PPC, the GNU linker is very broken
12847 if test "$host_cpu" != ia64; then
12851 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12852 *** to be unable to reliably create shared libraries on AIX.
12853 *** Therefore, libtool is disabling shared libraries support. If you
12854 *** really care for shared libraries, you may want to modify your PATH
12855 *** so that a non-GNU linker is found, and then restart.
12862 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)'
12863 hardcode_libdir_flag_spec_F77='-L$libdir'
12864 hardcode_minus_L_F77=yes
12866 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12867 # that the semantics of dynamic libraries on AmigaOS, at least up
12868 # to version 4, is to share data among multiple programs linked
12869 # with the same dynamic library. Since this doesn't match the
12870 # behavior of shared libraries on other platforms, we can't use
12876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12877 allow_undefined_flag_F77=unsupported
12878 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12879 # support --undefined. This deserves some investigation. FIXME
12880 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12886 cygwin* | mingw* | pw32*)
12887 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12888 # as there is no search path for DLLs.
12889 hardcode_libdir_flag_spec_F77='-L$libdir'
12890 allow_undefined_flag_F77=unsupported
12891 always_export_symbols_F77=no
12892 enable_shared_with_static_runtimes_F77=yes
12893 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12895 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12896 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12897 # If the export-symbols file already is a .def file (1st line
12898 # is EXPORTS), use it as is; otherwise, prepend...
12899 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12900 cp $export_symbols $output_objdir/$soname.def;
12902 echo EXPORTS > $output_objdir/$soname.def;
12903 cat $export_symbols >> $output_objdir/$soname.def;
12905 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12912 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12913 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12916 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12922 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12926 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12927 *** create shared libraries on Solaris systems. Therefore, libtool
12928 *** is disabling shared libraries support. We urge you to upgrade GNU
12929 *** binutils to release 2.9.1 or newer. Another option is to modify
12930 *** your PATH or compiler configuration so that the native linker is
12931 *** used, and then restart.
12934 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12935 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12936 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12943 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12945 hardcode_direct_F77=yes
12946 hardcode_shlibpath_var_F77=no
12950 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12951 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12952 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12959 if test "$ld_shlibs_F77" = yes; then
12960 runpath_var=LD_RUN_PATH
12961 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12962 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12963 # ancient GNU ld didn't support --whole-archive et. al.
12964 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12965 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12967 whole_archive_flag_spec_F77=
12971 # PORTME fill in a description of your system's linker (not GNU ld)
12974 allow_undefined_flag_F77=unsupported
12975 always_export_symbols_F77=yes
12976 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'
12977 # Note: this linker hardcodes the directories in LIBPATH if there
12978 # are no directories specified by -L.
12979 hardcode_minus_L_F77=yes
12980 if test "$GCC" = yes && test -z "$link_static_flag"; then
12981 # Neither direct hardcoding nor static linking is supported with a
12983 hardcode_direct_F77=unsupported
12988 if test "$host_cpu" = ia64; then
12989 # On IA64, the linker does run time linking by default, so we don't
12990 # have to do anything special.
12991 aix_use_runtimelinking=no
12992 exp_sym_flag='-Bexport'
12995 # If we're using GNU nm, then we don't want the "-C" option.
12996 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12997 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12998 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'
13000 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'
13002 aix_use_runtimelinking=no
13004 # Test if we are trying to use run time linking or normal
13005 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13006 # need to do runtime linking.
13007 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13008 for ld_flag in $LDFLAGS; do
13009 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13010 aix_use_runtimelinking=yes
13016 exp_sym_flag='-bexport'
13017 no_entry_flag='-bnoentry'
13020 # When large executables or shared objects are built, AIX ld can
13021 # have problems creating the table of contents. If linking a library
13022 # or program results in "error TOC overflow" add -mminimal-toc to
13023 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13024 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13026 archive_cmds_F77=''
13027 hardcode_direct_F77=yes
13028 hardcode_libdir_separator_F77=':'
13029 link_all_deplibs_F77=yes
13031 if test "$GCC" = yes; then
13032 case $host_os in aix4.012|aix4.012.*)
13033 # We only want to do this on AIX 4.2 and lower, the check
13034 # below for broken collect2 doesn't work under 4.3+
13035 collect2name=`${CC} -print-prog-name=collect2`
13036 if test -f "$collect2name" && \
13037 strings "$collect2name" | grep resolve_lib_name >/dev/null
13039 # We have reworked collect2
13040 hardcode_direct_F77=yes
13042 # We have old collect2
13043 hardcode_direct_F77=unsupported
13044 # It fails to find uninstalled libraries when the uninstalled
13045 # path is not listed in the libpath. Setting hardcode_minus_L
13046 # to unsupported forces relinking
13047 hardcode_minus_L_F77=yes
13048 hardcode_libdir_flag_spec_F77='-L$libdir'
13049 hardcode_libdir_separator_F77=
13052 shared_flag='-shared'
13055 if test "$host_cpu" = ia64; then
13056 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13057 # chokes on -Wl,-G. The following line is correct:
13060 if test "$aix_use_runtimelinking" = yes; then
13061 shared_flag='${wl}-G'
13063 shared_flag='${wl}-bM:SRE'
13068 # It seems that -bexpall does not export symbols beginning with
13069 # underscore (_), so it is better to generate a list of symbols to export.
13070 always_export_symbols_F77=yes
13071 if test "$aix_use_runtimelinking" = yes; then
13072 # Warning - without using the other runtime loading flags (-brtl),
13073 # -berok will link without error, but may produce a broken library.
13074 allow_undefined_flag_F77='-berok'
13075 # Determine the default libpath from the value encoded in an empty executable.
13076 cat >conftest.$ac_ext <<_ACEOF
13081 rm -f conftest.$ac_objext conftest$ac_exeext
13082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13083 (eval $ac_link) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } &&
13087 { ac_try='test -s conftest$ac_exeext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13096 # Check for a 64-bit object if we didn't find anything.
13097 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; }
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13107 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13108 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"
13110 if test "$host_cpu" = ia64; then
13111 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13112 allow_undefined_flag_F77="-z nodefs"
13113 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"
13115 # Determine the default libpath from the value encoded in an empty executable.
13116 cat >conftest.$ac_ext <<_ACEOF
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13136 # Check for a 64-bit object if we didn't find anything.
13137 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; }
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13147 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13148 # Warning - without using the other run time loading flags,
13149 # -berok will link without error, but may produce a broken library.
13150 no_undefined_flag_F77=' ${wl}-bernotok'
13151 allow_undefined_flag_F77=' ${wl}-berok'
13152 # -bexpall does not export symbols beginning with underscore (_)
13153 always_export_symbols_F77=yes
13154 # Exported symbols can be pulled into shared objects from archives
13155 whole_archive_flag_spec_F77=' '
13156 archive_cmds_need_lc_F77=yes
13157 # This is similar to how AIX traditionally builds it's shared libraries.
13158 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'
13164 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)'
13165 hardcode_libdir_flag_spec_F77='-L$libdir'
13166 hardcode_minus_L_F77=yes
13167 # see comment about different semantics on the GNU ld section
13172 export_dynamic_flag_spec_F77=-rdynamic
13175 cygwin* | mingw* | pw32*)
13176 # When not using gcc, we currently assume that we are using
13177 # Microsoft Visual C++.
13178 # hardcode_libdir_flag_spec is actually meaningless, as there is
13179 # no search path for DLLs.
13180 hardcode_libdir_flag_spec_F77=' '
13181 allow_undefined_flag_F77=unsupported
13182 # Tell ltmain to make .lib files, not .a files.
13184 # Tell ltmain to make .dll files, not .so files.
13186 # FIXME: Setting linknames here is a bad hack.
13187 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13188 # The linker will automatically build a .lib file if we build a DLL.
13189 old_archive_From_new_cmds_F77='true'
13190 # FIXME: Should let the user specify the lib program.
13191 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13192 fix_srcfile_path='`cygpath -w "$srcfile"`'
13193 enable_shared_with_static_runtimes_F77=yes
13196 darwin* | rhapsody*)
13197 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13198 archive_cmds_need_lc_F77=no
13200 rhapsody* | darwin1.[012])
13201 allow_undefined_flag_F77='-undefined suppress'
13204 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13207 # FIXME: Relying on posixy $() will cause problems for
13208 # cross-compilation, but unfortunately the echo tests do not
13209 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13210 # `"' quotes if we put them in here... so don't!
13211 lt_int_apple_cc_single_mod=no
13212 output_verbose_link_cmd='echo'
13213 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13214 lt_int_apple_cc_single_mod=yes
13216 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13217 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13219 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'
13221 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13223 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13224 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}'
13226 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}'
13228 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}'
13229 hardcode_direct_F77=no
13230 hardcode_automatic_F77=yes
13231 hardcode_shlibpath_var_F77=unsupported
13232 whole_archive_flag_spec_F77='-all_load $convenience'
13233 link_all_deplibs_F77=yes
13238 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13239 hardcode_libdir_flag_spec_F77='-L$libdir'
13240 hardcode_shlibpath_var_F77=no
13247 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13248 # support. Future versions do this automatically, but an explicit c++rt0.o
13249 # does not break anything, and helps significantly (at the cost of a little
13252 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13253 hardcode_libdir_flag_spec_F77='-R$libdir'
13254 hardcode_direct_F77=yes
13255 hardcode_shlibpath_var_F77=no
13258 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13260 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13261 hardcode_direct_F77=yes
13262 hardcode_minus_L_F77=yes
13263 hardcode_shlibpath_var_F77=no
13266 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13268 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13269 hardcode_libdir_flag_spec_F77='-R$libdir'
13270 hardcode_direct_F77=yes
13271 hardcode_shlibpath_var_F77=no
13275 if test "$GCC" = yes; then
13276 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'
13278 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'
13280 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13281 hardcode_libdir_separator_F77=:
13282 hardcode_direct_F77=yes
13284 # hardcode_minus_L: Not really in the search PATH,
13285 # but as the default location of the library.
13286 hardcode_minus_L_F77=yes
13287 export_dynamic_flag_spec_F77='${wl}-E'
13291 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13292 case "$host_cpu" in
13294 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13301 case "$host_cpu" in
13303 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13306 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13310 if test "$with_gnu_ld" = no; then
13311 case "$host_cpu" in
13313 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13314 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13315 hardcode_libdir_separator_F77=:
13316 hardcode_direct_F77=no
13317 hardcode_shlibpath_var_F77=no
13320 hardcode_libdir_flag_spec_F77='-L$libdir'
13321 hardcode_direct_F77=no
13322 hardcode_shlibpath_var_F77=no
13324 # hardcode_minus_L: Not really in the search PATH,
13325 # but as the default location of the library.
13326 hardcode_minus_L_F77=yes
13329 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13330 hardcode_libdir_separator_F77=:
13331 hardcode_direct_F77=yes
13332 export_dynamic_flag_spec_F77='${wl}-E'
13334 # hardcode_minus_L: Not really in the search PATH,
13335 # but as the default location of the library.
13336 hardcode_minus_L_F77=yes
13342 irix5* | irix6* | nonstopux*)
13343 if test "$GCC" = yes; then
13344 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'
13346 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'
13347 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13349 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13350 hardcode_libdir_separator_F77=:
13351 link_all_deplibs_F77=yes
13355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13356 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13358 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13360 hardcode_libdir_flag_spec_F77='-R$libdir'
13361 hardcode_direct_F77=yes
13362 hardcode_shlibpath_var_F77=no
13366 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13367 hardcode_direct_F77=yes
13368 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13369 hardcode_libdir_separator_F77=:
13370 hardcode_shlibpath_var_F77=no
13374 hardcode_direct_F77=yes
13375 hardcode_shlibpath_var_F77=no
13376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13377 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13378 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13379 export_dynamic_flag_spec_F77='${wl}-E'
13382 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13383 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13384 hardcode_libdir_flag_spec_F77='-R$libdir'
13387 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13388 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13395 hardcode_libdir_flag_spec_F77='-L$libdir'
13396 hardcode_minus_L_F77=yes
13397 allow_undefined_flag_F77=unsupported
13398 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'
13399 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13403 if test "$GCC" = yes; then
13404 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13405 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'
13407 allow_undefined_flag_F77=' -expect_unresolved \*'
13408 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'
13410 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13411 hardcode_libdir_separator_F77=:
13414 osf4* | osf5*) # as osf3* with the addition of -msym flag
13415 if test "$GCC" = yes; then
13416 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13417 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'
13418 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13420 allow_undefined_flag_F77=' -expect_unresolved \*'
13421 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'
13422 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~
13423 $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'
13425 # Both c and cxx compiler support -rpath directly
13426 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13428 hardcode_libdir_separator_F77=:
13432 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13433 hardcode_shlibpath_var_F77=no
13434 export_dynamic_flag_spec_F77='${wl}-Bexport'
13435 runpath_var=LD_RUN_PATH
13436 hardcode_runpath_var=yes
13440 no_undefined_flag_F77=' -z text'
13441 if test "$GCC" = yes; then
13442 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13443 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13444 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13446 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13447 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13450 hardcode_libdir_flag_spec_F77='-R$libdir'
13451 hardcode_shlibpath_var_F77=no
13453 solaris2.[0-5] | solaris2.[0-5].*) ;;
13454 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13455 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13457 link_all_deplibs_F77=yes
13461 if test "x$host_vendor" = xsequent; then
13462 # Use $CC to link under sequent, because it throws in some extra .o
13463 # files that make .init and .fini sections work.
13464 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13466 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13468 hardcode_libdir_flag_spec_F77='-L$libdir'
13469 hardcode_direct_F77=yes
13470 hardcode_minus_L_F77=yes
13471 hardcode_shlibpath_var_F77=no
13475 case $host_vendor in
13477 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13478 hardcode_direct_F77=yes # is this really true???
13481 ## LD is ld it makes a PLAMLIB
13482 ## CC just makes a GrossModule.
13483 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13484 reload_cmds_F77='$CC -r -o $output$reload_objs'
13485 hardcode_direct_F77=no
13488 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13492 runpath_var='LD_RUN_PATH'
13493 hardcode_shlibpath_var_F77=no
13497 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13498 hardcode_shlibpath_var_F77=no
13499 export_dynamic_flag_spec_F77='-Bexport'
13503 if test -d /usr/nec; then
13504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13505 hardcode_shlibpath_var_F77=no
13506 runpath_var=LD_RUN_PATH
13507 hardcode_runpath_var=yes
13513 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_direct_F77=yes
13515 hardcode_minus_L_F77=no
13516 hardcode_shlibpath_var_F77=no
13517 hardcode_runpath_var=yes
13518 runpath_var=LD_RUN_PATH
13521 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13522 no_undefined_flag_F77='${wl}-z ${wl}text'
13523 if test "$GCC" = yes; then
13524 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13526 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13528 runpath_var='LD_RUN_PATH'
13529 hardcode_shlibpath_var_F77=no
13533 no_undefined_flag_F77=' -z text'
13534 # $CC -shared without GNU ld will not create a library from C++
13535 # object files and a static libstdc++, better avoid it by now
13536 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13538 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13539 hardcode_libdir_flag_spec_F77=
13540 hardcode_shlibpath_var_F77=no
13541 runpath_var='LD_RUN_PATH'
13545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13546 hardcode_libdir_flag_spec_F77='-L$libdir'
13547 hardcode_shlibpath_var_F77=no
13556 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13557 echo "${ECHO_T}$ld_shlibs_F77" >&6
13558 test "$ld_shlibs_F77" = no && can_build_shared=no
13560 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13561 if test "$GCC" = yes; then
13562 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13566 # Do we need to explicitly link libc?
13568 case "x$archive_cmds_need_lc_F77" in
13570 # Assume -lc should be added
13571 archive_cmds_need_lc_F77=yes
13573 if test "$enable_shared" = yes && test "$GCC" = yes; then
13574 case $archive_cmds_F77 in
13576 # FIXME: we may have to deal with multi-command sequences.
13579 # Test whether the compiler implicitly links with -lc since on some
13580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13581 # to ld, don't add -lc before -lgcc.
13582 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13583 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588 (eval $ac_compile) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } 2>conftest.err; then
13594 libobjs=conftest.$ac_objext
13596 wl=$lt_prog_compiler_wl_F77
13602 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13603 allow_undefined_flag_F77=
13604 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13605 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }
13610 archive_cmds_need_lc_F77=no
13612 archive_cmds_need_lc_F77=yes
13614 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13616 cat conftest.err 1>&5
13619 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13620 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13627 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13628 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13629 hardcode_action_F77=
13630 if test -n "$hardcode_libdir_flag_spec_F77" || \
13631 test -n "$runpath_var F77" || \
13632 test "X$hardcode_automatic_F77"="Xyes" ; then
13634 # We can hardcode non-existant directories.
13635 if test "$hardcode_direct_F77" != no &&
13636 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13637 # have to relink, otherwise we might link with an installed library
13638 # when we should be linking with a yet-to-be-installed one
13639 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13640 test "$hardcode_minus_L_F77" != no; then
13641 # Linking always hardcodes the temporary library directory.
13642 hardcode_action_F77=relink
13644 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13645 hardcode_action_F77=immediate
13648 # We cannot hardcode anything, or else we can only hardcode existing
13650 hardcode_action_F77=unsupported
13652 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13653 echo "${ECHO_T}$hardcode_action_F77" >&6
13655 if test "$hardcode_action_F77" = relink; then
13656 # Fast installation is not supported
13657 enable_fast_install=no
13658 elif test "$shlibpath_overrides_runpath" = yes ||
13659 test "$enable_shared" = no; then
13660 # Fast installation is not necessary
13661 enable_fast_install=needless
13666 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13667 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13668 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13669 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13670 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13671 echo "$as_me:$LINENO: result: yes" >&5
13672 echo "${ECHO_T}yes" >&6
13674 # FIXME - insert some real tests, host_os isn't really good enough
13677 if test -n "$STRIP" ; then
13678 striplib="$STRIP -x"
13679 echo "$as_me:$LINENO: result: yes" >&5
13680 echo "${ECHO_T}yes" >&6
13682 echo "$as_me:$LINENO: result: no" >&5
13683 echo "${ECHO_T}no" >&6
13687 echo "$as_me:$LINENO: result: no" >&5
13688 echo "${ECHO_T}no" >&6
13693 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13694 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13695 library_names_spec=
13696 libname_spec='lib$name'
13700 postuninstall_cmds=
13704 shlibpath_overrides_runpath=unknown
13706 dynamic_linker="$host_os ld.so"
13707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13708 if test "$GCC" = yes; then
13709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13710 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13711 # if the path contains ";" then we assume it to be the separator
13712 # otherwise default to the standard path separator (i.e. ":") - it is
13713 # assumed that no part of a normal pathname contains ";" but that should
13714 # okay in the real world where ";" in dirpaths is itself problematic.
13715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13722 need_lib_prefix=unknown
13723 hardcode_into_libs=no
13725 # when you set need_version to no, make sure it does not cause -set_version
13726 # flags to be left without arguments
13727 need_version=unknown
13732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13733 shlibpath_var=LIBPATH
13735 # AIX 3 has no versioning support, so we append a major version to the name.
13736 soname_spec='${libname}${release}${shared_ext}$major'
13743 hardcode_into_libs=yes
13744 if test "$host_cpu" = ia64; then
13745 # AIX 5 supports IA64
13746 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13747 shlibpath_var=LD_LIBRARY_PATH
13749 # With GCC up to 2.95.x, collect2 would create an import file
13750 # for dependence libraries. The import file would start with
13751 # the line `#! .'. This would cause the generated library to
13752 # depend on `.', always an invalid library. This was fixed in
13753 # development snapshots of GCC prior to 3.0.
13755 aix4 | aix4.[01] | aix4.[01].*)
13756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13758 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13761 can_build_shared=no
13765 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13766 # soname into executable. Probably we can add versioning support to
13767 # collect2, so additional links can be useful in future.
13768 if test "$aix_use_runtimelinking" = yes; then
13769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13770 # instead of lib<name>.a to let people know that these are not
13771 # typical AIX shared libraries.
13772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13774 # We preserve .a as extension for shared libraries through AIX4.2
13775 # and later when we are not doing run time linking.
13776 library_names_spec='${libname}${release}.a $libname.a'
13777 soname_spec='${libname}${release}${shared_ext}$major'
13779 shlibpath_var=LIBPATH
13784 library_names_spec='$libname.ixlibrary $libname.a'
13785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13786 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'
13790 library_names_spec='${libname}${shared_ext}'
13791 dynamic_linker="$host_os ld.so"
13792 shlibpath_var=LIBRARY_PATH
13798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13799 soname_spec='${libname}${release}${shared_ext}$major'
13800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13801 shlibpath_var=LD_LIBRARY_PATH
13802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13804 # the default ld.so.conf also contains /usr/contrib/lib and
13805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13806 # libtool to hard-code these into programs
13809 cygwin* | mingw* | pw32*)
13810 version_type=windows
13815 case $GCC,$host_os in
13816 yes,cygwin* | yes,mingw* | yes,pw32*)
13817 library_names_spec='$libname.dll.a'
13818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13819 postinstall_cmds='base_file=`basename \${file}`~
13820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13821 dldir=$destdir/`dirname \$dlpath`~
13822 test -d \$dldir || mkdir -p \$dldir~
13823 $install_prog $dir/$dlname \$dldir/$dlname'
13824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13825 dlpath=$dir/\$dldll~
13827 shlibpath_overrides_runpath=yes
13831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13833 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13836 # MinGW DLLs use traditional 'lib' prefix
13837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13839 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13840 # It is most probably a Windows format PATH printed by
13841 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13842 # path with ; separators, and with drive letters. We can handle the
13843 # drive letters (cygwin fileutils understands them), so leave them,
13844 # especially as we might pass files found there to a mingw objdump,
13845 # which wouldn't understand a cygwinified path. Ahh.
13846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13852 # pw32 DLLs use 'pw' prefix rather than 'lib'
13853 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13862 dynamic_linker='Win32 ld.exe'
13863 # FIXME: first we should search . and the directory the executable is in
13867 darwin* | rhapsody*)
13868 dynamic_linker="$host_os dyld"
13869 version_type=darwin
13872 # FIXME: Relying on posixy $() will cause problems for
13873 # cross-compilation, but unfortunately the echo tests do not
13874 # yet detect zsh echo's removal of \ escapes.
13875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13876 soname_spec='${libname}${release}${major}$shared_ext'
13877 shlibpath_overrides_runpath=yes
13878 shlibpath_var=DYLD_LIBRARY_PATH
13879 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13880 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13881 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13882 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"`
13884 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13892 soname_spec='${libname}${release}${shared_ext}$major'
13893 shlibpath_var=LD_LIBRARY_PATH
13901 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13902 version_type=freebsd-$objformat
13903 case $version_type in
13905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13914 shlibpath_var=LD_LIBRARY_PATH
13917 shlibpath_overrides_runpath=yes
13919 freebsd3.01* | freebsdelf3.01*)
13920 shlibpath_overrides_runpath=yes
13921 hardcode_into_libs=yes
13924 shlibpath_overrides_runpath=no
13925 hardcode_into_libs=yes
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13935 soname_spec='${libname}${release}${shared_ext}$major'
13936 shlibpath_var=LD_LIBRARY_PATH
13937 hardcode_into_libs=yes
13940 hpux9* | hpux10* | hpux11*)
13941 # Give a soname corresponding to the major version so that dld.sl refuses to
13942 # link against other versions.
13946 case "$host_cpu" in
13949 hardcode_into_libs=yes
13950 dynamic_linker="$host_os dld.so"
13951 shlibpath_var=LD_LIBRARY_PATH
13952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 if test "X$HPUX_IA64_MODE" = X32; then
13956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13964 hardcode_into_libs=yes
13965 dynamic_linker="$host_os dld.sl"
13966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969 soname_spec='${libname}${release}${shared_ext}$major'
13970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13975 dynamic_linker="$host_os dld.sl"
13976 shlibpath_var=SHLIB_PATH
13977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13979 soname_spec='${libname}${release}${shared_ext}$major'
13982 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13983 postinstall_cmds='chmod 555 $lib'
13986 irix5* | irix6* | nonstopux*)
13988 nonstopux*) version_type=nonstopux ;;
13990 if test "$lt_cv_prog_gnu_ld" = yes; then
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14001 irix5* | nonstopux*)
14002 libsuff= shlibsuff=
14005 case $LD in # libtool.m4 will add one of these switches to LD
14006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14007 libsuff= shlibsuff= libmagic=32-bit;;
14008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14009 libsuff=32 shlibsuff=N32 libmagic=N32;;
14010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14012 *) libsuff= shlibsuff= libmagic=never-match;;
14016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14017 shlibpath_overrides_runpath=no
14018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14020 hardcode_into_libs=yes
14023 # No shared lib support for Linux oldld, aout, or coff.
14024 linux*oldld* | linux*aout* | linux*coff*)
14028 # This must be Linux ELF.
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034 soname_spec='${libname}${release}${shared_ext}$major'
14035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 shlibpath_overrides_runpath=no
14038 # This implies no fast_install, which is unacceptable.
14039 # Some rework will be needed to allow for fast_install
14040 # before this can be enabled.
14041 hardcode_into_libs=yes
14043 # We used to test for /lib/ld.so.1 and disable shared libraries on
14044 # powerpc, because MkLinux only supported shared libraries with the
14045 # GNU dynamic linker. Since this was broken with cross compilers,
14046 # most powerpc-linux boxes support dynamic linking these days and
14047 # people can always --disable-shared, the test was removed, and we
14048 # assume the GNU/Linux dynamic linker is in use.
14049 dynamic_linker='GNU/Linux ld.so'
14056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14059 dynamic_linker='NetBSD (a.out) ld.so'
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14062 soname_spec='${libname}${release}${shared_ext}$major'
14063 dynamic_linker='NetBSD ld.elf_so'
14065 shlibpath_var=LD_LIBRARY_PATH
14066 shlibpath_overrides_runpath=yes
14067 hardcode_into_libs=yes
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 shlibpath_var=LD_LIBRARY_PATH
14074 shlibpath_overrides_runpath=yes
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082 soname_spec='${libname}${release}${shared_ext}$major'
14083 shlibpath_var=LD_LIBRARY_PATH
14084 shlibpath_overrides_runpath=yes
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14093 shlibpath_var=LD_LIBRARY_PATH
14094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14096 openbsd2.[89] | openbsd2.[89].*)
14097 shlibpath_overrides_runpath=no
14100 shlibpath_overrides_runpath=yes
14104 shlibpath_overrides_runpath=yes
14109 libname_spec='$name'
14112 library_names_spec='$libname${shared_ext} $libname.a'
14113 dynamic_linker='OS/2 ld.exe'
14114 shlibpath_var=LIBPATH
14117 osf3* | osf4* | osf5*)
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123 shlibpath_var=LD_LIBRARY_PATH
14124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14130 soname_spec='${libname}${release}${shared_ext}$major'
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 shlibpath_var=LD_LIBRARY_PATH
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 shlibpath_var=LD_LIBRARY_PATH
14142 shlibpath_overrides_runpath=yes
14143 hardcode_into_libs=yes
14144 # ldd complains unless libraries are executable
14145 postinstall_cmds='chmod +x $lib'
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 shlibpath_overrides_runpath=yes
14154 if test "$with_gnu_ld" = yes; then
14160 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163 soname_spec='${libname}${release}${shared_ext}$major'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 case $host_vendor in
14167 shlibpath_overrides_runpath=no
14169 export_dynamic_flag_spec='${wl}-Blargedynsym'
14170 runpath_var=LD_RUN_PATH
14178 shlibpath_overrides_runpath=no
14179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14185 if test -d /usr/nec ;then
14187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14188 soname_spec='$libname${shared_ext}.$major'
14189 shlibpath_var=LD_LIBRARY_PATH
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 soname_spec='${libname}${release}${shared_ext}$major'
14197 shlibpath_var=LD_LIBRARY_PATH
14204 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14205 echo "${ECHO_T}$dynamic_linker" >&6
14206 test "$dynamic_linker" = no && can_build_shared=no
14209 # The else clause should only fire when bootstrapping the
14210 # libtool distribution, otherwise you forgot to ship ltmain.sh
14211 # with your package, and you will get complaints that there are
14212 # no rules to generate ltmain.sh.
14213 if test -f "$ltmain"; then
14214 # See if we are running on zsh, and set the options which allow our commands through
14215 # without removal of \ escapes.
14216 if test -n "${ZSH_VERSION+set}" ; then
14217 setopt NO_GLOB_SUBST
14219 # Now quote all the things that may contain metacharacters while being
14220 # careful not to overquote the AC_SUBSTed values. We take copies of the
14221 # variables and quote the copies for generation of the libtool script.
14222 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14223 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14224 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14225 deplibs_check_method reload_flag reload_cmds need_locks \
14226 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14227 lt_cv_sys_global_symbol_to_c_name_address \
14228 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14229 old_postinstall_cmds old_postuninstall_cmds \
14233 lt_prog_compiler_wl_F77 \
14234 lt_prog_compiler_pic_F77 \
14235 lt_prog_compiler_static_F77 \
14236 lt_prog_compiler_no_builtin_flag_F77 \
14237 export_dynamic_flag_spec_F77 \
14238 thread_safe_flag_spec_F77 \
14239 whole_archive_flag_spec_F77 \
14240 enable_shared_with_static_runtimes_F77 \
14241 old_archive_cmds_F77 \
14242 old_archive_from_new_cmds_F77 \
14243 predep_objects_F77 \
14244 postdep_objects_F77 \
14247 compiler_lib_search_path_F77 \
14249 archive_expsym_cmds_F77 \
14250 postinstall_cmds_F77 \
14251 postuninstall_cmds_F77 \
14252 old_archive_from_expsyms_cmds_F77 \
14253 allow_undefined_flag_F77 \
14254 no_undefined_flag_F77 \
14255 export_symbols_cmds_F77 \
14256 hardcode_libdir_flag_spec_F77 \
14257 hardcode_libdir_flag_spec_ld_F77 \
14258 hardcode_libdir_separator_F77 \
14259 hardcode_automatic_F77 \
14261 module_expsym_cmds_F77 \
14262 lt_cv_prog_compiler_c_o_F77 \
14263 exclude_expsyms_F77 \
14264 include_expsyms_F77; do
14267 old_archive_cmds_F77 | \
14268 old_archive_from_new_cmds_F77 | \
14269 archive_cmds_F77 | \
14270 archive_expsym_cmds_F77 | \
14271 module_cmds_F77 | \
14272 module_expsym_cmds_F77 | \
14273 old_archive_from_expsyms_cmds_F77 | \
14274 export_symbols_cmds_F77 | \
14275 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14276 postinstall_cmds | postuninstall_cmds | \
14277 old_postinstall_cmds | old_postuninstall_cmds | \
14278 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14279 # Double-quote double-evaled strings.
14280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14289 *'\$0 --fallback-echo"')
14290 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14296 cat <<__EOF__ >> "$cfgfile"
14297 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14301 # Shell to use when invoking shell scripts.
14304 # Whether or not to build shared libraries.
14305 build_libtool_libs=$enable_shared
14307 # Whether or not to build static libraries.
14308 build_old_libs=$enable_static
14310 # Whether or not to add -lc for building shared libraries.
14311 build_libtool_need_lc=$archive_cmds_need_lc_F77
14313 # Whether or not to disallow shared libs when runtime libs are static
14314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14316 # Whether or not to optimize for fast installation.
14317 fast_install=$enable_fast_install
14320 host_alias=$host_alias
14323 # An echo program that does not interpret backslashes.
14328 AR_FLAGS=$lt_AR_FLAGS
14333 # A language-specific compiler.
14334 CC=$lt_compiler_F77
14336 # Is the compiler the GNU C compiler?
14342 # The linker used to build libraries.
14345 # Whether we need hard or soft links.
14348 # A BSD-compatible nm program.
14351 # A symbol stripping program
14354 # Used to examine libraries when file_magic_cmd begins "file"
14355 MAGIC_CMD=$MAGIC_CMD
14357 # Used on cygwin: DLL creation program.
14360 # Used on cygwin: object dumper.
14363 # Used on cygwin: assembler.
14366 # The name of the directory that contains temporary libtool files.
14369 # How to create reloadable object files.
14370 reload_flag=$lt_reload_flag
14371 reload_cmds=$lt_reload_cmds
14373 # How to pass a linker flag through the compiler.
14374 wl=$lt_lt_prog_compiler_wl_F77
14376 # Object file suffix (normally "o").
14377 objext="$ac_objext"
14379 # Old archive suffix (normally "a").
14382 # Shared library suffix (normally ".so").
14385 # Executable file suffix (normally "").
14388 # Additional compiler flags for building library objects.
14389 pic_flag=$lt_lt_prog_compiler_pic_F77
14392 # What is the maximum length of a command?
14393 max_cmd_len=$lt_cv_sys_max_cmd_len
14395 # Does compiler simultaneously support -c and -o options?
14396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14398 # Must we lock files when doing compilation ?
14399 need_locks=$lt_need_locks
14401 # Do we need the lib prefix for modules?
14402 need_lib_prefix=$need_lib_prefix
14404 # Do we need a version for libraries?
14405 need_version=$need_version
14407 # Whether dlopen is supported.
14408 dlopen_support=$enable_dlopen
14410 # Whether dlopen of programs is supported.
14411 dlopen_self=$enable_dlopen_self
14413 # Whether dlopen of statically linked programs is supported.
14414 dlopen_self_static=$enable_dlopen_self_static
14416 # Compiler flag to prevent dynamic linking.
14417 link_static_flag=$lt_lt_prog_compiler_static_F77
14419 # Compiler flag to turn off builtin functions.
14420 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14422 # Compiler flag to allow reflexive dlopens.
14423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14425 # Compiler flag to generate shared objects directly from archives.
14426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14428 # Compiler flag to generate thread-safe objects.
14429 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14431 # Library versioning type.
14432 version_type=$version_type
14434 # Format of library name prefix.
14435 libname_spec=$lt_libname_spec
14437 # List of archive names. First name is the real one, the rest are links.
14438 # The last name is the one that the linker finds with -lNAME.
14439 library_names_spec=$lt_library_names_spec
14441 # The coded name of the library, if different from the real name.
14442 soname_spec=$lt_soname_spec
14444 # Commands used to build and install an old-style archive.
14446 old_archive_cmds=$lt_old_archive_cmds_F77
14447 old_postinstall_cmds=$lt_old_postinstall_cmds
14448 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14450 # Create an old-style archive from a shared archive.
14451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14453 # Create a temporary old-style archive to link instead of a shared archive.
14454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14456 # Commands used to build and install a shared archive.
14457 archive_cmds=$lt_archive_cmds_F77
14458 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14459 postinstall_cmds=$lt_postinstall_cmds
14460 postuninstall_cmds=$lt_postuninstall_cmds
14462 # Commands used to build a loadable module (assumed same as above if empty)
14463 module_cmds=$lt_module_cmds_F77
14464 module_expsym_cmds=$lt_module_expsym_cmds_F77
14466 # Commands to strip libraries.
14467 old_striplib=$lt_old_striplib
14468 striplib=$lt_striplib
14470 # Dependencies to place before the objects being linked to create a
14472 predep_objects=$lt_predep_objects_F77
14474 # Dependencies to place after the objects being linked to create a
14476 postdep_objects=$lt_postdep_objects_F77
14478 # Dependencies to place before the objects being linked to create a
14480 predeps=$lt_predeps_F77
14482 # Dependencies to place after the objects being linked to create a
14484 postdeps=$lt_postdeps_F77
14486 # The library search path used internally by the compiler when linking
14487 # a shared library.
14488 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14490 # Method to check whether dependent libraries are shared objects.
14491 deplibs_check_method=$lt_deplibs_check_method
14493 # Command to use when deplibs_check_method == file_magic.
14494 file_magic_cmd=$lt_file_magic_cmd
14496 # Flag that allows shared libraries with undefined symbols to be built.
14497 allow_undefined_flag=$lt_allow_undefined_flag_F77
14499 # Flag that forces no undefined symbols.
14500 no_undefined_flag=$lt_no_undefined_flag_F77
14502 # Commands used to finish a libtool library installation in a directory.
14503 finish_cmds=$lt_finish_cmds
14505 # Same as above, but a single script fragment to be evaled but not shown.
14506 finish_eval=$lt_finish_eval
14508 # Take the output of nm and produce a listing of raw symbols and C names.
14509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14511 # Transform the output of nm in a proper C declaration
14512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14514 # Transform the output of nm in a C name address pair
14515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14517 # This is the shared library runtime path variable.
14518 runpath_var=$runpath_var
14520 # This is the shared library path variable.
14521 shlibpath_var=$shlibpath_var
14523 # Is shlibpath searched before the hard-coded library search path?
14524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14526 # How to hardcode a shared library path into an executable.
14527 hardcode_action=$hardcode_action_F77
14529 # Whether we should hardcode library paths into libraries.
14530 hardcode_into_libs=$hardcode_into_libs
14532 # Flag to hardcode \$libdir into a binary during linking.
14533 # This must work even if \$libdir does not exist.
14534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14536 # If ld is used when linking, flag to hardcode \$libdir into
14537 # a binary during linking. This must work even if \$libdir does
14539 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14541 # Whether we need a single -rpath flag with a separated argument.
14542 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14544 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14545 # resulting binary.
14546 hardcode_direct=$hardcode_direct_F77
14548 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14549 # resulting binary.
14550 hardcode_minus_L=$hardcode_minus_L_F77
14552 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14553 # the resulting binary.
14554 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14556 # Set to yes if building a shared library automatically hardcodes DIR into the library
14557 # and all subsequent libraries and executables linked against it.
14558 hardcode_automatic=$hardcode_automatic_F77
14560 # Variables whose values should be saved in libtool wrapper scripts and
14561 # restored at relink time.
14562 variables_saved_for_relink="$variables_saved_for_relink"
14564 # Whether libtool must link a program against all its dependency libraries.
14565 link_all_deplibs=$link_all_deplibs_F77
14567 # Compile-time system search path for libraries
14568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14570 # Run-time system search path for libraries
14571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14573 # Fix the shell variable \$srcfile for the compiler.
14574 fix_srcfile_path="$fix_srcfile_path_F77"
14576 # Set to yes if exported symbols are required.
14577 always_export_symbols=$always_export_symbols_F77
14579 # The commands to list exported symbols.
14580 export_symbols_cmds=$lt_export_symbols_cmds_F77
14582 # The commands to extract the exported symbol list from a shared archive.
14583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14585 # Symbols that should not be listed in the preloaded symbols.
14586 exclude_expsyms=$lt_exclude_expsyms_F77
14588 # Symbols that must always be exported.
14589 include_expsyms=$lt_include_expsyms_F77
14591 # ### END LIBTOOL TAG CONFIG: $tagname
14597 # If there is no Makefile yet, we rely on a make rule to execute
14598 # `config.status --recheck' to rerun these tests and create the
14599 # libtool script then.
14600 test -f Makefile && make "$ltmain"
14605 ac_cpp='$CPP $CPPFLAGS'
14606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14618 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14622 # Source file extension for Java test sources.
14625 # Object file extension for compiled Java test sources.
14629 # Code to be used in simple compile tests
14630 lt_simple_compile_test_code="class foo {}\n"
14632 # Code to be used in simple link tests
14633 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14635 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14637 # If no C compiler was specified, use CC.
14640 # Allow CC to be a program name with arguments.
14644 # Allow CC to be a program name with arguments.
14650 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14651 archive_cmds_need_lc_GCJ=no
14654 ## There is no encapsulation within the following macros, do not change
14655 ## the running order or otherwise move them around unless you know exactly
14656 ## what you are doing...
14658 lt_prog_compiler_no_builtin_flag_GCJ=
14660 if test "$GCC" = yes; then
14661 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14663 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14664 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14665 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 lt_cv_prog_compiler_rtti_exceptions=no
14669 ac_outfile=conftest.$ac_objext
14670 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14671 lt_compiler_flag="-fno-rtti -fno-exceptions"
14672 # Insert the option either (1) after the last *FLAGS variable, or
14673 # (2) before a word containing "conftest.", or (3) at the end.
14674 # Note that $ac_compile itself does not contain backslashes and begins
14675 # with a dollar sign (not a hyphen), so the echo should work correctly.
14676 # The option is referenced via a variable to avoid confusing sed.
14677 lt_compile=`echo "$ac_compile" | $SED \
14678 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14680 -e 's:$: $lt_compiler_flag:'`
14681 (eval echo "\"\$as_me:14681: $lt_compile\"" >&5)
14682 (eval "$lt_compile" 2>conftest.err)
14684 cat conftest.err >&5
14685 echo "$as_me:14685: \$? = $ac_status" >&5
14686 if (exit $ac_status) && test -s "$ac_outfile"; then
14687 # The compiler can only warn and ignore the option if not recognized
14688 # So say no if there are warnings
14689 if test ! -s conftest.err; then
14690 lt_cv_prog_compiler_rtti_exceptions=yes
14696 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14697 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14699 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14700 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14707 lt_prog_compiler_wl_GCJ=
14708 lt_prog_compiler_pic_GCJ=
14709 lt_prog_compiler_static_GCJ=
14711 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14712 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14714 if test "$GCC" = yes; then
14715 lt_prog_compiler_wl_GCJ='-Wl,'
14716 lt_prog_compiler_static_GCJ='-static'
14720 # All AIX code is PIC.
14721 if test "$host_cpu" = ia64; then
14722 # AIX 5 now supports IA64 processor
14723 lt_prog_compiler_static_GCJ='-Bstatic'
14728 # FIXME: we need at least 68020 code to build shared libraries, but
14729 # adding the `-m68020' flag to GCC prevents building anything better,
14731 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14734 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14735 # PIC is the default for these OSes.
14738 mingw* | pw32* | os2*)
14739 # This hack is so that the source file can tell whether it is being
14740 # built for inclusion in a dll (and should export symbols for example).
14741 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14744 darwin* | rhapsody*)
14745 # PIC is the default on this platform
14746 # Common symbols not allowed in MH_DYLIB files
14747 lt_prog_compiler_pic_GCJ='-fno-common'
14751 # Just because we use GCC doesn't mean we suddenly get shared libraries
14752 # on systems that don't support them.
14753 lt_prog_compiler_can_build_shared_GCJ=no
14758 if test -d /usr/nec; then
14759 lt_prog_compiler_pic_GCJ=-Kconform_pic
14764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14765 # not for PA HP-UX.
14766 case "$host_cpu" in
14771 lt_prog_compiler_pic_GCJ='-fPIC'
14777 lt_prog_compiler_pic_GCJ='-fPIC'
14781 # PORTME Check for flag to pass linker flags through the system compiler.
14784 lt_prog_compiler_wl_GCJ='-Wl,'
14785 if test "$host_cpu" = ia64; then
14786 # AIX 5 now supports IA64 processor
14787 lt_prog_compiler_static_GCJ='-Bstatic'
14789 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
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 hpux9* | hpux10* | hpux11*)
14800 lt_prog_compiler_wl_GCJ='-Wl,'
14801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14802 # not for PA HP-UX.
14803 case "$host_cpu" in
14808 lt_prog_compiler_pic_GCJ='+Z'
14811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14812 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14815 irix5* | irix6* | nonstopux*)
14816 lt_prog_compiler_wl_GCJ='-Wl,'
14817 # PIC (with -KPIC) is the default.
14818 lt_prog_compiler_static_GCJ='-non_shared'
14822 lt_prog_compiler_pic_GCJ='-KPIC'
14823 lt_prog_compiler_static_GCJ='-Bstatic'
14829 lt_prog_compiler_wl_GCJ='-Wl,'
14830 lt_prog_compiler_pic_GCJ='-KPIC'
14831 lt_prog_compiler_static_GCJ='-static'
14834 lt_prog_compiler_wl_GCJ='-Wl,'
14835 # All Alpha code is PIC.
14836 lt_prog_compiler_static_GCJ='-non_shared'
14841 osf3* | osf4* | osf5*)
14842 lt_prog_compiler_wl_GCJ='-Wl,'
14843 # All OSF/1 code is PIC.
14844 lt_prog_compiler_static_GCJ='-non_shared'
14848 lt_prog_compiler_pic_GCJ='-Kpic'
14849 lt_prog_compiler_static_GCJ='-dn'
14853 lt_prog_compiler_wl_GCJ='-Wl,'
14854 lt_prog_compiler_pic_GCJ='-KPIC'
14855 lt_prog_compiler_static_GCJ='-Bstatic'
14859 lt_prog_compiler_wl_GCJ='-Qoption ld '
14860 lt_prog_compiler_pic_GCJ='-PIC'
14861 lt_prog_compiler_static_GCJ='-Bstatic'
14864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14865 lt_prog_compiler_wl_GCJ='-Wl,'
14866 lt_prog_compiler_pic_GCJ='-KPIC'
14867 lt_prog_compiler_static_GCJ='-Bstatic'
14871 if test -d /usr/nec ;then
14872 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14873 lt_prog_compiler_static_GCJ='-Bstatic'
14878 lt_prog_compiler_pic_GCJ='-pic'
14879 lt_prog_compiler_static_GCJ='-Bstatic'
14883 lt_prog_compiler_can_build_shared_GCJ=no
14888 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14889 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14892 # Check to make sure the PIC flag actually works.
14894 if test -n "$lt_prog_compiler_pic_GCJ"; then
14895 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14896 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14897 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 lt_prog_compiler_pic_works_GCJ=no
14901 ac_outfile=conftest.$ac_objext
14902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14903 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14904 # Insert the option either (1) after the last *FLAGS variable, or
14905 # (2) before a word containing "conftest.", or (3) at the end.
14906 # Note that $ac_compile itself does not contain backslashes and begins
14907 # with a dollar sign (not a hyphen), so the echo should work correctly.
14908 # The option is referenced via a variable to avoid confusing sed.
14909 lt_compile=`echo "$ac_compile" | $SED \
14910 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14912 -e 's:$: $lt_compiler_flag:'`
14913 (eval echo "\"\$as_me:14913: $lt_compile\"" >&5)
14914 (eval "$lt_compile" 2>conftest.err)
14916 cat conftest.err >&5
14917 echo "$as_me:14917: \$? = $ac_status" >&5
14918 if (exit $ac_status) && test -s "$ac_outfile"; then
14919 # The compiler can only warn and ignore the option if not recognized
14920 # So say no if there are warnings
14921 if test ! -s conftest.err; then
14922 lt_prog_compiler_pic_works_GCJ=yes
14928 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14929 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14931 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14932 case $lt_prog_compiler_pic_GCJ in
14934 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14937 lt_prog_compiler_pic_GCJ=
14938 lt_prog_compiler_can_build_shared_GCJ=no
14943 # For platforms which do not support PIC, -DPIC is meaningless:
14945 lt_prog_compiler_pic_GCJ=
14948 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14952 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14953 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14954 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 lt_cv_prog_compiler_c_o_GCJ=no
14958 $rm -r conftest 2>/dev/null
14962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14964 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14965 # that will create temporary files in the current directory regardless of
14966 # the output directory. Thus, making CWD read-only will cause this test
14967 # to fail, enabling locking or at least warning the user not to do parallel
14971 lt_compiler_flag="-o out/conftest2.$ac_objext"
14972 # Insert the option either (1) after the last *FLAGS variable, or
14973 # (2) before a word containing "conftest.", or (3) at the end.
14974 # Note that $ac_compile itself does not contain backslashes and begins
14975 # with a dollar sign (not a hyphen), so the echo should work correctly.
14976 lt_compile=`echo "$ac_compile" | $SED \
14977 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14979 -e 's:$: $lt_compiler_flag:'`
14980 (eval echo "\"\$as_me:14980: $lt_compile\"" >&5)
14981 (eval "$lt_compile" 2>out/conftest.err)
14983 cat out/conftest.err >&5
14984 echo "$as_me:14984: \$? = $ac_status" >&5
14985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14987 # The compiler can only warn and ignore the option if not recognized
14988 # So say no if there are warnings
14989 if test ! -s out/conftest.err; then
14990 lt_cv_prog_compiler_c_o_GCJ=yes
14994 $rm conftest* out/*
15001 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15002 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15005 hard_links="nottested"
15006 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15007 # do not overwrite the value of need_locks provided by the user
15008 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15009 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15014 ln conftest.a conftest.b 2>&5 || hard_links=no
15015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15016 echo "$as_me:$LINENO: result: $hard_links" >&5
15017 echo "${ECHO_T}$hard_links" >&6
15018 if test "$hard_links" = no; then
15019 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15020 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15027 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15031 allow_undefined_flag_GCJ=
15032 enable_shared_with_static_runtimes_GCJ=no
15034 archive_expsym_cmds_GCJ=
15035 old_archive_From_new_cmds_GCJ=
15036 old_archive_from_expsyms_cmds_GCJ=
15037 export_dynamic_flag_spec_GCJ=
15038 whole_archive_flag_spec_GCJ=
15039 thread_safe_flag_spec_GCJ=
15040 hardcode_libdir_flag_spec_GCJ=
15041 hardcode_libdir_flag_spec_ld_GCJ=
15042 hardcode_libdir_separator_GCJ=
15043 hardcode_direct_GCJ=no
15044 hardcode_minus_L_GCJ=no
15045 hardcode_shlibpath_var_GCJ=unsupported
15046 link_all_deplibs_GCJ=unknown
15047 hardcode_automatic_GCJ=no
15049 module_expsym_cmds_GCJ=
15050 always_export_symbols_GCJ=no
15051 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15052 # include_expsyms should be a list of space-separated symbols to be *always*
15053 # included in the symbol list
15054 include_expsyms_GCJ=
15055 # exclude_expsyms can be an extended regexp of symbols to exclude
15056 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15057 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15058 # as well as any symbol that contains `d'.
15059 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15061 # platforms (ab)use it in PIC code, but their linkers get confused if
15062 # the symbol is explicitly referenced. Since portable code cannot
15063 # rely on this symbol name, it's probably fine to never include it in
15064 # preloaded symbol tables.
15065 extract_expsyms_cmds=
15068 cygwin* | mingw* | pw32*)
15069 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15070 # When not using gcc, we currently assume that we are using
15071 # Microsoft Visual C++.
15072 if test "$GCC" != yes; then
15082 if test "$with_gnu_ld" = yes; then
15083 # If archive_cmds runs LD, not CC, wlarc should be empty
15086 # See if GNU ld supports shared libraries.
15088 aix3* | aix4* | aix5*)
15089 # On AIX/PPC, the GNU linker is very broken
15090 if test "$host_cpu" != ia64; then
15094 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15095 *** to be unable to reliably create shared libraries on AIX.
15096 *** Therefore, libtool is disabling shared libraries support. If you
15097 *** really care for shared libraries, you may want to modify your PATH
15098 *** so that a non-GNU linker is found, and then restart.
15105 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)'
15106 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15107 hardcode_minus_L_GCJ=yes
15109 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15110 # that the semantics of dynamic libraries on AmigaOS, at least up
15111 # to version 4, is to share data among multiple programs linked
15112 # with the same dynamic library. Since this doesn't match the
15113 # behavior of shared libraries on other platforms, we can't use
15119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15120 allow_undefined_flag_GCJ=unsupported
15121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15122 # support --undefined. This deserves some investigation. FIXME
15123 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15129 cygwin* | mingw* | pw32*)
15130 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15131 # as there is no search path for DLLs.
15132 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15133 allow_undefined_flag_GCJ=unsupported
15134 always_export_symbols_GCJ=no
15135 enable_shared_with_static_runtimes_GCJ=yes
15136 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15138 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15139 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15140 # If the export-symbols file already is a .def file (1st line
15141 # is EXPORTS), use it as is; otherwise, prepend...
15142 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15143 cp $export_symbols $output_objdir/$soname.def;
15145 echo EXPORTS > $output_objdir/$soname.def;
15146 cat $export_symbols >> $output_objdir/$soname.def;
15148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15155 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15156 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15159 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15160 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15165 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15170 *** create shared libraries on Solaris systems. Therefore, libtool
15171 *** is disabling shared libraries support. We urge you to upgrade GNU
15172 *** binutils to release 2.9.1 or newer. Another option is to modify
15173 *** your PATH or compiler configuration so that the native linker is
15174 *** used, and then restart.
15177 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15178 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15186 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15188 hardcode_direct_GCJ=yes
15189 hardcode_shlibpath_var_GCJ=no
15193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15202 if test "$ld_shlibs_GCJ" = yes; then
15203 runpath_var=LD_RUN_PATH
15204 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15205 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15206 # ancient GNU ld didn't support --whole-archive et. al.
15207 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15208 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15210 whole_archive_flag_spec_GCJ=
15214 # PORTME fill in a description of your system's linker (not GNU ld)
15217 allow_undefined_flag_GCJ=unsupported
15218 always_export_symbols_GCJ=yes
15219 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'
15220 # Note: this linker hardcodes the directories in LIBPATH if there
15221 # are no directories specified by -L.
15222 hardcode_minus_L_GCJ=yes
15223 if test "$GCC" = yes && test -z "$link_static_flag"; then
15224 # Neither direct hardcoding nor static linking is supported with a
15226 hardcode_direct_GCJ=unsupported
15231 if test "$host_cpu" = ia64; then
15232 # On IA64, the linker does run time linking by default, so we don't
15233 # have to do anything special.
15234 aix_use_runtimelinking=no
15235 exp_sym_flag='-Bexport'
15238 # If we're using GNU nm, then we don't want the "-C" option.
15239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15240 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15241 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'
15243 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'
15245 aix_use_runtimelinking=no
15247 # Test if we are trying to use run time linking or normal
15248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15249 # need to do runtime linking.
15250 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15251 for ld_flag in $LDFLAGS; do
15252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15253 aix_use_runtimelinking=yes
15259 exp_sym_flag='-bexport'
15260 no_entry_flag='-bnoentry'
15263 # When large executables or shared objects are built, AIX ld can
15264 # have problems creating the table of contents. If linking a library
15265 # or program results in "error TOC overflow" add -mminimal-toc to
15266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15269 archive_cmds_GCJ=''
15270 hardcode_direct_GCJ=yes
15271 hardcode_libdir_separator_GCJ=':'
15272 link_all_deplibs_GCJ=yes
15274 if test "$GCC" = yes; then
15275 case $host_os in aix4.012|aix4.012.*)
15276 # We only want to do this on AIX 4.2 and lower, the check
15277 # below for broken collect2 doesn't work under 4.3+
15278 collect2name=`${CC} -print-prog-name=collect2`
15279 if test -f "$collect2name" && \
15280 strings "$collect2name" | grep resolve_lib_name >/dev/null
15282 # We have reworked collect2
15283 hardcode_direct_GCJ=yes
15285 # We have old collect2
15286 hardcode_direct_GCJ=unsupported
15287 # It fails to find uninstalled libraries when the uninstalled
15288 # path is not listed in the libpath. Setting hardcode_minus_L
15289 # to unsupported forces relinking
15290 hardcode_minus_L_GCJ=yes
15291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15292 hardcode_libdir_separator_GCJ=
15295 shared_flag='-shared'
15298 if test "$host_cpu" = ia64; then
15299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15300 # chokes on -Wl,-G. The following line is correct:
15303 if test "$aix_use_runtimelinking" = yes; then
15304 shared_flag='${wl}-G'
15306 shared_flag='${wl}-bM:SRE'
15311 # It seems that -bexpall does not export symbols beginning with
15312 # underscore (_), so it is better to generate a list of symbols to export.
15313 always_export_symbols_GCJ=yes
15314 if test "$aix_use_runtimelinking" = yes; then
15315 # Warning - without using the other runtime loading flags (-brtl),
15316 # -berok will link without error, but may produce a broken library.
15317 allow_undefined_flag_GCJ='-berok'
15318 # Determine the default libpath from the value encoded in an empty executable.
15319 cat >conftest.$ac_ext <<_ACEOF
15320 #line $LINENO "configure"
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337 (eval $ac_link) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -s conftest$ac_exeext'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15350 # Check for a 64-bit object if we didn't find anything.
15351 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; }
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15361 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15362 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"
15364 if test "$host_cpu" = ia64; then
15365 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15366 allow_undefined_flag_GCJ="-z nodefs"
15367 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"
15369 # Determine the default libpath from the value encoded in an empty executable.
15370 cat >conftest.$ac_ext <<_ACEOF
15371 #line $LINENO "configure"
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15386 rm -f conftest.$ac_objext conftest$ac_exeext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388 (eval $ac_link) 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -s conftest$ac_exeext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15401 # Check for a 64-bit object if we didn't find anything.
15402 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; }
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15412 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15413 # Warning - without using the other run time loading flags,
15414 # -berok will link without error, but may produce a broken library.
15415 no_undefined_flag_GCJ=' ${wl}-bernotok'
15416 allow_undefined_flag_GCJ=' ${wl}-berok'
15417 # -bexpall does not export symbols beginning with underscore (_)
15418 always_export_symbols_GCJ=yes
15419 # Exported symbols can be pulled into shared objects from archives
15420 whole_archive_flag_spec_GCJ=' '
15421 archive_cmds_need_lc_GCJ=yes
15422 # This is similar to how AIX traditionally builds it's shared libraries.
15423 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'
15429 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)'
15430 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15431 hardcode_minus_L_GCJ=yes
15432 # see comment about different semantics on the GNU ld section
15437 export_dynamic_flag_spec_GCJ=-rdynamic
15440 cygwin* | mingw* | pw32*)
15441 # When not using gcc, we currently assume that we are using
15442 # Microsoft Visual C++.
15443 # hardcode_libdir_flag_spec is actually meaningless, as there is
15444 # no search path for DLLs.
15445 hardcode_libdir_flag_spec_GCJ=' '
15446 allow_undefined_flag_GCJ=unsupported
15447 # Tell ltmain to make .lib files, not .a files.
15449 # Tell ltmain to make .dll files, not .so files.
15451 # FIXME: Setting linknames here is a bad hack.
15452 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15453 # The linker will automatically build a .lib file if we build a DLL.
15454 old_archive_From_new_cmds_GCJ='true'
15455 # FIXME: Should let the user specify the lib program.
15456 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15457 fix_srcfile_path='`cygpath -w "$srcfile"`'
15458 enable_shared_with_static_runtimes_GCJ=yes
15461 darwin* | rhapsody*)
15462 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15463 archive_cmds_need_lc_GCJ=no
15465 rhapsody* | darwin1.[012])
15466 allow_undefined_flag_GCJ='-undefined suppress'
15469 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15472 # FIXME: Relying on posixy $() will cause problems for
15473 # cross-compilation, but unfortunately the echo tests do not
15474 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15475 # `"' quotes if we put them in here... so don't!
15476 lt_int_apple_cc_single_mod=no
15477 output_verbose_link_cmd='echo'
15478 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15479 lt_int_apple_cc_single_mod=yes
15481 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15482 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15484 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'
15486 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15488 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15489 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}'
15491 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}'
15493 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}'
15494 hardcode_direct_GCJ=no
15495 hardcode_automatic_GCJ=yes
15496 hardcode_shlibpath_var_GCJ=unsupported
15497 whole_archive_flag_spec_GCJ='-all_load $convenience'
15498 link_all_deplibs_GCJ=yes
15503 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15504 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15505 hardcode_shlibpath_var_GCJ=no
15512 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15513 # support. Future versions do this automatically, but an explicit c++rt0.o
15514 # does not break anything, and helps significantly (at the cost of a little
15517 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15518 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15519 hardcode_direct_GCJ=yes
15520 hardcode_shlibpath_var_GCJ=no
15523 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15525 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15526 hardcode_direct_GCJ=yes
15527 hardcode_minus_L_GCJ=yes
15528 hardcode_shlibpath_var_GCJ=no
15531 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15533 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15534 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15535 hardcode_direct_GCJ=yes
15536 hardcode_shlibpath_var_GCJ=no
15540 if test "$GCC" = yes; then
15541 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'
15543 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'
15545 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15546 hardcode_libdir_separator_GCJ=:
15547 hardcode_direct_GCJ=yes
15549 # hardcode_minus_L: Not really in the search PATH,
15550 # but as the default location of the library.
15551 hardcode_minus_L_GCJ=yes
15552 export_dynamic_flag_spec_GCJ='${wl}-E'
15556 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15557 case "$host_cpu" in
15559 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15566 case "$host_cpu" in
15568 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15571 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15575 if test "$with_gnu_ld" = no; then
15576 case "$host_cpu" in
15578 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15579 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15580 hardcode_libdir_separator_GCJ=:
15581 hardcode_direct_GCJ=no
15582 hardcode_shlibpath_var_GCJ=no
15585 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15586 hardcode_direct_GCJ=no
15587 hardcode_shlibpath_var_GCJ=no
15589 # hardcode_minus_L: Not really in the search PATH,
15590 # but as the default location of the library.
15591 hardcode_minus_L_GCJ=yes
15594 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15595 hardcode_libdir_separator_GCJ=:
15596 hardcode_direct_GCJ=yes
15597 export_dynamic_flag_spec_GCJ='${wl}-E'
15599 # hardcode_minus_L: Not really in the search PATH,
15600 # but as the default location of the library.
15601 hardcode_minus_L_GCJ=yes
15607 irix5* | irix6* | nonstopux*)
15608 if test "$GCC" = yes; then
15609 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'
15611 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'
15612 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15615 hardcode_libdir_separator_GCJ=:
15616 link_all_deplibs_GCJ=yes
15620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15623 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15625 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15626 hardcode_direct_GCJ=yes
15627 hardcode_shlibpath_var_GCJ=no
15631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15632 hardcode_direct_GCJ=yes
15633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15634 hardcode_libdir_separator_GCJ=:
15635 hardcode_shlibpath_var_GCJ=no
15639 hardcode_direct_GCJ=yes
15640 hardcode_shlibpath_var_GCJ=no
15641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15644 export_dynamic_flag_spec_GCJ='${wl}-E'
15647 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15648 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15649 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15652 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15653 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15660 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15661 hardcode_minus_L_GCJ=yes
15662 allow_undefined_flag_GCJ=unsupported
15663 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'
15664 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15668 if test "$GCC" = yes; then
15669 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15670 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'
15672 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15673 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'
15675 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15676 hardcode_libdir_separator_GCJ=:
15679 osf4* | osf5*) # as osf3* with the addition of -msym flag
15680 if test "$GCC" = yes; then
15681 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15682 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'
15683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15685 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15686 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'
15687 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~
15688 $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'
15690 # Both c and cxx compiler support -rpath directly
15691 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15693 hardcode_libdir_separator_GCJ=:
15697 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_shlibpath_var_GCJ=no
15699 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15700 runpath_var=LD_RUN_PATH
15701 hardcode_runpath_var=yes
15705 no_undefined_flag_GCJ=' -z text'
15706 if test "$GCC" = yes; then
15707 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15708 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15709 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15711 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15712 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15715 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15716 hardcode_shlibpath_var_GCJ=no
15718 solaris2.[0-5] | solaris2.[0-5].*) ;;
15719 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15720 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15722 link_all_deplibs_GCJ=yes
15726 if test "x$host_vendor" = xsequent; then
15727 # Use $CC to link under sequent, because it throws in some extra .o
15728 # files that make .init and .fini sections work.
15729 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15731 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15734 hardcode_direct_GCJ=yes
15735 hardcode_minus_L_GCJ=yes
15736 hardcode_shlibpath_var_GCJ=no
15740 case $host_vendor in
15742 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 hardcode_direct_GCJ=yes # is this really true???
15746 ## LD is ld it makes a PLAMLIB
15747 ## CC just makes a GrossModule.
15748 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15749 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15750 hardcode_direct_GCJ=no
15753 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15757 runpath_var='LD_RUN_PATH'
15758 hardcode_shlibpath_var_GCJ=no
15762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763 hardcode_shlibpath_var_GCJ=no
15764 export_dynamic_flag_spec_GCJ='-Bexport'
15768 if test -d /usr/nec; then
15769 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15770 hardcode_shlibpath_var_GCJ=no
15771 runpath_var=LD_RUN_PATH
15772 hardcode_runpath_var=yes
15778 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15779 hardcode_direct_GCJ=yes
15780 hardcode_minus_L_GCJ=no
15781 hardcode_shlibpath_var_GCJ=no
15782 hardcode_runpath_var=yes
15783 runpath_var=LD_RUN_PATH
15786 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15787 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15788 if test "$GCC" = yes; then
15789 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15791 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15793 runpath_var='LD_RUN_PATH'
15794 hardcode_shlibpath_var_GCJ=no
15798 no_undefined_flag_GCJ=' -z text'
15799 # $CC -shared without GNU ld will not create a library from C++
15800 # object files and a static libstdc++, better avoid it by now
15801 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15804 hardcode_libdir_flag_spec_GCJ=
15805 hardcode_shlibpath_var_GCJ=no
15806 runpath_var='LD_RUN_PATH'
15810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15811 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15812 hardcode_shlibpath_var_GCJ=no
15821 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15822 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15823 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15826 if test "$GCC" = yes; then
15827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15831 # Do we need to explicitly link libc?
15833 case "x$archive_cmds_need_lc_GCJ" in
15835 # Assume -lc should be added
15836 archive_cmds_need_lc_GCJ=yes
15838 if test "$enable_shared" = yes && test "$GCC" = yes; then
15839 case $archive_cmds_GCJ in
15841 # FIXME: we may have to deal with multi-command sequences.
15844 # Test whether the compiler implicitly links with -lc since on some
15845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15846 # to ld, don't add -lc before -lgcc.
15847 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15848 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15853 (eval $ac_compile) 2>&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } 2>conftest.err; then
15859 libobjs=conftest.$ac_objext
15861 wl=$lt_prog_compiler_wl_GCJ
15867 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15868 allow_undefined_flag_GCJ=
15869 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15870 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }
15875 archive_cmds_need_lc_GCJ=no
15877 archive_cmds_need_lc_GCJ=yes
15879 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15881 cat conftest.err 1>&5
15884 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15885 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15892 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15893 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15894 hardcode_action_GCJ=
15895 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15896 test -n "$runpath_var GCJ" || \
15897 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15899 # We can hardcode non-existant directories.
15900 if test "$hardcode_direct_GCJ" != no &&
15901 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15902 # have to relink, otherwise we might link with an installed library
15903 # when we should be linking with a yet-to-be-installed one
15904 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15905 test "$hardcode_minus_L_GCJ" != no; then
15906 # Linking always hardcodes the temporary library directory.
15907 hardcode_action_GCJ=relink
15909 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15910 hardcode_action_GCJ=immediate
15913 # We cannot hardcode anything, or else we can only hardcode existing
15915 hardcode_action_GCJ=unsupported
15917 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15918 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15920 if test "$hardcode_action_GCJ" = relink; then
15921 # Fast installation is not supported
15922 enable_fast_install=no
15923 elif test "$shlibpath_overrides_runpath" = yes ||
15924 test "$enable_shared" = no; then
15925 # Fast installation is not necessary
15926 enable_fast_install=needless
15931 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15932 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15933 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15934 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15935 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15936 echo "$as_me:$LINENO: result: yes" >&5
15937 echo "${ECHO_T}yes" >&6
15939 # FIXME - insert some real tests, host_os isn't really good enough
15942 if test -n "$STRIP" ; then
15943 striplib="$STRIP -x"
15944 echo "$as_me:$LINENO: result: yes" >&5
15945 echo "${ECHO_T}yes" >&6
15947 echo "$as_me:$LINENO: result: no" >&5
15948 echo "${ECHO_T}no" >&6
15952 echo "$as_me:$LINENO: result: no" >&5
15953 echo "${ECHO_T}no" >&6
15958 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15959 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15960 library_names_spec=
15961 libname_spec='lib$name'
15965 postuninstall_cmds=
15969 shlibpath_overrides_runpath=unknown
15971 dynamic_linker="$host_os ld.so"
15972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15973 if test "$GCC" = yes; then
15974 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15976 # if the path contains ";" then we assume it to be the separator
15977 # otherwise default to the standard path separator (i.e. ":") - it is
15978 # assumed that no part of a normal pathname contains ";" but that should
15979 # okay in the real world where ";" in dirpaths is itself problematic.
15980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15985 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15987 need_lib_prefix=unknown
15988 hardcode_into_libs=no
15990 # when you set need_version to no, make sure it does not cause -set_version
15991 # flags to be left without arguments
15992 need_version=unknown
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15998 shlibpath_var=LIBPATH
16000 # AIX 3 has no versioning support, so we append a major version to the name.
16001 soname_spec='${libname}${release}${shared_ext}$major'
16008 hardcode_into_libs=yes
16009 if test "$host_cpu" = ia64; then
16010 # AIX 5 supports IA64
16011 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16012 shlibpath_var=LD_LIBRARY_PATH
16014 # With GCC up to 2.95.x, collect2 would create an import file
16015 # for dependence libraries. The import file would start with
16016 # the line `#! .'. This would cause the generated library to
16017 # depend on `.', always an invalid library. This was fixed in
16018 # development snapshots of GCC prior to 3.0.
16020 aix4 | aix4.[01] | aix4.[01].*)
16021 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16023 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16026 can_build_shared=no
16030 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16031 # soname into executable. Probably we can add versioning support to
16032 # collect2, so additional links can be useful in future.
16033 if test "$aix_use_runtimelinking" = yes; then
16034 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16035 # instead of lib<name>.a to let people know that these are not
16036 # typical AIX shared libraries.
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16039 # We preserve .a as extension for shared libraries through AIX4.2
16040 # and later when we are not doing run time linking.
16041 library_names_spec='${libname}${release}.a $libname.a'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16044 shlibpath_var=LIBPATH
16049 library_names_spec='$libname.ixlibrary $libname.a'
16050 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16051 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'
16055 library_names_spec='${libname}${shared_ext}'
16056 dynamic_linker="$host_os ld.so"
16057 shlibpath_var=LIBRARY_PATH
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069 # the default ld.so.conf also contains /usr/contrib/lib and
16070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071 # libtool to hard-code these into programs
16074 cygwin* | mingw* | pw32*)
16075 version_type=windows
16080 case $GCC,$host_os in
16081 yes,cygwin* | yes,mingw* | yes,pw32*)
16082 library_names_spec='$libname.dll.a'
16083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16084 postinstall_cmds='base_file=`basename \${file}`~
16085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16086 dldir=$destdir/`dirname \$dlpath`~
16087 test -d \$dldir || mkdir -p \$dldir~
16088 $install_prog $dir/$dlname \$dldir/$dlname'
16089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16090 dlpath=$dir/\$dldll~
16092 shlibpath_overrides_runpath=yes
16096 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16097 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16098 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16101 # MinGW DLLs use traditional 'lib' prefix
16102 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16103 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16104 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16105 # It is most probably a Windows format PATH printed by
16106 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16107 # path with ; separators, and with drive letters. We can handle the
16108 # drive letters (cygwin fileutils understands them), so leave them,
16109 # especially as we might pass files found there to a mingw objdump,
16110 # which wouldn't understand a cygwinified path. Ahh.
16111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16117 # pw32 DLLs use 'pw' prefix rather than 'lib'
16118 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16124 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16127 dynamic_linker='Win32 ld.exe'
16128 # FIXME: first we should search . and the directory the executable is in
16132 darwin* | rhapsody*)
16133 dynamic_linker="$host_os dyld"
16134 version_type=darwin
16137 # FIXME: Relying on posixy $() will cause problems for
16138 # cross-compilation, but unfortunately the echo tests do not
16139 # yet detect zsh echo's removal of \ escapes.
16140 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16141 soname_spec='${libname}${release}${major}$shared_ext'
16142 shlibpath_overrides_runpath=yes
16143 shlibpath_var=DYLD_LIBRARY_PATH
16144 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16145 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16146 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16147 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"`
16149 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16158 shlibpath_var=LD_LIBRARY_PATH
16166 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16167 version_type=freebsd-$objformat
16168 case $version_type in
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16175 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16179 shlibpath_var=LD_LIBRARY_PATH
16182 shlibpath_overrides_runpath=yes
16184 freebsd3.01* | freebsdelf3.01*)
16185 shlibpath_overrides_runpath=yes
16186 hardcode_into_libs=yes
16189 shlibpath_overrides_runpath=no
16190 hardcode_into_libs=yes
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 hardcode_into_libs=yes
16205 hpux9* | hpux10* | hpux11*)
16206 # Give a soname corresponding to the major version so that dld.sl refuses to
16207 # link against other versions.
16211 case "$host_cpu" in
16214 hardcode_into_libs=yes
16215 dynamic_linker="$host_os dld.so"
16216 shlibpath_var=LD_LIBRARY_PATH
16217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 if test "X$HPUX_IA64_MODE" = X32; then
16221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16229 hardcode_into_libs=yes
16230 dynamic_linker="$host_os dld.sl"
16231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16240 dynamic_linker="$host_os dld.sl"
16241 shlibpath_var=SHLIB_PATH
16242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16244 soname_spec='${libname}${release}${shared_ext}$major'
16247 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16248 postinstall_cmds='chmod 555 $lib'
16251 irix5* | irix6* | nonstopux*)
16253 nonstopux*) version_type=nonstopux ;;
16255 if test "$lt_cv_prog_gnu_ld" = yes; then
16263 soname_spec='${libname}${release}${shared_ext}$major'
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16266 irix5* | nonstopux*)
16267 libsuff= shlibsuff=
16270 case $LD in # libtool.m4 will add one of these switches to LD
16271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16272 libsuff= shlibsuff= libmagic=32-bit;;
16273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16274 libsuff=32 shlibsuff=N32 libmagic=N32;;
16275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16276 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16277 *) libsuff= shlibsuff= libmagic=never-match;;
16281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16282 shlibpath_overrides_runpath=no
16283 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16284 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16285 hardcode_into_libs=yes
16288 # No shared lib support for Linux oldld, aout, or coff.
16289 linux*oldld* | linux*aout* | linux*coff*)
16293 # This must be Linux ELF.
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'
16300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=no
16303 # This implies no fast_install, which is unacceptable.
16304 # Some rework will be needed to allow for fast_install
16305 # before this can be enabled.
16306 hardcode_into_libs=yes
16308 # We used to test for /lib/ld.so.1 and disable shared libraries on
16309 # powerpc, because MkLinux only supported shared libraries with the
16310 # GNU dynamic linker. Since this was broken with cross compilers,
16311 # most powerpc-linux boxes support dynamic linking these days and
16312 # people can always --disable-shared, the test was removed, and we
16313 # assume the GNU/Linux dynamic linker is in use.
16314 dynamic_linker='GNU/Linux ld.so'
16321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16324 dynamic_linker='NetBSD (a.out) ld.so'
16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16327 soname_spec='${libname}${release}${shared_ext}$major'
16328 dynamic_linker='NetBSD ld.elf_so'
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=yes
16332 hardcode_into_libs=yes
16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=yes
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 shlibpath_overrides_runpath=yes
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16361 openbsd2.[89] | openbsd2.[89].*)
16362 shlibpath_overrides_runpath=no
16365 shlibpath_overrides_runpath=yes
16369 shlibpath_overrides_runpath=yes
16374 libname_spec='$name'
16377 library_names_spec='$libname${shared_ext} $libname.a'
16378 dynamic_linker='OS/2 ld.exe'
16379 shlibpath_var=LIBPATH
16382 osf3* | osf4* | osf5*)
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16395 soname_spec='${libname}${release}${shared_ext}$major'
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397 shlibpath_var=LD_LIBRARY_PATH
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16405 soname_spec='${libname}${release}${shared_ext}$major'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 shlibpath_overrides_runpath=yes
16408 hardcode_into_libs=yes
16409 # ldd complains unless libraries are executable
16410 postinstall_cmds='chmod +x $lib'
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16419 if test "$with_gnu_ld" = yes; then
16425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 case $host_vendor in
16432 shlibpath_overrides_runpath=no
16434 export_dynamic_flag_spec='${wl}-Blargedynsym'
16435 runpath_var=LD_RUN_PATH
16443 shlibpath_overrides_runpath=no
16444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16450 if test -d /usr/nec ;then
16452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16453 soname_spec='$libname${shared_ext}.$major'
16454 shlibpath_var=LD_LIBRARY_PATH
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16469 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16470 echo "${ECHO_T}$dynamic_linker" >&6
16471 test "$dynamic_linker" = no && can_build_shared=no
16473 if test "x$enable_dlopen" != xyes; then
16474 enable_dlopen=unknown
16475 enable_dlopen_self=unknown
16476 enable_dlopen_self_static=unknown
16483 lt_cv_dlopen="load_add_on"
16485 lt_cv_dlopen_self=yes
16489 lt_cv_dlopen="LoadLibrary"
16494 lt_cv_dlopen="dlopen"
16499 # if libdl is installed we need to link against it
16500 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16501 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16502 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 ac_check_lib_save_LIBS=$LIBS
16507 cat >conftest.$ac_ext <<_ACEOF
16508 #line $LINENO "configure"
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16515 /* Override any gcc2 internal prototype to avoid an error. */
16519 /* We use char because int might match the return type of a gcc2
16520 builtin and then its argument prototype would still apply. */
16530 rm -f conftest.$ac_objext conftest$ac_exeext
16531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532 (eval $ac_link) 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -s conftest$ac_exeext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_cv_lib_dl_dlopen=yes
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ac_cv_lib_dl_dlopen=no
16549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16550 LIBS=$ac_check_lib_save_LIBS
16552 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16553 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16554 if test $ac_cv_lib_dl_dlopen = yes; then
16555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16558 lt_cv_dlopen="dyld"
16560 lt_cv_dlopen_self=yes
16567 echo "$as_me:$LINENO: checking for shl_load" >&5
16568 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16569 if test "${ac_cv_func_shl_load+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 cat >conftest.$ac_ext <<_ACEOF
16573 #line $LINENO "configure"
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16579 /* System header to define __stub macros and hopefully few prototypes,
16580 which can conflict with char shl_load (); below.
16581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16582 <limits.h> exists even on freestanding compilers. */
16584 # include <limits.h>
16586 # include <assert.h>
16588 /* Override any gcc2 internal prototype to avoid an error. */
16593 /* We use char because int might match the return type of a gcc2
16594 builtin and then its argument prototype would still apply. */
16596 /* The GNU C library defines this for functions which it implements
16597 to always fail with ENOSYS. Some functions are actually named
16598 something starting with __ and the normal name is an alias. */
16599 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16602 char (*f) () = shl_load;
16611 return f != shl_load;
16616 rm -f conftest.$ac_objext conftest$ac_exeext
16617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16618 (eval $ac_link) 2>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -s conftest$ac_exeext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_func_shl_load=yes
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 ac_cv_func_shl_load=no
16635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16637 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16638 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16639 if test $ac_cv_func_shl_load = yes; then
16640 lt_cv_dlopen="shl_load"
16642 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16643 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16644 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 ac_check_lib_save_LIBS=$LIBS
16649 cat >conftest.$ac_ext <<_ACEOF
16650 #line $LINENO "configure"
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16657 /* Override any gcc2 internal prototype to avoid an error. */
16661 /* We use char because int might match the return type of a gcc2
16662 builtin and then its argument prototype would still apply. */
16672 rm -f conftest.$ac_objext conftest$ac_exeext
16673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16674 (eval $ac_link) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -s conftest$ac_exeext'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 ac_cv_lib_dld_shl_load=yes
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 ac_cv_lib_dld_shl_load=no
16691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16692 LIBS=$ac_check_lib_save_LIBS
16694 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16695 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16696 if test $ac_cv_lib_dld_shl_load = yes; then
16697 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16699 echo "$as_me:$LINENO: checking for dlopen" >&5
16700 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16701 if test "${ac_cv_func_dlopen+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
16711 /* System header to define __stub macros and hopefully few prototypes,
16712 which can conflict with char dlopen (); below.
16713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16714 <limits.h> exists even on freestanding compilers. */
16716 # include <limits.h>
16718 # include <assert.h>
16720 /* Override any gcc2 internal prototype to avoid an error. */
16725 /* We use char because int might match the return type of a gcc2
16726 builtin and then its argument prototype would still apply. */
16728 /* The GNU C library defines this for functions which it implements
16729 to always fail with ENOSYS. Some functions are actually named
16730 something starting with __ and the normal name is an alias. */
16731 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16734 char (*f) () = dlopen;
16743 return f != dlopen;
16748 rm -f conftest.$ac_objext conftest$ac_exeext
16749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16750 (eval $ac_link) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -s conftest$ac_exeext'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 ac_cv_func_dlopen=yes
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16765 ac_cv_func_dlopen=no
16767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16769 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16770 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16771 if test $ac_cv_func_dlopen = yes; then
16772 lt_cv_dlopen="dlopen"
16774 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16775 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16776 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 ac_check_lib_save_LIBS=$LIBS
16781 cat >conftest.$ac_ext <<_ACEOF
16782 #line $LINENO "configure"
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16789 /* Override any gcc2 internal prototype to avoid an error. */
16793 /* We use char because int might match the return type of a gcc2
16794 builtin and then its argument prototype would still apply. */
16804 rm -f conftest.$ac_objext conftest$ac_exeext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16806 (eval $ac_link) 2>&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -s conftest$ac_exeext'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16816 ac_cv_lib_dl_dlopen=yes
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 ac_cv_lib_dl_dlopen=no
16823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16828 if test $ac_cv_lib_dl_dlopen = yes; then
16829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16831 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 ac_check_lib_save_LIBS=$LIBS
16837 LIBS="-lsvld $LIBS"
16838 cat >conftest.$ac_ext <<_ACEOF
16839 #line $LINENO "configure"
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16846 /* Override any gcc2 internal prototype to avoid an error. */
16850 /* We use char because int might match the return type of a gcc2
16851 builtin and then its argument prototype would still apply. */
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
16867 { ac_try='test -s conftest$ac_exeext'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 ac_cv_lib_svld_dlopen=yes
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 ac_cv_lib_svld_dlopen=no
16880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16881 LIBS=$ac_check_lib_save_LIBS
16883 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16884 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16885 if test $ac_cv_lib_svld_dlopen = yes; then
16886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16888 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16889 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16890 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16893 ac_check_lib_save_LIBS=$LIBS
16895 cat >conftest.$ac_ext <<_ACEOF
16896 #line $LINENO "configure"
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16903 /* Override any gcc2 internal prototype to avoid an error. */
16907 /* We use char because int might match the return type of a gcc2
16908 builtin and then its argument prototype would still apply. */
16918 rm -f conftest.$ac_objext conftest$ac_exeext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16920 (eval $ac_link) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try='test -s conftest$ac_exeext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_lib_dld_dld_link=yes
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ac_cv_lib_dld_dld_link=no
16937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16938 LIBS=$ac_check_lib_save_LIBS
16940 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16941 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16942 if test $ac_cv_lib_dld_dld_link = yes; then
16943 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16964 if test "x$lt_cv_dlopen" != xno; then
16970 case $lt_cv_dlopen in
16972 save_CPPFLAGS="$CPPFLAGS"
16973 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16975 save_LDFLAGS="$LDFLAGS"
16976 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16979 LIBS="$lt_cv_dlopen_libs $LIBS"
16981 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16982 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16983 if test "${lt_cv_dlopen_self+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 if test "$cross_compiling" = yes; then :
16987 lt_cv_dlopen_self=cross
16989 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16990 lt_status=$lt_dlunknown
16991 cat > conftest.$ac_ext <<EOF
16992 #line 16992 "configure"
16993 #include "confdefs.h"
17002 # define LT_DLGLOBAL RTLD_GLOBAL
17005 # define LT_DLGLOBAL DL_GLOBAL
17007 # define LT_DLGLOBAL 0
17011 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17012 find out it does not work in some platform. */
17013 #ifndef LT_DLLAZY_OR_NOW
17015 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17018 # define LT_DLLAZY_OR_NOW DL_LAZY
17021 # define LT_DLLAZY_OR_NOW RTLD_NOW
17024 # define LT_DLLAZY_OR_NOW DL_NOW
17026 # define LT_DLLAZY_OR_NOW 0
17034 extern "C" void exit (int);
17037 void fnord() { int i=42;}
17040 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17041 int status = $lt_dlunknown;
17045 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17046 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17047 /* dlclose (self); */
17053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17054 (eval $ac_link) 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17058 (./conftest; exit; ) 2>/dev/null
17060 case x$lt_status in
17061 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17062 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17063 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17066 # compilation failed
17067 lt_cv_dlopen_self=no
17074 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17075 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17077 if test "x$lt_cv_dlopen_self" = xyes; then
17078 LDFLAGS="$LDFLAGS $link_static_flag"
17079 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17080 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17081 if test "${lt_cv_dlopen_self_static+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 if test "$cross_compiling" = yes; then :
17085 lt_cv_dlopen_self_static=cross
17087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17088 lt_status=$lt_dlunknown
17089 cat > conftest.$ac_ext <<EOF
17090 #line 17090 "configure"
17091 #include "confdefs.h"
17100 # define LT_DLGLOBAL RTLD_GLOBAL
17103 # define LT_DLGLOBAL DL_GLOBAL
17105 # define LT_DLGLOBAL 0
17109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17110 find out it does not work in some platform. */
17111 #ifndef LT_DLLAZY_OR_NOW
17113 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17116 # define LT_DLLAZY_OR_NOW DL_LAZY
17119 # define LT_DLLAZY_OR_NOW RTLD_NOW
17122 # define LT_DLLAZY_OR_NOW DL_NOW
17124 # define LT_DLLAZY_OR_NOW 0
17132 extern "C" void exit (int);
17135 void fnord() { int i=42;}
17138 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17139 int status = $lt_dlunknown;
17143 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17144 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17145 /* dlclose (self); */
17151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17152 (eval $ac_link) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17156 (./conftest; exit; ) 2>/dev/null
17158 case x$lt_status in
17159 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17160 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17161 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17164 # compilation failed
17165 lt_cv_dlopen_self_static=no
17172 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17173 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17176 CPPFLAGS="$save_CPPFLAGS"
17177 LDFLAGS="$save_LDFLAGS"
17182 case $lt_cv_dlopen_self in
17183 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17184 *) enable_dlopen_self=unknown ;;
17187 case $lt_cv_dlopen_self_static in
17188 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17189 *) enable_dlopen_self_static=unknown ;;
17194 # The else clause should only fire when bootstrapping the
17195 # libtool distribution, otherwise you forgot to ship ltmain.sh
17196 # with your package, and you will get complaints that there are
17197 # no rules to generate ltmain.sh.
17198 if test -f "$ltmain"; then
17199 # See if we are running on zsh, and set the options which allow our commands through
17200 # without removal of \ escapes.
17201 if test -n "${ZSH_VERSION+set}" ; then
17202 setopt NO_GLOB_SUBST
17204 # Now quote all the things that may contain metacharacters while being
17205 # careful not to overquote the AC_SUBSTed values. We take copies of the
17206 # variables and quote the copies for generation of the libtool script.
17207 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17208 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17209 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17210 deplibs_check_method reload_flag reload_cmds need_locks \
17211 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17212 lt_cv_sys_global_symbol_to_c_name_address \
17213 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17214 old_postinstall_cmds old_postuninstall_cmds \
17218 lt_prog_compiler_wl_GCJ \
17219 lt_prog_compiler_pic_GCJ \
17220 lt_prog_compiler_static_GCJ \
17221 lt_prog_compiler_no_builtin_flag_GCJ \
17222 export_dynamic_flag_spec_GCJ \
17223 thread_safe_flag_spec_GCJ \
17224 whole_archive_flag_spec_GCJ \
17225 enable_shared_with_static_runtimes_GCJ \
17226 old_archive_cmds_GCJ \
17227 old_archive_from_new_cmds_GCJ \
17228 predep_objects_GCJ \
17229 postdep_objects_GCJ \
17232 compiler_lib_search_path_GCJ \
17234 archive_expsym_cmds_GCJ \
17235 postinstall_cmds_GCJ \
17236 postuninstall_cmds_GCJ \
17237 old_archive_from_expsyms_cmds_GCJ \
17238 allow_undefined_flag_GCJ \
17239 no_undefined_flag_GCJ \
17240 export_symbols_cmds_GCJ \
17241 hardcode_libdir_flag_spec_GCJ \
17242 hardcode_libdir_flag_spec_ld_GCJ \
17243 hardcode_libdir_separator_GCJ \
17244 hardcode_automatic_GCJ \
17246 module_expsym_cmds_GCJ \
17247 lt_cv_prog_compiler_c_o_GCJ \
17248 exclude_expsyms_GCJ \
17249 include_expsyms_GCJ; do
17252 old_archive_cmds_GCJ | \
17253 old_archive_from_new_cmds_GCJ | \
17254 archive_cmds_GCJ | \
17255 archive_expsym_cmds_GCJ | \
17256 module_cmds_GCJ | \
17257 module_expsym_cmds_GCJ | \
17258 old_archive_from_expsyms_cmds_GCJ | \
17259 export_symbols_cmds_GCJ | \
17260 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17261 postinstall_cmds | postuninstall_cmds | \
17262 old_postinstall_cmds | old_postuninstall_cmds | \
17263 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17264 # Double-quote double-evaled strings.
17265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17268 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17274 *'\$0 --fallback-echo"')
17275 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17281 cat <<__EOF__ >> "$cfgfile"
17282 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17284 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17286 # Shell to use when invoking shell scripts.
17289 # Whether or not to build shared libraries.
17290 build_libtool_libs=$enable_shared
17292 # Whether or not to build static libraries.
17293 build_old_libs=$enable_static
17295 # Whether or not to add -lc for building shared libraries.
17296 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17298 # Whether or not to disallow shared libs when runtime libs are static
17299 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17301 # Whether or not to optimize for fast installation.
17302 fast_install=$enable_fast_install
17305 host_alias=$host_alias
17308 # An echo program that does not interpret backslashes.
17313 AR_FLAGS=$lt_AR_FLAGS
17318 # A language-specific compiler.
17319 CC=$lt_compiler_GCJ
17321 # Is the compiler the GNU C compiler?
17327 # The linker used to build libraries.
17330 # Whether we need hard or soft links.
17333 # A BSD-compatible nm program.
17336 # A symbol stripping program
17339 # Used to examine libraries when file_magic_cmd begins "file"
17340 MAGIC_CMD=$MAGIC_CMD
17342 # Used on cygwin: DLL creation program.
17345 # Used on cygwin: object dumper.
17348 # Used on cygwin: assembler.
17351 # The name of the directory that contains temporary libtool files.
17354 # How to create reloadable object files.
17355 reload_flag=$lt_reload_flag
17356 reload_cmds=$lt_reload_cmds
17358 # How to pass a linker flag through the compiler.
17359 wl=$lt_lt_prog_compiler_wl_GCJ
17361 # Object file suffix (normally "o").
17362 objext="$ac_objext"
17364 # Old archive suffix (normally "a").
17367 # Shared library suffix (normally ".so").
17370 # Executable file suffix (normally "").
17373 # Additional compiler flags for building library objects.
17374 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17377 # What is the maximum length of a command?
17378 max_cmd_len=$lt_cv_sys_max_cmd_len
17380 # Does compiler simultaneously support -c and -o options?
17381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17383 # Must we lock files when doing compilation ?
17384 need_locks=$lt_need_locks
17386 # Do we need the lib prefix for modules?
17387 need_lib_prefix=$need_lib_prefix
17389 # Do we need a version for libraries?
17390 need_version=$need_version
17392 # Whether dlopen is supported.
17393 dlopen_support=$enable_dlopen
17395 # Whether dlopen of programs is supported.
17396 dlopen_self=$enable_dlopen_self
17398 # Whether dlopen of statically linked programs is supported.
17399 dlopen_self_static=$enable_dlopen_self_static
17401 # Compiler flag to prevent dynamic linking.
17402 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17404 # Compiler flag to turn off builtin functions.
17405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17407 # Compiler flag to allow reflexive dlopens.
17408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17410 # Compiler flag to generate shared objects directly from archives.
17411 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17413 # Compiler flag to generate thread-safe objects.
17414 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17416 # Library versioning type.
17417 version_type=$version_type
17419 # Format of library name prefix.
17420 libname_spec=$lt_libname_spec
17422 # List of archive names. First name is the real one, the rest are links.
17423 # The last name is the one that the linker finds with -lNAME.
17424 library_names_spec=$lt_library_names_spec
17426 # The coded name of the library, if different from the real name.
17427 soname_spec=$lt_soname_spec
17429 # Commands used to build and install an old-style archive.
17431 old_archive_cmds=$lt_old_archive_cmds_GCJ
17432 old_postinstall_cmds=$lt_old_postinstall_cmds
17433 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17435 # Create an old-style archive from a shared archive.
17436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17438 # Create a temporary old-style archive to link instead of a shared archive.
17439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17441 # Commands used to build and install a shared archive.
17442 archive_cmds=$lt_archive_cmds_GCJ
17443 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17444 postinstall_cmds=$lt_postinstall_cmds
17445 postuninstall_cmds=$lt_postuninstall_cmds
17447 # Commands used to build a loadable module (assumed same as above if empty)
17448 module_cmds=$lt_module_cmds_GCJ
17449 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17451 # Commands to strip libraries.
17452 old_striplib=$lt_old_striplib
17453 striplib=$lt_striplib
17455 # Dependencies to place before the objects being linked to create a
17457 predep_objects=$lt_predep_objects_GCJ
17459 # Dependencies to place after the objects being linked to create a
17461 postdep_objects=$lt_postdep_objects_GCJ
17463 # Dependencies to place before the objects being linked to create a
17465 predeps=$lt_predeps_GCJ
17467 # Dependencies to place after the objects being linked to create a
17469 postdeps=$lt_postdeps_GCJ
17471 # The library search path used internally by the compiler when linking
17472 # a shared library.
17473 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17475 # Method to check whether dependent libraries are shared objects.
17476 deplibs_check_method=$lt_deplibs_check_method
17478 # Command to use when deplibs_check_method == file_magic.
17479 file_magic_cmd=$lt_file_magic_cmd
17481 # Flag that allows shared libraries with undefined symbols to be built.
17482 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17484 # Flag that forces no undefined symbols.
17485 no_undefined_flag=$lt_no_undefined_flag_GCJ
17487 # Commands used to finish a libtool library installation in a directory.
17488 finish_cmds=$lt_finish_cmds
17490 # Same as above, but a single script fragment to be evaled but not shown.
17491 finish_eval=$lt_finish_eval
17493 # Take the output of nm and produce a listing of raw symbols and C names.
17494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17496 # Transform the output of nm in a proper C declaration
17497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17499 # Transform the output of nm in a C name address pair
17500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17502 # This is the shared library runtime path variable.
17503 runpath_var=$runpath_var
17505 # This is the shared library path variable.
17506 shlibpath_var=$shlibpath_var
17508 # Is shlibpath searched before the hard-coded library search path?
17509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17511 # How to hardcode a shared library path into an executable.
17512 hardcode_action=$hardcode_action_GCJ
17514 # Whether we should hardcode library paths into libraries.
17515 hardcode_into_libs=$hardcode_into_libs
17517 # Flag to hardcode \$libdir into a binary during linking.
17518 # This must work even if \$libdir does not exist.
17519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17521 # If ld is used when linking, flag to hardcode \$libdir into
17522 # a binary during linking. This must work even if \$libdir does
17524 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17526 # Whether we need a single -rpath flag with a separated argument.
17527 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17529 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17530 # resulting binary.
17531 hardcode_direct=$hardcode_direct_GCJ
17533 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17534 # resulting binary.
17535 hardcode_minus_L=$hardcode_minus_L_GCJ
17537 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17538 # the resulting binary.
17539 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17541 # Set to yes if building a shared library automatically hardcodes DIR into the library
17542 # and all subsequent libraries and executables linked against it.
17543 hardcode_automatic=$hardcode_automatic_GCJ
17545 # Variables whose values should be saved in libtool wrapper scripts and
17546 # restored at relink time.
17547 variables_saved_for_relink="$variables_saved_for_relink"
17549 # Whether libtool must link a program against all its dependency libraries.
17550 link_all_deplibs=$link_all_deplibs_GCJ
17552 # Compile-time system search path for libraries
17553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17555 # Run-time system search path for libraries
17556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17558 # Fix the shell variable \$srcfile for the compiler.
17559 fix_srcfile_path="$fix_srcfile_path_GCJ"
17561 # Set to yes if exported symbols are required.
17562 always_export_symbols=$always_export_symbols_GCJ
17564 # The commands to list exported symbols.
17565 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17567 # The commands to extract the exported symbol list from a shared archive.
17568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17570 # Symbols that should not be listed in the preloaded symbols.
17571 exclude_expsyms=$lt_exclude_expsyms_GCJ
17573 # Symbols that must always be exported.
17574 include_expsyms=$lt_include_expsyms_GCJ
17576 # ### END LIBTOOL TAG CONFIG: $tagname
17582 # If there is no Makefile yet, we rely on a make rule to execute
17583 # `config.status --recheck' to rerun these tests and create the
17584 # libtool script then.
17585 test -f Makefile && make "$ltmain"
17590 ac_cpp='$CPP $CPPFLAGS'
17591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17606 # Source file extension for RC test sources.
17609 # Object file extension for compiled RC test sources.
17613 # Code to be used in simple compile tests
17614 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17616 # Code to be used in simple link tests
17617 lt_simple_link_test_code="$lt_simple_compile_test_code"
17619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17621 # If no C compiler was specified, use CC.
17624 # Allow CC to be a program name with arguments.
17628 # Allow CC to be a program name with arguments.
17633 lt_cv_prog_compiler_c_o_RC=yes
17635 # The else clause should only fire when bootstrapping the
17636 # libtool distribution, otherwise you forgot to ship ltmain.sh
17637 # with your package, and you will get complaints that there are
17638 # no rules to generate ltmain.sh.
17639 if test -f "$ltmain"; then
17640 # See if we are running on zsh, and set the options which allow our commands through
17641 # without removal of \ escapes.
17642 if test -n "${ZSH_VERSION+set}" ; then
17643 setopt NO_GLOB_SUBST
17645 # Now quote all the things that may contain metacharacters while being
17646 # careful not to overquote the AC_SUBSTed values. We take copies of the
17647 # variables and quote the copies for generation of the libtool script.
17648 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17651 deplibs_check_method reload_flag reload_cmds need_locks \
17652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17653 lt_cv_sys_global_symbol_to_c_name_address \
17654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17655 old_postinstall_cmds old_postuninstall_cmds \
17659 lt_prog_compiler_wl_RC \
17660 lt_prog_compiler_pic_RC \
17661 lt_prog_compiler_static_RC \
17662 lt_prog_compiler_no_builtin_flag_RC \
17663 export_dynamic_flag_spec_RC \
17664 thread_safe_flag_spec_RC \
17665 whole_archive_flag_spec_RC \
17666 enable_shared_with_static_runtimes_RC \
17667 old_archive_cmds_RC \
17668 old_archive_from_new_cmds_RC \
17669 predep_objects_RC \
17670 postdep_objects_RC \
17673 compiler_lib_search_path_RC \
17675 archive_expsym_cmds_RC \
17676 postinstall_cmds_RC \
17677 postuninstall_cmds_RC \
17678 old_archive_from_expsyms_cmds_RC \
17679 allow_undefined_flag_RC \
17680 no_undefined_flag_RC \
17681 export_symbols_cmds_RC \
17682 hardcode_libdir_flag_spec_RC \
17683 hardcode_libdir_flag_spec_ld_RC \
17684 hardcode_libdir_separator_RC \
17685 hardcode_automatic_RC \
17687 module_expsym_cmds_RC \
17688 lt_cv_prog_compiler_c_o_RC \
17689 exclude_expsyms_RC \
17690 include_expsyms_RC; do
17693 old_archive_cmds_RC | \
17694 old_archive_from_new_cmds_RC | \
17695 archive_cmds_RC | \
17696 archive_expsym_cmds_RC | \
17698 module_expsym_cmds_RC | \
17699 old_archive_from_expsyms_cmds_RC | \
17700 export_symbols_cmds_RC | \
17701 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17702 postinstall_cmds | postuninstall_cmds | \
17703 old_postinstall_cmds | old_postuninstall_cmds | \
17704 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17705 # Double-quote double-evaled strings.
17706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17715 *'\$0 --fallback-echo"')
17716 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17722 cat <<__EOF__ >> "$cfgfile"
17723 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17727 # Shell to use when invoking shell scripts.
17730 # Whether or not to build shared libraries.
17731 build_libtool_libs=$enable_shared
17733 # Whether or not to build static libraries.
17734 build_old_libs=$enable_static
17736 # Whether or not to add -lc for building shared libraries.
17737 build_libtool_need_lc=$archive_cmds_need_lc_RC
17739 # Whether or not to disallow shared libs when runtime libs are static
17740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17742 # Whether or not to optimize for fast installation.
17743 fast_install=$enable_fast_install
17746 host_alias=$host_alias
17749 # An echo program that does not interpret backslashes.
17754 AR_FLAGS=$lt_AR_FLAGS
17759 # A language-specific compiler.
17762 # Is the compiler the GNU C compiler?
17768 # The linker used to build libraries.
17771 # Whether we need hard or soft links.
17774 # A BSD-compatible nm program.
17777 # A symbol stripping program
17780 # Used to examine libraries when file_magic_cmd begins "file"
17781 MAGIC_CMD=$MAGIC_CMD
17783 # Used on cygwin: DLL creation program.
17786 # Used on cygwin: object dumper.
17789 # Used on cygwin: assembler.
17792 # The name of the directory that contains temporary libtool files.
17795 # How to create reloadable object files.
17796 reload_flag=$lt_reload_flag
17797 reload_cmds=$lt_reload_cmds
17799 # How to pass a linker flag through the compiler.
17800 wl=$lt_lt_prog_compiler_wl_RC
17802 # Object file suffix (normally "o").
17803 objext="$ac_objext"
17805 # Old archive suffix (normally "a").
17808 # Shared library suffix (normally ".so").
17811 # Executable file suffix (normally "").
17814 # Additional compiler flags for building library objects.
17815 pic_flag=$lt_lt_prog_compiler_pic_RC
17818 # What is the maximum length of a command?
17819 max_cmd_len=$lt_cv_sys_max_cmd_len
17821 # Does compiler simultaneously support -c and -o options?
17822 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17824 # Must we lock files when doing compilation ?
17825 need_locks=$lt_need_locks
17827 # Do we need the lib prefix for modules?
17828 need_lib_prefix=$need_lib_prefix
17830 # Do we need a version for libraries?
17831 need_version=$need_version
17833 # Whether dlopen is supported.
17834 dlopen_support=$enable_dlopen
17836 # Whether dlopen of programs is supported.
17837 dlopen_self=$enable_dlopen_self
17839 # Whether dlopen of statically linked programs is supported.
17840 dlopen_self_static=$enable_dlopen_self_static
17842 # Compiler flag to prevent dynamic linking.
17843 link_static_flag=$lt_lt_prog_compiler_static_RC
17845 # Compiler flag to turn off builtin functions.
17846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17848 # Compiler flag to allow reflexive dlopens.
17849 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17851 # Compiler flag to generate shared objects directly from archives.
17852 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17854 # Compiler flag to generate thread-safe objects.
17855 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17857 # Library versioning type.
17858 version_type=$version_type
17860 # Format of library name prefix.
17861 libname_spec=$lt_libname_spec
17863 # List of archive names. First name is the real one, the rest are links.
17864 # The last name is the one that the linker finds with -lNAME.
17865 library_names_spec=$lt_library_names_spec
17867 # The coded name of the library, if different from the real name.
17868 soname_spec=$lt_soname_spec
17870 # Commands used to build and install an old-style archive.
17872 old_archive_cmds=$lt_old_archive_cmds_RC
17873 old_postinstall_cmds=$lt_old_postinstall_cmds
17874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17876 # Create an old-style archive from a shared archive.
17877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17879 # Create a temporary old-style archive to link instead of a shared archive.
17880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17882 # Commands used to build and install a shared archive.
17883 archive_cmds=$lt_archive_cmds_RC
17884 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17885 postinstall_cmds=$lt_postinstall_cmds
17886 postuninstall_cmds=$lt_postuninstall_cmds
17888 # Commands used to build a loadable module (assumed same as above if empty)
17889 module_cmds=$lt_module_cmds_RC
17890 module_expsym_cmds=$lt_module_expsym_cmds_RC
17892 # Commands to strip libraries.
17893 old_striplib=$lt_old_striplib
17894 striplib=$lt_striplib
17896 # Dependencies to place before the objects being linked to create a
17898 predep_objects=$lt_predep_objects_RC
17900 # Dependencies to place after the objects being linked to create a
17902 postdep_objects=$lt_postdep_objects_RC
17904 # Dependencies to place before the objects being linked to create a
17906 predeps=$lt_predeps_RC
17908 # Dependencies to place after the objects being linked to create a
17910 postdeps=$lt_postdeps_RC
17912 # The library search path used internally by the compiler when linking
17913 # a shared library.
17914 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17916 # Method to check whether dependent libraries are shared objects.
17917 deplibs_check_method=$lt_deplibs_check_method
17919 # Command to use when deplibs_check_method == file_magic.
17920 file_magic_cmd=$lt_file_magic_cmd
17922 # Flag that allows shared libraries with undefined symbols to be built.
17923 allow_undefined_flag=$lt_allow_undefined_flag_RC
17925 # Flag that forces no undefined symbols.
17926 no_undefined_flag=$lt_no_undefined_flag_RC
17928 # Commands used to finish a libtool library installation in a directory.
17929 finish_cmds=$lt_finish_cmds
17931 # Same as above, but a single script fragment to be evaled but not shown.
17932 finish_eval=$lt_finish_eval
17934 # Take the output of nm and produce a listing of raw symbols and C names.
17935 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17937 # Transform the output of nm in a proper C declaration
17938 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17940 # Transform the output of nm in a C name address pair
17941 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17943 # This is the shared library runtime path variable.
17944 runpath_var=$runpath_var
17946 # This is the shared library path variable.
17947 shlibpath_var=$shlibpath_var
17949 # Is shlibpath searched before the hard-coded library search path?
17950 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17952 # How to hardcode a shared library path into an executable.
17953 hardcode_action=$hardcode_action_RC
17955 # Whether we should hardcode library paths into libraries.
17956 hardcode_into_libs=$hardcode_into_libs
17958 # Flag to hardcode \$libdir into a binary during linking.
17959 # This must work even if \$libdir does not exist.
17960 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17962 # If ld is used when linking, flag to hardcode \$libdir into
17963 # a binary during linking. This must work even if \$libdir does
17965 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17967 # Whether we need a single -rpath flag with a separated argument.
17968 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17970 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17971 # resulting binary.
17972 hardcode_direct=$hardcode_direct_RC
17974 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17975 # resulting binary.
17976 hardcode_minus_L=$hardcode_minus_L_RC
17978 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17979 # the resulting binary.
17980 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17982 # Set to yes if building a shared library automatically hardcodes DIR into the library
17983 # and all subsequent libraries and executables linked against it.
17984 hardcode_automatic=$hardcode_automatic_RC
17986 # Variables whose values should be saved in libtool wrapper scripts and
17987 # restored at relink time.
17988 variables_saved_for_relink="$variables_saved_for_relink"
17990 # Whether libtool must link a program against all its dependency libraries.
17991 link_all_deplibs=$link_all_deplibs_RC
17993 # Compile-time system search path for libraries
17994 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17996 # Run-time system search path for libraries
17997 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17999 # Fix the shell variable \$srcfile for the compiler.
18000 fix_srcfile_path="$fix_srcfile_path_RC"
18002 # Set to yes if exported symbols are required.
18003 always_export_symbols=$always_export_symbols_RC
18005 # The commands to list exported symbols.
18006 export_symbols_cmds=$lt_export_symbols_cmds_RC
18008 # The commands to extract the exported symbol list from a shared archive.
18009 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18011 # Symbols that should not be listed in the preloaded symbols.
18012 exclude_expsyms=$lt_exclude_expsyms_RC
18014 # Symbols that must always be exported.
18015 include_expsyms=$lt_include_expsyms_RC
18017 # ### END LIBTOOL TAG CONFIG: $tagname
18023 # If there is no Makefile yet, we rely on a make rule to execute
18024 # `config.status --recheck' to rerun these tests and create the
18025 # libtool script then.
18026 test -f Makefile && make "$ltmain"
18031 ac_cpp='$CPP $CPPFLAGS'
18032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18041 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18042 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18043 { (exit 1); exit 1; }; }
18047 # Append the new tag name to the list of available tags.
18048 if test -n "$tagname" ; then
18049 available_tags="$available_tags $tagname"
18055 # Now substitute the updated list of available tags.
18056 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18057 mv "${ofile}T" "$ofile"
18061 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18062 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18063 { (exit 1); exit 1; }; }
18069 # This can be used to rebuild libtool when needed
18070 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18072 # Always use our own libtool.
18073 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18075 # Prevent multiple expansion
18097 # Extract the first word of "pwd", so it can be a program name with args.
18098 set dummy pwd; ac_word=$2
18099 echo "$as_me:$LINENO: checking for $ac_word" >&5
18100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18101 if test "${ac_cv_path_RPWD+set}" = set; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18110 for as_dir in $PATH
18113 test -z "$as_dir" && as_dir=.
18114 for ac_exec_ext in '' $ac_executable_extensions; do
18115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18116 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18123 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18127 RPWD=$ac_cv_path_RPWD
18129 if test -n "$RPWD"; then
18130 echo "$as_me:$LINENO: result: $RPWD" >&5
18131 echo "${ECHO_T}$RPWD" >&6
18133 echo "$as_me:$LINENO: result: no" >&5
18134 echo "${ECHO_T}no" >&6
18137 if test ${RPWD} = "false"
18139 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18140 echo "$as_me: error: pwd required but not found" >&2;}
18141 { (exit 1); exit 1; }; }
18144 # Extract the first word of "ar", so it can be a program name with args.
18145 set dummy ar; ac_word=$2
18146 echo "$as_me:$LINENO: checking for $ac_word" >&5
18147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18148 if test "${ac_cv_path_AR+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18157 for as_dir in $PATH
18160 test -z "$as_dir" && as_dir=.
18161 for ac_exec_ext in '' $ac_executable_extensions; do
18162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18163 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18170 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18176 if test -n "$AR"; then
18177 echo "$as_me:$LINENO: result: $AR" >&5
18178 echo "${ECHO_T}$AR" >&6
18180 echo "$as_me:$LINENO: result: no" >&5
18181 echo "${ECHO_T}no" >&6
18184 if test ${AR} = "false"
18186 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18187 echo "$as_me: error: ar required but not found" >&2;}
18188 { (exit 1); exit 1; }; }
18191 # Extract the first word of "sed", so it can be a program name with args.
18192 set dummy sed; ac_word=$2
18193 echo "$as_me:$LINENO: checking for $ac_word" >&5
18194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18195 if test "${ac_cv_path_SED+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18204 for as_dir in $PATH
18207 test -z "$as_dir" && as_dir=.
18208 for ac_exec_ext in '' $ac_executable_extensions; do
18209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18210 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18217 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18221 SED=$ac_cv_path_SED
18223 if test -n "$SED"; then
18224 echo "$as_me:$LINENO: result: $SED" >&5
18225 echo "${ECHO_T}$SED" >&6
18227 echo "$as_me:$LINENO: result: no" >&5
18228 echo "${ECHO_T}no" >&6
18231 if test ${SED} = "false"
18233 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18234 echo "$as_me: error: sed required but not found" >&2;}
18235 { (exit 1); exit 1; }; }
18238 # Extract the first word of "rm", so it can be a program name with args.
18239 set dummy rm; ac_word=$2
18240 echo "$as_me:$LINENO: checking for $ac_word" >&5
18241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18242 if test "${ac_cv_path_RM+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18251 for as_dir in $PATH
18254 test -z "$as_dir" && as_dir=.
18255 for ac_exec_ext in '' $ac_executable_extensions; do
18256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18257 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18264 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18270 if test -n "$RM"; then
18271 echo "$as_me:$LINENO: result: $RM" >&5
18272 echo "${ECHO_T}$RM" >&6
18274 echo "$as_me:$LINENO: result: no" >&5
18275 echo "${ECHO_T}no" >&6
18278 if test ${RM} = "false"
18280 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18281 echo "$as_me: error: rm required but not found" >&2;}
18282 { (exit 1); exit 1; }; }
18285 # Extract the first word of "echo", so it can be a program name with args.
18286 set dummy echo; 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_ECHO+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 ac_cv_path_ECHO="$ECHO" # 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_ECHO="$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_ECHO" && ac_cv_path_ECHO="false"
18315 ECHO=$ac_cv_path_ECHO
18317 if test -n "$ECHO"; then
18318 echo "$as_me:$LINENO: result: $ECHO" >&5
18319 echo "${ECHO_T}$ECHO" >&6
18321 echo "$as_me:$LINENO: result: no" >&5
18322 echo "${ECHO_T}no" >&6
18325 if test ${ECHO} = "false"
18327 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18328 echo "$as_me: error: echo required but not found" >&2;}
18329 { (exit 1); exit 1; }; }
18332 # Extract the first word of "mkdir", so it can be a program name with args.
18333 set dummy mkdir; ac_word=$2
18334 echo "$as_me:$LINENO: checking for $ac_word" >&5
18335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18336 if test "${ac_cv_path_MKDIR+set}" = set; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18345 for as_dir in $PATH
18348 test -z "$as_dir" && as_dir=.
18349 for ac_exec_ext in '' $ac_executable_extensions; do
18350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18351 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18358 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18362 MKDIR=$ac_cv_path_MKDIR
18364 if test -n "$MKDIR"; then
18365 echo "$as_me:$LINENO: result: $MKDIR" >&5
18366 echo "${ECHO_T}$MKDIR" >&6
18368 echo "$as_me:$LINENO: result: no" >&5
18369 echo "${ECHO_T}no" >&6
18372 if test ${MKDIR} = "false"
18374 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18375 echo "$as_me: error: mkdir required but not found" >&2;}
18376 { (exit 1); exit 1; }; }
18379 # Extract the first word of "date", so it can be a program name with args.
18380 set dummy date; ac_word=$2
18381 echo "$as_me:$LINENO: checking for $ac_word" >&5
18382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18383 if test "${ac_cv_path_DATE+set}" = set; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18392 for as_dir in $PATH
18395 test -z "$as_dir" && as_dir=.
18396 for ac_exec_ext in '' $ac_executable_extensions; do
18397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18398 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18405 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18409 DATE=$ac_cv_path_DATE
18411 if test -n "$DATE"; then
18412 echo "$as_me:$LINENO: result: $DATE" >&5
18413 echo "${ECHO_T}$DATE" >&6
18415 echo "$as_me:$LINENO: result: no" >&5
18416 echo "${ECHO_T}no" >&6
18419 if test ${DATE} = "false"
18421 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18422 echo "$as_me: error: date required but not found" >&2;}
18423 { (exit 1); exit 1; }; }
18426 # Extract the first word of "mv", so it can be a program name with args.
18427 set dummy mv; ac_word=$2
18428 echo "$as_me:$LINENO: checking for $ac_word" >&5
18429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18430 if test "${ac_cv_path_MV+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18435 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18439 for as_dir in $PATH
18442 test -z "$as_dir" && as_dir=.
18443 for ac_exec_ext in '' $ac_executable_extensions; do
18444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18445 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18452 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18458 if test -n "$MV"; then
18459 echo "$as_me:$LINENO: result: $MV" >&5
18460 echo "${ECHO_T}$MV" >&6
18462 echo "$as_me:$LINENO: result: no" >&5
18463 echo "${ECHO_T}no" >&6
18466 if test ${MV} = "false"
18468 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18469 echo "$as_me: error: mv required but not found" >&2;}
18470 { (exit 1); exit 1; }; }
18473 # Extract the first word of "dot", so it can be a program name with args.
18474 set dummy dot; ac_word=$2
18475 echo "$as_me:$LINENO: checking for $ac_word" >&5
18476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18477 if test "${ac_cv_path_DOT+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18482 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18486 for as_dir in $PATH
18489 test -z "$as_dir" && as_dir=.
18490 for ac_exec_ext in '' $ac_executable_extensions; do
18491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18492 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18499 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18503 DOT=$ac_cv_path_DOT
18505 if test -n "$DOT"; then
18506 echo "$as_me:$LINENO: result: $DOT" >&5
18507 echo "${ECHO_T}$DOT" >&6
18509 echo "$as_me:$LINENO: result: no" >&5
18510 echo "${ECHO_T}no" >&6
18514 # Extract the first word of "etags", so it can be a program name with args.
18515 set dummy etags; ac_word=$2
18516 echo "$as_me:$LINENO: checking for $ac_word" >&5
18517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18518 if test "${ac_cv_path_ETAGS+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18527 for as_dir in $PATH
18530 test -z "$as_dir" && as_dir=.
18531 for ac_exec_ext in '' $ac_executable_extensions; do
18532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18533 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18540 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18544 ETAGS=$ac_cv_path_ETAGS
18546 if test -n "$ETAGS"; then
18547 echo "$as_me:$LINENO: result: $ETAGS" >&5
18548 echo "${ECHO_T}$ETAGS" >&6
18550 echo "$as_me:$LINENO: result: no" >&5
18551 echo "${ECHO_T}no" >&6
18555 # Extract the first word of "python", so it can be a program name with args.
18556 set dummy python; ac_word=$2
18557 echo "$as_me:$LINENO: checking for $ac_word" >&5
18558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18559 if test "${ac_cv_path_PYTHON+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18568 for as_dir in $PATH
18571 test -z "$as_dir" && as_dir=.
18572 for ac_exec_ext in '' $ac_executable_extensions; do
18573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18574 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18581 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18585 PYTHON=$ac_cv_path_PYTHON
18587 if test -n "$PYTHON"; then
18588 echo "$as_me:$LINENO: result: $PYTHON" >&5
18589 echo "${ECHO_T}$PYTHON" >&6
18591 echo "$as_me:$LINENO: result: no" >&5
18592 echo "${ECHO_T}no" >&6
18595 if test ${PYTHON} = "false"
18597 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18598 echo "$as_me: WARNING: python required but not found" >&2;}
18601 # Extract the first word of "qmtest", so it can be a program name with args.
18602 set dummy qmtest; ac_word=$2
18603 echo "$as_me:$LINENO: checking for $ac_word" >&5
18604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18605 if test "${ac_cv_path_QMTEST+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614 for as_dir in $PATH
18617 test -z "$as_dir" && as_dir=.
18618 for ac_exec_ext in '' $ac_executable_extensions; do
18619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18620 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18627 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18631 QMTEST=$ac_cv_path_QMTEST
18633 if test -n "$QMTEST"; then
18634 echo "$as_me:$LINENO: result: $QMTEST" >&5
18635 echo "${ECHO_T}$QMTEST" >&6
18637 echo "$as_me:$LINENO: result: no" >&5
18638 echo "${ECHO_T}no" >&6
18641 if test ${QMTEST} = "false"
18643 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
18644 echo "$as_me: WARNING: qmtest required but not found" >&2;}
18647 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18648 pymajor=`echo $pyversion | cut -d. -f1`
18649 pyminor=`echo $pyversion | cut -d. -f2`
18651 if test "$pymajor" -ge "2"
18653 if test "$pymajor" -eq "2"
18655 if test "$pyminor" -lt "2"
18657 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18658 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18662 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18663 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18670 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18671 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18672 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 ac_check_lib_save_LIBS=$LIBS
18677 cat >conftest.$ac_ext <<_ACEOF
18678 #line $LINENO "configure"
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18685 /* Override any gcc2 internal prototype to avoid an error. */
18689 /* We use char because int might match the return type of a gcc2
18690 builtin and then its argument prototype would still apply. */
18700 rm -f conftest.$ac_objext conftest$ac_exeext
18701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18702 (eval $ac_link) 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 ac_cv_lib_elf_elf_begin=yes
18714 echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18717 ac_cv_lib_elf_elf_begin=no
18719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_check_lib_save_LIBS
18722 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18723 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18724 if test $ac_cv_lib_elf_elf_begin = yes; then
18725 cat >>confdefs.h <<_ACEOF
18726 #define HAVE_LIBELF 1
18734 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18735 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18736 if test "${ac_cv_search_dlopen+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 ac_func_search_save_LIBS=$LIBS
18740 ac_cv_search_dlopen=no
18741 cat >conftest.$ac_ext <<_ACEOF
18742 #line $LINENO "configure"
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18749 /* Override any gcc2 internal prototype to avoid an error. */
18753 /* We use char because int might match the return type of a gcc2
18754 builtin and then its argument prototype would still apply. */
18764 rm -f conftest.$ac_objext conftest$ac_exeext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766 (eval $ac_link) 2>&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } &&
18770 { ac_try='test -s conftest$ac_exeext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_cv_search_dlopen="none required"
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18783 if test "$ac_cv_search_dlopen" = no; then
18784 for ac_lib in dl; do
18785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18786 cat >conftest.$ac_ext <<_ACEOF
18787 #line $LINENO "configure"
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18794 /* Override any gcc2 internal prototype to avoid an error. */
18798 /* We use char because int might match the return type of a gcc2
18799 builtin and then its argument prototype would still apply. */
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811 (eval $ac_link) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try='test -s conftest$ac_exeext'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_cv_search_dlopen="-l$ac_lib"
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18831 LIBS=$ac_func_search_save_LIBS
18833 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18834 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18835 if test "$ac_cv_search_dlopen" != no; then
18836 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18838 cat >>confdefs.h <<\_ACEOF
18839 #define HAVE_DLOPEN 1
18843 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18844 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18848 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18849 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18850 if test "${ac_cv_search_mallinfo+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18853 ac_func_search_save_LIBS=$LIBS
18854 ac_cv_search_mallinfo=no
18855 cat >conftest.$ac_ext <<_ACEOF
18856 #line $LINENO "configure"
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18863 /* Override any gcc2 internal prototype to avoid an error. */
18867 /* We use char because int might match the return type of a gcc2
18868 builtin and then its argument prototype would still apply. */
18878 rm -f conftest.$ac_objext 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); } &&
18884 { ac_try='test -s conftest$ac_exeext'
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 ac_cv_search_mallinfo="none required"
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18897 if test "$ac_cv_search_mallinfo" = no; then
18898 for ac_lib in malloc; do
18899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18900 cat >conftest.$ac_ext <<_ACEOF
18901 #line $LINENO "configure"
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18908 /* Override any gcc2 internal prototype to avoid an error. */
18912 /* We use char because int might match the return type of a gcc2
18913 builtin and then its argument prototype would still apply. */
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18925 (eval $ac_link) 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 ac_cv_search_mallinfo="-l$ac_lib"
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18945 LIBS=$ac_func_search_save_LIBS
18947 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18948 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18949 if test "$ac_cv_search_mallinfo" != no; then
18950 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE_MALLINFO 1
18960 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18961 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18962 if test "${ac_cv_header_stdc+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 cat >conftest.$ac_ext <<_ACEOF
18966 #line $LINENO "configure"
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 #include <stdlib.h>
18973 #include <stdarg.h>
18974 #include <string.h>
18985 rm -f conftest.$ac_objext
18986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18987 (eval $ac_compile) 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997 ac_cv_header_stdc=yes
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 ac_cv_header_stdc=no
19004 rm -f conftest.$ac_objext conftest.$ac_ext
19006 if test $ac_cv_header_stdc = yes; then
19007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19008 cat >conftest.$ac_ext <<_ACEOF
19009 #line $LINENO "configure"
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19015 #include <string.h>
19018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19019 $EGREP "memchr" >/dev/null 2>&1; then
19022 ac_cv_header_stdc=no
19028 if test $ac_cv_header_stdc = yes; then
19029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19030 cat >conftest.$ac_ext <<_ACEOF
19031 #line $LINENO "configure"
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include <stdlib.h>
19040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19041 $EGREP "free" >/dev/null 2>&1; then
19044 ac_cv_header_stdc=no
19050 if test $ac_cv_header_stdc = yes; then
19051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19052 if test "$cross_compiling" = yes; then
19055 cat >conftest.$ac_ext <<_ACEOF
19056 #line $LINENO "configure"
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19063 #if ((' ' & 0x0FF) == 0x020)
19064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19067 # define ISLOWER(c) \
19068 (('a' <= (c) && (c) <= 'i') \
19069 || ('j' <= (c) && (c) <= 'r') \
19070 || ('s' <= (c) && (c) <= 'z'))
19071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19079 for (i = 0; i < 256; i++)
19080 if (XOR (islower (i), ISLOWER (i))
19081 || toupper (i) != TOUPPER (i))
19086 rm -f conftest$ac_exeext
19087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19088 (eval $ac_link) 2>&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19099 echo "$as_me: program exited with status $ac_status" >&5
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19103 ( exit $ac_status )
19104 ac_cv_header_stdc=no
19106 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19110 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19111 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19112 if test $ac_cv_header_stdc = yes; then
19114 cat >>confdefs.h <<\_ACEOF
19115 #define STDC_HEADERS 1
19120 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19121 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19122 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 cat >conftest.$ac_ext <<_ACEOF
19126 #line $LINENO "configure"
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19132 #include <sys/types.h>
19133 #include <sys/wait.h>
19134 #ifndef WEXITSTATUS
19135 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19138 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19146 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19151 rm -f conftest.$ac_objext
19152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19153 (eval $ac_compile) 2>&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } &&
19157 { ac_try='test -s conftest.$ac_objext'
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; }; then
19163 ac_cv_header_sys_wait_h=yes
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19168 ac_cv_header_sys_wait_h=no
19170 rm -f conftest.$ac_objext conftest.$ac_ext
19172 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19173 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19174 if test $ac_cv_header_sys_wait_h = yes; then
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE_SYS_WAIT_H 1
19191 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19195 echo "$as_me:$LINENO: checking for $ac_header" >&5
19196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19203 # Is the header compilable?
19204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19206 cat >conftest.$ac_ext <<_ACEOF
19207 #line $LINENO "configure"
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h. */
19213 $ac_includes_default
19214 #include <$ac_header>
19216 rm -f conftest.$ac_objext
19217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19218 (eval $ac_compile) 2>&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -s conftest.$ac_objext'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 ac_header_compiler=yes
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 ac_header_compiler=no
19235 rm -f conftest.$ac_objext conftest.$ac_ext
19236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19237 echo "${ECHO_T}$ac_header_compiler" >&6
19239 # Is the header present?
19240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19242 cat >conftest.$ac_ext <<_ACEOF
19243 #line $LINENO "configure"
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19249 #include <$ac_header>
19251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19254 grep -v '^ *+' conftest.er1 >conftest.err
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } >/dev/null; then
19259 if test -s conftest.err; then
19260 ac_cpp_err=$ac_c_preproc_warn_flag
19267 if test -z "$ac_cpp_err"; then
19268 ac_header_preproc=yes
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 ac_header_preproc=no
19275 rm -f conftest.err conftest.$ac_ext
19276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19277 echo "${ECHO_T}$ac_header_preproc" >&6
19279 # So? What about this header?
19280 case $ac_header_compiler:$ac_header_preproc in
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19288 ## ------------------------------------ ##
19289 ## Report this to bug-autoconf@gnu.org. ##
19290 ## ------------------------------------ ##
19293 sed "s/^/$as_me: WARNING: /" >&2
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19304 ## ------------------------------------ ##
19305 ## Report this to bug-autoconf@gnu.org. ##
19306 ## ------------------------------------ ##
19309 sed "s/^/$as_me: WARNING: /" >&2
19312 echo "$as_me:$LINENO: checking for $ac_header" >&5
19313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 eval "$as_ac_Header=$ac_header_preproc"
19319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19324 cat >>confdefs.h <<_ACEOF
19325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19336 for ac_header in malloc.h sys/mman.h sys/resource.h
19338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19340 echo "$as_me:$LINENO: checking for $ac_header" >&5
19341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19348 # Is the header compilable?
19349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19351 cat >conftest.$ac_ext <<_ACEOF
19352 #line $LINENO "configure"
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 $ac_includes_default
19359 #include <$ac_header>
19361 rm -f conftest.$ac_objext
19362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19363 (eval $ac_compile) 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -s conftest.$ac_objext'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 ac_header_compiler=yes
19375 echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19378 ac_header_compiler=no
19380 rm -f conftest.$ac_objext conftest.$ac_ext
19381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19382 echo "${ECHO_T}$ac_header_compiler" >&6
19384 # Is the header present?
19385 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19387 cat >conftest.$ac_ext <<_ACEOF
19388 #line $LINENO "configure"
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19394 #include <$ac_header>
19396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19399 grep -v '^ *+' conftest.er1 >conftest.err
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } >/dev/null; then
19404 if test -s conftest.err; then
19405 ac_cpp_err=$ac_c_preproc_warn_flag
19412 if test -z "$ac_cpp_err"; then
19413 ac_header_preproc=yes
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19418 ac_header_preproc=no
19420 rm -f conftest.err conftest.$ac_ext
19421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19422 echo "${ECHO_T}$ac_header_preproc" >&6
19424 # So? What about this header?
19425 case $ac_header_compiler:$ac_header_preproc in
19427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19433 ## ------------------------------------ ##
19434 ## Report this to bug-autoconf@gnu.org. ##
19435 ## ------------------------------------ ##
19438 sed "s/^/$as_me: WARNING: /" >&2
19441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19449 ## ------------------------------------ ##
19450 ## Report this to bug-autoconf@gnu.org. ##
19451 ## ------------------------------------ ##
19454 sed "s/^/$as_me: WARNING: /" >&2
19457 echo "$as_me:$LINENO: checking for $ac_header" >&5
19458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 eval "$as_ac_Header=$ac_header_preproc"
19464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19469 cat >>confdefs.h <<_ACEOF
19470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19480 for ac_header in dlfcn.h link.h
19482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19484 echo "$as_me:$LINENO: checking for $ac_header" >&5
19485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19492 # Is the header compilable?
19493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19495 cat >conftest.$ac_ext <<_ACEOF
19496 #line $LINENO "configure"
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 $ac_includes_default
19503 #include <$ac_header>
19505 rm -f conftest.$ac_objext
19506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19507 (eval $ac_compile) 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -s conftest.$ac_objext'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 ac_header_compiler=yes
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 ac_header_compiler=no
19524 rm -f conftest.$ac_objext conftest.$ac_ext
19525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19526 echo "${ECHO_T}$ac_header_compiler" >&6
19528 # Is the header present?
19529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19531 cat >conftest.$ac_ext <<_ACEOF
19532 #line $LINENO "configure"
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19538 #include <$ac_header>
19540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19543 grep -v '^ *+' conftest.er1 >conftest.err
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } >/dev/null; then
19548 if test -s conftest.err; then
19549 ac_cpp_err=$ac_c_preproc_warn_flag
19556 if test -z "$ac_cpp_err"; then
19557 ac_header_preproc=yes
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19562 ac_header_preproc=no
19564 rm -f conftest.err conftest.$ac_ext
19565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19566 echo "${ECHO_T}$ac_header_preproc" >&6
19568 # So? What about this header?
19569 case $ac_header_compiler:$ac_header_preproc in
19571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19577 ## ------------------------------------ ##
19578 ## Report this to bug-autoconf@gnu.org. ##
19579 ## ------------------------------------ ##
19582 sed "s/^/$as_me: WARNING: /" >&2
19585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19593 ## ------------------------------------ ##
19594 ## Report this to bug-autoconf@gnu.org. ##
19595 ## ------------------------------------ ##
19598 sed "s/^/$as_me: WARNING: /" >&2
19601 echo "$as_me:$LINENO: checking for $ac_header" >&5
19602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 eval "$as_ac_Header=$ac_header_preproc"
19608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19613 cat >>confdefs.h <<_ACEOF
19614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19623 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19624 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19625 if test "${ac_cv_c_const+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 cat >conftest.$ac_ext <<_ACEOF
19629 #line $LINENO "configure"
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19639 /* FIXME: Include the comments suggested by Paul. */
19640 #ifndef __cplusplus
19641 /* Ultrix mips cc rejects this. */
19642 typedef int charset[2];
19644 /* SunOS 4.1.1 cc rejects this. */
19645 char const *const *ccp;
19647 /* NEC SVR4.0.2 mips cc rejects this. */
19648 struct point {int x, y;};
19649 static struct point const zero = {0,0};
19650 /* AIX XL C 1.02.0.0 rejects this.
19651 It does not let you subtract one const X* pointer from another in
19652 an arm of an if-expression whose if-part is not a constant
19654 const char *g = "string";
19655 ccp = &g + (g ? g-g : 0);
19656 /* HPUX 7.0 cc rejects these. */
19659 ccp = (char const *const *) p;
19660 { /* SCO 3.2v4 cc rejects this. */
19662 char const *s = 0 ? (char *) 0 : (char const *) 0;
19666 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19667 int x[] = {25, 17};
19668 const int *foo = &x[0];
19671 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19672 typedef const int *iptr;
19676 { /* AIX XL C 1.02.0.0 rejects this saying
19677 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19678 struct s { int j; const int *ap[3]; };
19679 struct s *b; b->j = 5;
19681 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19682 const int foo = 10;
19690 rm -f conftest.$ac_objext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19692 (eval $ac_compile) 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -s conftest.$ac_objext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19709 rm -f conftest.$ac_objext conftest.$ac_ext
19711 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19712 echo "${ECHO_T}$ac_cv_c_const" >&6
19713 if test $ac_cv_c_const = no; then
19715 cat >>confdefs.h <<\_ACEOF
19721 echo "$as_me:$LINENO: checking for inline" >&5
19722 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19723 if test "${ac_cv_c_inline+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 for ac_kw in inline __inline__ __inline; do
19728 cat >conftest.$ac_ext <<_ACEOF
19729 #line $LINENO "configure"
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 #ifndef __cplusplus
19737 static $ac_kw foo_t static_foo () {return 0; }
19738 $ac_kw foo_t foo () {return 0; }
19742 rm -f conftest.$ac_objext
19743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19744 (eval $ac_compile) 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } &&
19748 { ac_try='test -s conftest.$ac_objext'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_cv_c_inline=$ac_kw; break
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19760 rm -f conftest.$ac_objext conftest.$ac_ext
19764 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19765 echo "${ECHO_T}$ac_cv_c_inline" >&6
19766 case $ac_cv_c_inline in
19769 cat >>confdefs.h <<\_ACEOF
19773 *) cat >>confdefs.h <<_ACEOF
19774 #define inline $ac_cv_c_inline
19780 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19781 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19782 if test "${ac_cv_c_bigendian+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 # See if sys/param.h defines the BYTE_ORDER macro.
19786 cat >conftest.$ac_ext <<_ACEOF
19787 #line $LINENO "configure"
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19793 #include <sys/types.h>
19794 #include <sys/param.h>
19799 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19800 bogus endian macros
19807 rm -f conftest.$ac_objext
19808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19809 (eval $ac_compile) 2>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -s conftest.$ac_objext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 # It does; now see whether it defined to BIG_ENDIAN or not.
19820 cat >conftest.$ac_ext <<_ACEOF
19821 #line $LINENO "configure"
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19827 #include <sys/types.h>
19828 #include <sys/param.h>
19833 #if BYTE_ORDER != BIG_ENDIAN
19841 rm -f conftest.$ac_objext
19842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19843 (eval $ac_compile) 2>&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -s conftest.$ac_objext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_cv_c_bigendian=yes
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19858 ac_cv_c_bigendian=no
19860 rm -f conftest.$ac_objext conftest.$ac_ext
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 # It does not; compile a test program.
19866 if test "$cross_compiling" = yes; then
19867 # try to guess the endianness by grepping values into an object file
19868 ac_cv_c_bigendian=unknown
19869 cat >conftest.$ac_ext <<_ACEOF
19870 #line $LINENO "configure"
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19876 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19877 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19878 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19879 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19880 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19881 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19885 _ascii (); _ebcdic ();
19890 rm -f conftest.$ac_objext
19891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19892 (eval $ac_compile) 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -s conftest.$ac_objext'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19903 ac_cv_c_bigendian=yes
19905 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19906 if test "$ac_cv_c_bigendian" = unknown; then
19907 ac_cv_c_bigendian=no
19909 # finding both strings is unlikely to happen, but who knows?
19910 ac_cv_c_bigendian=unknown
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19918 rm -f conftest.$ac_objext conftest.$ac_ext
19920 cat >conftest.$ac_ext <<_ACEOF
19921 #line $LINENO "configure"
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19930 /* Are we little or big endian? From Harbison&Steele. */
19934 char c[sizeof (long)];
19937 exit (u.c[sizeof (long) - 1] == 1);
19940 rm -f conftest$ac_exeext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19942 (eval $ac_link) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 ac_cv_c_bigendian=no
19953 echo "$as_me: program exited with status $ac_status" >&5
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 ( exit $ac_status )
19958 ac_cv_c_bigendian=yes
19960 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19963 rm -f conftest.$ac_objext conftest.$ac_ext
19965 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19966 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19967 case $ac_cv_c_bigendian in
19970 cat >>confdefs.h <<\_ACEOF
19976 cat >>confdefs.h <<\_ACEOF
19977 #define ENDIAN_LITTLE
19981 { { echo "$as_me:$LINENO: error: unknown endianness
19982 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19983 echo "$as_me: error: unknown endianness
19984 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19985 { (exit 1); exit 1; }; } ;;
19989 echo "$as_me:$LINENO: checking for pid_t" >&5
19990 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19991 if test "${ac_cv_type_pid_t+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 cat >conftest.$ac_ext <<_ACEOF
19995 #line $LINENO "configure"
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 $ac_includes_default
20007 if (sizeof (pid_t))
20013 rm -f conftest.$ac_objext
20014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20015 (eval $ac_compile) 2>&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } &&
20019 { ac_try='test -s conftest.$ac_objext'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 ac_cv_type_pid_t=yes
20027 echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_cv_type_pid_t=no
20032 rm -f conftest.$ac_objext conftest.$ac_ext
20034 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20035 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20036 if test $ac_cv_type_pid_t = yes; then
20040 cat >>confdefs.h <<_ACEOF
20046 echo "$as_me:$LINENO: checking for size_t" >&5
20047 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20048 if test "${ac_cv_type_size_t+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 cat >conftest.$ac_ext <<_ACEOF
20052 #line $LINENO "configure"
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 $ac_includes_default
20064 if (sizeof (size_t))
20070 rm -f conftest.$ac_objext
20071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20072 (eval $ac_compile) 2>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
20076 { ac_try='test -s conftest.$ac_objext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_cv_type_size_t=yes
20084 echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20087 ac_cv_type_size_t=no
20089 rm -f conftest.$ac_objext conftest.$ac_ext
20091 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20092 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20093 if test $ac_cv_type_size_t = yes; then
20097 cat >>confdefs.h <<_ACEOF
20098 #define size_t unsigned
20103 echo "$as_me:$LINENO: checking for int64_t" >&5
20104 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20105 if test "${ac_cv_type_int64_t+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20108 cat >conftest.$ac_ext <<_ACEOF
20109 #line $LINENO "configure"
20112 cat confdefs.h >>conftest.$ac_ext
20113 cat >>conftest.$ac_ext <<_ACEOF
20114 /* end confdefs.h. */
20115 $ac_includes_default
20121 if (sizeof (int64_t))
20127 rm -f conftest.$ac_objext
20128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20129 (eval $ac_compile) 2>&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } &&
20133 { ac_try='test -s conftest.$ac_objext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 ac_cv_type_int64_t=yes
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_cv_type_int64_t=no
20146 rm -f conftest.$ac_objext conftest.$ac_ext
20148 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20149 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20150 if test $ac_cv_type_int64_t = yes; then
20152 cat >>confdefs.h <<_ACEOF
20153 #define HAVE_INT64_T 1
20158 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20159 echo "$as_me: error: Type int64_t required but not found" >&2;}
20160 { (exit 1); exit 1; }; }
20163 echo "$as_me:$LINENO: checking for uint64_t" >&5
20164 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20165 if test "${ac_cv_type_uint64_t+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 cat >conftest.$ac_ext <<_ACEOF
20169 #line $LINENO "configure"
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20175 $ac_includes_default
20179 if ((uint64_t *) 0)
20181 if (sizeof (uint64_t))
20187 rm -f conftest.$ac_objext
20188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -s conftest.$ac_objext'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 ac_cv_type_uint64_t=yes
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 ac_cv_type_uint64_t=no
20206 rm -f conftest.$ac_objext conftest.$ac_ext
20208 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20209 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20210 if test $ac_cv_type_uint64_t = yes; then
20212 cat >>confdefs.h <<_ACEOF
20213 #define HAVE_UINT64_T 1
20218 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20219 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20220 { (exit 1); exit 1; }; }
20223 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20224 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20225 if test "${ac_cv_header_time+set}" = set; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 cat >conftest.$ac_ext <<_ACEOF
20229 #line $LINENO "configure"
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 #include <sys/types.h>
20236 #include <sys/time.h>
20242 if ((struct tm *) 0)
20248 rm -f conftest.$ac_objext
20249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20250 (eval $ac_compile) 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } &&
20254 { ac_try='test -s conftest.$ac_objext'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_header_time=yes
20262 echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20265 ac_cv_header_time=no
20267 rm -f conftest.$ac_objext conftest.$ac_ext
20269 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20270 echo "${ECHO_T}$ac_cv_header_time" >&6
20271 if test $ac_cv_header_time = yes; then
20273 cat >>confdefs.h <<\_ACEOF
20274 #define TIME_WITH_SYS_TIME 1
20279 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20280 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20281 if test "${ac_cv_struct_tm+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 cat >conftest.$ac_ext <<_ACEOF
20285 #line $LINENO "configure"
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h. */
20291 #include <sys/types.h>
20297 struct tm *tp; tp->tm_sec;
20302 rm -f conftest.$ac_objext
20303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20304 (eval $ac_compile) 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
20308 { ac_try='test -s conftest.$ac_objext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 ac_cv_struct_tm=time.h
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20319 ac_cv_struct_tm=sys/time.h
20321 rm -f conftest.$ac_objext conftest.$ac_ext
20323 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20324 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20325 if test $ac_cv_struct_tm = sys/time.h; then
20327 cat >>confdefs.h <<\_ACEOF
20328 #define TM_IN_SYS_TIME 1
20338 ac_cpp='$CPP $CPPFLAGS'
20339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20343 if test "$cross_compiling" = yes; then
20344 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20345 See \`config.log' for more details." >&5
20346 echo "$as_me: error: cannot run test program while cross compiling
20347 See \`config.log' for more details." >&2;}
20348 { (exit 1); exit 1; }; }
20350 cat >conftest.$ac_ext <<_ACEOF
20351 #line $LINENO "configure"
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20358 #include <stdlib.h>
20363 volatile double A, B;
20367 sprintf(Buffer, "%a", A);
20371 if (A != 0x1.999999999999ap-4)
20378 rm -f conftest$ac_exeext
20379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20380 (eval $ac_link) 2>&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20391 echo "$as_me: program exited with status $ac_status" >&5
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20395 ( exit $ac_status )
20398 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20401 ac_cpp='$CPP $CPPFLAGS'
20402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20406 if test "$ac_c_printf_a" = "yes"; then
20408 cat >>confdefs.h <<\_ACEOF
20409 #define HAVE_PRINTF_A 1
20415 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20416 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20417 if test "${ac_cv_cxx_namespaces+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 ac_cpp='$CXXCPP $CPPFLAGS'
20424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20428 cat >conftest.$ac_ext <<_ACEOF
20429 #line $LINENO "configure"
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20435 namespace Outer { namespace Inner { int i = 0; }}
20439 using namespace Outer::Inner; return i;
20444 rm -f conftest.$ac_objext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20446 (eval $ac_compile) 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } &&
20450 { ac_try='test -s conftest.$ac_objext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_cxx_namespaces=yes
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461 ac_cv_cxx_namespaces=no
20463 rm -f conftest.$ac_objext conftest.$ac_ext
20465 ac_cpp='$CPP $CPPFLAGS'
20466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20472 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20473 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20474 if test "$ac_cv_cxx_namespaces" = yes; then
20476 cat >>confdefs.h <<\_ACEOF
20477 #define HAVE_NAMESPACES
20482 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20483 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20484 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 ac_cpp='$CXXCPP $CPPFLAGS'
20492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20496 cat >conftest.$ac_ext <<_ACEOF
20497 #line $LINENO "configure"
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20503 #include <ext/hash_map>
20504 #ifdef HAVE_NAMESPACES
20505 using namespace std;
20510 hash_map<int, int> t;
20515 rm -f conftest.$ac_objext
20516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20517 (eval $ac_compile) 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
20521 { ac_try='test -s conftest.$ac_objext'
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; }; then
20527 ac_cv_cxx_have_std_ext_hash_map=yes
20529 echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20532 ac_cv_cxx_have_std_ext_hash_map=no
20534 rm -f conftest.$ac_objext conftest.$ac_ext
20536 ac_cpp='$CPP $CPPFLAGS'
20537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20542 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20543 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20544 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
20546 cat >>confdefs.h <<\_ACEOF
20547 #define HAVE_STD_EXT_HASH_MAP
20551 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20552 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20553 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 ac_cpp='$CXXCPP $CPPFLAGS'
20561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20565 cat >conftest.$ac_ext <<_ACEOF
20566 #line $LINENO "configure"
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20572 #include <ext/hash_map>
20573 #ifdef HAVE_NAMESPACES
20574 using namespace __gnu_cxx;
20579 hash_map<int,int> t;
20584 rm -f conftest.$ac_objext
20585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20586 (eval $ac_compile) 2>&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -s conftest.$ac_objext'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20596 ac_cv_cxx_have_gnu_ext_hash_map=yes
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20601 ac_cv_cxx_have_gnu_ext_hash_map=no
20603 rm -f conftest.$ac_objext conftest.$ac_ext
20605 ac_cpp='$CPP $CPPFLAGS'
20606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20611 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20612 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20613 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
20615 cat >>confdefs.h <<\_ACEOF
20616 #define HAVE_GNU_EXT_HASH_MAP
20620 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20621 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20622 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 ac_cpp='$CXXCPP $CPPFLAGS'
20630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20634 cat >conftest.$ac_ext <<_ACEOF
20635 #line $LINENO "configure"
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20641 #include <hash_map>
20645 hash_map<int,int> t;
20650 rm -f conftest.$ac_objext
20651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20652 (eval $ac_compile) 2>&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
20656 { ac_try='test -s conftest.$ac_objext'
20657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20658 (eval $ac_try) 2>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; }; then
20662 ac_cv_cxx_have_global_hash_map=yes
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ac_cv_cxx_have_global_hash_map=no
20669 rm -f conftest.$ac_objext conftest.$ac_ext
20671 ac_cpp='$CPP $CPPFLAGS'
20672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20677 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20678 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20679 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
20681 cat >>confdefs.h <<\_ACEOF
20682 #define HAVE_GLOBAL_HASH_MAP
20686 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20687 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20688 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 ac_cpp='$CXXCPP $CPPFLAGS'
20696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20700 cat >conftest.$ac_ext <<_ACEOF
20701 #line $LINENO "configure"
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 #include <ext/hash_set>
20708 #ifdef HAVE_NAMESPACES
20709 using namespace std;
20719 rm -f conftest.$ac_objext
20720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20721 (eval $ac_compile) 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } &&
20725 { ac_try='test -s conftest.$ac_objext'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20731 ac_cv_cxx_have_std_ext_hash_set=yes
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20736 ac_cv_cxx_have_std_ext_hash_set=no
20738 rm -f conftest.$ac_objext conftest.$ac_ext
20740 ac_cpp='$CPP $CPPFLAGS'
20741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20746 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20747 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20748 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20750 cat >>confdefs.h <<\_ACEOF
20751 #define HAVE_STD_EXT_HASH_SET
20755 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20756 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20757 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 ac_cpp='$CXXCPP $CPPFLAGS'
20765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20769 cat >conftest.$ac_ext <<_ACEOF
20770 #line $LINENO "configure"
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 #include <ext/hash_set>
20777 #ifdef HAVE_NAMESPACES
20778 using namespace __gnu_cxx;
20788 rm -f conftest.$ac_objext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20790 (eval $ac_compile) 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -s conftest.$ac_objext'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }; then
20800 ac_cv_cxx_have_gnu_ext_hash_set=yes
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20805 ac_cv_cxx_have_gnu_ext_hash_set=no
20807 rm -f conftest.$ac_objext conftest.$ac_ext
20809 ac_cpp='$CPP $CPPFLAGS'
20810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20815 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20816 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20817 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20819 cat >>confdefs.h <<\_ACEOF
20820 #define HAVE_GNU_EXT_HASH_SET
20824 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20825 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20826 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 ac_cpp='$CXXCPP $CPPFLAGS'
20834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20838 cat >conftest.$ac_ext <<_ACEOF
20839 #line $LINENO "configure"
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 #include <hash_set>
20849 hash_set<int> t; return 0;
20854 rm -f conftest.$ac_objext
20855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856 (eval $ac_compile) 2>&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
20860 { ac_try='test -s conftest.$ac_objext'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
20866 ac_cv_cxx_have_global_hash_set=yes
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 ac_cv_cxx_have_global_hash_set=no
20873 rm -f conftest.$ac_objext conftest.$ac_ext
20875 ac_cpp='$CPP $CPPFLAGS'
20876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20881 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20882 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20883 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
20885 cat >>confdefs.h <<\_ACEOF
20886 #define HAVE_GLOBAL_HASH_SET
20890 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20891 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20892 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20899 ac_cpp='$CXXCPP $CPPFLAGS'
20900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20904 cat >conftest.$ac_ext <<_ACEOF
20905 #line $LINENO "configure"
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 #include <ext/slist>
20912 #ifdef HAVE_NAMESPACES
20913 using namespace std;
20918 slist<int> s; return 0;
20923 rm -f conftest.$ac_objext
20924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20925 (eval $ac_compile) 2>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } &&
20929 { ac_try='test -s conftest.$ac_objext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 ac_cv_cxx_have_ext_slist=std
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_cv_cxx_have_ext_slist=no
20942 rm -f conftest.$ac_objext conftest.$ac_ext
20943 cat >conftest.$ac_ext <<_ACEOF
20944 #line $LINENO "configure"
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20950 #include <ext/slist>
20951 #ifdef HAVE_NAMESPACES
20952 using namespace __gnu_cxx;
20957 slist<int> s; return 0;
20962 rm -f conftest.$ac_objext
20963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20964 (eval $ac_compile) 2>&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } &&
20968 { ac_try='test -s conftest.$ac_objext'
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20974 ac_cv_cxx_have_ext_slist=gnu
20976 echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20979 ac_cv_cxx_have_ext_slist=no
20981 rm -f conftest.$ac_objext conftest.$ac_ext
20984 ac_cpp='$CPP $CPPFLAGS'
20985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20991 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20992 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20993 if test "$ac_cv_cxx_have_ext_slist" = std; then
20995 cat >>confdefs.h <<\_ACEOF
20996 #define HAVE_EXT_SLIST std
21000 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21002 cat >>confdefs.h <<\_ACEOF
21003 #define HAVE_EXT_SLIST gnu
21008 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21009 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21010 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 ac_cpp='$CXXCPP $CPPFLAGS'
21018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21022 cat >conftest.$ac_ext <<_ACEOF
21023 #line $LINENO "configure"
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 #include <iterator>
21030 #ifdef HAVE_NAMESPACES
21031 using namespace std;
21036 iterator<int,int,int> t; return 0;
21041 rm -f conftest.$ac_objext
21042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21043 (eval $ac_compile) 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -s conftest.$ac_objext'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_cv_cxx_have_std_iterator=yes
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 ac_cv_cxx_have_std_iterator=no
21060 rm -f conftest.$ac_objext conftest.$ac_ext
21062 ac_cpp='$CPP $CPPFLAGS'
21063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21069 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21070 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21071 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21073 cat >>confdefs.h <<\_ACEOF
21074 #define HAVE_STD_ITERATOR
21079 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21080 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21081 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21082 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 ac_cpp='$CXXCPP $CPPFLAGS'
21089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21093 cat >conftest.$ac_ext <<_ACEOF
21094 #line $LINENO "configure"
21097 cat confdefs.h >>conftest.$ac_ext
21098 cat >>conftest.$ac_ext <<_ACEOF
21099 /* end confdefs.h. */
21100 #include <iterator>
21101 #ifdef HAVE_NAMESPACES
21102 using namespace std;
21107 bidirectional_iterator<int,int> t; return 0;
21112 rm -f conftest.$ac_objext
21113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21114 (eval $ac_compile) 2>&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } &&
21118 { ac_try='test -s conftest.$ac_objext'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_cv_cxx_have_bi_iterator=yes
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21129 ac_cv_cxx_have_bi_iterator=no
21131 rm -f conftest.$ac_objext conftest.$ac_ext
21133 ac_cpp='$CPP $CPPFLAGS'
21134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21140 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21141 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21142 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21144 cat >>confdefs.h <<\_ACEOF
21145 #define HAVE_BI_ITERATOR
21150 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21151 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21152 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21159 ac_cpp='$CXXCPP $CPPFLAGS'
21160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21164 cat >conftest.$ac_ext <<_ACEOF
21165 #line $LINENO "configure"
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h. */
21171 #include <iterator>
21172 #ifdef HAVE_NAMESPACES
21173 using namespace std;
21178 forward_iterator<int,int> t; return 0;
21183 rm -f conftest.$ac_objext
21184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21185 (eval $ac_compile) 2>&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } &&
21189 { ac_try='test -s conftest.$ac_objext'
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_cv_cxx_have_fwd_iterator=yes
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 ac_cv_cxx_have_fwd_iterator=no
21202 rm -f conftest.$ac_objext conftest.$ac_ext
21204 ac_cpp='$CPP $CPPFLAGS'
21205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21211 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21212 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21213 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21215 cat >>confdefs.h <<\_ACEOF
21216 #define HAVE_FWD_ITERATOR
21222 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21223 # for constant arguments. Useless!
21224 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21225 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21226 if test "${ac_cv_working_alloca_h+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 cat >conftest.$ac_ext <<_ACEOF
21230 #line $LINENO "configure"
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 #include <alloca.h>
21240 char *p = (char *) alloca (2 * sizeof (int));
21245 rm -f conftest.$ac_objext conftest$ac_exeext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21247 (eval $ac_link) 2>&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } &&
21251 { ac_try='test -s conftest$ac_exeext'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 ac_cv_working_alloca_h=yes
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 ac_cv_working_alloca_h=no
21264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21266 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21267 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21268 if test $ac_cv_working_alloca_h = yes; then
21270 cat >>confdefs.h <<\_ACEOF
21271 #define HAVE_ALLOCA_H 1
21276 echo "$as_me:$LINENO: checking for alloca" >&5
21277 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21278 if test "${ac_cv_func_alloca_works+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21281 cat >conftest.$ac_ext <<_ACEOF
21282 #line $LINENO "configure"
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21289 # define alloca __builtin_alloca
21292 # include <malloc.h>
21293 # define alloca _alloca
21296 # include <alloca.h>
21301 # ifndef alloca /* predefined by HP cc +Olibcalls */
21312 char *p = (char *) alloca (1);
21317 rm -f conftest.$ac_objext conftest$ac_exeext
21318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21319 (eval $ac_link) 2>&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } &&
21323 { ac_try='test -s conftest$ac_exeext'
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; }; then
21329 ac_cv_func_alloca_works=yes
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_cv_func_alloca_works=no
21336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21338 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21339 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21341 if test $ac_cv_func_alloca_works = yes; then
21343 cat >>confdefs.h <<\_ACEOF
21344 #define HAVE_ALLOCA 1
21348 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21349 # that cause trouble. Some versions do not even contain alloca or
21350 # contain a buggy version. If you still want to use their alloca,
21351 # use ar to extract alloca.o from them instead of compiling alloca.c.
21353 ALLOCA=alloca.$ac_objext
21355 cat >>confdefs.h <<\_ACEOF
21360 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21361 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21362 if test "${ac_cv_os_cray+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21365 cat >conftest.$ac_ext <<_ACEOF
21366 #line $LINENO "configure"
21369 cat confdefs.h >>conftest.$ac_ext
21370 cat >>conftest.$ac_ext <<_ACEOF
21371 /* end confdefs.h. */
21372 #if defined(CRAY) && ! defined(CRAY2)
21379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21380 $EGREP "webecray" >/dev/null 2>&1; then
21388 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21389 echo "${ECHO_T}$ac_cv_os_cray" >&6
21390 if test $ac_cv_os_cray = yes; then
21391 for ac_func in _getb67 GETB67 getb67; do
21392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21393 echo "$as_me:$LINENO: checking for $ac_func" >&5
21394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21395 if eval "test \"\${$as_ac_var+set}\" = set"; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21398 cat >conftest.$ac_ext <<_ACEOF
21399 #line $LINENO "configure"
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21405 /* System header to define __stub macros and hopefully few prototypes,
21406 which can conflict with char $ac_func (); below.
21407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21408 <limits.h> exists even on freestanding compilers. */
21410 # include <limits.h>
21412 # include <assert.h>
21414 /* Override any gcc2 internal prototype to avoid an error. */
21419 /* We use char because int might match the return type of a gcc2
21420 builtin and then its argument prototype would still apply. */
21422 /* The GNU C library defines this for functions which it implements
21423 to always fail with ENOSYS. Some functions are actually named
21424 something starting with __ and the normal name is an alias. */
21425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21428 char (*f) () = $ac_func;
21437 return f != $ac_func;
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444 (eval $ac_link) 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
21448 { ac_try='test -s conftest$ac_exeext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 eval "$as_ac_var=yes"
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21459 eval "$as_ac_var=no"
21461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21465 if test `eval echo '${'$as_ac_var'}'` = yes; then
21467 cat >>confdefs.h <<_ACEOF
21468 #define CRAY_STACKSEG_END $ac_func
21477 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21478 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21479 if test "${ac_cv_c_stack_direction+set}" = set; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 if test "$cross_compiling" = yes; then
21483 ac_cv_c_stack_direction=0
21485 cat >conftest.$ac_ext <<_ACEOF
21486 #line $LINENO "configure"
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21493 find_stack_direction ()
21495 static char *addr = 0;
21500 return find_stack_direction ();
21503 return (&dummy > addr) ? 1 : -1;
21509 exit (find_stack_direction () < 0);
21512 rm -f conftest$ac_exeext
21513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21514 (eval $ac_link) 2>&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 ac_cv_c_stack_direction=1
21525 echo "$as_me: program exited with status $ac_status" >&5
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ( exit $ac_status )
21530 ac_cv_c_stack_direction=-1
21532 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21535 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21536 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21538 cat >>confdefs.h <<_ACEOF
21539 #define STACK_DIRECTION $ac_cv_c_stack_direction
21545 if test $ac_cv_c_compiler_gnu = yes; then
21546 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21547 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21548 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21549 echo $ECHO_N "(cached) $ECHO_C" >&6
21551 ac_pattern="Autoconf.*'x'"
21552 cat >conftest.$ac_ext <<_ACEOF
21553 #line $LINENO "configure"
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21563 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21564 ac_cv_prog_gcc_traditional=yes
21566 ac_cv_prog_gcc_traditional=no
21571 if test $ac_cv_prog_gcc_traditional = no; then
21572 cat >conftest.$ac_ext <<_ACEOF
21573 #line $LINENO "configure"
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579 #include <termio.h>
21582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21583 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21584 ac_cv_prog_gcc_traditional=yes
21590 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21591 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21592 if test $ac_cv_prog_gcc_traditional = yes; then
21593 CC="$CC -traditional"
21597 echo "$as_me:$LINENO: checking for working memcmp" >&5
21598 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21599 if test "${ac_cv_func_memcmp_working+set}" = set; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 if test "$cross_compiling" = yes; then
21603 ac_cv_func_memcmp_working=no
21605 cat >conftest.$ac_ext <<_ACEOF
21606 #line $LINENO "configure"
21609 cat confdefs.h >>conftest.$ac_ext
21610 cat >>conftest.$ac_ext <<_ACEOF
21611 /* end confdefs.h. */
21617 /* Some versions of memcmp are not 8-bit clean. */
21618 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21619 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21622 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21623 or more and with at least one buffer not starting on a 4-byte boundary.
21624 William Lewis provided this test program. */
21629 for (i = 0; i < 4; i++)
21633 strcpy (a, "--------01111111");
21634 strcpy (b, "--------10000000");
21635 if (memcmp (a, b, 16) >= 0)
21645 rm -f conftest$ac_exeext
21646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647 (eval $ac_link) 2>&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }; then
21656 ac_cv_func_memcmp_working=yes
21658 echo "$as_me: program exited with status $ac_status" >&5
21659 echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21662 ( exit $ac_status )
21663 ac_cv_func_memcmp_working=no
21665 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21668 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21669 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21670 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21674 for ac_header in stdlib.h unistd.h
21676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21678 echo "$as_me:$LINENO: checking for $ac_header" >&5
21679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21686 # Is the header compilable?
21687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21689 cat >conftest.$ac_ext <<_ACEOF
21690 #line $LINENO "configure"
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 $ac_includes_default
21697 #include <$ac_header>
21699 rm -f conftest.$ac_objext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701 (eval $ac_compile) 2>&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } &&
21705 { ac_try='test -s conftest.$ac_objext'
21706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707 (eval $ac_try) 2>&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; }; then
21711 ac_header_compiler=yes
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21716 ac_header_compiler=no
21718 rm -f conftest.$ac_objext conftest.$ac_ext
21719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21720 echo "${ECHO_T}$ac_header_compiler" >&6
21722 # Is the header present?
21723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21725 cat >conftest.$ac_ext <<_ACEOF
21726 #line $LINENO "configure"
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 #include <$ac_header>
21734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21737 grep -v '^ *+' conftest.er1 >conftest.err
21739 cat conftest.err >&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } >/dev/null; then
21742 if test -s conftest.err; then
21743 ac_cpp_err=$ac_c_preproc_warn_flag
21750 if test -z "$ac_cpp_err"; then
21751 ac_header_preproc=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_header_preproc=no
21758 rm -f conftest.err conftest.$ac_ext
21759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21760 echo "${ECHO_T}$ac_header_preproc" >&6
21762 # So? What about this header?
21763 case $ac_header_compiler:$ac_header_preproc in
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21771 ## ------------------------------------ ##
21772 ## Report this to bug-autoconf@gnu.org. ##
21773 ## ------------------------------------ ##
21776 sed "s/^/$as_me: WARNING: /" >&2
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21787 ## ------------------------------------ ##
21788 ## Report this to bug-autoconf@gnu.org. ##
21789 ## ------------------------------------ ##
21792 sed "s/^/$as_me: WARNING: /" >&2
21795 echo "$as_me:$LINENO: checking for $ac_header" >&5
21796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21798 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 eval "$as_ac_Header=$ac_header_preproc"
21802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21807 cat >>confdefs.h <<_ACEOF
21808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21816 for ac_func in getpagesize
21818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21819 echo "$as_me:$LINENO: checking for $ac_func" >&5
21820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21821 if eval "test \"\${$as_ac_var+set}\" = set"; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21824 cat >conftest.$ac_ext <<_ACEOF
21825 #line $LINENO "configure"
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 /* System header to define __stub macros and hopefully few prototypes,
21832 which can conflict with char $ac_func (); below.
21833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21834 <limits.h> exists even on freestanding compilers. */
21836 # include <limits.h>
21838 # include <assert.h>
21840 /* Override any gcc2 internal prototype to avoid an error. */
21845 /* We use char because int might match the return type of a gcc2
21846 builtin and then its argument prototype would still apply. */
21848 /* The GNU C library defines this for functions which it implements
21849 to always fail with ENOSYS. Some functions are actually named
21850 something starting with __ and the normal name is an alias. */
21851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21854 char (*f) () = $ac_func;
21863 return f != $ac_func;
21868 rm -f conftest.$ac_objext conftest$ac_exeext
21869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21870 (eval $ac_link) 2>&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } &&
21874 { ac_try='test -s conftest$ac_exeext'
21875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; }; then
21880 eval "$as_ac_var=yes"
21882 echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21885 eval "$as_ac_var=no"
21887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21891 if test `eval echo '${'$as_ac_var'}'` = yes; then
21892 cat >>confdefs.h <<_ACEOF
21893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21899 echo "$as_me:$LINENO: checking for working mmap" >&5
21900 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21901 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21902 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 if test "$cross_compiling" = yes; then
21905 ac_cv_func_mmap_fixed_mapped=no
21907 cat >conftest.$ac_ext <<_ACEOF
21908 #line $LINENO "configure"
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21914 $ac_includes_default
21915 /* malloc might have been renamed as rpl_malloc. */
21918 /* Thanks to Mike Haertel and Jim Avera for this test.
21919 Here is a matrix of mmap possibilities:
21920 mmap private not fixed
21921 mmap private fixed at somewhere currently unmapped
21922 mmap private fixed at somewhere already mapped
21923 mmap shared not fixed
21924 mmap shared fixed at somewhere currently unmapped
21925 mmap shared fixed at somewhere already mapped
21926 For private mappings, we should verify that changes cannot be read()
21927 back from the file, nor mmap's back from the file at a different
21928 address. (There have been systems where private was not correctly
21929 implemented like the infamous i386 svr4.0, and systems where the
21930 VM page cache was not coherent with the file system buffer cache
21931 like early versions of FreeBSD and possibly contemporary NetBSD.)
21932 For shared mappings, we should conversely verify that changes get
21933 propagated back to all the places they're supposed to be.
21935 Grep wants private fixed already mapped.
21936 The main things grep needs to know about mmap are:
21937 * does it exist and is it safe to write into the mmap'd area
21938 * how to use it (BSD variants) */
21941 #include <sys/mman.h>
21943 #if !STDC_HEADERS && !HAVE_STDLIB_H
21947 /* This mess was copied from the GNU getpagesize.h. */
21948 #if !HAVE_GETPAGESIZE
21949 /* Assume that all systems that can run configure have sys/param.h. */
21950 # if !HAVE_SYS_PARAM_H
21951 # define HAVE_SYS_PARAM_H 1
21954 # ifdef _SC_PAGESIZE
21955 # define getpagesize() sysconf(_SC_PAGESIZE)
21956 # else /* no _SC_PAGESIZE */
21957 # if HAVE_SYS_PARAM_H
21958 # include <sys/param.h>
21959 # ifdef EXEC_PAGESIZE
21960 # define getpagesize() EXEC_PAGESIZE
21961 # else /* no EXEC_PAGESIZE */
21963 # define getpagesize() NBPG * CLSIZE
21966 # endif /* no CLSIZE */
21967 # else /* no NBPG */
21969 # define getpagesize() NBPC
21970 # else /* no NBPC */
21972 # define getpagesize() PAGESIZE
21973 # endif /* PAGESIZE */
21974 # endif /* no NBPC */
21975 # endif /* no NBPG */
21976 # endif /* no EXEC_PAGESIZE */
21977 # else /* no HAVE_SYS_PARAM_H */
21978 # define getpagesize() 8192 /* punt totally */
21979 # endif /* no HAVE_SYS_PARAM_H */
21980 # endif /* no _SC_PAGESIZE */
21982 #endif /* no HAVE_GETPAGESIZE */
21987 char *data, *data2, *data3;
21991 pagesize = getpagesize ();
21993 /* First, make a file with some known garbage in it. */
21994 data = (char *) malloc (pagesize);
21997 for (i = 0; i < pagesize; ++i)
21998 *(data + i) = rand ();
22000 fd = creat ("conftest.mmap", 0600);
22003 if (write (fd, data, pagesize) != pagesize)
22007 /* Next, try to mmap the file at a fixed address which already has
22008 something else allocated at it. If we can, also make sure that
22009 we see the same garbage. */
22010 fd = open ("conftest.mmap", O_RDWR);
22013 data2 = (char *) malloc (2 * pagesize);
22016 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22017 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22018 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22020 for (i = 0; i < pagesize; ++i)
22021 if (*(data + i) != *(data2 + i))
22024 /* Finally, make sure that changes to the mapped area do not
22025 percolate back to the file as seen by read(). (This is a bug on
22026 some variants of i386 svr4.0.) */
22027 for (i = 0; i < pagesize; ++i)
22028 *(data2 + i) = *(data2 + i) + 1;
22029 data3 = (char *) malloc (pagesize);
22032 if (read (fd, data3, pagesize) != pagesize)
22034 for (i = 0; i < pagesize; ++i)
22035 if (*(data + i) != *(data3 + i))
22041 rm -f conftest$ac_exeext
22042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22043 (eval $ac_link) 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; }; then
22052 ac_cv_func_mmap_fixed_mapped=yes
22054 echo "$as_me: program exited with status $ac_status" >&5
22055 echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22058 ( exit $ac_status )
22059 ac_cv_func_mmap_fixed_mapped=no
22061 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22064 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22065 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22066 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22068 cat >>confdefs.h <<\_ACEOF
22069 #define HAVE_MMAP 1
22073 rm -f conftest.mmap
22075 echo "$as_me:$LINENO: checking for mmap of files" >&5
22076 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22077 if test "${ac_cv_func_mmap_file+set}" = set; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 ac_cpp='$CPP $CPPFLAGS'
22084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22088 if test "$cross_compiling" = yes; then
22089 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22090 See \`config.log' for more details." >&5
22091 echo "$as_me: error: cannot run test program while cross compiling
22092 See \`config.log' for more details." >&2;}
22093 { (exit 1); exit 1; }; }
22095 cat >conftest.$ac_ext <<_ACEOF
22096 #line $LINENO "configure"
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22103 #ifdef HAVE_SYS_TYPES_H
22104 #include <sys/types.h>
22107 #ifdef HAVE_SYS_MMAN_H
22108 #include <sys/mman.h>
22111 #ifdef HAVE_FCNTL_H
22117 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22119 rm -f conftest$ac_exeext
22120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22121 (eval $ac_link) 2>&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 ac_cv_func_mmap_file=yes
22132 echo "$as_me: program exited with status $ac_status" >&5
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ( exit $ac_status )
22137 ac_cv_func_mmap_file=no
22139 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22142 ac_cpp='$CPP $CPPFLAGS'
22143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22149 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22150 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22151 if test "$ac_cv_func_mmap_file" = yes; then
22153 cat >>confdefs.h <<\_ACEOF
22154 #define HAVE_MMAP_FILE
22161 if test ${ac_cv_func_mmap_file} = "no"
22163 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22164 echo "$as_me: error: mmap() of files required but not found" >&2;}
22165 { (exit 1); exit 1; }; }
22167 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22168 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22169 if test "${ac_cv_header_mmap_anon+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 ac_cpp='$CPP $CPPFLAGS'
22176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22180 cat >conftest.$ac_ext <<_ACEOF
22181 #line $LINENO "configure"
22184 cat confdefs.h >>conftest.$ac_ext
22185 cat >>conftest.$ac_ext <<_ACEOF
22186 /* end confdefs.h. */
22187 #include <sys/mman.h>
22188 #include <unistd.h>
22193 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22198 rm -f conftest.$ac_objext
22199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22200 (eval $ac_compile) 2>&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } &&
22204 { ac_try='test -s conftest.$ac_objext'
22205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22206 (eval $ac_try) 2>&5
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); }; }; then
22210 ac_cv_header_mmap_anon=yes
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 ac_cv_header_mmap_anon=no
22217 rm -f conftest.$ac_objext conftest.$ac_ext
22219 ac_cpp='$CPP $CPPFLAGS'
22220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22226 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22227 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22228 if test "$ac_cv_header_mmap_anon" = yes; then
22230 cat >>confdefs.h <<\_ACEOF
22231 #define HAVE_MMAP_ANONYMOUS
22236 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22237 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22238 if test "${ac_cv_type_signal+set}" = set; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 cat >conftest.$ac_ext <<_ACEOF
22242 #line $LINENO "configure"
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 #include <sys/types.h>
22249 #include <signal.h>
22254 extern "C" void (*signal (int, void (*)(int)))(int);
22256 void (*signal ()) ();
22267 rm -f conftest.$ac_objext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22269 (eval $ac_compile) 2>&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } &&
22273 { ac_try='test -s conftest.$ac_objext'
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 ac_cv_type_signal=void
22281 echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22284 ac_cv_type_signal=int
22286 rm -f conftest.$ac_objext conftest.$ac_ext
22288 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22289 echo "${ECHO_T}$ac_cv_type_signal" >&6
22291 cat >>confdefs.h <<_ACEOF
22292 #define RETSIGTYPE $ac_cv_type_signal
22307 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22310 echo "$as_me:$LINENO: checking for $ac_func" >&5
22311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22312 if eval "test \"\${$as_ac_var+set}\" = set"; then
22313 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 cat >conftest.$ac_ext <<_ACEOF
22316 #line $LINENO "configure"
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22322 /* System header to define __stub macros and hopefully few prototypes,
22323 which can conflict with char $ac_func (); below.
22324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22325 <limits.h> exists even on freestanding compilers. */
22327 # include <limits.h>
22329 # include <assert.h>
22331 /* Override any gcc2 internal prototype to avoid an error. */
22336 /* We use char because int might match the return type of a gcc2
22337 builtin and then its argument prototype would still apply. */
22339 /* The GNU C library defines this for functions which it implements
22340 to always fail with ENOSYS. Some functions are actually named
22341 something starting with __ and the normal name is an alias. */
22342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22345 char (*f) () = $ac_func;
22354 return f != $ac_func;
22359 rm -f conftest.$ac_objext conftest$ac_exeext
22360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22361 (eval $ac_link) 2>&5
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); } &&
22365 { ac_try='test -s conftest$ac_exeext'
22366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367 (eval $ac_try) 2>&5
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; }; then
22371 eval "$as_ac_var=yes"
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 eval "$as_ac_var=no"
22378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22382 if test `eval echo '${'$as_ac_var'}'` = yes; then
22383 cat >>confdefs.h <<_ACEOF
22384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22392 echo "$as_me:$LINENO: checking for mmap" >&5
22393 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22394 if test "${ac_cv_func_mmap+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22397 cat >conftest.$ac_ext <<_ACEOF
22398 #line $LINENO "configure"
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22404 /* System header to define __stub macros and hopefully few prototypes,
22405 which can conflict with char mmap (); below.
22406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22407 <limits.h> exists even on freestanding compilers. */
22409 # include <limits.h>
22411 # include <assert.h>
22413 /* Override any gcc2 internal prototype to avoid an error. */
22418 /* We use char because int might match the return type of a gcc2
22419 builtin and then its argument prototype would still apply. */
22421 /* The GNU C library defines this for functions which it implements
22422 to always fail with ENOSYS. Some functions are actually named
22423 something starting with __ and the normal name is an alias. */
22424 #if defined (__stub_mmap) || defined (__stub___mmap)
22427 char (*f) () = mmap;
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22443 (eval $ac_link) 2>&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } &&
22447 { ac_try='test -s conftest$ac_exeext'
22448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449 (eval $ac_try) 2>&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; }; then
22453 ac_cv_func_mmap=yes
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22462 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22463 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22464 if test $ac_cv_func_mmap = yes; then
22467 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22468 echo "$as_me: error: Function mmap() required but not found" >&2;}
22469 { (exit 1); exit 1; }; }
22472 echo "$as_me:$LINENO: checking for mprotect" >&5
22473 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22474 if test "${ac_cv_func_mprotect+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22477 cat >conftest.$ac_ext <<_ACEOF
22478 #line $LINENO "configure"
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 /* System header to define __stub macros and hopefully few prototypes,
22485 which can conflict with char mprotect (); below.
22486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22487 <limits.h> exists even on freestanding compilers. */
22489 # include <limits.h>
22491 # include <assert.h>
22493 /* Override any gcc2 internal prototype to avoid an error. */
22498 /* We use char because int might match the return type of a gcc2
22499 builtin and then its argument prototype would still apply. */
22501 /* The GNU C library defines this for functions which it implements
22502 to always fail with ENOSYS. Some functions are actually named
22503 something starting with __ and the normal name is an alias. */
22504 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22507 char (*f) () = mprotect;
22516 return f != mprotect;
22521 rm -f conftest.$ac_objext conftest$ac_exeext
22522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22523 (eval $ac_link) 2>&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } &&
22527 { ac_try='test -s conftest$ac_exeext'
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; }; then
22533 ac_cv_func_mprotect=yes
22535 echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22538 ac_cv_func_mprotect=no
22540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22542 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22543 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22544 if test $ac_cv_func_mprotect = yes; then
22547 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22548 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22549 { (exit 1); exit 1; }; }
22557 ac_cpp='$CPP $CPPFLAGS'
22558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22562 oldcflags="$CFLAGS"
22563 CFLAGS="$CFLAGS -Wl,-R."
22564 cat >conftest.$ac_ext <<_ACEOF
22565 int main() { return 0; }
22567 rm -f conftest.$ac_objext conftest$ac_exeext
22568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22569 (eval $ac_link) 2>&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } &&
22573 { ac_try='test -s conftest$ac_exeext'
22574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575 (eval $ac_try) 2>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; }; then
22579 ac_cv_link_use_r=yes
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22584 ac_cv_link_use_r=no
22586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22587 CFLAGS="$oldcflags"
22589 ac_cpp='$CPP $CPPFLAGS'
22590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22594 if test "$ac_cv_link_use_r" = yes
22597 cat >>confdefs.h <<\_ACEOF
22598 #define HAVE_LINK_R 1
22605 # Check whether --enable-purify or --disable-purify was given.
22606 if test "${enable_purify+set}" = set; then
22607 enableval="$enable_purify"
22612 if test ${enableval} = "no"
22617 ENABLE_PURIFY=ENABLE_PURIFY=1
22621 # Check whether --enable-optimized or --disable-optimized was given.
22622 if test "${enable_optimized+set}" = set; then
22623 enableval="$enable_optimized"
22628 if test ${enableval} = "no"
22633 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22637 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22638 if test "${enable_spec2000+set}" = set; then
22639 enableval="$enable_spec2000"
22644 if test ${enableval} = "no"
22646 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22648 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22650 USE_SPEC=USE_SPEC=1
22658 if test ${enableval} = ""
22660 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22663 SPEC_ROOT=${enableval}
22666 USE_SPEC=USE_SPEC=1
22670 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22671 if test "${enable_precompiled_bytecode+set}" = set; then
22672 enableval="$enable_precompiled_bytecode"
22677 if test ${enableval} = "no"
22682 UPB=USE_PRECOMPILED_BYTECODE=1
22687 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22688 if test "${enable_llc_diffs+set}" = set; then
22689 enableval="$enable_llc_diffs"
22694 if test ${enableval} = "no"
22696 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22703 # Check whether --enable-jit or --disable-jit was given.
22704 if test "${enable_jit+set}" = set; then
22705 enableval="$enable_jit"
22711 if test ${enableval} = "no"
22718 JIT=TARGET_HAS_JIT=1
22722 JIT=TARGET_HAS_JIT=1
22734 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22735 if test "${with_llvmgccdir+set}" = set; then
22736 withval="$with_llvmgccdir"
22737 LLVMGCCDIR=$withval
22741 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22742 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22744 if test -d "$LLVMGCCDIR"
22746 if test -x "$LLVMGCCDIR/bin/gcc"
22748 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22752 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22753 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22754 if test "$LLVM_GCC_CHECK" = "no"
22759 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22760 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22762 if test -x "$LLVM_GCC_CHECK"
22764 cp /dev/null conftest.c
22765 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22772 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22773 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22774 if test "$LLVM_GCC_SANE" = "no"
22780 # Check whether --with-bcrepos or --without-bcrepos was given.
22781 if test "${with_bcrepos+set}" = set; then
22782 withval="$with_bcrepos"
22786 BCR=/home/vadve/lattner/LLVMPrograms
22791 # Check whether --with-papi or --without-papi was given.
22792 if test "${with_papi+set}" = set; then
22793 withval="$with_papi"
22797 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22802 # Check whether --with-purify or --without-purify was given.
22803 if test "${with_purify+set}" = set; then
22804 withval="$with_purify"
22810 ac_config_files="$ac_config_files Makefile.config"
22811 cat >confcache <<\_ACEOF
22812 # This file is a shell script that caches the results of configure
22813 # tests run on this system so they can be shared between configure
22814 # scripts and configure runs, see configure's option --config-cache.
22815 # It is not useful on other systems. If it contains results you don't
22816 # want to keep, you may remove or edit it.
22818 # config.status only pays attention to the cache file if you give it
22819 # the --recheck option to rerun configure.
22821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22823 # following values.
22827 # The following way of writing the cache mishandles newlines in values,
22828 # but we know of no workaround that is simple, portable, and efficient.
22829 # So, don't put newlines in cache variables' values.
22830 # Ultrix sh set writes to stderr and can't be redirected directly,
22831 # and sets the high bit in the cache file unless we assign to the vars.
22834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22836 # `set' does not quote correctly, so add quotes (double-quote
22837 # substitution turns \\\\ into \\, and sed turns \\ into \).
22840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22843 # `set' quotes correctly as required by POSIX, so do not add quotes.
22845 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22854 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22856 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22857 if test -w $cache_file; then
22858 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22859 cat confcache >$cache_file
22861 echo "not updating unwritable cache $cache_file"
22866 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22867 # Let make expand exec_prefix.
22868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22870 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22871 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22872 # trailing colons and then remove the whole line if VPATH becomes empty
22873 # (actually we leave an empty line to preserve line numbers).
22874 if test "x$srcdir" = x.; then
22875 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22876 s/:*\$(srcdir):*/:/;
22877 s/:*\${srcdir}:*/:/;
22879 s/^\([^=]*=[ ]*\):*/\1/;
22885 DEFS=-DHAVE_CONFIG_H
22889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22890 # 1. Remove the extension, and $U if already installed.
22891 ac_i=`echo "$ac_i" |
22892 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22894 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22895 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22897 LIBOBJS=$ac_libobjs
22899 LTLIBOBJS=$ac_ltlibobjs
22903 : ${CONFIG_STATUS=./config.status}
22904 ac_clean_files_save=$ac_clean_files
22905 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22906 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22907 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22908 cat >$CONFIG_STATUS <<_ACEOF
22910 # Generated by $as_me.
22911 # Run this file to recreate the current configuration.
22912 # Compiler output produced by configure, useful for debugging
22913 # configure, is in config.log if it exists.
22916 ac_cs_recheck=false
22918 SHELL=\${CONFIG_SHELL-$SHELL}
22921 cat >>$CONFIG_STATUS <<\_ACEOF
22922 ## --------------------- ##
22923 ## M4sh Initialization. ##
22924 ## --------------------- ##
22926 # Be Bourne compatible
22927 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22930 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22931 # is contrary to our usage. Disable this feature.
22932 alias -g '${1+"$@"}'='"$@"'
22933 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22937 # Support unset when possible.
22938 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22945 # Work around bugs in pre-3.0 UWIN ksh.
22946 $as_unset ENV MAIL MAILPATH
22953 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22954 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22955 LC_TELEPHONE LC_TIME
22957 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22958 eval $as_var=C; export $as_var
22964 # Required to use basename.
22965 if expr a : '\(a\)' >/dev/null 2>&1; then
22971 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22972 as_basename=basename
22978 # Name of the executable.
22979 as_me=`$as_basename "$0" ||
22980 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22981 X"$0" : 'X\(//\)$' \| \
22982 X"$0" : 'X\(/\)$' \| \
22983 . : '\(.\)' 2>/dev/null ||
22985 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22986 /^X\/\(\/\/\)$/{ s//\1/; q; }
22987 /^X\/\(\/\).*/{ s//\1/; q; }
22991 # PATH needs CR, and LINENO needs CR and PATH.
22992 # Avoid depending upon Character Ranges.
22993 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22994 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22995 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22996 as_cr_digits='0123456789'
22997 as_cr_alnum=$as_cr_Letters$as_cr_digits
22999 # The user is always right.
23000 if test "${PATH_SEPARATOR+set}" != set; then
23001 echo "#! /bin/sh" >conf$$.sh
23002 echo "exit 0" >>conf$$.sh
23004 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23013 as_lineno_1=$LINENO
23014 as_lineno_2=$LINENO
23015 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23016 test "x$as_lineno_1" != "x$as_lineno_2" &&
23017 test "x$as_lineno_3" = "x$as_lineno_2" || {
23018 # Find who we are. Look in the path if we contain no path at all
23021 *[\\/]* ) as_myself=$0 ;;
23022 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23023 for as_dir in $PATH
23026 test -z "$as_dir" && as_dir=.
23027 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23032 # We did not find ourselves, most probably we were run as `sh COMMAND'
23033 # in which case we are not to be found in the path.
23034 if test "x$as_myself" = x; then
23037 if test ! -f "$as_myself"; then
23038 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23039 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23040 { (exit 1); exit 1; }; }
23042 case $CONFIG_SHELL in
23044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23045 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23048 test -z "$as_dir" && as_dir=.
23049 for as_base in sh bash ksh sh5; do
23052 if ("$as_dir/$as_base" -c '
23053 as_lineno_1=$LINENO
23054 as_lineno_2=$LINENO
23055 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23056 test "x$as_lineno_1" != "x$as_lineno_2" &&
23057 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23058 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23059 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23060 CONFIG_SHELL=$as_dir/$as_base
23061 export CONFIG_SHELL
23062 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23070 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23071 # uniformly replaced by the line number. The first 'sed' inserts a
23072 # line-number line before each line; the second 'sed' does the real
23073 # work. The second script uses 'N' to pair each line-number line
23074 # with the numbered line, and appends trailing '-' during
23075 # substitution so that $LINENO is not a special case at line end.
23076 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23077 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23078 sed '=' <$as_myself |
23083 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23086 s,^['$as_cr_digits']*\n,,
23087 ' >$as_me.lineno &&
23088 chmod +x $as_me.lineno ||
23089 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23090 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23091 { (exit 1); exit 1; }; }
23093 # Don't try to exec as it changes $[0], causing all sort of problems
23094 # (the dirname of $[0] is not the place where we might find the
23095 # original and so on. Autoconf is especially sensible to this).
23097 # Exit status is that of the last command.
23102 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23103 *c*,-n*) ECHO_N= ECHO_C='
23105 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23106 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23109 if expr a : '\(a\)' >/dev/null 2>&1; then
23115 rm -f conf$$ conf$$.exe conf$$.file
23117 if ln -s conf$$.file conf$$ 2>/dev/null; then
23118 # We could just check for DJGPP; but this test a) works b) is more generic
23119 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23120 if test -f conf$$.exe; then
23121 # Don't use ln at all; we don't have any links
23126 elif ln conf$$.file conf$$ 2>/dev/null; then
23131 rm -f conf$$ conf$$.exe conf$$.file
23133 if mkdir -p . 2>/dev/null; then
23139 as_executable_p="test -f"
23141 # Sed expression to map a string onto a valid CPP name.
23142 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23144 # Sed expression to map a string onto a valid variable name.
23145 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23149 # We need space, tab and new line, in precisely that order.
23159 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23160 # report actual input values of CONFIG_FILES etc. instead of their
23161 # values after options handling. Logging --version etc. is OK.
23165 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23166 ## Running $as_me. ##
23171 This file was extended by [LLVM] $as_me [1.0], which was
23172 generated by GNU Autoconf 2.57. Invocation command line was
23174 CONFIG_FILES = $CONFIG_FILES
23175 CONFIG_HEADERS = $CONFIG_HEADERS
23176 CONFIG_LINKS = $CONFIG_LINKS
23177 CONFIG_COMMANDS = $CONFIG_COMMANDS
23181 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23185 # Files that config.status was made for.
23186 if test -n "$ac_config_files"; then
23187 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23190 if test -n "$ac_config_headers"; then
23191 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23194 if test -n "$ac_config_links"; then
23195 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23198 if test -n "$ac_config_commands"; then
23199 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23202 cat >>$CONFIG_STATUS <<\_ACEOF
23205 \`$as_me' instantiates files from templates according to the
23206 current configuration.
23208 Usage: $0 [OPTIONS] [FILE]...
23210 -h, --help print this help, then exit
23211 -V, --version print version number, then exit
23212 -q, --quiet do not print progress messages
23213 -d, --debug don't remove temporary files
23214 --recheck update $as_me by reconfiguring in the same conditions
23215 --file=FILE[:TEMPLATE]
23216 instantiate the configuration file FILE
23217 --header=FILE[:TEMPLATE]
23218 instantiate the configuration header FILE
23220 Configuration files:
23223 Configuration headers:
23226 Configuration commands:
23229 Report bugs to <bug-autoconf@gnu.org>."
23232 cat >>$CONFIG_STATUS <<_ACEOF
23234 [LLVM] config.status [1.0]
23235 configured by $0, generated by GNU Autoconf 2.57,
23236 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23238 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23239 Free Software Foundation, Inc.
23240 This config.status script is free software; the Free Software Foundation
23241 gives unlimited permission to copy, distribute and modify it."
23246 cat >>$CONFIG_STATUS <<\_ACEOF
23247 # If no file are specified by the user, then we need to provide default
23248 # value. By we need to know if files were specified by the user.
23254 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23255 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23263 *) # This is not an option, so the user has probably given explicit
23266 ac_need_defaults=false;;
23270 # Handling of the options.
23272 cat >>$CONFIG_STATUS <<\_ACEOF
23273 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23275 --version | --vers* | -V )
23276 echo "$ac_cs_version"; exit 0 ;;
23278 # Conflict between --help and --header
23279 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23280 Try \`$0 --help' for more information." >&5
23281 echo "$as_me: error: ambiguous option: $1
23282 Try \`$0 --help' for more information." >&2;}
23283 { (exit 1); exit 1; }; };;
23284 --help | --hel | -h )
23285 echo "$ac_cs_usage"; exit 0 ;;
23286 --debug | --d* | -d )
23288 --file | --fil | --fi | --f )
23290 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23291 ac_need_defaults=false;;
23292 --header | --heade | --head | --hea )
23294 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23295 ac_need_defaults=false;;
23296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23297 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23300 # This is an error.
23301 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23302 Try \`$0 --help' for more information." >&5
23303 echo "$as_me: error: unrecognized option: $1
23304 Try \`$0 --help' for more information." >&2;}
23305 { (exit 1); exit 1; }; } ;;
23307 *) ac_config_targets="$ac_config_targets $1" ;;
23313 ac_configure_extra_args=
23315 if $ac_cs_silent; then
23317 ac_configure_extra_args="$ac_configure_extra_args --silent"
23321 cat >>$CONFIG_STATUS <<_ACEOF
23322 if \$ac_cs_recheck; then
23323 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23324 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23329 cat >>$CONFIG_STATUS <<_ACEOF
23331 # INIT-COMMANDS section.
23334 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23335 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23336 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23337 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23338 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23339 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23340 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23341 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23342 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23343 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23344 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23345 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23346 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23347 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23348 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23349 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23350 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23351 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23352 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23353 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23354 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23355 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23356 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23357 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23358 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23359 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23360 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23363 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23378 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23379 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23380 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23386 cat >>$CONFIG_STATUS <<\_ACEOF
23387 for ac_config_target in $ac_config_targets
23389 case "$ac_config_target" in
23390 # Handling of arguments.
23391 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23392 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23393 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23394 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23395 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23396 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23397 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23398 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23399 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23400 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23401 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23402 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23403 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23404 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23405 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23406 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23407 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23408 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23409 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23410 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23411 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23412 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23413 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23414 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23415 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23416 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23417 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23418 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23419 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23420 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23421 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23422 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23423 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23424 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23425 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23426 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23427 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23428 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23429 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23430 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23431 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23432 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23433 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23434 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23435 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23436 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23437 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23438 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23439 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23440 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23441 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23442 { (exit 1); exit 1; }; };;
23446 # If the user did not use the arguments to specify the items to instantiate,
23447 # then the envvar interface is used. Set only those that are not.
23448 # We use the long form for the default assignment because of an extremely
23449 # bizarre bug on SunOS 4.1.3.
23450 if $ac_need_defaults; then
23451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23453 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23456 # Have a temporary directory for convenience. Make it in the build tree
23457 # simply because there is no reason to put it here, and in addition,
23458 # creating and moving files from /tmp can sometimes cause problems.
23459 # Create a temporary directory, and hook for its removal unless debugging.
23462 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23463 trap '{ (exit 1); exit 1; }' 1 2 13 15
23466 # Create a (secure) tmp directory for tmp files.
23469 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23470 test -n "$tmp" && test -d "$tmp"
23473 tmp=./confstat$$-$RANDOM
23474 (umask 077 && mkdir $tmp)
23477 echo "$me: cannot create a temporary directory in ." >&2
23478 { (exit 1); exit 1; }
23483 cat >>$CONFIG_STATUS <<_ACEOF
23486 # CONFIG_FILES section.
23489 # No need to generate the scripts if there are no CONFIG_FILES.
23490 # This happens for instance when ./config.status config.h
23491 if test -n "\$CONFIG_FILES"; then
23492 # Protect against being on the right side of a sed subst in config.status.
23493 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23494 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23495 s,@SHELL@,$SHELL,;t t
23496 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23497 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23498 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23499 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23500 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23501 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23502 s,@exec_prefix@,$exec_prefix,;t t
23503 s,@prefix@,$prefix,;t t
23504 s,@program_transform_name@,$program_transform_name,;t t
23505 s,@bindir@,$bindir,;t t
23506 s,@sbindir@,$sbindir,;t t
23507 s,@libexecdir@,$libexecdir,;t t
23508 s,@datadir@,$datadir,;t t
23509 s,@sysconfdir@,$sysconfdir,;t t
23510 s,@sharedstatedir@,$sharedstatedir,;t t
23511 s,@localstatedir@,$localstatedir,;t t
23512 s,@libdir@,$libdir,;t t
23513 s,@includedir@,$includedir,;t t
23514 s,@oldincludedir@,$oldincludedir,;t t
23515 s,@infodir@,$infodir,;t t
23516 s,@mandir@,$mandir,;t t
23517 s,@build_alias@,$build_alias,;t t
23518 s,@host_alias@,$host_alias,;t t
23519 s,@target_alias@,$target_alias,;t t
23520 s,@DEFS@,$DEFS,;t t
23521 s,@ECHO_C@,$ECHO_C,;t t
23522 s,@ECHO_N@,$ECHO_N,;t t
23523 s,@ECHO_T@,$ECHO_T,;t t
23524 s,@LIBS@,$LIBS,;t t
23525 s,@subdirs@,$subdirs,;t t
23526 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23527 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23528 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23529 s,@build@,$build,;t t
23530 s,@build_cpu@,$build_cpu,;t t
23531 s,@build_vendor@,$build_vendor,;t t
23532 s,@build_os@,$build_os,;t t
23533 s,@host@,$host,;t t
23534 s,@host_cpu@,$host_cpu,;t t
23535 s,@host_vendor@,$host_vendor,;t t
23536 s,@host_os@,$host_os,;t t
23537 s,@target@,$target,;t t
23538 s,@target_cpu@,$target_cpu,;t t
23539 s,@target_vendor@,$target_vendor,;t t
23540 s,@target_os@,$target_os,;t t
23542 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23543 s,@ARCH@,$ARCH,;t t
23545 s,@CXXFLAGS@,$CXXFLAGS,;t t
23546 s,@LDFLAGS@,$LDFLAGS,;t t
23547 s,@CPPFLAGS@,$CPPFLAGS,;t t
23548 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23549 s,@EXEEXT@,$EXEEXT,;t t
23550 s,@OBJEXT@,$OBJEXT,;t t
23552 s,@CFLAGS@,$CFLAGS,;t t
23553 s,@ac_ct_CC@,$ac_ct_CC,;t t
23555 s,@ifGNUmake@,$ifGNUmake,;t t
23557 s,@LEXLIB@,$LEXLIB,;t t
23558 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23559 s,@YACC@,$YACC,;t t
23560 s,@EGREP@,$EGREP,;t t
23561 s,@LN_S@,$LN_S,;t t
23562 s,@ECHO@,$ECHO,;t t
23564 s,@ac_ct_AR@,$ac_ct_AR,;t t
23565 s,@RANLIB@,$RANLIB,;t t
23566 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23567 s,@STRIP@,$STRIP,;t t
23568 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23569 s,@CXXCPP@,$CXXCPP,;t t
23571 s,@FFLAGS@,$FFLAGS,;t t
23572 s,@ac_ct_F77@,$ac_ct_F77,;t t
23573 s,@LIBTOOL@,$LIBTOOL,;t t
23574 s,@RPWD@,$RPWD,;t t
23577 s,@MKDIR@,$MKDIR,;t t
23578 s,@DATE@,$DATE,;t t
23581 s,@ETAGS@,$ETAGS,;t t
23582 s,@PYTHON@,$PYTHON,;t t
23583 s,@QMTEST@,$QMTEST,;t t
23584 s,@ALLOCA@,$ALLOCA,;t t
23585 s,@LIBOBJS@,$LIBOBJS,;t t
23586 s,@MMAP_FILE@,$MMAP_FILE,;t t
23587 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23588 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23589 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23590 s,@USE_SPEC@,$USE_SPEC,;t t
23592 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23595 s,@PAPIDIR@,$PAPIDIR,;t t
23596 s,@PURIFY@,$PURIFY,;t t
23597 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23602 cat >>$CONFIG_STATUS <<\_ACEOF
23603 # Split the substitutions into bite-sized pieces for seds with
23604 # small command number limits, like on Digital OSF/1 and HP-UX.
23605 ac_max_sed_lines=48
23606 ac_sed_frag=1 # Number of current file.
23607 ac_beg=1 # First line for current file.
23608 ac_end=$ac_max_sed_lines # Line after last line for current file.
23611 while $ac_more_lines; do
23612 if test $ac_beg -gt 1; then
23613 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23615 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23617 if test ! -s $tmp/subs.frag; then
23618 ac_more_lines=false
23620 # The purpose of the label and of the branching condition is to
23621 # speed up the sed processing (if there are no `@' at all, there
23622 # is no need to browse any of the substitutions).
23623 # These are the two extra sed commands mentioned above.
23625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23626 if test -z "$ac_sed_cmds"; then
23627 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23629 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23631 ac_sed_frag=`expr $ac_sed_frag + 1`
23633 ac_end=`expr $ac_end + $ac_max_sed_lines`
23636 if test -z "$ac_sed_cmds"; then
23639 fi # test -n "$CONFIG_FILES"
23642 cat >>$CONFIG_STATUS <<\_ACEOF
23643 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23644 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23646 - | *:- | *:-:* ) # input from stdin
23648 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23650 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23651 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23652 * ) ac_file_in=$ac_file.in ;;
23655 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23656 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23658 X"$ac_file" : 'X\(//\)[^/]' \| \
23659 X"$ac_file" : 'X\(//\)$' \| \
23660 X"$ac_file" : 'X\(/\)' \| \
23661 . : '\(.\)' 2>/dev/null ||
23663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23665 /^X\(\/\/\)$/{ s//\1/; q; }
23666 /^X\(\/\).*/{ s//\1/; q; }
23668 { if $as_mkdir_p; then
23673 while test ! -d "$as_dir"; do
23674 as_dirs="$as_dir $as_dirs"
23675 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23677 X"$as_dir" : 'X\(//\)[^/]' \| \
23678 X"$as_dir" : 'X\(//\)$' \| \
23679 X"$as_dir" : 'X\(/\)' \| \
23680 . : '\(.\)' 2>/dev/null ||
23682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23684 /^X\(\/\/\)$/{ s//\1/; q; }
23685 /^X\(\/\).*/{ s//\1/; q; }
23688 test ! -n "$as_dirs" || mkdir $as_dirs
23689 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23690 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23691 { (exit 1); exit 1; }; }; }
23695 if test "$ac_dir" != .; then
23696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23697 # A "../" for each directory in $ac_dir_suffix.
23698 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23700 ac_dir_suffix= ac_top_builddir=
23704 .) # No --srcdir option. We are building in place.
23706 if test -z "$ac_top_builddir"; then
23709 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23711 [\\/]* | ?:[\\/]* ) # Absolute path.
23712 ac_srcdir=$srcdir$ac_dir_suffix;
23713 ac_top_srcdir=$srcdir ;;
23714 *) # Relative path.
23715 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23716 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23718 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23720 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23721 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23722 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23723 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23727 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23728 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23731 if test x"$ac_file" != x-; then
23732 { echo "$as_me:$LINENO: creating $ac_file" >&5
23733 echo "$as_me: creating $ac_file" >&6;}
23736 # Let's still pretend it is `configure' which instantiates (i.e., don't
23737 # use $as_me), people would be surprised to read:
23738 # /* config.h. Generated by config.status. */
23739 if test x"$ac_file" = x-; then
23742 configure_input="$ac_file. "
23744 configure_input=$configure_input"Generated from `echo $ac_file_in |
23745 sed 's,.*/,,'` by configure."
23747 # First look for the input files in the build tree, otherwise in the
23749 ac_file_inputs=`IFS=:
23750 for f in $ac_file_in; do
23752 -) echo $tmp/stdin ;;
23754 # Absolute (can't be DOS-style, as IFS=:)
23755 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23756 echo "$as_me: error: cannot find input file: $f" >&2;}
23757 { (exit 1); exit 1; }; }
23760 if test -f "$f"; then
23763 elif test -f "$srcdir/$f"; then
23768 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23769 echo "$as_me: error: cannot find input file: $f" >&2;}
23770 { (exit 1); exit 1; }; }
23773 done` || { (exit 1); exit 1; }
23775 cat >>$CONFIG_STATUS <<_ACEOF
23779 cat >>$CONFIG_STATUS <<\_ACEOF
23781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23782 s,@configure_input@,$configure_input,;t t
23783 s,@srcdir@,$ac_srcdir,;t t
23784 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23785 s,@top_srcdir@,$ac_top_srcdir,;t t
23786 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23787 s,@builddir@,$ac_builddir,;t t
23788 s,@abs_builddir@,$ac_abs_builddir,;t t
23789 s,@top_builddir@,$ac_top_builddir,;t t
23790 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23791 s,@INSTALL@,$ac_INSTALL,;t t
23792 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23794 if test x"$ac_file" != x-; then
23795 mv $tmp/out $ac_file
23803 cat >>$CONFIG_STATUS <<\_ACEOF
23806 # CONFIG_HEADER section.
23809 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23810 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23812 # ac_d sets the value in "#define NAME VALUE" lines.
23813 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23814 ac_dB='[ ].*$,\1#\2'
23817 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23818 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23819 ac_uB='$,\1#\2define\3'
23823 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23826 - | *:- | *:-:* ) # input from stdin
23828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23832 * ) ac_file_in=$ac_file.in ;;
23835 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23836 echo "$as_me: creating $ac_file" >&6;}
23838 # First look for the input files in the build tree, otherwise in the
23840 ac_file_inputs=`IFS=:
23841 for f in $ac_file_in; do
23843 -) echo $tmp/stdin ;;
23845 # Absolute (can't be DOS-style, as IFS=:)
23846 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23847 echo "$as_me: error: cannot find input file: $f" >&2;}
23848 { (exit 1); exit 1; }; }
23851 if test -f "$f"; then
23854 elif test -f "$srcdir/$f"; then
23859 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23860 echo "$as_me: error: cannot find input file: $f" >&2;}
23861 { (exit 1); exit 1; }; }
23864 done` || { (exit 1); exit 1; }
23865 # Remove the trailing spaces.
23866 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23870 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23871 # `conftest.undefs', that substitutes the proper values into
23872 # config.h.in to produce config.h. The first handles `#define'
23873 # templates, and the second `#undef' templates.
23874 # And first: Protect against being on the right side of a sed subst in
23875 # config.status. Protect against being in an unquoted here document
23876 # in config.status.
23877 rm -f conftest.defines conftest.undefs
23878 # Using a here document instead of a string reduces the quoting nightmare.
23879 # Putting comments in sed scripts is not portable.
23881 # `end' is used to avoid that the second main sed command (meant for
23882 # 0-ary CPP macros) applies to n-ary macro definitions.
23883 # See the Autoconf documentation for `clear'.
23884 cat >confdef2sed.sed <<\_ACEOF
23889 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23891 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23894 # If some macros were called several times there might be several times
23895 # the same #defines, which is useless. Nevertheless, we may not want to
23896 # sort them, since we want the *last* AC-DEFINE to be honored.
23897 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23898 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23899 rm -f confdef2sed.sed
23901 # This sed command replaces #undef with comments. This is necessary, for
23902 # example, in the case of _POSIX_SOURCE, which is predefined and required
23903 # on some systems where configure will not decide to define it.
23904 cat >>conftest.undefs <<\_ACEOF
23905 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23908 # Break up conftest.defines because some shells have a limit on the size
23909 # of here documents, and old seds have small limits too (100 cmds).
23910 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23911 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23912 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23913 echo ' :' >>$CONFIG_STATUS
23914 rm -f conftest.tail
23915 while grep . conftest.defines >/dev/null
23917 # Write a limited-size here document to $tmp/defines.sed.
23918 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23919 # Speed up: don't consider the non `#define' lines.
23920 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23921 # Work around the forget-to-reset-the-flag bug.
23922 echo 't clr' >>$CONFIG_STATUS
23923 echo ': clr' >>$CONFIG_STATUS
23924 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23926 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23928 mv $tmp/out $tmp/in
23930 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23931 rm -f conftest.defines
23932 mv conftest.tail conftest.defines
23934 rm -f conftest.defines
23935 echo ' fi # grep' >>$CONFIG_STATUS
23936 echo >>$CONFIG_STATUS
23938 # Break up conftest.undefs because some shells have a limit on the size
23939 # of here documents, and old seds have small limits too (100 cmds).
23940 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23941 rm -f conftest.tail
23942 while grep . conftest.undefs >/dev/null
23944 # Write a limited-size here document to $tmp/undefs.sed.
23945 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23946 # Speed up: don't consider the non `#undef'
23947 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23948 # Work around the forget-to-reset-the-flag bug.
23949 echo 't clr' >>$CONFIG_STATUS
23950 echo ': clr' >>$CONFIG_STATUS
23951 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23953 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23955 mv $tmp/out $tmp/in
23957 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23958 rm -f conftest.undefs
23959 mv conftest.tail conftest.undefs
23961 rm -f conftest.undefs
23963 cat >>$CONFIG_STATUS <<\_ACEOF
23964 # Let's still pretend it is `configure' which instantiates (i.e., don't
23965 # use $as_me), people would be surprised to read:
23966 # /* config.h. Generated by config.status. */
23967 if test x"$ac_file" = x-; then
23968 echo "/* Generated by configure. */" >$tmp/config.h
23970 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23972 cat $tmp/in >>$tmp/config.h
23974 if test x"$ac_file" != x-; then
23975 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23976 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23977 echo "$as_me: $ac_file is unchanged" >&6;}
23979 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23981 X"$ac_file" : 'X\(//\)[^/]' \| \
23982 X"$ac_file" : 'X\(//\)$' \| \
23983 X"$ac_file" : 'X\(/\)' \| \
23984 . : '\(.\)' 2>/dev/null ||
23986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23988 /^X\(\/\/\)$/{ s//\1/; q; }
23989 /^X\(\/\).*/{ s//\1/; q; }
23991 { if $as_mkdir_p; then
23996 while test ! -d "$as_dir"; do
23997 as_dirs="$as_dir $as_dirs"
23998 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23999 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24000 X"$as_dir" : 'X\(//\)[^/]' \| \
24001 X"$as_dir" : 'X\(//\)$' \| \
24002 X"$as_dir" : 'X\(/\)' \| \
24003 . : '\(.\)' 2>/dev/null ||
24005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24007 /^X\(\/\/\)$/{ s//\1/; q; }
24008 /^X\(\/\).*/{ s//\1/; q; }
24011 test ! -n "$as_dirs" || mkdir $as_dirs
24012 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24013 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24014 { (exit 1); exit 1; }; }; }
24017 mv $tmp/config.h $ac_file
24021 rm -f $tmp/config.h
24025 cat >>$CONFIG_STATUS <<\_ACEOF
24028 # CONFIG_COMMANDS section.
24030 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24031 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24032 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24033 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24034 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24035 X"$ac_dest" : 'X\(//\)[^/]' \| \
24036 X"$ac_dest" : 'X\(//\)$' \| \
24037 X"$ac_dest" : 'X\(/\)' \| \
24038 . : '\(.\)' 2>/dev/null ||
24040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24042 /^X\(\/\/\)$/{ s//\1/; q; }
24043 /^X\(\/\).*/{ s//\1/; q; }
24047 if test "$ac_dir" != .; then
24048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24049 # A "../" for each directory in $ac_dir_suffix.
24050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24052 ac_dir_suffix= ac_top_builddir=
24056 .) # No --srcdir option. We are building in place.
24058 if test -z "$ac_top_builddir"; then
24061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24063 [\\/]* | ?:[\\/]* ) # Absolute path.
24064 ac_srcdir=$srcdir$ac_dir_suffix;
24065 ac_top_srcdir=$srcdir ;;
24066 *) # Relative path.
24067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24070 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24072 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24073 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24074 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24075 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24078 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24079 echo "$as_me: executing $ac_dest commands" >&6;}
24081 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24082 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24083 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24084 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24085 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24086 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24087 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24088 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24089 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24090 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24091 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24092 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24093 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24094 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24095 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24096 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24097 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24098 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24099 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24100 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24101 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24102 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24103 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24104 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24105 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24106 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24107 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 ;;
24108 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24109 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24110 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 ;;
24111 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 ;;
24112 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 ;;
24113 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 ;;
24114 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 ;;
24115 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 ;;
24116 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 ;;
24117 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 ;;
24118 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 ;;
24119 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 ;;
24120 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 ;;
24121 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 ;;
24122 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 ;;
24123 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24124 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24125 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24126 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24127 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24132 cat >>$CONFIG_STATUS <<\_ACEOF
24134 { (exit 0); exit 0; }
24136 chmod +x $CONFIG_STATUS
24137 ac_clean_files=$ac_clean_files_save
24140 # configure is writing to config.log, and then calls config.status.
24141 # config.status does its own redirection, appending to config.log.
24142 # Unfortunately, on DOS this fails, as config.log is still kept open
24143 # by configure, so config.status won't be able to write to it; its
24144 # output is simply discarded. So we exec the FD to /dev/null,
24145 # effectively closing config.log, so it can be properly (re)opened and
24146 # appended to by config.status. When coming back to configure, we
24147 # need to make the FD available again.
24148 if test "$no_create" != yes; then
24150 ac_config_status_args=
24151 test "$silent" = yes &&
24152 ac_config_status_args="$ac_config_status_args --quiet"
24154 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24156 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24157 # would make configure fail if this is the last instruction.
24158 $ac_cs_success || { (exit 1); exit 1; }
24162 # CONFIG_SUBDIRS section.
24164 if test "$no_recursion" != yes; then
24166 # Remove --cache-file and --srcdir arguments so they do not pile up.
24167 ac_sub_configure_args=
24169 for ac_arg in $ac_configure_args; do
24170 if test -n "$ac_prev"; then
24175 -cache-file | --cache-file | --cache-fil | --cache-fi \
24176 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24177 ac_prev=cache_file ;;
24178 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24179 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24182 --config-cache | -C)
24184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24192 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24196 # Always prepend --prefix to ensure using the same prefix
24197 # in subdir configurations.
24198 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24201 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24203 # Do not complain, so a configure script can configure whichever
24204 # parts of a large source tree are present.
24205 test -d $srcdir/$ac_dir || continue
24207 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24208 echo "$as_me: configuring in $ac_dir" >&6;}
24209 { if $as_mkdir_p; then
24214 while test ! -d "$as_dir"; do
24215 as_dirs="$as_dir $as_dirs"
24216 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24218 X"$as_dir" : 'X\(//\)[^/]' \| \
24219 X"$as_dir" : 'X\(//\)$' \| \
24220 X"$as_dir" : 'X\(/\)' \| \
24221 . : '\(.\)' 2>/dev/null ||
24223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24225 /^X\(\/\/\)$/{ s//\1/; q; }
24226 /^X\(\/\).*/{ s//\1/; q; }
24229 test ! -n "$as_dirs" || mkdir $as_dirs
24230 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24231 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24232 { (exit 1); exit 1; }; }; }
24236 if test "$ac_dir" != .; then
24237 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24238 # A "../" for each directory in $ac_dir_suffix.
24239 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24241 ac_dir_suffix= ac_top_builddir=
24245 .) # No --srcdir option. We are building in place.
24247 if test -z "$ac_top_builddir"; then
24250 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24252 [\\/]* | ?:[\\/]* ) # Absolute path.
24253 ac_srcdir=$srcdir$ac_dir_suffix;
24254 ac_top_srcdir=$srcdir ;;
24255 *) # Relative path.
24256 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24257 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24259 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24261 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24262 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24263 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24264 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24269 # Check for guested configure; otherwise get Cygnus style configure.
24270 if test -f $ac_srcdir/configure.gnu; then
24271 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24272 elif test -f $ac_srcdir/configure; then
24273 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24274 elif test -f $ac_srcdir/configure.in; then
24275 ac_sub_configure=$ac_configure
24277 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24278 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24282 # The recursion is here.
24283 if test -n "$ac_sub_configure"; then
24284 # Make the cache file name correct relative to the subdirectory.
24285 case $cache_file in
24286 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24287 *) # Relative path.
24288 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24291 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24292 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24293 # The eval makes quoting arguments work.
24294 eval $ac_sub_configure $ac_sub_configure_args \
24295 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24296 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24297 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24298 { (exit 1); exit 1; }; }
24306 if test $llvmgccwarn = yes
24308 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24309 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24310 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24311 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24312 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24313 echo "$as_me: WARNING: ***** " >&2;}
24314 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24315 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24316 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24317 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24318 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24319 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}