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/sample"
430 ac_subdirs_all="$ac_subdirs_all projects/reopt"
431 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
436 # include <sys/types.h>
439 # include <sys/stat.h>
450 # if !STDC_HEADERS && HAVE_MEMORY_H
456 # include <strings.h>
459 # include <inttypes.h>
469 ac_unique_file=""Makefile.config.in""
470 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'
473 # Initialize some variables set by options.
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
485 program_transform_name=s,x,x,
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523 # Accept the important Cygnus configure options, so we can diagnose typos.
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
545 cache_file=config.cache ;;
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 datadir=$ac_optarg ;;
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 eval "enable_$ac_feature='$ac_optarg'" ;;
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
588 -help | --help | --hel | --he | -h)
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir=$ac_optarg ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir=$ac_optarg ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers | -V)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 eval "with_$ac_package='$ac_optarg'" ;;
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
767 # Obsolete; use --with-x.
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
831 eval ac_val=$`echo $ac_var`
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860 test "$silent" = yes && exec 6>/dev/null
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
880 if test ! -r $srcdir/$ac_unique_file; then
884 ac_srcdir_defaulted=no
886 if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CC_set=${CC+set}
929 ac_cv_env_CC_set=${CC+set}
930 ac_cv_env_CC_value=$CC
931 ac_env_CFLAGS_set=${CFLAGS+set}
932 ac_env_CFLAGS_value=$CFLAGS
933 ac_cv_env_CFLAGS_set=${CFLAGS+set}
934 ac_cv_env_CFLAGS_value=$CFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
953 # Report the --help message.
955 if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh.
959 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
961 Usage: $0 [OPTION]... [VAR=VALUE]...
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE. See below for descriptions of some of the useful variables.
966 Defaults for the options are specified in brackets.
969 -h, --help display this help and exit
970 --help=short display options specific to this package
971 --help=recursive display the short help of all the included packages
972 -V, --version display version information and exit
973 -q, --quiet, --silent do not print \`checking...' messages
974 --cache-file=FILE cache test results in FILE [disabled]
975 -C, --config-cache alias for \`--cache-file=config.cache'
976 -n, --no-create do not create output files
977 --srcdir=DIR find the sources in DIR [configure dir or \`..']
982 Installation directories:
983 --prefix=PREFIX install architecture-independent files in PREFIX
985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
993 For better control, use the options below.
995 Fine tuning of the installation directories:
996 --bindir=DIR user executables [EPREFIX/bin]
997 --sbindir=DIR system admin executables [EPREFIX/sbin]
998 --libexecdir=DIR program executables [EPREFIX/libexec]
999 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003 --libdir=DIR object code libraries [EPREFIX/lib]
1004 --includedir=DIR C header files [PREFIX/include]
1005 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1006 --infodir=DIR info documentation [PREFIX/info]
1007 --mandir=DIR man documentation [PREFIX/man]
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 --target=TARGET configure for building compilers for TARGET [HOST]
1019 if test -n "$ac_init_help"; then
1020 case $ac_init_help in
1021 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-purify Compile with purify (default is NO)
1036 --enable-optimized Compile with optimizations enabled (default is NO)
1037 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
1038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
1040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1041 --enable-jit Enable Just In Time Compiling (default is YES)
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
1054 --with-purify Location of purify program
1056 Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1077 if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1084 if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089 ac_dir_suffix= ac_top_builddir=
1093 .) # No --srcdir option. We are building in place.
1095 if test -z "$ac_top_builddir"; then
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1125 $ac_configure --help
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1136 [LLVM] configure [1.0]
1137 generated by GNU Autoconf 2.57
1139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1151 It was created by [LLVM] $as_me [1.0], which was
1152 generated by GNU Autoconf 2.57. Invocation command line was
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1172 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1211 ac_must_keep_next=false
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1240 -* ) ac_must_keep_next=true ;;
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log. We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1269 # The following way of writing the cache mishandles newlines in values,
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1292 for ac_var in $ac_subst_vars
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1299 if test -n "$ac_subst_files"; then
1306 for ac_var in $ac_subst_files
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1314 if test -s confdefs.h; then
1321 sed "/^$/d" confdefs.h | sort
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1328 rm -f core core.* *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1332 for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1342 # Predefined preprocessor variables.
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1378 for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1387 if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1404 # Check that the precious variables saved in the cache have kept the same
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428 echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430 echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489 for ac_dir in autoconf $srcdir/autoconf; do
1490 if test -f $ac_dir/install-sh; then
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1494 elif test -f $ac_dir/install.sh; then
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1498 elif test -f $ac_dir/shtool; then
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1504 if test -z "$ac_aux_dir"; then
1505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1507 { (exit 1); exit 1; }; }
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1514 if test ${srcdir} != "."
1516 if test -f ${srcdir}/include/Config/config.h
1518 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1519 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520 { (exit 1); exit 1; }; }
1524 if test -d ${srcdir}/projects/sample
1528 subdirs="$subdirs projects/sample"
1532 if test -d ${srcdir}/projects/reopt
1536 subdirs="$subdirs projects/reopt"
1540 if test -d ${srcdir}/projects/poolalloc
1544 subdirs="$subdirs projects/poolalloc"
1548 ac_config_headers="$ac_config_headers include/Config/config.h"
1550 ac_config_commands="$ac_config_commands Makefile"
1553 ac_config_commands="$ac_config_commands Makefile.common"
1556 ac_config_commands="$ac_config_commands lib/Makefile"
1559 ac_config_commands="$ac_config_commands runtime/Makefile"
1562 ac_config_commands="$ac_config_commands test/Makefile"
1565 ac_config_commands="$ac_config_commands test/Makefile.tests"
1568 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1571 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1574 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1577 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1580 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1583 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1586 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1589 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1592 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1595 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1598 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1601 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1604 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1607 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1610 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1613 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1616 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1619 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1622 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1625 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1628 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1667 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1670 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1673 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1676 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1679 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1682 ac_config_commands="$ac_config_commands tools/Makefile"
1685 ac_config_commands="$ac_config_commands utils/Makefile"
1688 ac_config_commands="$ac_config_commands projects/Makefile"
1691 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
1694 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
1697 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
1700 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
1703 ac_config_commands="$ac_config_commands projects/Stacker/Makefile"
1706 ac_config_commands="$ac_config_commands projects/Stacker/lib/Makefile"
1709 ac_config_commands="$ac_config_commands projects/Stacker/lib/compiler/Makefile"
1712 ac_config_commands="$ac_config_commands projects/Stacker/lib/runtime/Makefile"
1715 ac_config_commands="$ac_config_commands projects/Stacker/tools/Makefile"
1718 ac_config_commands="$ac_config_commands projects/Stacker/tools/stkrc/Makefile"
1721 ac_config_commands="$ac_config_commands projects/Stacker/test/Makefile"
1724 ac_config_commands="$ac_config_commands projects/Stacker/samples/Makefile"
1729 # Find a good install program. We prefer a C program (faster),
1730 # so one script is as good as another. But avoid the broken or
1731 # incompatible versions:
1732 # SysV /etc/install, /usr/sbin/install
1733 # SunOS /usr/etc/install
1734 # IRIX /sbin/install
1736 # AmigaOS /C/install, which installs bootblocks on floppy discs
1737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1740 # ./install, which can be erroneously created by make from ./install.sh.
1741 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1742 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1743 if test -z "$INSTALL"; then
1744 if test "${ac_cv_path_install+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 # Account for people who put trailing slashes in PATH elements.
1754 ./ | .// | /cC/* | \
1755 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1758 # OSF1 and SCO ODT 3.0 have their own names for install.
1759 # Don't use installbsd from OSF since it installs stuff as root
1761 for ac_prog in ginstall scoinst install; do
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1764 if test $ac_prog = install &&
1765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1766 # AIX install. It has an incompatible calling convention.
1768 elif test $ac_prog = install &&
1769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1770 # program-specific install script used by HP pwplus--don't use.
1773 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1785 if test "${ac_cv_path_install+set}" = set; then
1786 INSTALL=$ac_cv_path_install
1788 # As a last resort, use the slow shell script. We don't cache a
1789 # path for INSTALL within a source directory, because that will
1790 # break other packages using the cache if that directory is
1791 # removed, or if the path is relative.
1792 INSTALL=$ac_install_sh
1795 echo "$as_me:$LINENO: result: $INSTALL" >&5
1796 echo "${ECHO_T}$INSTALL" >&6
1798 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1799 # It thinks the first close brace ends the variable substitution.
1800 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1802 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1804 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1807 # Make sure we can run config.sub.
1808 $ac_config_sub sun4 >/dev/null 2>&1 ||
1809 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1810 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1811 { (exit 1); exit 1; }; }
1813 echo "$as_me:$LINENO: checking build system type" >&5
1814 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1815 if test "${ac_cv_build+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 ac_cv_build_alias=$build_alias
1819 test -z "$ac_cv_build_alias" &&
1820 ac_cv_build_alias=`$ac_config_guess`
1821 test -z "$ac_cv_build_alias" &&
1822 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1823 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1824 { (exit 1); exit 1; }; }
1825 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1826 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1827 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1828 { (exit 1); exit 1; }; }
1831 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1832 echo "${ECHO_T}$ac_cv_build" >&6
1834 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1835 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1836 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1839 echo "$as_me:$LINENO: checking host system type" >&5
1840 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1841 if test "${ac_cv_host+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 ac_cv_host_alias=$host_alias
1845 test -z "$ac_cv_host_alias" &&
1846 ac_cv_host_alias=$ac_cv_build_alias
1847 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1848 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1849 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1850 { (exit 1); exit 1; }; }
1853 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1854 echo "${ECHO_T}$ac_cv_host" >&6
1856 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1857 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1858 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1861 echo "$as_me:$LINENO: checking target system type" >&5
1862 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1863 if test "${ac_cv_target+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 ac_cv_target_alias=$target_alias
1867 test "x$ac_cv_target_alias" = "x" &&
1868 ac_cv_target_alias=$ac_cv_host_alias
1869 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1870 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1871 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1872 { (exit 1); exit 1; }; }
1875 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1876 echo "${ECHO_T}$ac_cv_target" >&6
1877 target=$ac_cv_target
1878 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1879 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1880 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1883 # The aliases save the names the user supplied, while $host etc.
1884 # will get canonicalized.
1885 test -n "$target_alias" &&
1886 test "$program_prefix$program_suffix$program_transform_name" = \
1888 program_prefix=${target_alias}-
1894 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1896 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1904 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1906 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1922 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1931 sparc*-*) ARCH=Sparc
1934 powerpc*-*) ARCH=PowerPC
1944 ac_cpp='$CXXCPP $CPPFLAGS'
1945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1948 if test -n "$ac_tool_prefix"; then
1949 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_CXX+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 if test -n "$CXX"; then
1959 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 if test -n "$CXX"; then
1979 echo "$as_me:$LINENO: result: $CXX" >&5
1980 echo "${ECHO_T}$CXX" >&6
1982 echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1986 test -n "$CXX" && break
1989 if test -z "$CXX"; then
1991 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1993 # Extract the first word of "$ac_prog", so it can be a program name with args.
1994 set dummy $ac_prog; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 if test -n "$ac_ct_CXX"; then
2001 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010 ac_cv_prog_ac_ct_CXX="$ac_prog"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2020 if test -n "$ac_ct_CXX"; then
2021 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2022 echo "${ECHO_T}$ac_ct_CXX" >&6
2024 echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2028 test -n "$ac_ct_CXX" && break
2030 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2036 # Provide some information about the compiler.
2037 echo "$as_me:$LINENO:" \
2038 "checking for C++ compiler version" >&5
2039 ac_compiler=`set X $ac_compile; echo $2`
2040 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2041 (eval $ac_compiler --version </dev/null >&5) 2>&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }
2045 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2046 (eval $ac_compiler -v </dev/null >&5) 2>&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2051 (eval $ac_compiler -V </dev/null >&5) 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2056 cat >conftest.$ac_ext <<_ACEOF
2057 #line $LINENO "configure"
2060 cat confdefs.h >>conftest.$ac_ext
2061 cat >>conftest.$ac_ext <<_ACEOF
2062 /* end confdefs.h. */
2072 ac_clean_files_save=$ac_clean_files
2073 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2074 # Try to create an executable without -o first, disregard a.out.
2075 # It will help us diagnose broken compilers, and finding out an intuition
2077 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2078 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2079 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2080 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2081 (eval $ac_link_default) 2>&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; then
2085 # Find the output, starting from the most likely. This scheme is
2086 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2089 # Be careful to initialize this variable, since it used to be cached.
2090 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2092 # b.out is created by i960 compilers.
2093 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2095 test -f "$ac_file" || continue
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2100 # This is the source file.
2103 # We found the default executable, but exeext='' is most
2107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108 # FIXME: I believe we export ac_cv_exeext for Libtool,
2109 # but it would be cool to find out if it's true. Does anybody
2110 # maintain Libtool? --akim.
2118 echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2121 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: C++ compiler cannot create executables
2124 See \`config.log' for more details." >&2;}
2125 { (exit 77); exit 77; }; }
2128 ac_exeext=$ac_cv_exeext
2129 echo "$as_me:$LINENO: result: $ac_file" >&5
2130 echo "${ECHO_T}$ac_file" >&6
2132 # Check the compiler produces executables we can run. If not, either
2133 # the compiler is broken, or we cross compile.
2134 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2135 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2137 # If not cross compiling, check that we can run a simple program.
2138 if test "$cross_compiling" != yes; then
2139 if { ac_try='./$ac_file'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2147 if test "$cross_compiling" = maybe; then
2150 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2151 If you meant to cross compile, use \`--host'.
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: cannot run C++ compiled programs.
2154 If you meant to cross compile, use \`--host'.
2155 See \`config.log' for more details." >&2;}
2156 { (exit 1); exit 1; }; }
2160 echo "$as_me:$LINENO: result: yes" >&5
2161 echo "${ECHO_T}yes" >&6
2163 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2164 ac_clean_files=$ac_clean_files_save
2165 # Check the compiler produces executables we can run. If not, either
2166 # the compiler is broken, or we cross compile.
2167 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2168 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2169 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2170 echo "${ECHO_T}$cross_compiling" >&6
2172 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2173 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2175 (eval $ac_link) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2181 # work properly (i.e., refer to `conftest.exe'), while it won't with
2183 for ac_file in conftest.exe conftest conftest.*; do
2184 test -f "$ac_file" || continue
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2201 rm -f conftest$ac_cv_exeext
2202 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2203 echo "${ECHO_T}$ac_cv_exeext" >&6
2205 rm -f conftest.$ac_ext
2206 EXEEXT=$ac_cv_exeext
2208 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2210 if test "${ac_cv_objext+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #line $LINENO "configure"
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h. */
2229 rm -f conftest.o conftest.obj
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; then
2235 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2243 echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2246 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2253 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2255 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2256 echo "${ECHO_T}$ac_cv_objext" >&6
2257 OBJEXT=$ac_cv_objext
2259 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2260 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2261 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2297 echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2302 rm -f conftest.$ac_objext conftest.$ac_ext
2303 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2306 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2307 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2308 GXX=`test $ac_compiler_gnu = yes && echo yes`
2309 ac_test_CXXFLAGS=${CXXFLAGS+set}
2310 ac_save_CXXFLAGS=$CXXFLAGS
2312 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2313 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2314 if test "${ac_cv_prog_cxx_g+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #line $LINENO "configure"
2321 cat confdefs.h >>conftest.$ac_ext
2322 cat >>conftest.$ac_ext <<_ACEOF
2323 /* end confdefs.h. */
2333 rm -f conftest.$ac_objext
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_cv_prog_cxx_g=yes
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2352 rm -f conftest.$ac_objext conftest.$ac_ext
2354 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2355 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2356 if test "$ac_test_CXXFLAGS" = set; then
2357 CXXFLAGS=$ac_save_CXXFLAGS
2358 elif test $ac_cv_prog_cxx_g = yes; then
2359 if test "$GXX" = yes; then
2365 if test "$GXX" = yes; then
2371 for ac_declaration in \
2373 '#include <stdlib.h>' \
2374 'extern "C" void std::exit (int) throw (); using std::exit;' \
2375 'extern "C" void std::exit (int); using std::exit;' \
2376 'extern "C" void exit (int) throw ();' \
2377 'extern "C" void exit (int);' \
2380 cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f conftest.$ac_objext conftest.$ac_ext
2417 cat >conftest.$ac_ext <<_ACEOF
2418 #line $LINENO "configure"
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2451 rm -f conftest.$ac_objext conftest.$ac_ext
2454 if test -n "$ac_declaration"; then
2455 echo '#ifdef __cplusplus' >>confdefs.h
2456 echo $ac_declaration >>confdefs.h
2457 echo '#endif' >>confdefs.h
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2476 echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 if test -n "$CC"; then
2502 echo "$as_me:$LINENO: result: $CC" >&5
2503 echo "${ECHO_T}$CC" >&6
2505 echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6
2509 test -n "$CC" && break
2512 if test -z "$CC"; then
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$ac_ct_CC"; then
2524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533 ac_cv_prog_ac_ct_CC="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2545 echo "${ECHO_T}$ac_ct_CC" >&6
2547 echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2551 test -n "$ac_ct_CC" && break
2558 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2559 See \`config.log' for more details." >&5
2560 echo "$as_me: error: no acceptable C compiler found in \$PATH
2561 See \`config.log' for more details." >&2;}
2562 { (exit 1); exit 1; }; }
2564 # Provide some information about the compiler.
2565 echo "$as_me:$LINENO:" \
2566 "checking for C compiler version" >&5
2567 ac_compiler=`set X $ac_compile; echo $2`
2568 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2569 (eval $ac_compiler --version </dev/null >&5) 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2574 (eval $ac_compiler -v </dev/null >&5) 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2579 (eval $ac_compiler -V </dev/null >&5) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2584 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2585 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2586 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 cat >conftest.$ac_ext <<_ACEOF
2590 #line $LINENO "configure"
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h. */
2608 rm -f conftest.$ac_objext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610 (eval $ac_compile) 2>&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2631 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2633 GCC=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CFLAGS=${CFLAGS+set}
2635 ac_save_CFLAGS=$CFLAGS
2637 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2638 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2639 if test "${ac_cv_prog_cc_g+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 cat >conftest.$ac_ext <<_ACEOF
2643 #line $LINENO "configure"
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2658 rm -f conftest.$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660 (eval $ac_compile) 2>&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.$ac_objext conftest.$ac_ext
2679 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2681 if test "$ac_test_CFLAGS" = set; then
2682 CFLAGS=$ac_save_CFLAGS
2683 elif test $ac_cv_prog_cc_g = yes; then
2684 if test "$GCC" = yes; then
2690 if test "$GCC" = yes; then
2696 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2697 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2698 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 ac_cv_prog_cc_stdc=no
2703 cat >conftest.$ac_ext <<_ACEOF
2704 #line $LINENO "configure"
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2712 #include <sys/types.h>
2713 #include <sys/stat.h>
2714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2715 struct buf { int x; };
2716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2717 static char *e (p, i)
2723 static char *f (char * (*g) (char **, int), char **p, ...)
2728 s = g (p, va_arg (v,int));
2732 int test (int i, double x);
2733 struct s1 {int (*f) (int a);};
2734 struct s2 {int (*f) (double a);};
2735 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2741 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2746 # Don't try gcc -ansi; that turns off useful extensions and
2747 # breaks some systems' header files.
2748 # AIX -qlanglvl=ansi
2749 # Ultrix and OSF/1 -std1
2750 # HP-UX 10.20 and later -Ae
2751 # HP-UX older versions -Aa -D_HPUX_SOURCE
2752 # SVR4 -Xc -D__EXTENSIONS__
2753 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2755 CC="$ac_save_CC $ac_arg"
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } &&
2762 { ac_try='test -s conftest.$ac_objext'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; }; then
2768 ac_cv_prog_cc_stdc=$ac_arg
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2775 rm -f conftest.$ac_objext
2777 rm -f conftest.$ac_ext conftest.$ac_objext
2782 case "x$ac_cv_prog_cc_stdc" in
2784 echo "$as_me:$LINENO: result: none needed" >&5
2785 echo "${ECHO_T}none needed" >&6 ;;
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2789 CC="$CC $ac_cv_prog_cc_stdc" ;;
2792 # Some people use a C++ compiler to compile C. Since we use `exit',
2793 # in C++ we need to declare it. In case someone uses the same compiler
2794 # for both compiling C and C++ we need to have the C++ compiler decide
2795 # the declaration of exit, since it's the most demanding environment.
2796 cat >conftest.$ac_ext <<_ACEOF
2801 rm -f conftest.$ac_objext
2802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803 (eval $ac_compile) 2>&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -s conftest.$ac_objext'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2813 for ac_declaration in \
2815 '#include <stdlib.h>' \
2816 'extern "C" void std::exit (int) throw (); using std::exit;' \
2817 'extern "C" void std::exit (int); using std::exit;' \
2818 'extern "C" void exit (int) throw ();' \
2819 'extern "C" void exit (int);' \
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #line $LINENO "configure"
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2858 rm -f conftest.$ac_objext conftest.$ac_ext
2859 cat >conftest.$ac_ext <<_ACEOF
2860 #line $LINENO "configure"
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2893 rm -f conftest.$ac_objext conftest.$ac_ext
2896 if test -n "$ac_declaration"; then
2897 echo '#ifdef __cplusplus' >>confdefs.h
2898 echo $ac_declaration >>confdefs.h
2899 echo '#endif' >>confdefs.h
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f conftest.$ac_objext conftest.$ac_ext
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2920 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2921 # On Suns, sometimes $CPP names a directory.
2922 if test -n "$CPP" && test -d "$CPP"; then
2925 if test -z "$CPP"; then
2926 if test "${ac_cv_prog_CPP+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 # Double quotes because CPP needs to be expanded
2930 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2933 for ac_c_preproc_warn_flag in '' yes
2935 # Use a header file that comes with gcc, so configuring glibc
2936 # with a fresh cross-compiler works.
2937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938 # <limits.h> exists even on freestanding compilers.
2939 # On the NeXT, cc -E runs the code through the compiler's parser,
2940 # not just through cpp. "Syntax error" is here to catch this case.
2941 cat >conftest.$ac_ext <<_ACEOF
2942 #line $LINENO "configure"
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2949 # include <limits.h>
2951 # include <assert.h>
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null; then
2963 if test -s conftest.err; then
2964 ac_cpp_err=$ac_c_preproc_warn_flag
2971 if test -z "$ac_cpp_err"; then
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2977 # Broken: fails on valid input.
2980 rm -f conftest.err conftest.$ac_ext
2982 # OK, works on sane cases. Now check whether non-existent headers
2983 # can be detected and how.
2984 cat >conftest.$ac_ext <<_ACEOF
2985 #line $LINENO "configure"
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <ac_nonexistent.h>
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null; then
3001 if test -s conftest.err; then
3002 ac_cpp_err=$ac_c_preproc_warn_flag
3009 if test -z "$ac_cpp_err"; then
3010 # Broken: success on invalid input.
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 # Passes both tests.
3020 rm -f conftest.err conftest.$ac_ext
3023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024 rm -f conftest.err conftest.$ac_ext
3025 if $ac_preproc_ok; then
3037 echo "$as_me:$LINENO: result: $CPP" >&5
3038 echo "${ECHO_T}$CPP" >&6
3040 for ac_c_preproc_warn_flag in '' yes
3042 # Use a header file that comes with gcc, so configuring glibc
3043 # with a fresh cross-compiler works.
3044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045 # <limits.h> exists even on freestanding compilers.
3046 # On the NeXT, cc -E runs the code through the compiler's parser,
3047 # not just through cpp. "Syntax error" is here to catch this case.
3048 cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3056 # include <limits.h>
3058 # include <assert.h>
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3078 if test -z "$ac_cpp_err"; then
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 # Broken: fails on valid input.
3087 rm -f conftest.err conftest.$ac_ext
3089 # OK, works on sane cases. Now check whether non-existent headers
3090 # can be detected and how.
3091 cat >conftest.$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3098 #include <ac_nonexistent.h>
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null; then
3108 if test -s conftest.err; then
3109 ac_cpp_err=$ac_c_preproc_warn_flag
3116 if test -z "$ac_cpp_err"; then
3117 # Broken: success on invalid input.
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 # Passes both tests.
3127 rm -f conftest.err conftest.$ac_ext
3130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3131 rm -f conftest.err conftest.$ac_ext
3132 if $ac_preproc_ok; then
3135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3136 See \`config.log' for more details." >&5
3137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&2;}
3139 { (exit 1); exit 1; }; }
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test "$GCC" != "yes"
3151 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3152 echo "$as_me: error: gcc required but not found" >&2;}
3153 { (exit 1); exit 1; }; }
3156 if test "$GXX" != "yes"
3158 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3159 echo "$as_me: error: g++ required but not found" >&2;}
3160 { (exit 1); exit 1; }; }
3163 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3164 if test "$gccmajor" -lt "3"
3166 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3167 echo "$as_me: error: gcc 3.x required" >&2;}
3168 { (exit 1); exit 1; }; }
3171 echo "$as_me:$LINENO: checking for GNU make" >&5
3172 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3173 if test "${_cv_gnu_make_command+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 _cv_gnu_make_command='' ;
3177 for a in "$MAKE" make gmake gnumake ; do
3178 if test -z "$a" ; then continue ; fi ;
3179 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3180 _cv_gnu_make_command=$a ;
3186 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3187 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3188 if test "x$_cv_gnu_make_command" != "x" ; then
3192 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3193 echo "${ECHO_T}\"Not found\"" >&6;
3197 if test -z "$_cv_gnu_make_command"
3199 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3200 echo "$as_me: error: GNU Make required but not found" >&2;}
3201 { (exit 1); exit 1; }; }
3205 echo "$as_me:$LINENO: checking " >&5
3206 echo $ECHO_N "checking ... $ECHO_C" >&6
3207 if test "${ac_cv_has_flex+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 for ac_prog in flex lex
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 echo "$as_me:$LINENO: checking for $ac_word" >&5
3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216 if test "${ac_cv_prog_LEX+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 if test -n "$LEX"; then
3220 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_LEX="$ac_prog"
3230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 if test -n "$LEX"; then
3240 echo "$as_me:$LINENO: result: $LEX" >&5
3241 echo "${ECHO_T}$LEX" >&6
3243 echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3247 test -n "$LEX" && break
3249 test -n "$LEX" || LEX=":"
3251 if test -z "$LEXLIB"
3253 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3254 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3255 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 ac_check_lib_save_LIBS=$LIBS
3260 cat >conftest.$ac_ext <<_ACEOF
3261 #line $LINENO "configure"
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3268 /* Override any gcc2 internal prototype to avoid an error. */
3272 /* We use char because int might match the return type of a gcc2
3273 builtin and then its argument prototype would still apply. */
3283 rm -f conftest.$ac_objext conftest$ac_exeext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3285 (eval $ac_link) 2>&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try='test -s conftest$ac_exeext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_cv_lib_fl_yywrap=yes
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 ac_cv_lib_fl_yywrap=no
3302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3303 LIBS=$ac_check_lib_save_LIBS
3305 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3306 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3307 if test $ac_cv_lib_fl_yywrap = yes; then
3310 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3311 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3312 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 ac_check_lib_save_LIBS=$LIBS
3317 cat >conftest.$ac_ext <<_ACEOF
3318 #line $LINENO "configure"
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3325 /* Override any gcc2 internal prototype to avoid an error. */
3329 /* We use char because int might match the return type of a gcc2
3330 builtin and then its argument prototype would still apply. */
3340 rm -f conftest.$ac_objext conftest$ac_exeext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -s conftest$ac_exeext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_cv_lib_l_yywrap=yes
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 ac_cv_lib_l_yywrap=no
3359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3360 LIBS=$ac_check_lib_save_LIBS
3362 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3363 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3364 if test $ac_cv_lib_l_yywrap = yes; then
3372 if test "x$LEX" != "x:"; then
3373 echo "$as_me:$LINENO: checking lex output file root" >&5
3374 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3375 if test "${ac_cv_prog_lex_root+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 # The minimal lex program is just a single line: %%. But some broken lexes
3379 # (Solaris, I think it was) want two %% lines, so accommodate them.
3380 cat >conftest.l <<_ACEOF
3384 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3385 (eval $LEX conftest.l) 2>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }
3389 if test -f lex.yy.c; then
3390 ac_cv_prog_lex_root=lex.yy
3391 elif test -f lexyy.c; then
3392 ac_cv_prog_lex_root=lexyy
3394 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3395 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3396 { (exit 1); exit 1; }; }
3399 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3400 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3402 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3404 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3405 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3406 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 # POSIX says lex can declare yytext either as a pointer or an array; the
3410 # default is implementation-dependent. Figure out which it is, since
3411 # not all implementations provide the %pointer and %array declarations.
3412 ac_cv_prog_lex_yytext_pointer=no
3413 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3415 LIBS="$LIBS $LEXLIB"
3416 cat >conftest.$ac_ext <<_ACEOF
3417 `cat $LEX_OUTPUT_ROOT.c`
3419 rm -f conftest.$ac_objext conftest$ac_exeext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3421 (eval $ac_link) 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -s conftest$ac_exeext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_prog_lex_yytext_pointer=yes
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3439 rm -f "${LEX_OUTPUT_ROOT}.c"
3442 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3443 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3444 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3446 cat >>confdefs.h <<\_ACEOF
3447 #define YYTEXT_POINTER 1
3455 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3456 echo "${ECHO_T}$ac_cv_has_flex" >&6
3457 if test "$LEX" != "flex"; then
3458 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3459 echo "$as_me: error: flex not found but required" >&2;}
3460 { (exit 1); exit 1; }; }
3463 echo "$as_me:$LINENO: checking " >&5
3464 echo $ECHO_N "checking ... $ECHO_C" >&6
3465 if test "${ac_cv_has_bison+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 for ac_prog in 'bison -y' byacc
3470 # Extract the first word of "$ac_prog", so it can be a program name with args.
3471 set dummy $ac_prog; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_prog_YACC+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 if test -n "$YACC"; then
3478 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_YACC="$ac_prog"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 YACC=$ac_cv_prog_YACC
3497 if test -n "$YACC"; then
3498 echo "$as_me:$LINENO: result: $YACC" >&5
3499 echo "${ECHO_T}$YACC" >&6
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3505 test -n "$YACC" && break
3507 test -n "$YACC" || YACC="yacc"
3511 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3512 echo "${ECHO_T}$ac_cv_has_bison" >&6
3513 if test "$YACC" != "bison -y"; then
3514 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3515 echo "$as_me: error: bison not found but required" >&2;}
3516 { (exit 1); exit 1; }; }
3523 # Check whether --enable-shared or --disable-shared was given.
3524 if test "${enable_shared+set}" = set; then
3525 enableval="$enable_shared"
3526 p=${PACKAGE-default}
3528 yes) enable_shared=yes ;;
3529 no) enable_shared=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
3547 # Check whether --enable-static or --disable-static was given.
3548 if test "${enable_static+set}" = set; then
3549 enableval="$enable_static"
3550 p=${PACKAGE-default}
3552 yes) enable_static=yes ;;
3553 no) enable_static=no ;;
3556 # Look at the argument we got. We use all the common list separators.
3557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3558 for pkg in $enableval; do
3560 if test "X$pkg" = "X$p"; then
3571 # Check whether --enable-fast-install or --disable-fast-install was given.
3572 if test "${enable_fast_install+set}" = set; then
3573 enableval="$enable_fast_install"
3574 p=${PACKAGE-default}
3576 yes) enable_fast_install=yes ;;
3577 no) enable_fast_install=no ;;
3579 enable_fast_install=no
3580 # Look at the argument we got. We use all the common list separators.
3581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3582 for pkg in $enableval; do
3584 if test "X$pkg" = "X$p"; then
3585 enable_fast_install=yes
3592 enable_fast_install=yes
3595 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3596 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3597 if test "${lt_cv_path_SED+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 # Loop through the user's path and test for sed and gsed.
3601 # Then use that list of sed's as ones to test for truncation.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir=.
3607 for lt_ac_prog in sed gsed; do
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3610 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3617 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3618 # along with /bin/sed that truncates output.
3619 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3620 test ! -f $lt_ac_sed && break
3621 cat /dev/null > conftest.in
3623 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3624 # Check for GNU sed and select it if it is found.
3625 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3626 lt_cv_path_SED=$lt_ac_sed
3630 cat conftest.in conftest.in >conftest.tmp
3631 mv conftest.tmp conftest.in
3632 cp conftest.in conftest.nl
3634 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3635 cmp -s conftest.out conftest.nl || break
3636 # 10000 chars as input seems more than enough
3637 test $lt_ac_count -gt 10 && break
3638 lt_ac_count=`expr $lt_ac_count + 1`
3639 if test $lt_ac_count -gt $lt_ac_max; then
3640 lt_ac_max=$lt_ac_count
3641 lt_cv_path_SED=$lt_ac_sed
3649 echo "$as_me:$LINENO: result: $SED" >&5
3650 echo "${ECHO_T}$SED" >&6
3652 echo "$as_me:$LINENO: checking for egrep" >&5
3653 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3654 if test "${ac_cv_prog_egrep+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3658 then ac_cv_prog_egrep='grep -E'
3659 else ac_cv_prog_egrep='egrep'
3662 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3663 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3664 EGREP=$ac_cv_prog_egrep
3668 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3669 if test "${with_gnu_ld+set}" = set; then
3670 withval="$with_gnu_ld"
3671 test "$withval" = no || with_gnu_ld=yes
3676 if test "$GCC" = yes; then
3677 # Check if gcc -print-prog-name=ld gives a path.
3678 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3679 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3682 # gcc leaves a trailing carriage return which upsets mingw
3683 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3685 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3688 # Accept absolute paths.
3690 re_direlt='/[^/][^/]*/\.\./'
3691 # Canonicalize the path of ld
3692 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3693 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3694 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3696 test -z "$LD" && LD="$ac_prog"
3699 # If it fails, then pretend we aren't using GCC.
3703 # If it is relative, then search for the first ld in PATH.
3707 elif test "$with_gnu_ld" = yes; then
3708 echo "$as_me:$LINENO: checking for GNU ld" >&5
3709 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3711 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3712 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3714 if test "${lt_cv_path_LD+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 if test -z "$LD"; then
3718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3719 for ac_dir in $PATH; do
3721 test -z "$ac_dir" && ac_dir=.
3722 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3723 lt_cv_path_LD="$ac_dir/$ac_prog"
3724 # Check to see if the program is GNU ld. I'd rather use --version,
3725 # but apparently some GNU ld's only accept -v.
3726 # Break only if it was the GNU/non-GNU ld that we prefer.
3727 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3728 *GNU* | *'with BFD'*)
3729 test "$with_gnu_ld" != no && break
3732 test "$with_gnu_ld" != yes && break
3739 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3744 if test -n "$LD"; then
3745 echo "$as_me:$LINENO: result: $LD" >&5
3746 echo "${ECHO_T}$LD" >&6
3748 echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3751 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3752 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3753 { (exit 1); exit 1; }; }
3754 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3755 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3756 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3760 case `"$LD" -v 2>&1 </dev/null` in
3761 *GNU* | *'with BFD'*)
3762 lt_cv_prog_gnu_ld=yes
3765 lt_cv_prog_gnu_ld=no
3769 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3770 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3771 with_gnu_ld=$lt_cv_prog_gnu_ld
3774 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3775 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3776 if test "${lt_cv_ld_reload_flag+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 lt_cv_ld_reload_flag='-r'
3781 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3782 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3783 reload_flag=$lt_cv_ld_reload_flag
3784 case $reload_flag in
3786 *) reload_flag=" $reload_flag" ;;
3788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3790 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3791 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3792 if test "${lt_cv_path_NM+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 if test -n "$NM"; then
3796 # Let the user override the test.
3799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3800 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3802 test -z "$ac_dir" && ac_dir=.
3803 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3804 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3805 # Check to see if the nm accepts a BSD-compat flag.
3806 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3807 # nm: unknown option "B" ignored
3808 # Tru64's nm complains that /dev/null is an invalid object file
3809 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3810 */dev/null* | *'Invalid file or object type'*)
3811 lt_cv_path_NM="$tmp_nm -B"
3815 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3817 lt_cv_path_NM="$tmp_nm -p"
3821 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3822 continue # so that we can try to find one that supports BSD flags
3829 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3832 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3833 echo "${ECHO_T}$lt_cv_path_NM" >&6
3836 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3837 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3839 if test "$LN_S" = "ln -s"; then
3840 echo "$as_me:$LINENO: result: yes" >&5
3841 echo "${ECHO_T}yes" >&6
3843 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3844 echo "${ECHO_T}no, using $LN_S" >&6
3847 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3848 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3849 if test "${lt_cv_deplibs_check_method+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 lt_cv_file_magic_cmd='$MAGIC_CMD'
3853 lt_cv_file_magic_test_file=
3854 lt_cv_deplibs_check_method='unknown'
3855 # Need to set the preceding variable on all platforms that support
3856 # interlibrary dependencies.
3857 # 'none' -- dependencies not supported.
3858 # `unknown' -- same as none, but documents that we really don't know.
3859 # 'pass_all' -- all dependencies passed with no checks.
3860 # 'test_compile' -- check by making test program.
3861 # 'file_magic [[regex]]' -- check by looking for files in library path
3862 # which responds to the $file_magic_cmd with a given extended regex.
3863 # If you have `file' or equivalent on your system and you're not sure
3864 # whether `pass_all' will *always* work, you probably want this one.
3868 lt_cv_deplibs_check_method=pass_all
3872 lt_cv_deplibs_check_method=pass_all
3876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3877 lt_cv_file_magic_cmd='/usr/bin/file -L'
3878 lt_cv_file_magic_test_file=/shlib/libc.so
3881 cygwin* | mingw* | pw32*)
3882 # win32_libid is a shell function defined in ltmain.sh
3883 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3884 lt_cv_file_magic_cmd='win32_libid'
3887 darwin* | rhapsody*)
3888 # this will be overwritten by pass_all, but leave it in just in case
3889 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3890 lt_cv_file_magic_cmd='/usr/bin/file -L'
3892 rhapsody* | darwin1.[012])
3893 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3896 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3899 lt_cv_deplibs_check_method=pass_all
3903 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3906 # Not sure whether the presence of OpenBSD here was a mistake.
3907 # Let's accept both of them until this is cleared up.
3908 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3909 lt_cv_file_magic_cmd=/usr/bin/file
3910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3914 lt_cv_deplibs_check_method=pass_all
3919 lt_cv_deplibs_check_method=pass_all
3922 hpux10.20* | hpux11*)
3923 lt_cv_file_magic_cmd=/usr/bin/file
3926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3927 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3930 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]'
3931 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3934 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3935 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3940 irix5* | irix6* | nonstopux*)
3942 irix5* | nonstopux*)
3943 # this will be overridden with pass_all, but let us keep it just in case
3944 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3948 *-32|*"-32 ") libmagic=32-bit;;
3949 *-n32|*"-n32 ") libmagic=N32;;
3950 *-64|*"-64 ") libmagic=64-bit;;
3951 *) libmagic=never-match;;
3953 # this will be overridden with pass_all, but let us keep it just in case
3954 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3957 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3958 lt_cv_deplibs_check_method=pass_all
3961 # This must be Linux ELF.
3964 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3965 lt_cv_deplibs_check_method=pass_all ;;
3967 # glibc up to 2.1.1 does not perform some relocations on ARM
3968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3970 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3974 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3983 lt_cv_file_magic_cmd=/usr/bin/file
3984 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3988 lt_cv_deplibs_check_method=unknown
3992 lt_cv_file_magic_cmd=/usr/bin/file
3993 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3997 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4001 osf3* | osf4* | osf5*)
4002 # this will be overridden with pass_all, but let us keep it just in case
4003 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4004 lt_cv_file_magic_test_file=/shlib/libc.so
4005 lt_cv_deplibs_check_method=pass_all
4009 lt_cv_deplibs_check_method=pass_all
4013 lt_cv_deplibs_check_method=pass_all
4014 lt_cv_file_magic_test_file=/lib/libc.so
4017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4018 case $host_vendor in
4020 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]'
4021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4024 lt_cv_deplibs_check_method=pass_all
4027 lt_cv_file_magic_cmd='/bin/file'
4028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4031 lt_cv_file_magic_cmd='/bin/file'
4032 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4033 lt_cv_file_magic_test_file=/lib/libc.so
4036 lt_cv_deplibs_check_method=pass_all
4041 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4042 lt_cv_deplibs_check_method=pass_all
4047 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4048 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4049 file_magic_cmd=$lt_cv_file_magic_cmd
4050 deplibs_check_method=$lt_cv_deplibs_check_method
4051 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4056 # If no C compiler was specified, use CC.
4059 # Allow CC to be a program name with arguments.
4062 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4063 if test "${enable_libtool_lock+set}" = set; then
4064 enableval="$enable_libtool_lock"
4067 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4069 # Some flags need to be propagated to the compiler or linker for good
4073 # Find out which ABI we are using.
4074 echo 'int i;' > conftest.$ac_ext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; then
4080 case `/usr/bin/file conftest.$ac_objext` in
4092 # Find out which ABI we are using.
4093 echo '#line 4093 "configure"' > conftest.$ac_ext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; then
4099 if test "$lt_cv_prog_gnu_ld" = yes; then
4100 case `/usr/bin/file conftest.$ac_objext` in
4102 LD="${LD-ld} -melf32bsmip"
4105 LD="${LD-ld} -melf32bmipn32"
4108 LD="${LD-ld} -melf64bmip"
4112 case `/usr/bin/file conftest.$ac_objext` in
4128 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4129 # Find out which ABI we are using.
4130 echo 'int i;' > conftest.$ac_ext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132 (eval $ac_compile) 2>&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; then
4136 case "`/usr/bin/file conftest.o`" in
4140 LD="${LD-ld} -m elf_i386"
4143 LD="${LD-ld} -m elf32ppclinux"
4146 LD="${LD-ld} -m elf_s390"
4149 LD="${LD-ld} -m elf32_sparc"
4156 LD="${LD-ld} -m elf_x86_64"
4158 ppc*-*linux*|powerpc*-*linux*)
4159 LD="${LD-ld} -m elf64ppc"
4162 LD="${LD-ld} -m elf64_s390"
4165 LD="${LD-ld} -m elf64_sparc"
4175 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4176 SAVE_CFLAGS="$CFLAGS"
4177 CFLAGS="$CFLAGS -belf"
4178 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4179 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4180 if test "${lt_cv_cc_needs_belf+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 cat >conftest.$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4205 rm -f conftest.$ac_objext conftest$ac_exeext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4207 (eval $ac_link) 2>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -s conftest$ac_exeext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 lt_cv_cc_needs_belf=yes
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 lt_cv_cc_needs_belf=no
4224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4233 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4234 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4235 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4236 CFLAGS="$SAVE_CFLAGS"
4242 need_locks="$enable_libtool_lock"
4246 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4248 if test "${ac_cv_header_stdc+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 cat >conftest.$ac_ext <<_ACEOF
4252 #line $LINENO "configure"
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_header_stdc=yes
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 ac_cv_header_stdc=no
4290 rm -f conftest.$ac_objext conftest.$ac_ext
4292 if test $ac_cv_header_stdc = yes; then
4293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4294 cat >conftest.$ac_ext <<_ACEOF
4295 #line $LINENO "configure"
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305 $EGREP "memchr" >/dev/null 2>&1; then
4308 ac_cv_header_stdc=no
4314 if test $ac_cv_header_stdc = yes; then
4315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4317 #line $LINENO "configure"
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4327 $EGREP "free" >/dev/null 2>&1; then
4330 ac_cv_header_stdc=no
4336 if test $ac_cv_header_stdc = yes; then
4337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4338 if test "$cross_compiling" = yes; then
4341 cat >conftest.$ac_ext <<_ACEOF
4342 #line $LINENO "configure"
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4349 #if ((' ' & 0x0FF) == 0x020)
4350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4353 # define ISLOWER(c) \
4354 (('a' <= (c) && (c) <= 'i') \
4355 || ('j' <= (c) && (c) <= 'r') \
4356 || ('s' <= (c) && (c) <= 'z'))
4357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4365 for (i = 0; i < 256; i++)
4366 if (XOR (islower (i), ISLOWER (i))
4367 || toupper (i) != TOUPPER (i))
4372 rm -f conftest$ac_exeext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374 (eval $ac_link) 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4385 echo "$as_me: program exited with status $ac_status" >&5
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_cv_header_stdc=no
4392 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4396 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4397 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4398 if test $ac_cv_header_stdc = yes; then
4400 cat >>confdefs.h <<\_ACEOF
4401 #define STDC_HEADERS 1
4406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4416 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4417 inttypes.h stdint.h unistd.h
4419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4420 echo "$as_me:$LINENO: checking for $ac_header" >&5
4421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 cat >conftest.$ac_ext <<_ACEOF
4426 #line $LINENO "configure"
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 $ac_includes_default
4434 #include <$ac_header>
4436 rm -f conftest.$ac_objext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 eval "$as_ac_Header=yes"
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 eval "$as_ac_Header=no"
4455 rm -f conftest.$ac_objext conftest.$ac_ext
4457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4460 cat >>confdefs.h <<_ACEOF
4461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4470 for ac_header in dlfcn.h
4472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4474 echo "$as_me:$LINENO: checking for $ac_header" >&5
4475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4482 # Is the header compilable?
4483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4485 cat >conftest.$ac_ext <<_ACEOF
4486 #line $LINENO "configure"
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 $ac_includes_default
4493 #include <$ac_header>
4495 rm -f conftest.$ac_objext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4507 ac_header_compiler=yes
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 ac_header_compiler=no
4514 rm -f conftest.$ac_objext conftest.$ac_ext
4515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4516 echo "${ECHO_T}$ac_header_compiler" >&6
4518 # Is the header present?
4519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line $LINENO "configure"
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 #include <$ac_header>
4530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4533 grep -v '^ *+' conftest.er1 >conftest.err
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } >/dev/null; then
4538 if test -s conftest.err; then
4539 ac_cpp_err=$ac_c_preproc_warn_flag
4546 if test -z "$ac_cpp_err"; then
4547 ac_header_preproc=yes
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 ac_header_preproc=no
4554 rm -f conftest.err conftest.$ac_ext
4555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4556 echo "${ECHO_T}$ac_header_preproc" >&6
4558 # So? What about this header?
4559 case $ac_header_compiler:$ac_header_preproc in
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4567 ## ------------------------------------ ##
4568 ## Report this to bug-autoconf@gnu.org. ##
4569 ## ------------------------------------ ##
4572 sed "s/^/$as_me: WARNING: /" >&2
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4583 ## ------------------------------------ ##
4584 ## Report this to bug-autoconf@gnu.org. ##
4585 ## ------------------------------------ ##
4588 sed "s/^/$as_me: WARNING: /" >&2
4591 echo "$as_me:$LINENO: checking for $ac_header" >&5
4592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 eval "$as_ac_Header=$ac_header_preproc"
4598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4603 cat >>confdefs.h <<_ACEOF
4604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4612 ac_cpp='$CXXCPP $CPPFLAGS'
4613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4616 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4617 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4618 if test -z "$CXXCPP"; then
4619 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 # Double quotes because CXXCPP needs to be expanded
4623 for CXXCPP in "$CXX -E" "/lib/cpp"
4626 for ac_cxx_preproc_warn_flag in '' yes
4628 # Use a header file that comes with gcc, so configuring glibc
4629 # with a fresh cross-compiler works.
4630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4631 # <limits.h> exists even on freestanding compilers.
4632 # On the NeXT, cc -E runs the code through the compiler's parser,
4633 # not just through cpp. "Syntax error" is here to catch this case.
4634 cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4642 # include <limits.h>
4644 # include <assert.h>
4648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4651 grep -v '^ *+' conftest.er1 >conftest.err
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } >/dev/null; then
4656 if test -s conftest.err; then
4657 ac_cpp_err=$ac_cxx_preproc_warn_flag
4664 if test -z "$ac_cpp_err"; then
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4670 # Broken: fails on valid input.
4673 rm -f conftest.err conftest.$ac_ext
4675 # OK, works on sane cases. Now check whether non-existent headers
4676 # can be detected and how.
4677 cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 #include <ac_nonexistent.h>
4686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4689 grep -v '^ *+' conftest.er1 >conftest.err
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } >/dev/null; then
4694 if test -s conftest.err; then
4695 ac_cpp_err=$ac_cxx_preproc_warn_flag
4702 if test -z "$ac_cpp_err"; then
4703 # Broken: success on invalid input.
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 # Passes both tests.
4713 rm -f conftest.err conftest.$ac_ext
4716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4717 rm -f conftest.err conftest.$ac_ext
4718 if $ac_preproc_ok; then
4723 ac_cv_prog_CXXCPP=$CXXCPP
4726 CXXCPP=$ac_cv_prog_CXXCPP
4728 ac_cv_prog_CXXCPP=$CXXCPP
4730 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4731 echo "${ECHO_T}$CXXCPP" >&6
4733 for ac_cxx_preproc_warn_flag in '' yes
4735 # Use a header file that comes with gcc, so configuring glibc
4736 # with a fresh cross-compiler works.
4737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4738 # <limits.h> exists even on freestanding compilers.
4739 # On the NeXT, cc -E runs the code through the compiler's parser,
4740 # not just through cpp. "Syntax error" is here to catch this case.
4741 cat >conftest.$ac_ext <<_ACEOF
4742 #line $LINENO "configure"
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4749 # include <limits.h>
4751 # include <assert.h>
4755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4758 grep -v '^ *+' conftest.er1 >conftest.err
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev/null; then
4763 if test -s conftest.err; then
4764 ac_cpp_err=$ac_cxx_preproc_warn_flag
4771 if test -z "$ac_cpp_err"; then
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 # Broken: fails on valid input.
4780 rm -f conftest.err conftest.$ac_ext
4782 # OK, works on sane cases. Now check whether non-existent headers
4783 # can be detected and how.
4784 cat >conftest.$ac_ext <<_ACEOF
4785 #line $LINENO "configure"
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 #include <ac_nonexistent.h>
4793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } >/dev/null; then
4801 if test -s conftest.err; then
4802 ac_cpp_err=$ac_cxx_preproc_warn_flag
4809 if test -z "$ac_cpp_err"; then
4810 # Broken: success on invalid input.
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 # Passes both tests.
4820 rm -f conftest.err conftest.$ac_ext
4823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824 rm -f conftest.err conftest.$ac_ext
4825 if $ac_preproc_ok; then
4828 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4829 See \`config.log' for more details." >&5
4830 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4831 See \`config.log' for more details." >&2;}
4832 { (exit 1); exit 1; }; }
4836 ac_cpp='$CXXCPP $CPPFLAGS'
4837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4843 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4844 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4846 if test -n "$ac_tool_prefix"; then
4847 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_F77+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 if test -n "$F77"; then
4857 ac_cv_prog_F77="$F77" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 if test -n "$F77"; then
4877 echo "$as_me:$LINENO: result: $F77" >&5
4878 echo "${ECHO_T}$F77" >&6
4880 echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6
4884 test -n "$F77" && break
4887 if test -z "$F77"; then
4889 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4891 # Extract the first word of "$ac_prog", so it can be a program name with args.
4892 set dummy $ac_prog; ac_word=$2
4893 echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4895 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 if test -n "$ac_ct_F77"; then
4899 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_prog_ac_ct_F77="$ac_prog"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4918 if test -n "$ac_ct_F77"; then
4919 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4920 echo "${ECHO_T}$ac_ct_F77" >&6
4922 echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6
4926 test -n "$ac_ct_F77" && break
4933 # Provide some information about the compiler.
4934 echo "$as_me:4934:" \
4935 "checking for Fortran 77 compiler version" >&5
4936 ac_compiler=`set X $ac_compile; echo $2`
4937 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4938 (eval $ac_compiler --version </dev/null >&5) 2>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }
4942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4943 (eval $ac_compiler -v </dev/null >&5) 2>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }
4947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4948 (eval $ac_compiler -V </dev/null >&5) 2>&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }
4953 # If we don't use `.F' as extension, the preprocessor is not run on the
4957 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4958 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4959 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 cat >conftest.$ac_ext <<_ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4989 rm -f conftest.$ac_objext conftest.$ac_ext
4990 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4993 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4994 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4996 G77=`test $ac_compiler_gnu = yes && echo yes`
4997 ac_test_FFLAGS=${FFLAGS+set}
4998 ac_save_FFLAGS=$FFLAGS
5000 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5001 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5002 if test "${ac_cv_prog_f77_g+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 cat >conftest.$ac_ext <<_ACEOF
5011 rm -f conftest.$ac_objext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -s conftest.$ac_objext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 ac_cv_prog_f77_g=yes
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5030 rm -f conftest.$ac_objext conftest.$ac_ext
5033 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5034 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5035 if test "$ac_test_FFLAGS" = set; then
5036 FFLAGS=$ac_save_FFLAGS
5037 elif test $ac_cv_prog_f77_g = yes; then
5038 if test "$G77" = yes; then
5044 if test "$G77" = yes; then
5051 ac_cpp='$CPP $CPPFLAGS'
5052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5058 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5060 # find the maximum length of command line arguments
5061 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5062 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5063 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 # On DJGPP, this test can blow up pretty badly due to problems in libc
5072 # (any single argument exceeding 2000 bytes causes a buffer overrun
5073 # during glob expansion). Even if it were fixed, the result of this
5074 # check would be larger than it should be.
5075 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5079 # Under GNU Hurd, this test is not required because there is
5080 # no limit to the length of command line arguments.
5081 # Libtool will interpret -1 as no limit whatsoever
5082 lt_cv_sys_max_cmd_len=-1;
5086 # On Win9x/ME, this test blows up -- it succeeds, but takes
5087 # about 5 minutes as the teststring grows exponentially.
5088 # Worse, since 9x/ME are not pre-emptively multitasking,
5089 # you end up with a "frozen" computer, even though with patience
5090 # the test eventually succeeds (with a max line length of 256k).
5091 # Instead, let's just punt: use the minimum linelength reported by
5092 # all of the supported platforms: 8192 (on NT/2K/XP).
5093 lt_cv_sys_max_cmd_len=8192;
5097 # If test is not a shell built-in, we'll probably end up computing a
5098 # maximum length that is only half of the actual maximum length, but
5100 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5101 = "XX$testring") >/dev/null 2>&1 &&
5102 new_result=`expr "X$testring" : ".*" 2>&1` &&
5103 lt_cv_sys_max_cmd_len=$new_result &&
5104 test $i != 17 # 1/2 MB should be enough
5107 testring=$testring$testring
5110 # Add a significant safety factor because C++ compilers can tack on massive
5111 # amounts of additional arguments before passing them to the linker.
5112 # It appears as though 1/2 is a usable value.
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5119 if test -n $lt_cv_sys_max_cmd_len ; then
5120 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5121 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5123 echo "$as_me:$LINENO: result: none" >&5
5124 echo "${ECHO_T}none" >&6
5130 # Check for command to grab the raw symbol name followed by C symbol from nm.
5131 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5132 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5133 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 # These are sane defaults that work on at least a few old systems.
5138 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5140 # Character class describing NM global symbol codes.
5141 symcode='[BCDEGRST]'
5143 # Regexp to match symbols that can be accessed directly from C.
5144 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5146 # Transform the above into a raw symbol and a C symbol.
5147 symxfrm='\1 \2\3 \3'
5149 # Transform an extracted symbol line into a proper C declaration
5150 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5152 # Transform an extracted symbol line into symbol name and symbol address
5153 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'"
5155 # Define system-specific variables.
5160 cygwin* | mingw* | pw32*)
5161 symcode='[ABCDGISTW]'
5163 hpux*) # Its linker distinguishes data from code symbols
5164 if test "$host_cpu" = ia64; then
5165 symcode='[ABCDEGRST]'
5167 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5168 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'"
5171 symcode='[BCDEGRST]'
5174 symcode='[BCDEGQRST]'
5184 # Handle CRLF in mingw tool chain
5188 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5192 # If we're using GNU nm, then use its standard symbol codes.
5193 case `$NM -V 2>&1` in
5194 *GNU* | *'with BFD'*)
5195 symcode='[ABCDGISTW]' ;;
5198 # Try without a prefix undercore, then with it.
5199 for ac_symprfx in "" "_"; do
5201 # Write the raw and C identifiers.
5202 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5204 # Check to see that the pipe works correctly.
5208 cat > conftest.$ac_ext <<EOF
5213 void nm_test_func(){}
5217 int main(){nm_test_var='a';nm_test_func();return(0);}
5220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; then
5225 # Now try to grab the symbols.
5227 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5228 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && test -s "$nlist"; then
5232 # Try sorting and uniquifying the output.
5233 if sort "$nlist" | uniq > "$nlist"T; then
5234 mv -f "$nlist"T "$nlist"
5239 # Make sure that we snagged all the symbols we need.
5240 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5241 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5242 cat <<EOF > conftest.$ac_ext
5248 # Now generate the symbol file.
5249 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5251 cat <<EOF >> conftest.$ac_ext
5252 #if defined (__STDC__) && __STDC__
5253 # define lt_ptr_t void *
5255 # define lt_ptr_t char *
5259 /* The mapping between symbol names and symbols. */
5264 lt_preloaded_symbols[] =
5267 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5268 cat <<\EOF >> conftest.$ac_ext
5276 # Now try linking the two files.
5277 mv conftest.$ac_objext conftstm.$ac_objext
5278 lt_save_LIBS="$LIBS"
5279 lt_save_CFLAGS="$CFLAGS"
5280 LIBS="conftstm.$ac_objext"
5281 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5283 (eval $ac_link) 2>&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5289 LIBS="$lt_save_LIBS"
5290 CFLAGS="$lt_save_CFLAGS"
5292 echo "cannot find nm_test_func in $nlist" >&5
5295 echo "cannot find nm_test_var in $nlist" >&5
5298 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5301 echo "$progname: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5304 rm -f conftest* conftst*
5306 # Do not use the global_symbol_pipe unless it works.
5307 if test "$pipe_works" = yes; then
5310 lt_cv_sys_global_symbol_pipe=
5316 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5317 lt_cv_sys_global_symbol_to_cdecl=
5319 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5320 echo "$as_me:$LINENO: result: failed" >&5
5321 echo "${ECHO_T}failed" >&6
5323 echo "$as_me:$LINENO: result: ok" >&5
5324 echo "${ECHO_T}ok" >&6
5327 echo "$as_me:$LINENO: checking for objdir" >&5
5328 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5329 if test "${lt_cv_objdir+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 rm -f .libs 2>/dev/null
5333 mkdir .libs 2>/dev/null
5334 if test -d .libs; then
5337 # MS-DOS does not allow filenames that begin with a dot.
5340 rmdir .libs 2>/dev/null
5342 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5343 echo "${ECHO_T}$lt_cv_objdir" >&6
5344 objdir=$lt_cv_objdir
5352 # AIX sometimes has problems with the GCC collect2 program. For some
5353 # reason, if we set the COLLECT_NAMES environment variable, the problems
5354 # vanish in a puff of smoke.
5355 if test "X${COLLECT_NAMES+set}" != Xset; then
5357 export COLLECT_NAMES
5362 # Sed substitution that helps us do robust quoting. It backslashifies
5363 # metacharacters that are still active within double-quoted strings.
5364 Xsed='sed -e s/^X//'
5365 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5367 # Same as above, but do not quote variable references.
5368 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5370 # Sed substitution to delay expansion of an escaped shell variable in a
5371 # double_quote_subst'ed string.
5372 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5374 # Sed substitution to avoid accidental globbing in evaled expressions
5375 no_glob_subst='s/\*/\\\*/g'
5382 can_build_shared=yes
5384 # All known linkers require a `.a' archive for static linking (except M$VC,
5385 # which needs '.lib').
5387 ltmain="$ac_aux_dir/ltmain.sh"
5388 ofile="$default_ofile"
5389 with_gnu_ld="$lt_cv_prog_gnu_ld"
5391 if test -n "$ac_tool_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5393 set dummy ${ac_tool_prefix}ar; ac_word=$2
5394 echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396 if test "${ac_cv_prog_AR+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 if test -n "$AR"; then
5400 ac_cv_prog_AR="$AR" # Let the user override the test.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_AR="${ac_tool_prefix}ar"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 if test -n "$AR"; then
5420 echo "$as_me:$LINENO: result: $AR" >&5
5421 echo "${ECHO_T}$AR" >&6
5423 echo "$as_me:$LINENO: result: no" >&5
5424 echo "${ECHO_T}no" >&6
5428 if test -z "$ac_cv_prog_AR"; then
5430 # Extract the first word of "ar", so it can be a program name with args.
5431 set dummy ar; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 if test -n "$ac_ct_AR"; then
5438 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_prog_ac_ct_AR="ar"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5458 if test -n "$ac_ct_AR"; then
5459 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5460 echo "${ECHO_T}$ac_ct_AR" >&6
5462 echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5471 if test -n "$ac_tool_prefix"; then
5472 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 if test "${ac_cv_prog_RANLIB+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 if test -n "$RANLIB"; then
5480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 RANLIB=$ac_cv_prog_RANLIB
5499 if test -n "$RANLIB"; then
5500 echo "$as_me:$LINENO: result: $RANLIB" >&5
5501 echo "${ECHO_T}$RANLIB" >&6
5503 echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5508 if test -z "$ac_cv_prog_RANLIB"; then
5509 ac_ct_RANLIB=$RANLIB
5510 # Extract the first word of "ranlib", so it can be a program name with args.
5511 set dummy ranlib; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 if test -n "$ac_ct_RANLIB"; then
5518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_prog_ac_ct_RANLIB="ranlib"
5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5538 if test -n "$ac_ct_RANLIB"; then
5539 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5540 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5542 echo "$as_me:$LINENO: result: no" >&5
5543 echo "${ECHO_T}no" >&6
5546 RANLIB=$ac_ct_RANLIB
5548 RANLIB="$ac_cv_prog_RANLIB"
5551 if test -n "$ac_tool_prefix"; then
5552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5553 set dummy ${ac_tool_prefix}strip; ac_word=$2
5554 echo "$as_me:$LINENO: checking for $ac_word" >&5
5555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556 if test "${ac_cv_prog_STRIP+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 if test -n "$STRIP"; then
5560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 STRIP=$ac_cv_prog_STRIP
5579 if test -n "$STRIP"; then
5580 echo "$as_me:$LINENO: result: $STRIP" >&5
5581 echo "${ECHO_T}$STRIP" >&6
5583 echo "$as_me:$LINENO: result: no" >&5
5584 echo "${ECHO_T}no" >&6
5588 if test -z "$ac_cv_prog_STRIP"; then
5590 # Extract the first word of "strip", so it can be a program name with args.
5591 set dummy strip; ac_word=$2
5592 echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 if test -n "$ac_ct_STRIP"; then
5598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_ac_ct_STRIP="strip"
5608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5618 if test -n "$ac_ct_STRIP"; then
5619 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5620 echo "${ECHO_T}$ac_ct_STRIP" >&6
5622 echo "$as_me:$LINENO: result: no" >&5
5623 echo "${ECHO_T}no" >&6
5628 STRIP="$ac_cv_prog_STRIP"
5633 old_CFLAGS="$CFLAGS"
5635 # Set sane defaults for various variables
5636 test -z "$AR" && AR=ar
5637 test -z "$AR_FLAGS" && AR_FLAGS=cru
5638 test -z "$AS" && AS=as
5639 test -z "$CC" && CC=cc
5640 test -z "$LTCC" && LTCC=$CC
5641 test -z "$DLLTOOL" && DLLTOOL=dlltool
5642 test -z "$LD" && LD=ld
5643 test -z "$LN_S" && LN_S="ln -s"
5644 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5645 test -z "$NM" && NM=nm
5646 test -z "$SED" && SED=sed
5647 test -z "$OBJDUMP" && OBJDUMP=objdump
5648 test -z "$RANLIB" && RANLIB=:
5649 test -z "$STRIP" && STRIP=:
5650 test -z "$ac_objext" && ac_objext=o
5652 # Determine commands to create old-style static archives.
5653 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5654 old_postinstall_cmds='chmod 644 $oldlib'
5655 old_postuninstall_cmds=
5657 if test -n "$RANLIB"; then
5660 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5663 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5666 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5669 # Only perform the check for file, if the check method requires it
5670 case $deplibs_check_method in
5672 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5673 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5674 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5675 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5683 lt_save_MAGIC_CMD="$MAGIC_CMD"
5684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5686 for ac_dir in $ac_dummy; do
5688 test -z "$ac_dir" && ac_dir=.
5689 if test -f $ac_dir/${ac_tool_prefix}file; then
5690 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5691 if test -n "$file_magic_test_file"; then
5692 case $deplibs_check_method in
5694 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5697 $EGREP "$file_magic_regex" > /dev/null; then
5702 *** Warning: the command libtool uses to detect shared libraries,
5703 *** $file_magic_cmd, produces output that libtool cannot recognize.
5704 *** The result is that libtool may fail to recognize shared libraries
5705 *** as such. This will affect the creation of libtool libraries that
5706 *** depend on shared libraries, but programs linked with such libtool
5707 *** libraries will work regardless of this problem. Nevertheless, you
5708 *** may want to report the problem to your system manager and/or to
5709 *** bug-libtool@gnu.org
5719 MAGIC_CMD="$lt_save_MAGIC_CMD"
5724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5725 if test -n "$MAGIC_CMD"; then
5726 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5727 echo "${ECHO_T}$MAGIC_CMD" >&6
5729 echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6
5733 if test -z "$lt_cv_path_MAGIC_CMD"; then
5734 if test -n "$ac_tool_prefix"; then
5735 echo "$as_me:$LINENO: checking for file" >&5
5736 echo $ECHO_N "checking for file... $ECHO_C" >&6
5737 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5745 lt_save_MAGIC_CMD="$MAGIC_CMD"
5746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5747 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5748 for ac_dir in $ac_dummy; do
5750 test -z "$ac_dir" && ac_dir=.
5751 if test -f $ac_dir/file; then
5752 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5753 if test -n "$file_magic_test_file"; then
5754 case $deplibs_check_method in
5756 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5759 $EGREP "$file_magic_regex" > /dev/null; then
5764 *** Warning: the command libtool uses to detect shared libraries,
5765 *** $file_magic_cmd, produces output that libtool cannot recognize.
5766 *** The result is that libtool may fail to recognize shared libraries
5767 *** as such. This will affect the creation of libtool libraries that
5768 *** depend on shared libraries, but programs linked with such libtool
5769 *** libraries will work regardless of this problem. Nevertheless, you
5770 *** may want to report the problem to your system manager and/or to
5771 *** bug-libtool@gnu.org
5781 MAGIC_CMD="$lt_save_MAGIC_CMD"
5786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5787 if test -n "$MAGIC_CMD"; then
5788 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5789 echo "${ECHO_T}$MAGIC_CMD" >&6
5791 echo "$as_me:$LINENO: result: no" >&5
5792 echo "${ECHO_T}no" >&6
5807 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5808 if test "${enable_libtool_lock+set}" = set; then
5809 enableval="$enable_libtool_lock"
5812 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5815 # Check whether --with-pic or --without-pic was given.
5816 if test "${with_pic+set}" = set; then
5822 test -z "$pic_mode" && pic_mode=default
5824 # Use C for the default configuration in the libtool script
5828 ac_cpp='$CPP $CPPFLAGS'
5829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834 # Source file extension for C test sources.
5837 # Object file extension for compiled C test sources.
5841 # Code to be used in simple compile tests
5842 lt_simple_compile_test_code="int some_variable = 0;\n"
5844 # Code to be used in simple link tests
5845 lt_simple_link_test_code='int main(){return(0);}\n'
5848 # If no C compiler was specified, use CC.
5851 # Allow CC to be a program name with arguments.
5856 # Check for any special shared library compilation flags.
5859 if test "$GCC" = no; then
5862 lt_prog_cc_shlib='-belf'
5866 if test -n "$lt_prog_cc_shlib"; then
5867 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5868 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5869 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5871 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5872 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5873 lt_cv_prog_cc_can_build_shared=no
5879 # Check to make sure the static flag actually works.
5881 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5882 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5883 if test "${lt_prog_compiler_static_works+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 lt_prog_compiler_static_works=no
5887 save_LDFLAGS="$LDFLAGS"
5888 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5889 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5890 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5891 # The compiler can only warn and ignore the option if not recognized
5892 # So say no if there are warnings
5893 if test -s conftest.err; then
5894 # Append any errors to the config.log.
5895 cat conftest.err 1>&5
5897 lt_prog_compiler_static_works=yes
5901 LDFLAGS="$save_LDFLAGS"
5904 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5905 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5907 if test x"$lt_prog_compiler_static_works" = xyes; then
5910 lt_prog_compiler_static=
5916 ## There is no encapsulation within the following macros, do not change
5917 ## the running order or otherwise move them around unless you know exactly
5918 ## what you are doing...
5920 lt_prog_compiler_no_builtin_flag=
5922 if test "$GCC" = yes; then
5923 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5925 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5926 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5927 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 lt_cv_prog_compiler_rtti_exceptions=no
5931 ac_outfile=conftest.$ac_objext
5932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5933 lt_compiler_flag="-fno-rtti -fno-exceptions"
5934 # Insert the option either (1) after the last *FLAGS variable, or
5935 # (2) before a word containing "conftest.", or (3) at the end.
5936 # Note that $ac_compile itself does not contain backslashes and begins
5937 # with a dollar sign (not a hyphen), so the echo should work correctly.
5938 # The option is referenced via a variable to avoid confusing sed.
5939 lt_compile=`echo "$ac_compile" | $SED \
5940 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5942 -e 's:$: $lt_compiler_flag:'`
5943 (eval echo "\"\$as_me:5943: $lt_compile\"" >&5)
5944 (eval "$lt_compile" 2>conftest.err)
5946 cat conftest.err >&5
5947 echo "$as_me:5947: \$? = $ac_status" >&5
5948 if (exit $ac_status) && test -s "$ac_outfile"; then
5949 # The compiler can only warn and ignore the option if not recognized
5950 # So say no if there are warnings
5951 if test ! -s conftest.err; then
5952 lt_cv_prog_compiler_rtti_exceptions=yes
5958 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5959 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5961 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5962 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5969 lt_prog_compiler_wl=
5970 lt_prog_compiler_pic=
5971 lt_prog_compiler_static=
5973 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5976 if test "$GCC" = yes; then
5977 lt_prog_compiler_wl='-Wl,'
5978 lt_prog_compiler_static='-static'
5982 # All AIX code is PIC.
5983 if test "$host_cpu" = ia64; then
5984 # AIX 5 now supports IA64 processor
5985 lt_prog_compiler_static='-Bstatic'
5990 # FIXME: we need at least 68020 code to build shared libraries, but
5991 # adding the `-m68020' flag to GCC prevents building anything better,
5993 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5996 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5997 # PIC is the default for these OSes.
6000 mingw* | pw32* | os2*)
6001 # This hack is so that the source file can tell whether it is being
6002 # built for inclusion in a dll (and should export symbols for example).
6003 lt_prog_compiler_pic='-DDLL_EXPORT'
6006 darwin* | rhapsody*)
6007 # PIC is the default on this platform
6008 # Common symbols not allowed in MH_DYLIB files
6009 lt_prog_compiler_pic='-fno-common'
6013 # Just because we use GCC doesn't mean we suddenly get shared libraries
6014 # on systems that don't support them.
6015 lt_prog_compiler_can_build_shared=no
6020 if test -d /usr/nec; then
6021 lt_prog_compiler_pic=-Kconform_pic
6026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6033 lt_prog_compiler_pic='-fPIC'
6039 lt_prog_compiler_pic='-fPIC'
6043 # PORTME Check for flag to pass linker flags through the system compiler.
6046 lt_prog_compiler_wl='-Wl,'
6047 if test "$host_cpu" = ia64; then
6048 # AIX 5 now supports IA64 processor
6049 lt_prog_compiler_static='-Bstatic'
6051 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6055 mingw* | pw32* | os2*)
6056 # This hack is so that the source file can tell whether it is being
6057 # built for inclusion in a dll (and should export symbols for example).
6058 lt_prog_compiler_pic='-DDLL_EXPORT'
6061 hpux9* | hpux10* | hpux11*)
6062 lt_prog_compiler_wl='-Wl,'
6063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6070 lt_prog_compiler_pic='+Z'
6073 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6074 lt_prog_compiler_static='${wl}-a ${wl}archive'
6077 irix5* | irix6* | nonstopux*)
6078 lt_prog_compiler_wl='-Wl,'
6079 # PIC (with -KPIC) is the default.
6080 lt_prog_compiler_static='-non_shared'
6084 lt_prog_compiler_pic='-KPIC'
6085 lt_prog_compiler_static='-Bstatic'
6091 lt_prog_compiler_wl='-Wl,'
6092 lt_prog_compiler_pic='-KPIC'
6093 lt_prog_compiler_static='-static'
6096 lt_prog_compiler_wl='-Wl,'
6097 # All Alpha code is PIC.
6098 lt_prog_compiler_static='-non_shared'
6103 osf3* | osf4* | osf5*)
6104 lt_prog_compiler_wl='-Wl,'
6105 # All OSF/1 code is PIC.
6106 lt_prog_compiler_static='-non_shared'
6110 lt_prog_compiler_pic='-Kpic'
6111 lt_prog_compiler_static='-dn'
6115 lt_prog_compiler_wl='-Wl,'
6116 lt_prog_compiler_pic='-KPIC'
6117 lt_prog_compiler_static='-Bstatic'
6121 lt_prog_compiler_wl='-Qoption ld '
6122 lt_prog_compiler_pic='-PIC'
6123 lt_prog_compiler_static='-Bstatic'
6126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6127 lt_prog_compiler_wl='-Wl,'
6128 lt_prog_compiler_pic='-KPIC'
6129 lt_prog_compiler_static='-Bstatic'
6133 if test -d /usr/nec ;then
6134 lt_prog_compiler_pic='-Kconform_pic'
6135 lt_prog_compiler_static='-Bstatic'
6140 lt_prog_compiler_pic='-pic'
6141 lt_prog_compiler_static='-Bstatic'
6145 lt_prog_compiler_can_build_shared=no
6150 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6151 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6154 # Check to make sure the PIC flag actually works.
6156 if test -n "$lt_prog_compiler_pic"; then
6157 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6158 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6159 if test "${lt_prog_compiler_pic_works+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 lt_prog_compiler_pic_works=no
6163 ac_outfile=conftest.$ac_objext
6164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6165 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6166 # Insert the option either (1) after the last *FLAGS variable, or
6167 # (2) before a word containing "conftest.", or (3) at the end.
6168 # Note that $ac_compile itself does not contain backslashes and begins
6169 # with a dollar sign (not a hyphen), so the echo should work correctly.
6170 # The option is referenced via a variable to avoid confusing sed.
6171 lt_compile=`echo "$ac_compile" | $SED \
6172 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6174 -e 's:$: $lt_compiler_flag:'`
6175 (eval echo "\"\$as_me:6175: $lt_compile\"" >&5)
6176 (eval "$lt_compile" 2>conftest.err)
6178 cat conftest.err >&5
6179 echo "$as_me:6179: \$? = $ac_status" >&5
6180 if (exit $ac_status) && test -s "$ac_outfile"; then
6181 # The compiler can only warn and ignore the option if not recognized
6182 # So say no if there are warnings
6183 if test ! -s conftest.err; then
6184 lt_prog_compiler_pic_works=yes
6190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6191 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6193 if test x"$lt_prog_compiler_pic_works" = xyes; then
6194 case $lt_prog_compiler_pic in
6196 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6199 lt_prog_compiler_pic=
6200 lt_prog_compiler_can_build_shared=no
6205 # For platforms which do not support PIC, -DPIC is meaningless:
6207 lt_prog_compiler_pic=
6210 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6214 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6216 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 lt_cv_prog_compiler_c_o=no
6220 $rm -r conftest 2>/dev/null
6224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6226 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6227 # that will create temporary files in the current directory regardless of
6228 # the output directory. Thus, making CWD read-only will cause this test
6229 # to fail, enabling locking or at least warning the user not to do parallel
6233 lt_compiler_flag="-o out/conftest2.$ac_objext"
6234 # Insert the option either (1) after the last *FLAGS variable, or
6235 # (2) before a word containing "conftest.", or (3) at the end.
6236 # Note that $ac_compile itself does not contain backslashes and begins
6237 # with a dollar sign (not a hyphen), so the echo should work correctly.
6238 lt_compile=`echo "$ac_compile" | $SED \
6239 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6241 -e 's:$: $lt_compiler_flag:'`
6242 (eval echo "\"\$as_me:6242: $lt_compile\"" >&5)
6243 (eval "$lt_compile" 2>out/conftest.err)
6245 cat out/conftest.err >&5
6246 echo "$as_me:6246: \$? = $ac_status" >&5
6247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6249 # The compiler can only warn and ignore the option if not recognized
6250 # So say no if there are warnings
6251 if test ! -s out/conftest.err; then
6252 lt_cv_prog_compiler_c_o=yes
6263 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6264 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6267 hard_links="nottested"
6268 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6269 # do not overwrite the value of need_locks provided by the user
6270 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6271 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6276 ln conftest.a conftest.b 2>&5 || hard_links=no
6277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6278 echo "$as_me:$LINENO: result: $hard_links" >&5
6279 echo "${ECHO_T}$hard_links" >&6
6280 if test "$hard_links" = no; then
6281 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6282 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6289 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6290 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6293 allow_undefined_flag=
6294 enable_shared_with_static_runtimes=no
6296 archive_expsym_cmds=
6297 old_archive_From_new_cmds=
6298 old_archive_from_expsyms_cmds=
6299 export_dynamic_flag_spec=
6300 whole_archive_flag_spec=
6301 thread_safe_flag_spec=
6302 hardcode_libdir_flag_spec=
6303 hardcode_libdir_flag_spec_ld=
6304 hardcode_libdir_separator=
6307 hardcode_shlibpath_var=unsupported
6308 link_all_deplibs=unknown
6309 hardcode_automatic=no
6312 always_export_symbols=no
6313 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6314 # include_expsyms should be a list of space-separated symbols to be *always*
6315 # included in the symbol list
6317 # exclude_expsyms can be an extended regexp of symbols to exclude
6318 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6320 # as well as any symbol that contains `d'.
6321 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6323 # platforms (ab)use it in PIC code, but their linkers get confused if
6324 # the symbol is explicitly referenced. Since portable code cannot
6325 # rely on this symbol name, it's probably fine to never include it in
6326 # preloaded symbol tables.
6327 extract_expsyms_cmds=
6330 cygwin* | mingw* | pw32*)
6331 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6332 # When not using gcc, we currently assume that we are using
6333 # Microsoft Visual C++.
6334 if test "$GCC" != yes; then
6344 if test "$with_gnu_ld" = yes; then
6345 # If archive_cmds runs LD, not CC, wlarc should be empty
6348 # See if GNU ld supports shared libraries.
6350 aix3* | aix4* | aix5*)
6351 # On AIX/PPC, the GNU linker is very broken
6352 if test "$host_cpu" != ia64; then
6356 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6357 *** to be unable to reliably create shared libraries on AIX.
6358 *** Therefore, libtool is disabling shared libraries support. If you
6359 *** really care for shared libraries, you may want to modify your PATH
6360 *** so that a non-GNU linker is found, and then restart.
6367 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)'
6368 hardcode_libdir_flag_spec='-L$libdir'
6369 hardcode_minus_L=yes
6371 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6372 # that the semantics of dynamic libraries on AmigaOS, at least up
6373 # to version 4, is to share data among multiple programs linked
6374 # with the same dynamic library. Since this doesn't match the
6375 # behavior of shared libraries on other platforms, we can't use
6381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6382 allow_undefined_flag=unsupported
6383 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6384 # support --undefined. This deserves some investigation. FIXME
6385 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6391 cygwin* | mingw* | pw32*)
6392 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6393 # as there is no search path for DLLs.
6394 hardcode_libdir_flag_spec='-L$libdir'
6395 allow_undefined_flag=unsupported
6396 always_export_symbols=no
6397 enable_shared_with_static_runtimes=yes
6398 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6400 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6402 # If the export-symbols file already is a .def file (1st line
6403 # is EXPORTS), use it as is; otherwise, prepend...
6404 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6405 cp $export_symbols $output_objdir/$soname.def;
6407 echo EXPORTS > $output_objdir/$soname.def;
6408 cat $export_symbols >> $output_objdir/$soname.def;
6410 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6418 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6427 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6432 *** create shared libraries on Solaris systems. Therefore, libtool
6433 *** is disabling shared libraries support. We urge you to upgrade GNU
6434 *** binutils to release 2.9.1 or newer. Another option is to modify
6435 *** your PATH or compiler configuration so that the native linker is
6436 *** used, and then restart.
6439 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6448 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6451 hardcode_shlibpath_var=no
6455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6464 if test "$ld_shlibs" = yes; then
6465 runpath_var=LD_RUN_PATH
6466 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6467 export_dynamic_flag_spec='${wl}--export-dynamic'
6468 # ancient GNU ld didn't support --whole-archive et. al.
6469 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6470 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6472 whole_archive_flag_spec=
6476 # PORTME fill in a description of your system's linker (not GNU ld)
6479 allow_undefined_flag=unsupported
6480 always_export_symbols=yes
6481 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'
6482 # Note: this linker hardcodes the directories in LIBPATH if there
6483 # are no directories specified by -L.
6484 hardcode_minus_L=yes
6485 if test "$GCC" = yes && test -z "$link_static_flag"; then
6486 # Neither direct hardcoding nor static linking is supported with a
6488 hardcode_direct=unsupported
6493 if test "$host_cpu" = ia64; then
6494 # On IA64, the linker does run time linking by default, so we don't
6495 # have to do anything special.
6496 aix_use_runtimelinking=no
6497 exp_sym_flag='-Bexport'
6500 # If we're using GNU nm, then we don't want the "-C" option.
6501 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6502 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6503 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'
6505 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'
6507 aix_use_runtimelinking=no
6509 # Test if we are trying to use run time linking or normal
6510 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6511 # need to do runtime linking.
6512 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6513 for ld_flag in $LDFLAGS; do
6514 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6515 aix_use_runtimelinking=yes
6521 exp_sym_flag='-bexport'
6522 no_entry_flag='-bnoentry'
6525 # When large executables or shared objects are built, AIX ld can
6526 # have problems creating the table of contents. If linking a library
6527 # or program results in "error TOC overflow" add -mminimal-toc to
6528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6533 hardcode_libdir_separator=':'
6534 link_all_deplibs=yes
6536 if test "$GCC" = yes; then
6537 case $host_os in aix4.012|aix4.012.*)
6538 # We only want to do this on AIX 4.2 and lower, the check
6539 # below for broken collect2 doesn't work under 4.3+
6540 collect2name=`${CC} -print-prog-name=collect2`
6541 if test -f "$collect2name" && \
6542 strings "$collect2name" | grep resolve_lib_name >/dev/null
6544 # We have reworked collect2
6547 # We have old collect2
6548 hardcode_direct=unsupported
6549 # It fails to find uninstalled libraries when the uninstalled
6550 # path is not listed in the libpath. Setting hardcode_minus_L
6551 # to unsupported forces relinking
6552 hardcode_minus_L=yes
6553 hardcode_libdir_flag_spec='-L$libdir'
6554 hardcode_libdir_separator=
6557 shared_flag='-shared'
6560 if test "$host_cpu" = ia64; then
6561 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6562 # chokes on -Wl,-G. The following line is correct:
6565 if test "$aix_use_runtimelinking" = yes; then
6566 shared_flag='${wl}-G'
6568 shared_flag='${wl}-bM:SRE'
6573 # It seems that -bexpall does not export symbols beginning with
6574 # underscore (_), so it is better to generate a list of symbols to export.
6575 always_export_symbols=yes
6576 if test "$aix_use_runtimelinking" = yes; then
6577 # Warning - without using the other runtime loading flags (-brtl),
6578 # -berok will link without error, but may produce a broken library.
6579 allow_undefined_flag='-berok'
6580 # Determine the default libpath from the value encoded in an empty executable.
6581 cat >conftest.$ac_ext <<_ACEOF
6582 #line $LINENO "configure"
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599 (eval $ac_link) 2>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6610 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6612 # Check for a 64-bit object if we didn't find anything.
6613 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; }
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6621 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6623 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6624 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"
6626 if test "$host_cpu" = ia64; then
6627 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6628 allow_undefined_flag="-z nodefs"
6629 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"
6631 # Determine the default libpath from the value encoded in an empty executable.
6632 cat >conftest.$ac_ext <<_ACEOF
6633 #line $LINENO "configure"
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650 (eval $ac_link) 2>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try='test -s conftest$ac_exeext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6663 # Check for a 64-bit object if we didn't find anything.
6664 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; }
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6675 # Warning - without using the other run time loading flags,
6676 # -berok will link without error, but may produce a broken library.
6677 no_undefined_flag=' ${wl}-bernotok'
6678 allow_undefined_flag=' ${wl}-berok'
6679 # -bexpall does not export symbols beginning with underscore (_)
6680 always_export_symbols=yes
6681 # Exported symbols can be pulled into shared objects from archives
6682 whole_archive_flag_spec=' '
6683 archive_cmds_need_lc=yes
6684 # This is similar to how AIX traditionally builds it's shared libraries.
6685 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'
6691 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)'
6692 hardcode_libdir_flag_spec='-L$libdir'
6693 hardcode_minus_L=yes
6694 # see comment about different semantics on the GNU ld section
6699 export_dynamic_flag_spec=-rdynamic
6702 cygwin* | mingw* | pw32*)
6703 # When not using gcc, we currently assume that we are using
6704 # Microsoft Visual C++.
6705 # hardcode_libdir_flag_spec is actually meaningless, as there is
6706 # no search path for DLLs.
6707 hardcode_libdir_flag_spec=' '
6708 allow_undefined_flag=unsupported
6709 # Tell ltmain to make .lib files, not .a files.
6711 # Tell ltmain to make .dll files, not .so files.
6713 # FIXME: Setting linknames here is a bad hack.
6714 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6715 # The linker will automatically build a .lib file if we build a DLL.
6716 old_archive_From_new_cmds='true'
6717 # FIXME: Should let the user specify the lib program.
6718 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6719 fix_srcfile_path='`cygpath -w "$srcfile"`'
6720 enable_shared_with_static_runtimes=yes
6723 darwin* | rhapsody*)
6724 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6725 archive_cmds_need_lc=no
6727 rhapsody* | darwin1.[012])
6728 allow_undefined_flag='-undefined suppress'
6731 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6734 # FIXME: Relying on posixy $() will cause problems for
6735 # cross-compilation, but unfortunately the echo tests do not
6736 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6737 # `"' quotes if we put them in here... so don't!
6738 lt_int_apple_cc_single_mod=no
6739 output_verbose_link_cmd='echo'
6740 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6741 lt_int_apple_cc_single_mod=yes
6743 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6744 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6746 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'
6748 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6750 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6751 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}'
6753 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}'
6755 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}'
6757 hardcode_automatic=yes
6758 hardcode_shlibpath_var=unsupported
6759 whole_archive_flag_spec='-all_load $convenience'
6760 link_all_deplibs=yes
6765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6766 hardcode_libdir_flag_spec='-L$libdir'
6767 hardcode_shlibpath_var=no
6774 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6775 # support. Future versions do this automatically, but an explicit c++rt0.o
6776 # does not break anything, and helps significantly (at the cost of a little
6779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6780 hardcode_libdir_flag_spec='-R$libdir'
6782 hardcode_shlibpath_var=no
6785 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6789 hardcode_minus_L=yes
6790 hardcode_shlibpath_var=no
6793 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6795 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6796 hardcode_libdir_flag_spec='-R$libdir'
6798 hardcode_shlibpath_var=no
6802 if test "$GCC" = yes; then
6803 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'
6805 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'
6807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6808 hardcode_libdir_separator=:
6811 # hardcode_minus_L: Not really in the search PATH,
6812 # but as the default location of the library.
6813 hardcode_minus_L=yes
6814 export_dynamic_flag_spec='${wl}-E'
6818 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6821 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6824 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6830 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6833 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6837 if test "$with_gnu_ld" = no; then
6840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6841 hardcode_libdir_flag_spec_ld='+b $libdir'
6842 hardcode_libdir_separator=:
6844 hardcode_shlibpath_var=no
6847 hardcode_libdir_flag_spec='-L$libdir'
6849 hardcode_shlibpath_var=no
6851 # hardcode_minus_L: Not really in the search PATH,
6852 # but as the default location of the library.
6853 hardcode_minus_L=yes
6856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6857 hardcode_libdir_separator=:
6859 export_dynamic_flag_spec='${wl}-E'
6861 # hardcode_minus_L: Not really in the search PATH,
6862 # but as the default location of the library.
6863 hardcode_minus_L=yes
6869 irix5* | irix6* | nonstopux*)
6870 if test "$GCC" = yes; then
6871 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'
6873 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'
6874 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6877 hardcode_libdir_separator=:
6878 link_all_deplibs=yes
6882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6885 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6887 hardcode_libdir_flag_spec='-R$libdir'
6889 hardcode_shlibpath_var=no
6893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6896 hardcode_libdir_separator=:
6897 hardcode_shlibpath_var=no
6902 hardcode_shlibpath_var=no
6903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6906 export_dynamic_flag_spec='${wl}-E'
6909 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6911 hardcode_libdir_flag_spec='-R$libdir'
6914 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6922 hardcode_libdir_flag_spec='-L$libdir'
6923 hardcode_minus_L=yes
6924 allow_undefined_flag=unsupported
6925 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'
6926 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6930 if test "$GCC" = yes; then
6931 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6932 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'
6934 allow_undefined_flag=' -expect_unresolved \*'
6935 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'
6937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6938 hardcode_libdir_separator=:
6941 osf4* | osf5*) # as osf3* with the addition of -msym flag
6942 if test "$GCC" = yes; then
6943 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6944 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'
6945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6947 allow_undefined_flag=' -expect_unresolved \*'
6948 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'
6949 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6950 $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'
6952 # Both c and cxx compiler support -rpath directly
6953 hardcode_libdir_flag_spec='-rpath $libdir'
6955 hardcode_libdir_separator=:
6959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6960 hardcode_shlibpath_var=no
6961 export_dynamic_flag_spec='${wl}-Bexport'
6962 runpath_var=LD_RUN_PATH
6963 hardcode_runpath_var=yes
6967 no_undefined_flag=' -z text'
6968 if test "$GCC" = yes; then
6969 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6970 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6971 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6973 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6977 hardcode_libdir_flag_spec='-R$libdir'
6978 hardcode_shlibpath_var=no
6980 solaris2.[0-5] | solaris2.[0-5].*) ;;
6981 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6982 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6984 link_all_deplibs=yes
6988 if test "x$host_vendor" = xsequent; then
6989 # Use $CC to link under sequent, because it throws in some extra .o
6990 # files that make .init and .fini sections work.
6991 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6993 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6995 hardcode_libdir_flag_spec='-L$libdir'
6997 hardcode_minus_L=yes
6998 hardcode_shlibpath_var=no
7002 case $host_vendor in
7004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7005 hardcode_direct=yes # is this really true???
7008 ## LD is ld it makes a PLAMLIB
7009 ## CC just makes a GrossModule.
7010 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7011 reload_cmds='$CC -r -o $output$reload_objs'
7015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7016 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7019 runpath_var='LD_RUN_PATH'
7020 hardcode_shlibpath_var=no
7024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7025 hardcode_shlibpath_var=no
7026 export_dynamic_flag_spec='-Bexport'
7030 if test -d /usr/nec; then
7031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7032 hardcode_shlibpath_var=no
7033 runpath_var=LD_RUN_PATH
7034 hardcode_runpath_var=yes
7040 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7043 hardcode_shlibpath_var=no
7044 hardcode_runpath_var=yes
7045 runpath_var=LD_RUN_PATH
7048 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7049 no_undefined_flag='${wl}-z ${wl}text'
7050 if test "$GCC" = yes; then
7051 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7053 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7055 runpath_var='LD_RUN_PATH'
7056 hardcode_shlibpath_var=no
7060 no_undefined_flag=' -z text'
7061 # $CC -shared without GNU ld will not create a library from C++
7062 # object files and a static libstdc++, better avoid it by now
7063 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7064 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7065 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7066 hardcode_libdir_flag_spec=
7067 hardcode_shlibpath_var=no
7068 runpath_var='LD_RUN_PATH'
7072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7073 hardcode_libdir_flag_spec='-L$libdir'
7074 hardcode_shlibpath_var=no
7083 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7084 echo "${ECHO_T}$ld_shlibs" >&6
7085 test "$ld_shlibs" = no && can_build_shared=no
7087 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7088 if test "$GCC" = yes; then
7089 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7093 # Do we need to explicitly link libc?
7095 case "x$archive_cmds_need_lc" in
7097 # Assume -lc should be added
7098 archive_cmds_need_lc=yes
7100 if test "$enable_shared" = yes && test "$GCC" = yes; then
7101 case $archive_cmds in
7103 # FIXME: we may have to deal with multi-command sequences.
7106 # Test whether the compiler implicitly links with -lc since on some
7107 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7108 # to ld, don't add -lc before -lgcc.
7109 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7110 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115 (eval $ac_compile) 2>&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } 2>conftest.err; then
7121 libobjs=conftest.$ac_objext
7123 wl=$lt_prog_compiler_wl
7129 lt_save_allow_undefined_flag=$allow_undefined_flag
7130 allow_undefined_flag=
7131 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7132 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }
7137 archive_cmds_need_lc=no
7139 archive_cmds_need_lc=yes
7141 allow_undefined_flag=$lt_save_allow_undefined_flag
7143 cat conftest.err 1>&5
7146 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7147 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7154 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7155 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7157 if test -n "$hardcode_libdir_flag_spec" || \
7158 test -n "$runpath_var " || \
7159 test "X$hardcode_automatic"="Xyes" ; then
7161 # We can hardcode non-existant directories.
7162 if test "$hardcode_direct" != no &&
7163 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7164 # have to relink, otherwise we might link with an installed library
7165 # when we should be linking with a yet-to-be-installed one
7166 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7167 test "$hardcode_minus_L" != no; then
7168 # Linking always hardcodes the temporary library directory.
7169 hardcode_action=relink
7171 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7172 hardcode_action=immediate
7175 # We cannot hardcode anything, or else we can only hardcode existing
7177 hardcode_action=unsupported
7179 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7180 echo "${ECHO_T}$hardcode_action" >&6
7182 if test "$hardcode_action" = relink; then
7183 # Fast installation is not supported
7184 enable_fast_install=no
7185 elif test "$shlibpath_overrides_runpath" = yes ||
7186 test "$enable_shared" = no; then
7187 # Fast installation is not necessary
7188 enable_fast_install=needless
7193 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7194 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7195 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7196 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7197 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7198 echo "$as_me:$LINENO: result: yes" >&5
7199 echo "${ECHO_T}yes" >&6
7201 # FIXME - insert some real tests, host_os isn't really good enough
7204 if test -n "$STRIP" ; then
7205 striplib="$STRIP -x"
7206 echo "$as_me:$LINENO: result: yes" >&5
7207 echo "${ECHO_T}yes" >&6
7209 echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7214 echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6
7220 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7221 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7223 libname_spec='lib$name'
7231 shlibpath_overrides_runpath=unknown
7233 dynamic_linker="$host_os ld.so"
7234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7235 if test "$GCC" = yes; then
7236 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7237 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7238 # if the path contains ";" then we assume it to be the separator
7239 # otherwise default to the standard path separator (i.e. ":") - it is
7240 # assumed that no part of a normal pathname contains ";" but that should
7241 # okay in the real world where ";" in dirpaths is itself problematic.
7242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7247 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7249 need_lib_prefix=unknown
7250 hardcode_into_libs=no
7252 # when you set need_version to no, make sure it does not cause -set_version
7253 # flags to be left without arguments
7254 need_version=unknown
7259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7260 shlibpath_var=LIBPATH
7262 # AIX 3 has no versioning support, so we append a major version to the name.
7263 soname_spec='${libname}${release}${shared_ext}$major'
7270 hardcode_into_libs=yes
7271 if test "$host_cpu" = ia64; then
7272 # AIX 5 supports IA64
7273 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7274 shlibpath_var=LD_LIBRARY_PATH
7276 # With GCC up to 2.95.x, collect2 would create an import file
7277 # for dependence libraries. The import file would start with
7278 # the line `#! .'. This would cause the generated library to
7279 # depend on `.', always an invalid library. This was fixed in
7280 # development snapshots of GCC prior to 3.0.
7282 aix4 | aix4.[01] | aix4.[01].*)
7283 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7285 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7292 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7293 # soname into executable. Probably we can add versioning support to
7294 # collect2, so additional links can be useful in future.
7295 if test "$aix_use_runtimelinking" = yes; then
7296 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7297 # instead of lib<name>.a to let people know that these are not
7298 # typical AIX shared libraries.
7299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7301 # We preserve .a as extension for shared libraries through AIX4.2
7302 # and later when we are not doing run time linking.
7303 library_names_spec='${libname}${release}.a $libname.a'
7304 soname_spec='${libname}${release}${shared_ext}$major'
7306 shlibpath_var=LIBPATH
7311 library_names_spec='$libname.ixlibrary $libname.a'
7312 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7313 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'
7317 library_names_spec='${libname}${shared_ext}'
7318 dynamic_linker="$host_os ld.so"
7319 shlibpath_var=LIBRARY_PATH
7325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7326 soname_spec='${libname}${release}${shared_ext}$major'
7327 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7328 shlibpath_var=LD_LIBRARY_PATH
7329 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7330 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7331 # the default ld.so.conf also contains /usr/contrib/lib and
7332 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7333 # libtool to hard-code these into programs
7336 cygwin* | mingw* | pw32*)
7337 version_type=windows
7342 case $GCC,$host_os in
7343 yes,cygwin* | yes,mingw* | yes,pw32*)
7344 library_names_spec='$libname.dll.a'
7345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7346 postinstall_cmds='base_file=`basename \${file}`~
7347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7348 dldir=$destdir/`dirname \$dlpath`~
7349 test -d \$dldir || mkdir -p \$dldir~
7350 $install_prog $dir/$dlname \$dldir/$dlname'
7351 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7352 dlpath=$dir/\$dldll~
7354 shlibpath_overrides_runpath=yes
7358 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7359 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7360 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7363 # MinGW DLLs use traditional 'lib' prefix
7364 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7365 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7366 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7367 # It is most probably a Windows format PATH printed by
7368 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7369 # path with ; separators, and with drive letters. We can handle the
7370 # drive letters (cygwin fileutils understands them), so leave them,
7371 # especially as we might pass files found there to a mingw objdump,
7372 # which wouldn't understand a cygwinified path. Ahh.
7373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7375 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7379 # pw32 DLLs use 'pw' prefix rather than 'lib'
7380 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7386 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7389 dynamic_linker='Win32 ld.exe'
7390 # FIXME: first we should search . and the directory the executable is in
7394 darwin* | rhapsody*)
7395 dynamic_linker="$host_os dyld"
7399 # FIXME: Relying on posixy $() will cause problems for
7400 # cross-compilation, but unfortunately the echo tests do not
7401 # yet detect zsh echo's removal of \ escapes.
7402 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7403 soname_spec='${libname}${release}${major}$shared_ext'
7404 shlibpath_overrides_runpath=yes
7405 shlibpath_var=DYLD_LIBRARY_PATH
7406 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7407 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7408 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7409 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"`
7411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7419 soname_spec='${libname}${release}${shared_ext}$major'
7420 shlibpath_var=LD_LIBRARY_PATH
7428 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7429 version_type=freebsd-$objformat
7430 case $version_type in
7432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7441 shlibpath_var=LD_LIBRARY_PATH
7444 shlibpath_overrides_runpath=yes
7446 freebsd3.01* | freebsdelf3.01*)
7447 shlibpath_overrides_runpath=yes
7448 hardcode_into_libs=yes
7451 shlibpath_overrides_runpath=no
7452 hardcode_into_libs=yes
7461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7462 soname_spec='${libname}${release}${shared_ext}$major'
7463 shlibpath_var=LD_LIBRARY_PATH
7464 hardcode_into_libs=yes
7467 hpux9* | hpux10* | hpux11*)
7468 # Give a soname corresponding to the major version so that dld.sl refuses to
7469 # link against other versions.
7476 hardcode_into_libs=yes
7477 dynamic_linker="$host_os dld.so"
7478 shlibpath_var=LD_LIBRARY_PATH
7479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7481 soname_spec='${libname}${release}${shared_ext}$major'
7482 if test "X$HPUX_IA64_MODE" = X32; then
7483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7485 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7491 hardcode_into_libs=yes
7492 dynamic_linker="$host_os dld.sl"
7493 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7496 soname_spec='${libname}${release}${shared_ext}$major'
7497 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7502 dynamic_linker="$host_os dld.sl"
7503 shlibpath_var=SHLIB_PATH
7504 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7506 soname_spec='${libname}${release}${shared_ext}$major'
7509 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7510 postinstall_cmds='chmod 555 $lib'
7513 irix5* | irix6* | nonstopux*)
7515 nonstopux*) version_type=nonstopux ;;
7517 if test "$lt_cv_prog_gnu_ld" = yes; then
7525 soname_spec='${libname}${release}${shared_ext}$major'
7526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7528 irix5* | nonstopux*)
7532 case $LD in # libtool.m4 will add one of these switches to LD
7533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7534 libsuff= shlibsuff= libmagic=32-bit;;
7535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7536 libsuff=32 shlibsuff=N32 libmagic=N32;;
7537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7539 *) libsuff= shlibsuff= libmagic=never-match;;
7543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7544 shlibpath_overrides_runpath=no
7545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7547 hardcode_into_libs=yes
7550 # No shared lib support for Linux oldld, aout, or coff.
7551 linux*oldld* | linux*aout* | linux*coff*)
7555 # This must be Linux ELF.
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7563 shlibpath_var=LD_LIBRARY_PATH
7564 shlibpath_overrides_runpath=no
7565 # This implies no fast_install, which is unacceptable.
7566 # Some rework will be needed to allow for fast_install
7567 # before this can be enabled.
7568 hardcode_into_libs=yes
7570 # We used to test for /lib/ld.so.1 and disable shared libraries on
7571 # powerpc, because MkLinux only supported shared libraries with the
7572 # GNU dynamic linker. Since this was broken with cross compilers,
7573 # most powerpc-linux boxes support dynamic linking these days and
7574 # people can always --disable-shared, the test was removed, and we
7575 # assume the GNU/Linux dynamic linker is in use.
7576 dynamic_linker='GNU/Linux ld.so'
7583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7586 dynamic_linker='NetBSD (a.out) ld.so'
7588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7589 soname_spec='${libname}${release}${shared_ext}$major'
7590 dynamic_linker='NetBSD ld.elf_so'
7592 shlibpath_var=LD_LIBRARY_PATH
7593 shlibpath_overrides_runpath=yes
7594 hardcode_into_libs=yes
7599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7600 shlibpath_var=LD_LIBRARY_PATH
7601 shlibpath_overrides_runpath=yes
7608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609 soname_spec='${libname}${release}${shared_ext}$major'
7610 shlibpath_var=LD_LIBRARY_PATH
7611 shlibpath_overrides_runpath=yes
7618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7620 shlibpath_var=LD_LIBRARY_PATH
7621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7623 openbsd2.[89] | openbsd2.[89].*)
7624 shlibpath_overrides_runpath=no
7627 shlibpath_overrides_runpath=yes
7631 shlibpath_overrides_runpath=yes
7636 libname_spec='$name'
7639 library_names_spec='$libname${shared_ext} $libname.a'
7640 dynamic_linker='OS/2 ld.exe'
7641 shlibpath_var=LIBPATH
7644 osf3* | osf4* | osf5*)
7648 soname_spec='${libname}${release}${shared_ext}$major'
7649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7650 shlibpath_var=LD_LIBRARY_PATH
7651 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7652 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7657 soname_spec='${libname}${release}${shared_ext}$major'
7658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7659 shlibpath_var=LD_LIBRARY_PATH
7666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7667 soname_spec='${libname}${release}${shared_ext}$major'
7668 shlibpath_var=LD_LIBRARY_PATH
7669 shlibpath_overrides_runpath=yes
7670 hardcode_into_libs=yes
7671 # ldd complains unless libraries are executable
7672 postinstall_cmds='chmod +x $lib'
7677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7678 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7679 shlibpath_var=LD_LIBRARY_PATH
7680 shlibpath_overrides_runpath=yes
7681 if test "$with_gnu_ld" = yes; then
7687 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7690 soname_spec='${libname}${release}${shared_ext}$major'
7691 shlibpath_var=LD_LIBRARY_PATH
7692 case $host_vendor in
7694 shlibpath_overrides_runpath=no
7696 export_dynamic_flag_spec='${wl}-Blargedynsym'
7697 runpath_var=LD_RUN_PATH
7705 shlibpath_overrides_runpath=no
7706 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7712 if test -d /usr/nec ;then
7714 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7715 soname_spec='$libname${shared_ext}.$major'
7716 shlibpath_var=LD_LIBRARY_PATH
7722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7723 soname_spec='${libname}${release}${shared_ext}$major'
7724 shlibpath_var=LD_LIBRARY_PATH
7731 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7732 echo "${ECHO_T}$dynamic_linker" >&6
7733 test "$dynamic_linker" = no && can_build_shared=no
7735 if test "x$enable_dlopen" != xyes; then
7736 enable_dlopen=unknown
7737 enable_dlopen_self=unknown
7738 enable_dlopen_self_static=unknown
7745 lt_cv_dlopen="load_add_on"
7747 lt_cv_dlopen_self=yes
7751 lt_cv_dlopen="LoadLibrary"
7756 lt_cv_dlopen="dlopen"
7761 # if libdl is installed we need to link against it
7762 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7763 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7764 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 ac_check_lib_save_LIBS=$LIBS
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7777 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7792 rm -f conftest.$ac_objext conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794 (eval $ac_link) 2>&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -s conftest$ac_exeext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 ac_cv_lib_dl_dlopen=yes
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 ac_cv_lib_dl_dlopen=no
7811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7812 LIBS=$ac_check_lib_save_LIBS
7814 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7816 if test $ac_cv_lib_dl_dlopen = yes; then
7817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7822 lt_cv_dlopen_self=yes
7829 echo "$as_me:$LINENO: checking for shl_load" >&5
7830 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7831 if test "${ac_cv_func_shl_load+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 cat >conftest.$ac_ext <<_ACEOF
7835 #line $LINENO "configure"
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 /* System header to define __stub macros and hopefully few prototypes,
7842 which can conflict with char shl_load (); below.
7843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7844 <limits.h> exists even on freestanding compilers. */
7846 # include <limits.h>
7848 # include <assert.h>
7850 /* Override any gcc2 internal prototype to avoid an error. */
7855 /* We use char because int might match the return type of a gcc2
7856 builtin and then its argument prototype would still apply. */
7858 /* The GNU C library defines this for functions which it implements
7859 to always fail with ENOSYS. Some functions are actually named
7860 something starting with __ and the normal name is an alias. */
7861 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7864 char (*f) () = shl_load;
7873 return f != shl_load;
7878 rm -f conftest.$ac_objext conftest$ac_exeext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880 (eval $ac_link) 2>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 ac_cv_func_shl_load=yes
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7895 ac_cv_func_shl_load=no
7897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7899 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7900 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7901 if test $ac_cv_func_shl_load = yes; then
7902 lt_cv_dlopen="shl_load"
7904 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7905 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7906 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 ac_check_lib_save_LIBS=$LIBS
7911 cat >conftest.$ac_ext <<_ACEOF
7912 #line $LINENO "configure"
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7919 /* Override any gcc2 internal prototype to avoid an error. */
7923 /* We use char because int might match the return type of a gcc2
7924 builtin and then its argument prototype would still apply. */
7934 rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7936 (eval $ac_link) 2>&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } &&
7940 { ac_try='test -s conftest$ac_exeext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 ac_cv_lib_dld_shl_load=yes
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 ac_cv_lib_dld_shl_load=no
7953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7954 LIBS=$ac_check_lib_save_LIBS
7956 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7957 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7958 if test $ac_cv_lib_dld_shl_load = yes; then
7959 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7961 echo "$as_me:$LINENO: checking for dlopen" >&5
7962 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7963 if test "${ac_cv_func_dlopen+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 cat >conftest.$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 /* System header to define __stub macros and hopefully few prototypes,
7974 which can conflict with char dlopen (); below.
7975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7976 <limits.h> exists even on freestanding compilers. */
7978 # include <limits.h>
7980 # include <assert.h>
7982 /* Override any gcc2 internal prototype to avoid an error. */
7987 /* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7990 /* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7996 char (*f) () = dlopen;
8010 rm -f conftest.$ac_objext conftest$ac_exeext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try='test -s conftest$ac_exeext'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 ac_cv_func_dlopen=yes
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 ac_cv_func_dlopen=no
8029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8031 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8032 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8033 if test $ac_cv_func_dlopen = yes; then
8034 lt_cv_dlopen="dlopen"
8036 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 ac_check_lib_save_LIBS=$LIBS
8043 cat >conftest.$ac_ext <<_ACEOF
8044 #line $LINENO "configure"
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8051 /* Override any gcc2 internal prototype to avoid an error. */
8055 /* We use char because int might match the return type of a gcc2
8056 builtin and then its argument prototype would still apply. */
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8068 (eval $ac_link) 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_cv_lib_dl_dlopen=yes
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_cv_lib_dl_dlopen=no
8085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8086 LIBS=$ac_check_lib_save_LIBS
8088 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8089 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8090 if test $ac_cv_lib_dl_dlopen = yes; then
8091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8093 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8094 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8095 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 ac_check_lib_save_LIBS=$LIBS
8100 cat >conftest.$ac_ext <<_ACEOF
8101 #line $LINENO "configure"
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8108 /* Override any gcc2 internal prototype to avoid an error. */
8112 /* We use char because int might match the return type of a gcc2
8113 builtin and then its argument prototype would still apply. */
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -s conftest$ac_exeext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_cv_lib_svld_dlopen=yes
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 ac_cv_lib_svld_dlopen=no
8142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8143 LIBS=$ac_check_lib_save_LIBS
8145 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8146 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8147 if test $ac_cv_lib_svld_dlopen = yes; then
8148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8150 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8151 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8152 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 ac_check_lib_save_LIBS=$LIBS
8157 cat >conftest.$ac_ext <<_ACEOF
8158 #line $LINENO "configure"
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8165 /* Override any gcc2 internal prototype to avoid an error. */
8169 /* We use char because int might match the return type of a gcc2
8170 builtin and then its argument prototype would still apply. */
8180 rm -f conftest.$ac_objext conftest$ac_exeext
8181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8182 (eval $ac_link) 2>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -s conftest$ac_exeext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8192 ac_cv_lib_dld_dld_link=yes
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8197 ac_cv_lib_dld_dld_link=no
8199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8200 LIBS=$ac_check_lib_save_LIBS
8202 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8203 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8204 if test $ac_cv_lib_dld_dld_link = yes; then
8205 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8226 if test "x$lt_cv_dlopen" != xno; then
8232 case $lt_cv_dlopen in
8234 save_CPPFLAGS="$CPPFLAGS"
8235 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8237 save_LDFLAGS="$LDFLAGS"
8238 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8241 LIBS="$lt_cv_dlopen_libs $LIBS"
8243 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8244 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8245 if test "${lt_cv_dlopen_self+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 if test "$cross_compiling" = yes; then :
8249 lt_cv_dlopen_self=cross
8251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8252 lt_status=$lt_dlunknown
8253 cat > conftest.$ac_ext <<EOF
8254 #line 8254 "configure"
8255 #include "confdefs.h"
8264 # define LT_DLGLOBAL RTLD_GLOBAL
8267 # define LT_DLGLOBAL DL_GLOBAL
8269 # define LT_DLGLOBAL 0
8273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8274 find out it does not work in some platform. */
8275 #ifndef LT_DLLAZY_OR_NOW
8277 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8280 # define LT_DLLAZY_OR_NOW DL_LAZY
8283 # define LT_DLLAZY_OR_NOW RTLD_NOW
8286 # define LT_DLLAZY_OR_NOW DL_NOW
8288 # define LT_DLLAZY_OR_NOW 0
8296 extern "C" void exit (int);
8299 void fnord() { int i=42;}
8302 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8303 int status = $lt_dlunknown;
8307 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8308 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8309 /* dlclose (self); */
8315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8320 (./conftest; exit; ) 2>/dev/null
8323 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8324 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8325 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8328 # compilation failed
8329 lt_cv_dlopen_self=no
8336 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8337 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8339 if test "x$lt_cv_dlopen_self" = xyes; then
8340 LDFLAGS="$LDFLAGS $link_static_flag"
8341 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8342 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8343 if test "${lt_cv_dlopen_self_static+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 if test "$cross_compiling" = yes; then :
8347 lt_cv_dlopen_self_static=cross
8349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8350 lt_status=$lt_dlunknown
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8352 "configure"
8353 #include "confdefs.h"
8362 # define LT_DLGLOBAL RTLD_GLOBAL
8365 # define LT_DLGLOBAL DL_GLOBAL
8367 # define LT_DLGLOBAL 0
8371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8372 find out it does not work in some platform. */
8373 #ifndef LT_DLLAZY_OR_NOW
8375 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8378 # define LT_DLLAZY_OR_NOW DL_LAZY
8381 # define LT_DLLAZY_OR_NOW RTLD_NOW
8384 # define LT_DLLAZY_OR_NOW DL_NOW
8386 # define LT_DLLAZY_OR_NOW 0
8394 extern "C" void exit (int);
8397 void fnord() { int i=42;}
8400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8401 int status = $lt_dlunknown;
8405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8406 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8407 /* dlclose (self); */
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414 (eval $ac_link) 2>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8418 (./conftest; exit; ) 2>/dev/null
8421 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8422 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8423 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8426 # compilation failed
8427 lt_cv_dlopen_self_static=no
8434 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8435 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8438 CPPFLAGS="$save_CPPFLAGS"
8439 LDFLAGS="$save_LDFLAGS"
8444 case $lt_cv_dlopen_self in
8445 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8446 *) enable_dlopen_self=unknown ;;
8449 case $lt_cv_dlopen_self_static in
8450 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8451 *) enable_dlopen_self_static=unknown ;;
8456 # Report which librarie types wil actually be built
8457 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8458 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8459 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8460 echo "${ECHO_T}$can_build_shared" >&6
8462 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8463 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8464 test "$can_build_shared" = "no" && enable_shared=no
8466 # On AIX, shared libraries and static libraries use the same namespace, and
8467 # are all built from PIC.
8470 test "$enable_shared" = yes && enable_static=no
8471 if test -n "$RANLIB"; then
8472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8473 postinstall_cmds='$RANLIB $lib'
8478 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8479 test "$enable_shared" = yes && enable_static=no
8482 darwin* | rhapsody*)
8483 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8484 archive_cmds_need_lc=no
8486 rhapsody* | darwin1.[012])
8487 allow_undefined_flag='-undefined suppress'
8490 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8493 # FIXME: Relying on posixy $() will cause problems for
8494 # cross-compilation, but unfortunately the echo tests do not
8495 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8496 # `"' quotes if we put them in here... so don't!
8497 output_verbose_link_cmd='echo'
8498 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8499 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8501 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}'
8502 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}'
8504 hardcode_automatic=yes
8505 hardcode_shlibpath_var=unsupported
8506 whole_archive_flag_spec='-all_load $convenience'
8507 link_all_deplibs=yes
8511 echo "$as_me:$LINENO: result: $enable_shared" >&5
8512 echo "${ECHO_T}$enable_shared" >&6
8514 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8515 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8516 # Make sure either enable_shared or enable_static is yes.
8517 test "$enable_shared" = yes || enable_static=yes
8518 echo "$as_me:$LINENO: result: $enable_static" >&5
8519 echo "${ECHO_T}$enable_static" >&6
8521 # The else clause should only fire when bootstrapping the
8522 # libtool distribution, otherwise you forgot to ship ltmain.sh
8523 # with your package, and you will get complaints that there are
8524 # no rules to generate ltmain.sh.
8525 if test -f "$ltmain"; then
8526 # See if we are running on zsh, and set the options which allow our commands through
8527 # without removal of \ escapes.
8528 if test -n "${ZSH_VERSION+set}" ; then
8529 setopt NO_GLOB_SUBST
8531 # Now quote all the things that may contain metacharacters while being
8532 # careful not to overquote the AC_SUBSTed values. We take copies of the
8533 # variables and quote the copies for generation of the libtool script.
8534 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8535 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8536 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8537 deplibs_check_method reload_flag reload_cmds need_locks \
8538 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8539 lt_cv_sys_global_symbol_to_c_name_address \
8540 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8541 old_postinstall_cmds old_postuninstall_cmds \
8545 lt_prog_compiler_wl \
8546 lt_prog_compiler_pic \
8547 lt_prog_compiler_static \
8548 lt_prog_compiler_no_builtin_flag \
8549 export_dynamic_flag_spec \
8550 thread_safe_flag_spec \
8551 whole_archive_flag_spec \
8552 enable_shared_with_static_runtimes \
8554 old_archive_from_new_cmds \
8559 compiler_lib_search_path \
8561 archive_expsym_cmds \
8563 postuninstall_cmds \
8564 old_archive_from_expsyms_cmds \
8565 allow_undefined_flag \
8567 export_symbols_cmds \
8568 hardcode_libdir_flag_spec \
8569 hardcode_libdir_flag_spec_ld \
8570 hardcode_libdir_separator \
8571 hardcode_automatic \
8573 module_expsym_cmds \
8574 lt_cv_prog_compiler_c_o \
8579 old_archive_cmds | \
8580 old_archive_from_new_cmds | \
8582 archive_expsym_cmds | \
8584 module_expsym_cmds | \
8585 old_archive_from_expsyms_cmds | \
8586 export_symbols_cmds | \
8587 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8588 postinstall_cmds | postuninstall_cmds | \
8589 old_postinstall_cmds | old_postuninstall_cmds | \
8590 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8591 # Double-quote double-evaled strings.
8592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8601 *'\$0 --fallback-echo"')
8602 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8607 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8609 { echo "$as_me:$LINENO: creating $ofile" >&5
8610 echo "$as_me: creating $ofile" >&6;}
8612 cat <<__EOF__ >> "$cfgfile"
8615 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8616 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8617 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8619 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8620 # Free Software Foundation, Inc.
8622 # This file is part of GNU Libtool:
8623 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8625 # This program is free software; you can redistribute it and/or modify
8626 # it under the terms of the GNU General Public License as published by
8627 # the Free Software Foundation; either version 2 of the License, or
8628 # (at your option) any later version.
8630 # This program is distributed in the hope that it will be useful, but
8631 # WITHOUT ANY WARRANTY; without even the implied warranty of
8632 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8633 # General Public License for more details.
8635 # You should have received a copy of the GNU General Public License
8636 # along with this program; if not, write to the Free Software
8637 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8639 # As a special exception to the GNU General Public License, if you
8640 # distribute this file as part of a program that contains a
8641 # configuration script generated by Autoconf, you may include it under
8642 # the same distribution terms that you use for the rest of that program.
8644 # A sed program that does not truncate output.
8647 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8648 Xsed="$SED -e s/^X//"
8650 # The HP-UX ksh and POSIX shell print the target directory to stdout
8652 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8654 # The names of the tagged configurations supported by this script.
8657 # ### BEGIN LIBTOOL CONFIG
8659 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8661 # Shell to use when invoking shell scripts.
8664 # Whether or not to build shared libraries.
8665 build_libtool_libs=$enable_shared
8667 # Whether or not to build static libraries.
8668 build_old_libs=$enable_static
8670 # Whether or not to add -lc for building shared libraries.
8671 build_libtool_need_lc=$archive_cmds_need_lc
8673 # Whether or not to disallow shared libs when runtime libs are static
8674 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8676 # Whether or not to optimize for fast installation.
8677 fast_install=$enable_fast_install
8680 host_alias=$host_alias
8683 # An echo program that does not interpret backslashes.
8688 AR_FLAGS=$lt_AR_FLAGS
8693 # A language-specific compiler.
8696 # Is the compiler the GNU C compiler?
8702 # The linker used to build libraries.
8705 # Whether we need hard or soft links.
8708 # A BSD-compatible nm program.
8711 # A symbol stripping program
8714 # Used to examine libraries when file_magic_cmd begins "file"
8715 MAGIC_CMD=$MAGIC_CMD
8717 # Used on cygwin: DLL creation program.
8720 # Used on cygwin: object dumper.
8723 # Used on cygwin: assembler.
8726 # The name of the directory that contains temporary libtool files.
8729 # How to create reloadable object files.
8730 reload_flag=$lt_reload_flag
8731 reload_cmds=$lt_reload_cmds
8733 # How to pass a linker flag through the compiler.
8734 wl=$lt_lt_prog_compiler_wl
8736 # Object file suffix (normally "o").
8739 # Old archive suffix (normally "a").
8742 # Shared library suffix (normally ".so").
8745 # Executable file suffix (normally "").
8748 # Additional compiler flags for building library objects.
8749 pic_flag=$lt_lt_prog_compiler_pic
8752 # What is the maximum length of a command?
8753 max_cmd_len=$lt_cv_sys_max_cmd_len
8755 # Does compiler simultaneously support -c and -o options?
8756 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8758 # Must we lock files when doing compilation ?
8759 need_locks=$lt_need_locks
8761 # Do we need the lib prefix for modules?
8762 need_lib_prefix=$need_lib_prefix
8764 # Do we need a version for libraries?
8765 need_version=$need_version
8767 # Whether dlopen is supported.
8768 dlopen_support=$enable_dlopen
8770 # Whether dlopen of programs is supported.
8771 dlopen_self=$enable_dlopen_self
8773 # Whether dlopen of statically linked programs is supported.
8774 dlopen_self_static=$enable_dlopen_self_static
8776 # Compiler flag to prevent dynamic linking.
8777 link_static_flag=$lt_lt_prog_compiler_static
8779 # Compiler flag to turn off builtin functions.
8780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8782 # Compiler flag to allow reflexive dlopens.
8783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8785 # Compiler flag to generate shared objects directly from archives.
8786 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8788 # Compiler flag to generate thread-safe objects.
8789 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8791 # Library versioning type.
8792 version_type=$version_type
8794 # Format of library name prefix.
8795 libname_spec=$lt_libname_spec
8797 # List of archive names. First name is the real one, the rest are links.
8798 # The last name is the one that the linker finds with -lNAME.
8799 library_names_spec=$lt_library_names_spec
8801 # The coded name of the library, if different from the real name.
8802 soname_spec=$lt_soname_spec
8804 # Commands used to build and install an old-style archive.
8806 old_archive_cmds=$lt_old_archive_cmds
8807 old_postinstall_cmds=$lt_old_postinstall_cmds
8808 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8810 # Create an old-style archive from a shared archive.
8811 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8813 # Create a temporary old-style archive to link instead of a shared archive.
8814 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8816 # Commands used to build and install a shared archive.
8817 archive_cmds=$lt_archive_cmds
8818 archive_expsym_cmds=$lt_archive_expsym_cmds
8819 postinstall_cmds=$lt_postinstall_cmds
8820 postuninstall_cmds=$lt_postuninstall_cmds
8822 # Commands used to build a loadable module (assumed same as above if empty)
8823 module_cmds=$lt_module_cmds
8824 module_expsym_cmds=$lt_module_expsym_cmds
8826 # Commands to strip libraries.
8827 old_striplib=$lt_old_striplib
8828 striplib=$lt_striplib
8830 # Dependencies to place before the objects being linked to create a
8832 predep_objects=$lt_predep_objects
8834 # Dependencies to place after the objects being linked to create a
8836 postdep_objects=$lt_postdep_objects
8838 # Dependencies to place before the objects being linked to create a
8842 # Dependencies to place after the objects being linked to create a
8844 postdeps=$lt_postdeps
8846 # The library search path used internally by the compiler when linking
8848 compiler_lib_search_path=$lt_compiler_lib_search_path
8850 # Method to check whether dependent libraries are shared objects.
8851 deplibs_check_method=$lt_deplibs_check_method
8853 # Command to use when deplibs_check_method == file_magic.
8854 file_magic_cmd=$lt_file_magic_cmd
8856 # Flag that allows shared libraries with undefined symbols to be built.
8857 allow_undefined_flag=$lt_allow_undefined_flag
8859 # Flag that forces no undefined symbols.
8860 no_undefined_flag=$lt_no_undefined_flag
8862 # Commands used to finish a libtool library installation in a directory.
8863 finish_cmds=$lt_finish_cmds
8865 # Same as above, but a single script fragment to be evaled but not shown.
8866 finish_eval=$lt_finish_eval
8868 # Take the output of nm and produce a listing of raw symbols and C names.
8869 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8871 # Transform the output of nm in a proper C declaration
8872 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8874 # Transform the output of nm in a C name address pair
8875 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8877 # This is the shared library runtime path variable.
8878 runpath_var=$runpath_var
8880 # This is the shared library path variable.
8881 shlibpath_var=$shlibpath_var
8883 # Is shlibpath searched before the hard-coded library search path?
8884 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8886 # How to hardcode a shared library path into an executable.
8887 hardcode_action=$hardcode_action
8889 # Whether we should hardcode library paths into libraries.
8890 hardcode_into_libs=$hardcode_into_libs
8892 # Flag to hardcode \$libdir into a binary during linking.
8893 # This must work even if \$libdir does not exist.
8894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8896 # If ld is used when linking, flag to hardcode \$libdir into
8897 # a binary during linking. This must work even if \$libdir does
8899 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8901 # Whether we need a single -rpath flag with a separated argument.
8902 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8904 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8906 hardcode_direct=$hardcode_direct
8908 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8910 hardcode_minus_L=$hardcode_minus_L
8912 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8913 # the resulting binary.
8914 hardcode_shlibpath_var=$hardcode_shlibpath_var
8916 # Set to yes if building a shared library automatically hardcodes DIR into the library
8917 # and all subsequent libraries and executables linked against it.
8918 hardcode_automatic=$hardcode_automatic
8920 # Variables whose values should be saved in libtool wrapper scripts and
8921 # restored at relink time.
8922 variables_saved_for_relink="$variables_saved_for_relink"
8924 # Whether libtool must link a program against all its dependency libraries.
8925 link_all_deplibs=$link_all_deplibs
8927 # Compile-time system search path for libraries
8928 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8930 # Run-time system search path for libraries
8931 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8933 # Fix the shell variable \$srcfile for the compiler.
8934 fix_srcfile_path="$fix_srcfile_path"
8936 # Set to yes if exported symbols are required.
8937 always_export_symbols=$always_export_symbols
8939 # The commands to list exported symbols.
8940 export_symbols_cmds=$lt_export_symbols_cmds
8942 # The commands to extract the exported symbol list from a shared archive.
8943 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8945 # Symbols that should not be listed in the preloaded symbols.
8946 exclude_expsyms=$lt_exclude_expsyms
8948 # Symbols that must always be exported.
8949 include_expsyms=$lt_include_expsyms
8951 # ### END LIBTOOL CONFIG
8958 cat <<\EOF >> "$cfgfile"
8960 # AIX sometimes has problems with the GCC collect2 program. For some
8961 # reason, if we set the COLLECT_NAMES environment variable, the problems
8962 # vanish in a puff of smoke.
8963 if test "X${COLLECT_NAMES+set}" != Xset; then
8965 export COLLECT_NAMES
8971 # We use sed instead of cat because bash on DJGPP gets confused if
8972 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8973 # text mode, it properly converts lines to CR/LF. This bash problem
8974 # is reportedly fixed, but why not run on old versions too?
8975 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8977 mv -f "$cfgfile" "$ofile" || \
8978 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8982 # If there is no Makefile yet, we rely on a make rule to execute
8983 # `config.status --recheck' to rerun these tests and create the
8984 # libtool script then.
8985 test -f Makefile && make "$ltmain"
8990 ac_cpp='$CPP $CPPFLAGS'
8991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998 # Check whether --with-tags or --without-tags was given.
8999 if test "${with_tags+set}" = set; then
9000 withval="$with_tags"
9004 if test -f "$ltmain" && test -n "$tagnames"; then
9005 if test ! -f "${ofile}"; then
9006 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9007 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9010 if test -z "$LTCC"; then
9011 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9012 if test -z "$LTCC"; then
9013 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9014 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9017 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9021 # Extract list of available tagged configurations in $ofile.
9022 # Note that this assumes the entire list is on one line.
9023 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9026 for tagname in $tagnames; do
9028 # Check whether tagname contains only valid characters
9029 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9031 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9032 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9033 { (exit 1); exit 1; }; }
9037 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9039 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9040 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9041 { (exit 1); exit 1; }; }
9044 # Update the list of available tags.
9045 if test -n "$tagname"; then
9046 echo appending configuration tag \"$tagname\" to $ofile
9050 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9052 ac_cpp='$CXXCPP $CPPFLAGS'
9053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9060 archive_cmds_need_lc_CXX=no
9061 allow_undefined_flag_CXX=
9062 always_export_symbols_CXX=no
9063 archive_expsym_cmds_CXX=
9064 export_dynamic_flag_spec_CXX=
9065 hardcode_direct_CXX=no
9066 hardcode_libdir_flag_spec_CXX=
9067 hardcode_libdir_flag_spec_ld_CXX=
9068 hardcode_libdir_separator_CXX=
9069 hardcode_minus_L_CXX=no
9070 hardcode_automatic_CXX=no
9072 module_expsym_cmds_CXX=
9073 link_all_deplibs_CXX=unknown
9074 old_archive_cmds_CXX=$old_archive_cmds
9075 no_undefined_flag_CXX=
9076 whole_archive_flag_spec_CXX=
9077 enable_shared_with_static_runtimes_CXX=no
9079 # Dependencies to place before and after the object being linked:
9081 postdep_objects_CXX=
9084 compiler_lib_search_path_CXX=
9086 # Source file extension for C++ test sources.
9089 # Object file extension for compiled C++ test sources.
9093 # Code to be used in simple compile tests
9094 lt_simple_compile_test_code="int some_variable = 0;\n"
9096 # Code to be used in simple link tests
9097 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9101 # If no C compiler was specified, use CC.
9104 # Allow CC to be a program name with arguments.
9108 # Allow CC to be a program name with arguments.
9113 lt_save_with_gnu_ld=$with_gnu_ld
9114 lt_save_path_LD=$lt_cv_path_LD
9115 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9116 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9118 unset lt_cv_prog_gnu_ld
9120 if test -n "${lt_cv_path_LDCXX+set}"; then
9121 lt_cv_path_LD=$lt_cv_path_LDCXX
9125 test -z "${LDCXX+set}" || LD=$LDCXX
9129 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9131 # We don't want -fno-exception wen compiling C++ code, so set the
9132 # no_builtin_flag separately
9133 if test "$GXX" = yes; then
9134 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9136 lt_prog_compiler_no_builtin_flag_CXX=
9139 if test "$GXX" = yes; then
9140 # Set up default GNU C++ configuration
9143 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9144 if test "${with_gnu_ld+set}" = set; then
9145 withval="$with_gnu_ld"
9146 test "$withval" = no || with_gnu_ld=yes
9151 if test "$GCC" = yes; then
9152 # Check if gcc -print-prog-name=ld gives a path.
9153 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9154 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9157 # gcc leaves a trailing carriage return which upsets mingw
9158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9163 # Accept absolute paths.
9165 re_direlt='/[^/][^/]*/\.\./'
9166 # Canonicalize the path of ld
9167 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9169 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9171 test -z "$LD" && LD="$ac_prog"
9174 # If it fails, then pretend we aren't using GCC.
9178 # If it is relative, then search for the first ld in PATH.
9182 elif test "$with_gnu_ld" = yes; then
9183 echo "$as_me:$LINENO: checking for GNU ld" >&5
9184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9186 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9189 if test "${lt_cv_path_LD+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 if test -z "$LD"; then
9193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9194 for ac_dir in $PATH; do
9196 test -z "$ac_dir" && ac_dir=.
9197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9198 lt_cv_path_LD="$ac_dir/$ac_prog"
9199 # Check to see if the program is GNU ld. I'd rather use --version,
9200 # but apparently some GNU ld's only accept -v.
9201 # Break only if it was the GNU/non-GNU ld that we prefer.
9202 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9203 *GNU* | *'with BFD'*)
9204 test "$with_gnu_ld" != no && break
9207 test "$with_gnu_ld" != yes && break
9214 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9219 if test -n "$LD"; then
9220 echo "$as_me:$LINENO: result: $LD" >&5
9221 echo "${ECHO_T}$LD" >&6
9223 echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6
9226 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9227 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9228 { (exit 1); exit 1; }; }
9229 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9230 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9231 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9235 case `"$LD" -v 2>&1 </dev/null` in
9236 *GNU* | *'with BFD'*)
9237 lt_cv_prog_gnu_ld=yes
9240 lt_cv_prog_gnu_ld=no
9244 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9245 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9246 with_gnu_ld=$lt_cv_prog_gnu_ld
9250 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9251 # archiving commands below assume that GNU ld is being used.
9252 if test "$with_gnu_ld" = yes; then
9253 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254 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'
9256 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9257 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9259 # If archive_cmds runs LD, not CC, wlarc should be empty
9260 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9261 # investigate it a little bit more. (MM)
9264 # ancient GNU ld didn't support --whole-archive et. al.
9265 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9266 grep 'no-whole-archive' > /dev/null; then
9267 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9269 whole_archive_flag_spec_CXX=
9275 # A generic and very simple default shared library creation
9276 # command for GNU C++ for the case where it uses the native
9277 # linker, instead of GNU ld. If possible, this setting should
9278 # overridden to take advantage of the native linker features on
9279 # the platform it is being used on.
9280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9283 # Commands to make compiler produce verbose output that lists
9284 # what "hidden" libraries, object files and flags are used when
9285 # linking a shared library.
9286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9294 # PORTME: fill in a description of your system's C++ link characteristics
9295 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9300 # FIXME: insert proper C++ library support
9304 if test "$host_cpu" = ia64; then
9305 # On IA64, the linker does run time linking by default, so we don't
9306 # have to do anything special.
9307 aix_use_runtimelinking=no
9308 exp_sym_flag='-Bexport'
9311 aix_use_runtimelinking=no
9313 # Test if we are trying to use run time linking or normal
9314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9315 # need to do runtime linking.
9316 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9317 for ld_flag in $LDFLAGS; do
9320 aix_use_runtimelinking=yes
9327 exp_sym_flag='-bexport'
9328 no_entry_flag='-bnoentry'
9331 # When large executables or shared objects are built, AIX ld can
9332 # have problems creating the table of contents. If linking a library
9333 # or program results in "error TOC overflow" add -mminimal-toc to
9334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9338 hardcode_direct_CXX=yes
9339 hardcode_libdir_separator_CXX=':'
9340 link_all_deplibs_CXX=yes
9342 if test "$GXX" = yes; then
9343 case $host_os in aix4.012|aix4.012.*)
9344 # We only want to do this on AIX 4.2 and lower, the check
9345 # below for broken collect2 doesn't work under 4.3+
9346 collect2name=`${CC} -print-prog-name=collect2`
9347 if test -f "$collect2name" && \
9348 strings "$collect2name" | grep resolve_lib_name >/dev/null
9350 # We have reworked collect2
9351 hardcode_direct_CXX=yes
9353 # We have old collect2
9354 hardcode_direct_CXX=unsupported
9355 # It fails to find uninstalled libraries when the uninstalled
9356 # path is not listed in the libpath. Setting hardcode_minus_L
9357 # to unsupported forces relinking
9358 hardcode_minus_L_CXX=yes
9359 hardcode_libdir_flag_spec_CXX='-L$libdir'
9360 hardcode_libdir_separator_CXX=
9363 shared_flag='-shared'
9366 if test "$host_cpu" = ia64; then
9367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9368 # chokes on -Wl,-G. The following line is correct:
9371 if test "$aix_use_runtimelinking" = yes; then
9372 shared_flag='${wl}-G'
9374 shared_flag='${wl}-bM:SRE'
9379 # It seems that -bexpall does not export symbols beginning with
9380 # underscore (_), so it is better to generate a list of symbols to export.
9381 always_export_symbols_CXX=yes
9382 if test "$aix_use_runtimelinking" = yes; then
9383 # Warning - without using the other runtime loading flags (-brtl),
9384 # -berok will link without error, but may produce a broken library.
9385 allow_undefined_flag_CXX='-berok'
9386 # Determine the default libpath from the value encoded in an empty executable.
9387 cat >conftest.$ac_ext <<_ACEOF
9388 #line $LINENO "configure"
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405 (eval $ac_link) 2>&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -s conftest$ac_exeext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9418 # Check for a 64-bit object if we didn't find anything.
9419 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; }
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9429 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9431 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"
9433 if test "$host_cpu" = ia64; then
9434 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9435 allow_undefined_flag_CXX="-z nodefs"
9436 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"
9438 # Determine the default libpath from the value encoded in an empty executable.
9439 cat >conftest.$ac_ext <<_ACEOF
9440 #line $LINENO "configure"
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9470 # Check for a 64-bit object if we didn't find anything.
9471 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; }
9474 echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9481 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9482 # Warning - without using the other run time loading flags,
9483 # -berok will link without error, but may produce a broken library.
9484 no_undefined_flag_CXX=' ${wl}-bernotok'
9485 allow_undefined_flag_CXX=' ${wl}-berok'
9486 # -bexpall does not export symbols beginning with underscore (_)
9487 always_export_symbols_CXX=yes
9488 # Exported symbols can be pulled into shared objects from archives
9489 whole_archive_flag_spec_CXX=' '
9490 archive_cmds_need_lc_CXX=yes
9491 # This is similar to how AIX traditionally builds it's shared libraries.
9492 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'
9497 case $cc_basename in
9499 # FIXME: insert proper C++ library support
9505 cygwin* | mingw* | pw32*)
9506 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9507 # as there is no search path for DLLs.
9508 hardcode_libdir_flag_spec_CXX='-L$libdir'
9509 allow_undefined_flag_CXX=unsupported
9510 always_export_symbols_CXX=no
9511 enable_shared_with_static_runtimes_CXX=yes
9513 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9514 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'
9515 # If the export-symbols file already is a .def file (1st line
9516 # is EXPORTS), use it as is; otherwise, prepend...
9517 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518 cp $export_symbols $output_objdir/$soname.def;
9520 echo EXPORTS > $output_objdir/$soname.def;
9521 cat $export_symbols >> $output_objdir/$soname.def;
9523 $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'
9529 darwin* | rhapsody*)
9530 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9531 archive_cmds_need_lc_CXX=no
9533 rhapsody* | darwin1.[012])
9534 allow_undefined_flag_CXX='-undefined suppress'
9537 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9540 lt_int_apple_cc_single_mod=no
9541 output_verbose_link_cmd='echo'
9542 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9543 lt_int_apple_cc_single_mod=yes
9545 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9546 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9548 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'
9550 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9553 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9554 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}'
9556 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}'
9558 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}'
9559 hardcode_direct_CXX=no
9560 hardcode_automatic_CXX=yes
9561 hardcode_shlibpath_var_CXX=unsupported
9562 whole_archive_flag_spec_CXX='-all_load $convenience'
9563 link_all_deplibs_CXX=yes
9568 case $cc_basename in
9570 # FIXME: insert proper C++ library support
9574 # Green Hills C++ Compiler
9575 # FIXME: insert proper C++ library support
9579 # FIXME: insert proper C++ library support
9585 # C++ shared libraries reported to be fairly broken before switch to ELF
9589 archive_cmds_need_lc_CXX=no
9592 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9599 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9600 hardcode_libdir_separator_CXX=:
9601 export_dynamic_flag_spec_CXX='${wl}-E'
9602 hardcode_direct_CXX=yes
9603 hardcode_minus_L_CXX=yes # Not in the search PATH,
9604 # but as the default
9605 # location of the library.
9607 case $cc_basename in
9609 # FIXME: insert proper C++ library support
9613 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'
9614 # Commands to make compiler produce verbose output that lists
9615 # what "hidden" libraries, object files and flags are used when
9616 # linking a shared library.
9618 # There doesn't appear to be a way to prevent this compiler from
9619 # explicitly linking system object files so we need to strip them
9620 # from the output so that they don't get included in the library
9622 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'
9625 if test "$GXX" = yes; then
9626 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'
9628 # FIXME: insert proper C++ library support
9635 if test $with_gnu_ld = no; then
9638 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9639 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9640 hardcode_libdir_separator_CXX=:
9643 hardcode_libdir_flag_spec_CXX='-L$libdir'
9646 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9647 hardcode_libdir_separator_CXX=:
9648 export_dynamic_flag_spec_CXX='${wl}-E'
9654 hardcode_direct_CXX=no
9655 hardcode_shlibpath_var_CXX=no
9658 hardcode_direct_CXX=no
9659 hardcode_shlibpath_var_CXX=no
9660 hardcode_minus_L_CXX=yes # Not in the search PATH,
9661 # but as the default
9662 # location of the library.
9665 hardcode_direct_CXX=yes
9666 hardcode_minus_L_CXX=yes # Not in the search PATH,
9667 # but as the default
9668 # location of the library.
9672 case $cc_basename in
9674 # FIXME: insert proper C++ library support
9680 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9683 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9686 # Commands to make compiler produce verbose output that lists
9687 # what "hidden" libraries, object files and flags are used when
9688 # linking a shared library.
9690 # There doesn't appear to be a way to prevent this compiler from
9691 # explicitly linking system object files so we need to strip them
9692 # from the output so that they don't get included in the library
9694 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'
9697 if test "$GXX" = yes; then
9698 if test $with_gnu_ld = no; then
9701 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9704 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'
9709 # FIXME: insert proper C++ library support
9716 case $cc_basename in
9719 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'
9721 # Archives containing C++ object files must be created using
9722 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9723 # necessary to make sure instantiated templates are included
9725 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9728 if test "$GXX" = yes; then
9729 if test "$with_gnu_ld" = no; then
9730 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'
9732 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'
9735 link_all_deplibs_CXX=yes
9738 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9739 hardcode_libdir_separator_CXX=:
9742 case $cc_basename in
9744 # Kuck and Associates, Inc. (KAI) C++ Compiler
9746 # KCC will only create a shared library if the output file
9747 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9748 # to its proper name (with version) after linking.
9749 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'
9750 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'
9751 # Commands to make compiler produce verbose output that lists
9752 # what "hidden" libraries, object files and flags are used when
9753 # linking a shared library.
9755 # There doesn't appear to be a way to prevent this compiler from
9756 # explicitly linking system object files so we need to strip them
9757 # from the output so that they don't get included in the library
9759 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'
9761 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9764 # Archives containing C++ object files must be created using
9765 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9766 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9771 archive_cmds_need_lc_CXX=no
9772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773 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'
9774 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9776 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9780 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781 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'
9783 runpath_var=LD_RUN_PATH
9784 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9785 hardcode_libdir_separator_CXX=:
9787 # Commands to make compiler produce verbose output that lists
9788 # what "hidden" libraries, object files and flags are used when
9789 # linking a shared library.
9791 # There doesn't appear to be a way to prevent this compiler from
9792 # explicitly linking system object files so we need to strip them
9793 # from the output so that they don't get included in the library
9795 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'
9800 # FIXME: insert proper C++ library support
9804 # FIXME: insert proper C++ library support
9808 case $cc_basename in
9810 # FIXME: insert proper C++ library support
9814 # FIXME: insert proper C++ library support
9820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9821 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9823 hardcode_libdir_flag_spec_CXX='-R$libdir'
9824 hardcode_direct_CXX=yes
9825 hardcode_shlibpath_var_CXX=no
9827 # Workaround some broken pre-1.5 toolchains
9828 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9831 case $cc_basename in
9833 # Kuck and Associates, Inc. (KAI) C++ Compiler
9835 # KCC will only create a shared library if the output file
9836 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9837 # to its proper name (with version) after linking.
9838 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'
9840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9841 hardcode_libdir_separator_CXX=:
9843 # Archives containing C++ object files must be created using
9844 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9845 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9849 # Rational C++ 2.4.1
9850 # FIXME: insert proper C++ library support
9854 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9855 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'
9857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9858 hardcode_libdir_separator_CXX=:
9860 # Commands to make compiler produce verbose output that lists
9861 # what "hidden" libraries, object files and flags are used when
9862 # linking a shared library.
9864 # There doesn't appear to be a way to prevent this compiler from
9865 # explicitly linking system object files so we need to strip them
9866 # from the output so that they don't get included in the library
9868 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'
9871 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9872 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9873 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'
9875 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9876 hardcode_libdir_separator_CXX=:
9878 # Commands to make compiler produce verbose output that lists
9879 # what "hidden" libraries, object files and flags are used when
9880 # linking a shared library.
9881 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9884 # FIXME: insert proper C++ library support
9891 case $cc_basename in
9893 # Kuck and Associates, Inc. (KAI) C++ Compiler
9895 # KCC will only create a shared library if the output file
9896 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9897 # to its proper name (with version) after linking.
9898 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'
9900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9901 hardcode_libdir_separator_CXX=:
9903 # Archives containing C++ object files must be created using
9904 # the KAI C++ compiler.
9905 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9908 # Rational C++ 2.4.1
9909 # FIXME: insert proper C++ library support
9913 allow_undefined_flag_CXX=' -expect_unresolved \*'
9914 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'
9915 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9916 echo "-hidden">> $lib.exp~
9917 $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~
9920 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9921 hardcode_libdir_separator_CXX=:
9923 # Commands to make compiler produce verbose output that lists
9924 # what "hidden" libraries, object files and flags are used when
9925 # linking a shared library.
9927 # There doesn't appear to be a way to prevent this compiler from
9928 # explicitly linking system object files so we need to strip them
9929 # from the output so that they don't get included in the library
9931 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'
9934 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9935 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9936 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'
9938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9939 hardcode_libdir_separator_CXX=:
9941 # Commands to make compiler produce verbose output that lists
9942 # what "hidden" libraries, object files and flags are used when
9943 # linking a shared library.
9944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9947 # FIXME: insert proper C++ library support
9954 # FIXME: insert proper C++ library support
9958 archive_cmds_need_lc_CXX=no
9959 case $cc_basename in
9961 # FIXME: insert proper C++ library support
9965 # FIXME: insert proper C++ library support
9971 case $cc_basename in
9974 # FIXME: insert proper C++ library support
9979 # FIXME: insert proper C++ library support
9983 # FIXME: insert proper C++ library support
9989 case $cc_basename in
9991 # Sun C++ 4.2, 5.x and Centerline C++
9992 no_undefined_flag_CXX=' -zdefs'
9993 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9994 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9995 $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'
9997 hardcode_libdir_flag_spec_CXX='-R$libdir'
9998 hardcode_shlibpath_var_CXX=no
10000 solaris2.0-5 | solaris2.0-5.*) ;;
10002 # The C++ compiler is used as linker so we must use $wl
10003 # flag to pass the commands to the underlying system
10005 # Supported since Solaris 2.6 (maybe 2.5.1?)
10006 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10009 link_all_deplibs_CXX=yes
10011 # Commands to make compiler produce verbose output that lists
10012 # what "hidden" libraries, object files and flags are used when
10013 # linking a shared library.
10015 # There doesn't appear to be a way to prevent this compiler from
10016 # explicitly linking system object files so we need to strip them
10017 # from the output so that they don't get included in the library
10019 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'
10021 # Archives containing C++ object files must be created using
10022 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10023 # necessary to make sure instantiated templates are included
10025 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10028 # Green Hills C++ Compiler
10029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10031 # The C++ compiler must be used to create the archive.
10032 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10035 # GNU C++ compiler with Solaris linker
10036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10037 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10038 if $CC --version | grep -v '^2\.7' > /dev/null; then
10039 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10040 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10041 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10043 # Commands to make compiler produce verbose output that lists
10044 # what "hidden" libraries, object files and flags are used when
10045 # linking a shared library.
10046 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10048 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10050 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10051 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10052 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10054 # Commands to make compiler produce verbose output that lists
10055 # what "hidden" libraries, object files and flags are used when
10056 # linking a shared library.
10057 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10060 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10065 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10066 archive_cmds_need_lc_CXX=no
10069 case $cc_basename in
10071 # NonStop-UX NCC 3.20
10072 # FIXME: insert proper C++ library support
10076 # FIXME: insert proper C++ library support
10082 # FIXME: insert proper C++ library support
10086 # FIXME: insert proper C++ library support
10090 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10091 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10092 test "$ld_shlibs_CXX" = no && can_build_shared=no
10098 ## There is no encapsulation within the following macros, do not change
10099 ## the running order or otherwise move them around unless you know exactly
10100 ## what you are doing...
10102 cat > conftest.$ac_ext <<EOF
10106 Foo (void) { a = 0; }
10112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; then
10117 # Parse the compiler output and extract the necessary
10118 # objects, libraries and library flags.
10120 # Sentinel used to keep track of whether or not we are before
10121 # the conftest object file.
10122 pre_test_object_deps_done=no
10124 # The `*' in the case matches for architectures that use `case' in
10125 # $output_verbose_cmd can trigger glob expansion during the loop
10126 # eval without this substitution.
10127 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10129 for p in `eval $output_verbose_link_cmd`; do
10133 # Some compilers place space between "-{L,R}" and the path.
10134 # Remove the space.
10135 if test $p = "-L" \
10136 || test $p = "-R"; then
10143 if test "$pre_test_object_deps_done" = no; then
10146 # Internal compiler library paths should come after those
10147 # provided the user. The postdeps already come after the
10148 # user supplied libs so there is no need to process them.
10149 if test -z "$compiler_lib_search_path_CXX"; then
10150 compiler_lib_search_path_CXX="${prev}${p}"
10152 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10155 # The "-l" case would never come before the object being
10156 # linked, so don't bother handling this case.
10159 if test -z "$postdeps_CXX"; then
10160 postdeps_CXX="${prev}${p}"
10162 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10168 # This assumes that the test object file only shows up
10169 # once in the compiler output.
10170 if test "$p" = "conftest.$objext"; then
10171 pre_test_object_deps_done=yes
10175 if test "$pre_test_object_deps_done" = no; then
10176 if test -z "$predep_objects_CXX"; then
10177 predep_objects_CXX="$p"
10179 predep_objects_CXX="$predep_objects_CXX $p"
10182 if test -z "$postdep_objects_CXX"; then
10183 postdep_objects_CXX="$p"
10185 postdep_objects_CXX="$postdep_objects_CXX $p"
10190 *) ;; # Ignore the rest.
10198 echo "libtool.m4: error: problem compiling CXX test program"
10201 $rm -f confest.$objext
10203 case " $postdeps_CXX " in
10204 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10207 lt_prog_compiler_wl_CXX=
10208 lt_prog_compiler_pic_CXX=
10209 lt_prog_compiler_static_CXX=
10211 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10212 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10214 # C++ specific cases for pic, static, wl, etc.
10215 if test "$GXX" = yes; then
10216 lt_prog_compiler_wl_CXX='-Wl,'
10217 lt_prog_compiler_static_CXX='-static'
10221 # All AIX code is PIC.
10222 if test "$host_cpu" = ia64; then
10223 # AIX 5 now supports IA64 processor
10224 lt_prog_compiler_static_CXX='-Bstatic'
10228 # FIXME: we need at least 68020 code to build shared libraries, but
10229 # adding the `-m68020' flag to GCC prevents building anything better,
10231 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10233 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10234 # PIC is the default for these OSes.
10236 mingw* | os2* | pw32*)
10237 # This hack is so that the source file can tell whether it is being
10238 # built for inclusion in a dll (and should export symbols for example).
10239 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10241 darwin* | rhapsody*)
10242 # PIC is the default on this platform
10243 # Common symbols not allowed in MH_DYLIB files
10244 lt_prog_compiler_pic_CXX='-fno-common'
10247 # DJGPP does not support shared libraries at all
10248 lt_prog_compiler_pic_CXX=
10251 if test -d /usr/nec; then
10252 lt_prog_compiler_pic_CXX=-Kconform_pic
10256 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10257 # not for PA HP-UX.
10258 case "$host_cpu" in
10262 lt_prog_compiler_pic_CXX='-fPIC'
10267 lt_prog_compiler_pic_CXX='-fPIC'
10273 # All AIX code is PIC.
10274 if test "$host_cpu" = ia64; then
10275 # AIX 5 now supports IA64 processor
10276 lt_prog_compiler_static_CXX='-Bstatic'
10278 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10282 case $cc_basename in
10284 # Green Hills C++ Compiler
10285 # _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"
10290 case $cc_basename in
10292 lt_prog_compiler_pic_CXX='-KPIC'
10295 # Green Hills C++ Compiler
10296 lt_prog_compiler_pic_CXX='-pic'
10303 # FreeBSD uses GNU C++
10305 hpux9* | hpux10* | hpux11*)
10306 case $cc_basename in
10308 lt_prog_compiler_wl_CXX='-Wl,'
10309 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10310 if test "$host_cpu" != ia64; then
10311 lt_prog_compiler_pic_CXX='+Z'
10315 lt_prog_compiler_wl_CXX='-Wl,'
10316 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10317 case "$host_cpu" in
10322 lt_prog_compiler_pic_CXX='+Z'
10330 irix5* | irix6* | nonstopux*)
10331 case $cc_basename in
10333 lt_prog_compiler_wl_CXX='-Wl,'
10334 lt_prog_compiler_static_CXX='-non_shared'
10335 # CC pic flag -KPIC is the default.
10342 case $cc_basename in
10345 lt_prog_compiler_wl_CXX='--backend -Wl,'
10346 lt_prog_compiler_pic_CXX='-fPIC'
10350 lt_prog_compiler_wl_CXX='-Wl,'
10351 lt_prog_compiler_pic_CXX='-KPIC'
10352 lt_prog_compiler_static_CXX='-static'
10356 # Make sure the PIC flag is empty. It appears that all Alpha
10357 # Linux and Compaq Tru64 Unix objects are PIC.
10358 lt_prog_compiler_pic_CXX=
10359 lt_prog_compiler_static_CXX='-non_shared'
10370 case $cc_basename in
10372 lt_prog_compiler_pic_CXX='-W c,exportall'
10380 osf3* | osf4* | osf5*)
10381 case $cc_basename in
10383 lt_prog_compiler_wl_CXX='--backend -Wl,'
10386 # Rational C++ 2.4.1
10387 lt_prog_compiler_pic_CXX='-pic'
10390 # Digital/Compaq C++
10391 lt_prog_compiler_wl_CXX='-Wl,'
10392 # Make sure the PIC flag is empty. It appears that all Alpha
10393 # Linux and Compaq Tru64 Unix objects are PIC.
10394 lt_prog_compiler_pic_CXX=
10395 lt_prog_compiler_static_CXX='-non_shared'
10404 case $cc_basename in
10406 lt_prog_compiler_pic_CXX='-fPIC'
10413 case $cc_basename in
10415 # Sun C++ 4.2, 5.x and Centerline C++
10416 lt_prog_compiler_pic_CXX='-KPIC'
10417 lt_prog_compiler_static_CXX='-Bstatic'
10418 lt_prog_compiler_wl_CXX='-Qoption ld '
10421 # Green Hills C++ Compiler
10422 lt_prog_compiler_pic_CXX='-PIC'
10429 case $cc_basename in
10432 lt_prog_compiler_pic_CXX='-pic'
10433 lt_prog_compiler_static_CXX='-Bstatic'
10437 lt_prog_compiler_pic_CXX='-pic'
10444 case $cc_basename in
10446 # NonStop-UX NCC 3.20
10447 lt_prog_compiler_pic_CXX='-KPIC'
10458 lt_prog_compiler_can_build_shared_CXX=no
10463 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10464 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10467 # Check to make sure the PIC flag actually works.
10469 if test -n "$lt_prog_compiler_pic_CXX"; then
10470 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10472 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 lt_prog_compiler_pic_works_CXX=no
10476 ac_outfile=conftest.$ac_objext
10477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10478 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10479 # Insert the option either (1) after the last *FLAGS variable, or
10480 # (2) before a word containing "conftest.", or (3) at the end.
10481 # Note that $ac_compile itself does not contain backslashes and begins
10482 # with a dollar sign (not a hyphen), so the echo should work correctly.
10483 # The option is referenced via a variable to avoid confusing sed.
10484 lt_compile=`echo "$ac_compile" | $SED \
10485 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10487 -e 's:$: $lt_compiler_flag:'`
10488 (eval echo "\"\$as_me:10488: $lt_compile\"" >&5)
10489 (eval "$lt_compile" 2>conftest.err)
10491 cat conftest.err >&5
10492 echo "$as_me:10492: \$? = $ac_status" >&5
10493 if (exit $ac_status) && test -s "$ac_outfile"; then
10494 # The compiler can only warn and ignore the option if not recognized
10495 # So say no if there are warnings
10496 if test ! -s conftest.err; then
10497 lt_prog_compiler_pic_works_CXX=yes
10503 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10504 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10506 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10507 case $lt_prog_compiler_pic_CXX in
10509 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10512 lt_prog_compiler_pic_CXX=
10513 lt_prog_compiler_can_build_shared_CXX=no
10518 # For platforms which do not support PIC, -DPIC is meaningless:
10520 lt_prog_compiler_pic_CXX=
10523 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10527 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10529 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 lt_cv_prog_compiler_c_o_CXX=no
10533 $rm -r conftest 2>/dev/null
10537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10539 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10540 # that will create temporary files in the current directory regardless of
10541 # the output directory. Thus, making CWD read-only will cause this test
10542 # to fail, enabling locking or at least warning the user not to do parallel
10546 lt_compiler_flag="-o out/conftest2.$ac_objext"
10547 # Insert the option either (1) after the last *FLAGS variable, or
10548 # (2) before a word containing "conftest.", or (3) at the end.
10549 # Note that $ac_compile itself does not contain backslashes and begins
10550 # with a dollar sign (not a hyphen), so the echo should work correctly.
10551 lt_compile=`echo "$ac_compile" | $SED \
10552 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10554 -e 's:$: $lt_compiler_flag:'`
10555 (eval echo "\"\$as_me:10555: $lt_compile\"" >&5)
10556 (eval "$lt_compile" 2>out/conftest.err)
10558 cat out/conftest.err >&5
10559 echo "$as_me:10559: \$? = $ac_status" >&5
10560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10562 # The compiler can only warn and ignore the option if not recognized
10563 # So say no if there are warnings
10564 if test ! -s out/conftest.err; then
10565 lt_cv_prog_compiler_c_o_CXX=yes
10569 $rm conftest* out/*
10576 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10577 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10580 hard_links="nottested"
10581 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10582 # do not overwrite the value of need_locks provided by the user
10583 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10584 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10589 ln conftest.a conftest.b 2>&5 || hard_links=no
10590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10591 echo "$as_me:$LINENO: result: $hard_links" >&5
10592 echo "${ECHO_T}$hard_links" >&6
10593 if test "$hard_links" = no; then
10594 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10595 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10602 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10603 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10605 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10608 # If we're using GNU nm, then we don't want the "-C" option.
10609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10610 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10611 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'
10613 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'
10617 export_symbols_cmds_CXX="$ltdll_cmds"
10620 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10623 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10627 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10628 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10629 test "$ld_shlibs_CXX" = no && can_build_shared=no
10631 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10632 if test "$GCC" = yes; then
10633 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10637 # Do we need to explicitly link libc?
10639 case "x$archive_cmds_need_lc_CXX" in
10641 # Assume -lc should be added
10642 archive_cmds_need_lc_CXX=yes
10644 if test "$enable_shared" = yes && test "$GCC" = yes; then
10645 case $archive_cmds_CXX in
10647 # FIXME: we may have to deal with multi-command sequences.
10650 # Test whether the compiler implicitly links with -lc since on some
10651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10652 # to ld, don't add -lc before -lgcc.
10653 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10654 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } 2>conftest.err; then
10665 libobjs=conftest.$ac_objext
10667 wl=$lt_prog_compiler_wl_CXX
10673 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10674 allow_undefined_flag_CXX=
10675 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10676 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }
10681 archive_cmds_need_lc_CXX=no
10683 archive_cmds_need_lc_CXX=yes
10685 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10687 cat conftest.err 1>&5
10690 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10691 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10698 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10699 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10700 hardcode_action_CXX=
10701 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10702 test -n "$runpath_var CXX" || \
10703 test "X$hardcode_automatic_CXX"="Xyes" ; then
10705 # We can hardcode non-existant directories.
10706 if test "$hardcode_direct_CXX" != no &&
10707 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10708 # have to relink, otherwise we might link with an installed library
10709 # when we should be linking with a yet-to-be-installed one
10710 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10711 test "$hardcode_minus_L_CXX" != no; then
10712 # Linking always hardcodes the temporary library directory.
10713 hardcode_action_CXX=relink
10715 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10716 hardcode_action_CXX=immediate
10719 # We cannot hardcode anything, or else we can only hardcode existing
10721 hardcode_action_CXX=unsupported
10723 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10724 echo "${ECHO_T}$hardcode_action_CXX" >&6
10726 if test "$hardcode_action_CXX" = relink; then
10727 # Fast installation is not supported
10728 enable_fast_install=no
10729 elif test "$shlibpath_overrides_runpath" = yes ||
10730 test "$enable_shared" = no; then
10731 # Fast installation is not necessary
10732 enable_fast_install=needless
10737 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10738 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10739 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10740 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10741 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10742 echo "$as_me:$LINENO: result: yes" >&5
10743 echo "${ECHO_T}yes" >&6
10745 # FIXME - insert some real tests, host_os isn't really good enough
10748 if test -n "$STRIP" ; then
10749 striplib="$STRIP -x"
10750 echo "$as_me:$LINENO: result: yes" >&5
10751 echo "${ECHO_T}yes" >&6
10753 echo "$as_me:$LINENO: result: no" >&5
10754 echo "${ECHO_T}no" >&6
10758 echo "$as_me:$LINENO: result: no" >&5
10759 echo "${ECHO_T}no" >&6
10764 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10765 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10766 library_names_spec=
10767 libname_spec='lib$name'
10771 postuninstall_cmds=
10775 shlibpath_overrides_runpath=unknown
10777 dynamic_linker="$host_os ld.so"
10778 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10779 if test "$GCC" = yes; then
10780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10781 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10782 # if the path contains ";" then we assume it to be the separator
10783 # otherwise default to the standard path separator (i.e. ":") - it is
10784 # assumed that no part of a normal pathname contains ";" but that should
10785 # okay in the real world where ";" in dirpaths is itself problematic.
10786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10793 need_lib_prefix=unknown
10794 hardcode_into_libs=no
10796 # when you set need_version to no, make sure it does not cause -set_version
10797 # flags to be left without arguments
10798 need_version=unknown
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10804 shlibpath_var=LIBPATH
10806 # AIX 3 has no versioning support, so we append a major version to the name.
10807 soname_spec='${libname}${release}${shared_ext}$major'
10814 hardcode_into_libs=yes
10815 if test "$host_cpu" = ia64; then
10816 # AIX 5 supports IA64
10817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10818 shlibpath_var=LD_LIBRARY_PATH
10820 # With GCC up to 2.95.x, collect2 would create an import file
10821 # for dependence libraries. The import file would start with
10822 # the line `#! .'. This would cause the generated library to
10823 # depend on `.', always an invalid library. This was fixed in
10824 # development snapshots of GCC prior to 3.0.
10826 aix4 | aix4.[01] | aix4.[01].*)
10827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10829 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10832 can_build_shared=no
10836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10837 # soname into executable. Probably we can add versioning support to
10838 # collect2, so additional links can be useful in future.
10839 if test "$aix_use_runtimelinking" = yes; then
10840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10841 # instead of lib<name>.a to let people know that these are not
10842 # typical AIX shared libraries.
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 # We preserve .a as extension for shared libraries through AIX4.2
10846 # and later when we are not doing run time linking.
10847 library_names_spec='${libname}${release}.a $libname.a'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10850 shlibpath_var=LIBPATH
10855 library_names_spec='$libname.ixlibrary $libname.a'
10856 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10857 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'
10861 library_names_spec='${libname}${shared_ext}'
10862 dynamic_linker="$host_os ld.so"
10863 shlibpath_var=LIBRARY_PATH
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10875 # the default ld.so.conf also contains /usr/contrib/lib and
10876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10877 # libtool to hard-code these into programs
10880 cygwin* | mingw* | pw32*)
10881 version_type=windows
10886 case $GCC,$host_os in
10887 yes,cygwin* | yes,mingw* | yes,pw32*)
10888 library_names_spec='$libname.dll.a'
10889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10890 postinstall_cmds='base_file=`basename \${file}`~
10891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10892 dldir=$destdir/`dirname \$dlpath`~
10893 test -d \$dldir || mkdir -p \$dldir~
10894 $install_prog $dir/$dlname \$dldir/$dlname'
10895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10896 dlpath=$dir/\$dldll~
10898 shlibpath_overrides_runpath=yes
10902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10904 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10907 # MinGW DLLs use traditional 'lib' prefix
10908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10909 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10910 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10911 # It is most probably a Windows format PATH printed by
10912 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10913 # path with ; separators, and with drive letters. We can handle the
10914 # drive letters (cygwin fileutils understands them), so leave them,
10915 # especially as we might pass files found there to a mingw objdump,
10916 # which wouldn't understand a cygwinified path. Ahh.
10917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10923 # pw32 DLLs use 'pw' prefix rather than 'lib'
10924 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10930 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10933 dynamic_linker='Win32 ld.exe'
10934 # FIXME: first we should search . and the directory the executable is in
10938 darwin* | rhapsody*)
10939 dynamic_linker="$host_os dyld"
10940 version_type=darwin
10943 # FIXME: Relying on posixy $() will cause problems for
10944 # cross-compilation, but unfortunately the echo tests do not
10945 # yet detect zsh echo's removal of \ escapes.
10946 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10947 soname_spec='${libname}${release}${major}$shared_ext'
10948 shlibpath_overrides_runpath=yes
10949 shlibpath_var=DYLD_LIBRARY_PATH
10950 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10951 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10952 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10953 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"`
10955 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10972 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10973 version_type=freebsd-$objformat
10974 case $version_type in
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10985 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=yes
10990 freebsd3.01* | freebsdelf3.01*)
10991 shlibpath_overrides_runpath=yes
10992 hardcode_into_libs=yes
10995 shlibpath_overrides_runpath=no
10996 hardcode_into_libs=yes
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 shlibpath_var=LD_LIBRARY_PATH
11008 hardcode_into_libs=yes
11011 hpux9* | hpux10* | hpux11*)
11012 # Give a soname corresponding to the major version so that dld.sl refuses to
11013 # link against other versions.
11017 case "$host_cpu" in
11020 hardcode_into_libs=yes
11021 dynamic_linker="$host_os dld.so"
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 if test "X$HPUX_IA64_MODE" = X32; then
11027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11035 hardcode_into_libs=yes
11036 dynamic_linker="$host_os dld.sl"
11037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11046 dynamic_linker="$host_os dld.sl"
11047 shlibpath_var=SHLIB_PATH
11048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11053 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11054 postinstall_cmds='chmod 555 $lib'
11057 irix5* | irix6* | nonstopux*)
11059 nonstopux*) version_type=nonstopux ;;
11061 if test "$lt_cv_prog_gnu_ld" = yes; then
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11072 irix5* | nonstopux*)
11073 libsuff= shlibsuff=
11076 case $LD in # libtool.m4 will add one of these switches to LD
11077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11078 libsuff= shlibsuff= libmagic=32-bit;;
11079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11080 libsuff=32 shlibsuff=N32 libmagic=N32;;
11081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11083 *) libsuff= shlibsuff= libmagic=never-match;;
11087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11088 shlibpath_overrides_runpath=no
11089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11091 hardcode_into_libs=yes
11094 # No shared lib support for Linux oldld, aout, or coff.
11095 linux*oldld* | linux*aout* | linux*coff*)
11099 # This must be Linux ELF.
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=no
11109 # This implies no fast_install, which is unacceptable.
11110 # Some rework will be needed to allow for fast_install
11111 # before this can be enabled.
11112 hardcode_into_libs=yes
11114 # We used to test for /lib/ld.so.1 and disable shared libraries on
11115 # powerpc, because MkLinux only supported shared libraries with the
11116 # GNU dynamic linker. Since this was broken with cross compilers,
11117 # most powerpc-linux boxes support dynamic linking these days and
11118 # people can always --disable-shared, the test was removed, and we
11119 # assume the GNU/Linux dynamic linker is in use.
11120 dynamic_linker='GNU/Linux ld.so'
11127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11130 dynamic_linker='NetBSD (a.out) ld.so'
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 dynamic_linker='NetBSD ld.elf_so'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=yes
11138 hardcode_into_libs=yes
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=yes
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11167 openbsd2.[89] | openbsd2.[89].*)
11168 shlibpath_overrides_runpath=no
11171 shlibpath_overrides_runpath=yes
11175 shlibpath_overrides_runpath=yes
11180 libname_spec='$name'
11183 library_names_spec='$libname${shared_ext} $libname.a'
11184 dynamic_linker='OS/2 ld.exe'
11185 shlibpath_var=LIBPATH
11188 osf3* | osf4* | osf5*)
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203 shlibpath_var=LD_LIBRARY_PATH
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=yes
11214 hardcode_into_libs=yes
11215 # ldd complains unless libraries are executable
11216 postinstall_cmds='chmod +x $lib'
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath=yes
11225 if test "$with_gnu_ld" = yes; then
11231 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 case $host_vendor in
11238 shlibpath_overrides_runpath=no
11240 export_dynamic_flag_spec='${wl}-Blargedynsym'
11241 runpath_var=LD_RUN_PATH
11249 shlibpath_overrides_runpath=no
11250 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11256 if test -d /usr/nec ;then
11258 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11259 soname_spec='$libname${shared_ext}.$major'
11260 shlibpath_var=LD_LIBRARY_PATH
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 shlibpath_var=LD_LIBRARY_PATH
11275 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11276 echo "${ECHO_T}$dynamic_linker" >&6
11277 test "$dynamic_linker" = no && can_build_shared=no
11279 if test "x$enable_dlopen" != xyes; then
11280 enable_dlopen=unknown
11281 enable_dlopen_self=unknown
11282 enable_dlopen_self_static=unknown
11289 lt_cv_dlopen="load_add_on"
11291 lt_cv_dlopen_self=yes
11295 lt_cv_dlopen="LoadLibrary"
11300 lt_cv_dlopen="dlopen"
11305 # if libdl is installed we need to link against it
11306 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11307 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11308 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 ac_check_lib_save_LIBS=$LIBS
11313 cat >conftest.$ac_ext <<_ACEOF
11314 #line $LINENO "configure"
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11321 /* Override any gcc2 internal prototype to avoid an error. */
11325 /* We use char because int might match the return type of a gcc2
11326 builtin and then its argument prototype would still apply. */
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338 (eval $ac_link) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -s conftest$ac_exeext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 ac_cv_lib_dl_dlopen=yes
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 ac_cv_lib_dl_dlopen=no
11355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11356 LIBS=$ac_check_lib_save_LIBS
11358 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11359 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11360 if test $ac_cv_lib_dl_dlopen = yes; then
11361 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11364 lt_cv_dlopen="dyld"
11366 lt_cv_dlopen_self=yes
11373 echo "$as_me:$LINENO: checking for shl_load" >&5
11374 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11375 if test "${ac_cv_func_shl_load+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 cat >conftest.$ac_ext <<_ACEOF
11379 #line $LINENO "configure"
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char shl_load (); below.
11387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11388 <limits.h> exists even on freestanding compilers. */
11390 # include <limits.h>
11392 # include <assert.h>
11394 /* Override any gcc2 internal prototype to avoid an error. */
11399 /* We use char because int might match the return type of a gcc2
11400 builtin and then its argument prototype would still apply. */
11402 /* The GNU C library defines this for functions which it implements
11403 to always fail with ENOSYS. Some functions are actually named
11404 something starting with __ and the normal name is an alias. */
11405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11408 char (*f) () = shl_load;
11417 return f != shl_load;
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424 (eval $ac_link) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -s conftest$ac_exeext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 ac_cv_func_shl_load=yes
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_cv_func_shl_load=no
11441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11443 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11444 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11445 if test $ac_cv_func_shl_load = yes; then
11446 lt_cv_dlopen="shl_load"
11448 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11449 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11450 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 ac_check_lib_save_LIBS=$LIBS
11455 cat >conftest.$ac_ext <<_ACEOF
11456 #line $LINENO "configure"
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11463 /* Override any gcc2 internal prototype to avoid an error. */
11467 /* We use char because int might match the return type of a gcc2
11468 builtin and then its argument prototype would still apply. */
11478 rm -f conftest.$ac_objext conftest$ac_exeext
11479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480 (eval $ac_link) 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -s conftest$ac_exeext'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_cv_lib_dld_shl_load=yes
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 ac_cv_lib_dld_shl_load=no
11497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11498 LIBS=$ac_check_lib_save_LIBS
11500 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11501 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11502 if test $ac_cv_lib_dld_shl_load = yes; then
11503 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11505 echo "$as_me:$LINENO: checking for dlopen" >&5
11506 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11507 if test "${ac_cv_func_dlopen+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 cat >conftest.$ac_ext <<_ACEOF
11511 #line $LINENO "configure"
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 /* System header to define __stub macros and hopefully few prototypes,
11518 which can conflict with char dlopen (); below.
11519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520 <limits.h> exists even on freestanding compilers. */
11522 # include <limits.h>
11524 # include <assert.h>
11526 /* Override any gcc2 internal prototype to avoid an error. */
11531 /* We use char because int might match the return type of a gcc2
11532 builtin and then its argument prototype would still apply. */
11534 /* The GNU C library defines this for functions which it implements
11535 to always fail with ENOSYS. Some functions are actually named
11536 something starting with __ and the normal name is an alias. */
11537 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11540 char (*f) () = dlopen;
11549 return f != dlopen;
11554 rm -f conftest.$ac_objext conftest$ac_exeext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556 (eval $ac_link) 2>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -s conftest$ac_exeext'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_cv_func_dlopen=yes
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 ac_cv_func_dlopen=no
11573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11575 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11576 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11577 if test $ac_cv_func_dlopen = yes; then
11578 lt_cv_dlopen="dlopen"
11580 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11581 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 ac_check_lib_save_LIBS=$LIBS
11587 cat >conftest.$ac_ext <<_ACEOF
11588 #line $LINENO "configure"
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11595 /* Override any gcc2 internal prototype to avoid an error. */
11599 /* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612 (eval $ac_link) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_lib_dl_dlopen=yes
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ac_cv_lib_dl_dlopen=no
11629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11632 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11633 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11634 if test $ac_cv_lib_dl_dlopen = yes; then
11635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11637 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11638 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11639 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 ac_check_lib_save_LIBS=$LIBS
11643 LIBS="-lsvld $LIBS"
11644 cat >conftest.$ac_ext <<_ACEOF
11645 #line $LINENO "configure"
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11652 /* Override any gcc2 internal prototype to avoid an error. */
11656 /* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11667 rm -f conftest.$ac_objext conftest$ac_exeext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -s conftest$ac_exeext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 ac_cv_lib_svld_dlopen=yes
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 ac_cv_lib_svld_dlopen=no
11686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11687 LIBS=$ac_check_lib_save_LIBS
11689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11691 if test $ac_cv_lib_svld_dlopen = yes; then
11692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11694 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 ac_check_lib_save_LIBS=$LIBS
11701 cat >conftest.$ac_ext <<_ACEOF
11702 #line $LINENO "configure"
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11709 /* Override any gcc2 internal prototype to avoid an error. */
11713 /* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -s conftest$ac_exeext'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736 ac_cv_lib_dld_dld_link=yes
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11741 ac_cv_lib_dld_dld_link=no
11743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11746 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11747 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11748 if test $ac_cv_lib_dld_dld_link = yes; then
11749 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11770 if test "x$lt_cv_dlopen" != xno; then
11776 case $lt_cv_dlopen in
11778 save_CPPFLAGS="$CPPFLAGS"
11779 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11781 save_LDFLAGS="$LDFLAGS"
11782 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11785 LIBS="$lt_cv_dlopen_libs $LIBS"
11787 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11788 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11789 if test "${lt_cv_dlopen_self+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 if test "$cross_compiling" = yes; then :
11793 lt_cv_dlopen_self=cross
11795 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11796 lt_status=$lt_dlunknown
11797 cat > conftest.$ac_ext <<EOF
11798 #line 11798 "configure"
11799 #include "confdefs.h"
11808 # define LT_DLGLOBAL RTLD_GLOBAL
11811 # define LT_DLGLOBAL DL_GLOBAL
11813 # define LT_DLGLOBAL 0
11817 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11818 find out it does not work in some platform. */
11819 #ifndef LT_DLLAZY_OR_NOW
11821 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11824 # define LT_DLLAZY_OR_NOW DL_LAZY
11827 # define LT_DLLAZY_OR_NOW RTLD_NOW
11830 # define LT_DLLAZY_OR_NOW DL_NOW
11832 # define LT_DLLAZY_OR_NOW 0
11840 extern "C" void exit (int);
11843 void fnord() { int i=42;}
11846 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11847 int status = $lt_dlunknown;
11851 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11852 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11853 /* dlclose (self); */
11859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860 (eval $ac_link) 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11864 (./conftest; exit; ) 2>/dev/null
11866 case x$lt_status in
11867 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11868 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11869 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11872 # compilation failed
11873 lt_cv_dlopen_self=no
11880 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11881 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11883 if test "x$lt_cv_dlopen_self" = xyes; then
11884 LDFLAGS="$LDFLAGS $link_static_flag"
11885 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11886 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11887 if test "${lt_cv_dlopen_self_static+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 if test "$cross_compiling" = yes; then :
11891 lt_cv_dlopen_self_static=cross
11893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11894 lt_status=$lt_dlunknown
11895 cat > conftest.$ac_ext <<EOF
11896 #line 11896 "configure"
11897 #include "confdefs.h"
11906 # define LT_DLGLOBAL RTLD_GLOBAL
11909 # define LT_DLGLOBAL DL_GLOBAL
11911 # define LT_DLGLOBAL 0
11915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11916 find out it does not work in some platform. */
11917 #ifndef LT_DLLAZY_OR_NOW
11919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11922 # define LT_DLLAZY_OR_NOW DL_LAZY
11925 # define LT_DLLAZY_OR_NOW RTLD_NOW
11928 # define LT_DLLAZY_OR_NOW DL_NOW
11930 # define LT_DLLAZY_OR_NOW 0
11938 extern "C" void exit (int);
11941 void fnord() { int i=42;}
11944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11945 int status = $lt_dlunknown;
11949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11950 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11951 /* dlclose (self); */
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958 (eval $ac_link) 2>&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11962 (./conftest; exit; ) 2>/dev/null
11964 case x$lt_status in
11965 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11966 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11967 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11970 # compilation failed
11971 lt_cv_dlopen_self_static=no
11978 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11979 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11982 CPPFLAGS="$save_CPPFLAGS"
11983 LDFLAGS="$save_LDFLAGS"
11988 case $lt_cv_dlopen_self in
11989 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11990 *) enable_dlopen_self=unknown ;;
11993 case $lt_cv_dlopen_self_static in
11994 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11995 *) enable_dlopen_self_static=unknown ;;
12000 # The else clause should only fire when bootstrapping the
12001 # libtool distribution, otherwise you forgot to ship ltmain.sh
12002 # with your package, and you will get complaints that there are
12003 # no rules to generate ltmain.sh.
12004 if test -f "$ltmain"; then
12005 # See if we are running on zsh, and set the options which allow our commands through
12006 # without removal of \ escapes.
12007 if test -n "${ZSH_VERSION+set}" ; then
12008 setopt NO_GLOB_SUBST
12010 # Now quote all the things that may contain metacharacters while being
12011 # careful not to overquote the AC_SUBSTed values. We take copies of the
12012 # variables and quote the copies for generation of the libtool script.
12013 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12014 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12015 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12016 deplibs_check_method reload_flag reload_cmds need_locks \
12017 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12018 lt_cv_sys_global_symbol_to_c_name_address \
12019 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12020 old_postinstall_cmds old_postuninstall_cmds \
12024 lt_prog_compiler_wl_CXX \
12025 lt_prog_compiler_pic_CXX \
12026 lt_prog_compiler_static_CXX \
12027 lt_prog_compiler_no_builtin_flag_CXX \
12028 export_dynamic_flag_spec_CXX \
12029 thread_safe_flag_spec_CXX \
12030 whole_archive_flag_spec_CXX \
12031 enable_shared_with_static_runtimes_CXX \
12032 old_archive_cmds_CXX \
12033 old_archive_from_new_cmds_CXX \
12034 predep_objects_CXX \
12035 postdep_objects_CXX \
12038 compiler_lib_search_path_CXX \
12040 archive_expsym_cmds_CXX \
12041 postinstall_cmds_CXX \
12042 postuninstall_cmds_CXX \
12043 old_archive_from_expsyms_cmds_CXX \
12044 allow_undefined_flag_CXX \
12045 no_undefined_flag_CXX \
12046 export_symbols_cmds_CXX \
12047 hardcode_libdir_flag_spec_CXX \
12048 hardcode_libdir_flag_spec_ld_CXX \
12049 hardcode_libdir_separator_CXX \
12050 hardcode_automatic_CXX \
12052 module_expsym_cmds_CXX \
12053 lt_cv_prog_compiler_c_o_CXX \
12054 exclude_expsyms_CXX \
12055 include_expsyms_CXX; do
12058 old_archive_cmds_CXX | \
12059 old_archive_from_new_cmds_CXX | \
12060 archive_cmds_CXX | \
12061 archive_expsym_cmds_CXX | \
12062 module_cmds_CXX | \
12063 module_expsym_cmds_CXX | \
12064 old_archive_from_expsyms_cmds_CXX | \
12065 export_symbols_cmds_CXX | \
12066 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12067 postinstall_cmds | postuninstall_cmds | \
12068 old_postinstall_cmds | old_postuninstall_cmds | \
12069 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12070 # Double-quote double-evaled strings.
12071 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12080 *'\$0 --fallback-echo"')
12081 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12087 cat <<__EOF__ >> "$cfgfile"
12088 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12092 # Shell to use when invoking shell scripts.
12095 # Whether or not to build shared libraries.
12096 build_libtool_libs=$enable_shared
12098 # Whether or not to build static libraries.
12099 build_old_libs=$enable_static
12101 # Whether or not to add -lc for building shared libraries.
12102 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12104 # Whether or not to disallow shared libs when runtime libs are static
12105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12107 # Whether or not to optimize for fast installation.
12108 fast_install=$enable_fast_install
12111 host_alias=$host_alias
12114 # An echo program that does not interpret backslashes.
12119 AR_FLAGS=$lt_AR_FLAGS
12124 # A language-specific compiler.
12125 CC=$lt_compiler_CXX
12127 # Is the compiler the GNU C compiler?
12133 # The linker used to build libraries.
12136 # Whether we need hard or soft links.
12139 # A BSD-compatible nm program.
12142 # A symbol stripping program
12145 # Used to examine libraries when file_magic_cmd begins "file"
12146 MAGIC_CMD=$MAGIC_CMD
12148 # Used on cygwin: DLL creation program.
12151 # Used on cygwin: object dumper.
12154 # Used on cygwin: assembler.
12157 # The name of the directory that contains temporary libtool files.
12160 # How to create reloadable object files.
12161 reload_flag=$lt_reload_flag
12162 reload_cmds=$lt_reload_cmds
12164 # How to pass a linker flag through the compiler.
12165 wl=$lt_lt_prog_compiler_wl_CXX
12167 # Object file suffix (normally "o").
12168 objext="$ac_objext"
12170 # Old archive suffix (normally "a").
12173 # Shared library suffix (normally ".so").
12176 # Executable file suffix (normally "").
12179 # Additional compiler flags for building library objects.
12180 pic_flag=$lt_lt_prog_compiler_pic_CXX
12183 # What is the maximum length of a command?
12184 max_cmd_len=$lt_cv_sys_max_cmd_len
12186 # Does compiler simultaneously support -c and -o options?
12187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12189 # Must we lock files when doing compilation ?
12190 need_locks=$lt_need_locks
12192 # Do we need the lib prefix for modules?
12193 need_lib_prefix=$need_lib_prefix
12195 # Do we need a version for libraries?
12196 need_version=$need_version
12198 # Whether dlopen is supported.
12199 dlopen_support=$enable_dlopen
12201 # Whether dlopen of programs is supported.
12202 dlopen_self=$enable_dlopen_self
12204 # Whether dlopen of statically linked programs is supported.
12205 dlopen_self_static=$enable_dlopen_self_static
12207 # Compiler flag to prevent dynamic linking.
12208 link_static_flag=$lt_lt_prog_compiler_static_CXX
12210 # Compiler flag to turn off builtin functions.
12211 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12213 # Compiler flag to allow reflexive dlopens.
12214 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12216 # Compiler flag to generate shared objects directly from archives.
12217 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12219 # Compiler flag to generate thread-safe objects.
12220 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12222 # Library versioning type.
12223 version_type=$version_type
12225 # Format of library name prefix.
12226 libname_spec=$lt_libname_spec
12228 # List of archive names. First name is the real one, the rest are links.
12229 # The last name is the one that the linker finds with -lNAME.
12230 library_names_spec=$lt_library_names_spec
12232 # The coded name of the library, if different from the real name.
12233 soname_spec=$lt_soname_spec
12235 # Commands used to build and install an old-style archive.
12237 old_archive_cmds=$lt_old_archive_cmds_CXX
12238 old_postinstall_cmds=$lt_old_postinstall_cmds
12239 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12241 # Create an old-style archive from a shared archive.
12242 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12244 # Create a temporary old-style archive to link instead of a shared archive.
12245 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12247 # Commands used to build and install a shared archive.
12248 archive_cmds=$lt_archive_cmds_CXX
12249 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12250 postinstall_cmds=$lt_postinstall_cmds
12251 postuninstall_cmds=$lt_postuninstall_cmds
12253 # Commands used to build a loadable module (assumed same as above if empty)
12254 module_cmds=$lt_module_cmds_CXX
12255 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12257 # Commands to strip libraries.
12258 old_striplib=$lt_old_striplib
12259 striplib=$lt_striplib
12261 # Dependencies to place before the objects being linked to create a
12263 predep_objects=$lt_predep_objects_CXX
12265 # Dependencies to place after the objects being linked to create a
12267 postdep_objects=$lt_postdep_objects_CXX
12269 # Dependencies to place before the objects being linked to create a
12271 predeps=$lt_predeps_CXX
12273 # Dependencies to place after the objects being linked to create a
12275 postdeps=$lt_postdeps_CXX
12277 # The library search path used internally by the compiler when linking
12278 # a shared library.
12279 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12281 # Method to check whether dependent libraries are shared objects.
12282 deplibs_check_method=$lt_deplibs_check_method
12284 # Command to use when deplibs_check_method == file_magic.
12285 file_magic_cmd=$lt_file_magic_cmd
12287 # Flag that allows shared libraries with undefined symbols to be built.
12288 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12290 # Flag that forces no undefined symbols.
12291 no_undefined_flag=$lt_no_undefined_flag_CXX
12293 # Commands used to finish a libtool library installation in a directory.
12294 finish_cmds=$lt_finish_cmds
12296 # Same as above, but a single script fragment to be evaled but not shown.
12297 finish_eval=$lt_finish_eval
12299 # Take the output of nm and produce a listing of raw symbols and C names.
12300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12302 # Transform the output of nm in a proper C declaration
12303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12305 # Transform the output of nm in a C name address pair
12306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12308 # This is the shared library runtime path variable.
12309 runpath_var=$runpath_var
12311 # This is the shared library path variable.
12312 shlibpath_var=$shlibpath_var
12314 # Is shlibpath searched before the hard-coded library search path?
12315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12317 # How to hardcode a shared library path into an executable.
12318 hardcode_action=$hardcode_action_CXX
12320 # Whether we should hardcode library paths into libraries.
12321 hardcode_into_libs=$hardcode_into_libs
12323 # Flag to hardcode \$libdir into a binary during linking.
12324 # This must work even if \$libdir does not exist.
12325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12327 # If ld is used when linking, flag to hardcode \$libdir into
12328 # a binary during linking. This must work even if \$libdir does
12330 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12332 # Whether we need a single -rpath flag with a separated argument.
12333 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12335 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12336 # resulting binary.
12337 hardcode_direct=$hardcode_direct_CXX
12339 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12340 # resulting binary.
12341 hardcode_minus_L=$hardcode_minus_L_CXX
12343 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12344 # the resulting binary.
12345 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12347 # Set to yes if building a shared library automatically hardcodes DIR into the library
12348 # and all subsequent libraries and executables linked against it.
12349 hardcode_automatic=$hardcode_automatic_CXX
12351 # Variables whose values should be saved in libtool wrapper scripts and
12352 # restored at relink time.
12353 variables_saved_for_relink="$variables_saved_for_relink"
12355 # Whether libtool must link a program against all its dependency libraries.
12356 link_all_deplibs=$link_all_deplibs_CXX
12358 # Compile-time system search path for libraries
12359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12361 # Run-time system search path for libraries
12362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12364 # Fix the shell variable \$srcfile for the compiler.
12365 fix_srcfile_path="$fix_srcfile_path_CXX"
12367 # Set to yes if exported symbols are required.
12368 always_export_symbols=$always_export_symbols_CXX
12370 # The commands to list exported symbols.
12371 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12373 # The commands to extract the exported symbol list from a shared archive.
12374 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12376 # Symbols that should not be listed in the preloaded symbols.
12377 exclude_expsyms=$lt_exclude_expsyms_CXX
12379 # Symbols that must always be exported.
12380 include_expsyms=$lt_include_expsyms_CXX
12382 # ### END LIBTOOL TAG CONFIG: $tagname
12388 # If there is no Makefile yet, we rely on a make rule to execute
12389 # `config.status --recheck' to rerun these tests and create the
12390 # libtool script then.
12391 test -f Makefile && make "$ltmain"
12396 ac_cpp='$CPP $CPPFLAGS'
12397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12405 with_gnu_ldcxx=$with_gnu_ld
12406 with_gnu_ld=$lt_save_with_gnu_ld
12407 lt_cv_path_LDCXX=$lt_cv_path_LD
12408 lt_cv_path_LD=$lt_save_path_LD
12409 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12410 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12418 if test -n "$F77" && test "X$F77" != "Xno"; then
12421 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12422 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12423 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12426 archive_cmds_need_lc_F77=no
12427 allow_undefined_flag_F77=
12428 always_export_symbols_F77=no
12429 archive_expsym_cmds_F77=
12430 export_dynamic_flag_spec_F77=
12431 hardcode_direct_F77=no
12432 hardcode_libdir_flag_spec_F77=
12433 hardcode_libdir_flag_spec_ld_F77=
12434 hardcode_libdir_separator_F77=
12435 hardcode_minus_L_F77=no
12436 hardcode_automatic_F77=no
12438 module_expsym_cmds_F77=
12439 link_all_deplibs_F77=unknown
12440 old_archive_cmds_F77=$old_archive_cmds
12441 no_undefined_flag_F77=
12442 whole_archive_flag_spec_F77=
12443 enable_shared_with_static_runtimes_F77=no
12445 # Source file extension for f77 test sources.
12448 # Object file extension for compiled f77 test sources.
12452 # Code to be used in simple compile tests
12453 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12455 # Code to be used in simple link tests
12456 lt_simple_link_test_code=" program t\n end\n"
12458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12460 # If no C compiler was specified, use CC.
12463 # Allow CC to be a program name with arguments.
12467 # Allow CC to be a program name with arguments.
12472 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12474 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12475 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12476 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12477 echo "${ECHO_T}$can_build_shared" >&6
12479 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12480 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12481 test "$can_build_shared" = "no" && enable_shared=no
12483 # On AIX, shared libraries and static libraries use the same namespace, and
12484 # are all built from PIC.
12487 test "$enable_shared" = yes && enable_static=no
12488 if test -n "$RANLIB"; then
12489 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12490 postinstall_cmds='$RANLIB $lib'
12494 test "$enable_shared" = yes && enable_static=no
12497 echo "$as_me:$LINENO: result: $enable_shared" >&5
12498 echo "${ECHO_T}$enable_shared" >&6
12500 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12501 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12502 # Make sure either enable_shared or enable_static is yes.
12503 test "$enable_shared" = yes || enable_static=yes
12504 echo "$as_me:$LINENO: result: $enable_static" >&5
12505 echo "${ECHO_T}$enable_static" >&6
12507 test "$ld_shlibs_F77" = no && can_build_shared=no
12512 lt_prog_compiler_wl_F77=
12513 lt_prog_compiler_pic_F77=
12514 lt_prog_compiler_static_F77=
12516 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12517 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12519 if test "$GCC" = yes; then
12520 lt_prog_compiler_wl_F77='-Wl,'
12521 lt_prog_compiler_static_F77='-static'
12525 # All AIX code is PIC.
12526 if test "$host_cpu" = ia64; then
12527 # AIX 5 now supports IA64 processor
12528 lt_prog_compiler_static_F77='-Bstatic'
12533 # FIXME: we need at least 68020 code to build shared libraries, but
12534 # adding the `-m68020' flag to GCC prevents building anything better,
12536 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12539 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12540 # PIC is the default for these OSes.
12543 mingw* | pw32* | os2*)
12544 # This hack is so that the source file can tell whether it is being
12545 # built for inclusion in a dll (and should export symbols for example).
12546 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12549 darwin* | rhapsody*)
12550 # PIC is the default on this platform
12551 # Common symbols not allowed in MH_DYLIB files
12552 lt_prog_compiler_pic_F77='-fno-common'
12556 # Just because we use GCC doesn't mean we suddenly get shared libraries
12557 # on systems that don't support them.
12558 lt_prog_compiler_can_build_shared_F77=no
12563 if test -d /usr/nec; then
12564 lt_prog_compiler_pic_F77=-Kconform_pic
12569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12570 # not for PA HP-UX.
12571 case "$host_cpu" in
12576 lt_prog_compiler_pic_F77='-fPIC'
12582 lt_prog_compiler_pic_F77='-fPIC'
12586 # PORTME Check for flag to pass linker flags through the system compiler.
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 if test "$host_cpu" = ia64; then
12591 # AIX 5 now supports IA64 processor
12592 lt_prog_compiler_static_F77='-Bstatic'
12594 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12598 mingw* | pw32* | os2*)
12599 # This hack is so that the source file can tell whether it is being
12600 # built for inclusion in a dll (and should export symbols for example).
12601 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12604 hpux9* | hpux10* | hpux11*)
12605 lt_prog_compiler_wl_F77='-Wl,'
12606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12607 # not for PA HP-UX.
12608 case "$host_cpu" in
12613 lt_prog_compiler_pic_F77='+Z'
12616 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12617 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12620 irix5* | irix6* | nonstopux*)
12621 lt_prog_compiler_wl_F77='-Wl,'
12622 # PIC (with -KPIC) is the default.
12623 lt_prog_compiler_static_F77='-non_shared'
12627 lt_prog_compiler_pic_F77='-KPIC'
12628 lt_prog_compiler_static_F77='-Bstatic'
12634 lt_prog_compiler_wl_F77='-Wl,'
12635 lt_prog_compiler_pic_F77='-KPIC'
12636 lt_prog_compiler_static_F77='-static'
12639 lt_prog_compiler_wl_F77='-Wl,'
12640 # All Alpha code is PIC.
12641 lt_prog_compiler_static_F77='-non_shared'
12646 osf3* | osf4* | osf5*)
12647 lt_prog_compiler_wl_F77='-Wl,'
12648 # All OSF/1 code is PIC.
12649 lt_prog_compiler_static_F77='-non_shared'
12653 lt_prog_compiler_pic_F77='-Kpic'
12654 lt_prog_compiler_static_F77='-dn'
12658 lt_prog_compiler_wl_F77='-Wl,'
12659 lt_prog_compiler_pic_F77='-KPIC'
12660 lt_prog_compiler_static_F77='-Bstatic'
12664 lt_prog_compiler_wl_F77='-Qoption ld '
12665 lt_prog_compiler_pic_F77='-PIC'
12666 lt_prog_compiler_static_F77='-Bstatic'
12669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12670 lt_prog_compiler_wl_F77='-Wl,'
12671 lt_prog_compiler_pic_F77='-KPIC'
12672 lt_prog_compiler_static_F77='-Bstatic'
12676 if test -d /usr/nec ;then
12677 lt_prog_compiler_pic_F77='-Kconform_pic'
12678 lt_prog_compiler_static_F77='-Bstatic'
12683 lt_prog_compiler_pic_F77='-pic'
12684 lt_prog_compiler_static_F77='-Bstatic'
12688 lt_prog_compiler_can_build_shared_F77=no
12693 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12694 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12697 # Check to make sure the PIC flag actually works.
12699 if test -n "$lt_prog_compiler_pic_F77"; then
12700 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12701 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12702 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12705 lt_prog_compiler_pic_works_F77=no
12706 ac_outfile=conftest.$ac_objext
12707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12708 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12709 # Insert the option either (1) after the last *FLAGS variable, or
12710 # (2) before a word containing "conftest.", or (3) at the end.
12711 # Note that $ac_compile itself does not contain backslashes and begins
12712 # with a dollar sign (not a hyphen), so the echo should work correctly.
12713 # The option is referenced via a variable to avoid confusing sed.
12714 lt_compile=`echo "$ac_compile" | $SED \
12715 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12717 -e 's:$: $lt_compiler_flag:'`
12718 (eval echo "\"\$as_me:12718: $lt_compile\"" >&5)
12719 (eval "$lt_compile" 2>conftest.err)
12721 cat conftest.err >&5
12722 echo "$as_me:12722: \$? = $ac_status" >&5
12723 if (exit $ac_status) && test -s "$ac_outfile"; then
12724 # The compiler can only warn and ignore the option if not recognized
12725 # So say no if there are warnings
12726 if test ! -s conftest.err; then
12727 lt_prog_compiler_pic_works_F77=yes
12733 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12734 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12736 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12737 case $lt_prog_compiler_pic_F77 in
12739 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12742 lt_prog_compiler_pic_F77=
12743 lt_prog_compiler_can_build_shared_F77=no
12748 # For platforms which do not support PIC, -DPIC is meaningless:
12750 lt_prog_compiler_pic_F77=
12753 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12757 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12758 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12759 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12762 lt_cv_prog_compiler_c_o_F77=no
12763 $rm -r conftest 2>/dev/null
12767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12769 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12770 # that will create temporary files in the current directory regardless of
12771 # the output directory. Thus, making CWD read-only will cause this test
12772 # to fail, enabling locking or at least warning the user not to do parallel
12776 lt_compiler_flag="-o out/conftest2.$ac_objext"
12777 # Insert the option either (1) after the last *FLAGS variable, or
12778 # (2) before a word containing "conftest.", or (3) at the end.
12779 # Note that $ac_compile itself does not contain backslashes and begins
12780 # with a dollar sign (not a hyphen), so the echo should work correctly.
12781 lt_compile=`echo "$ac_compile" | $SED \
12782 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12784 -e 's:$: $lt_compiler_flag:'`
12785 (eval echo "\"\$as_me:12785: $lt_compile\"" >&5)
12786 (eval "$lt_compile" 2>out/conftest.err)
12788 cat out/conftest.err >&5
12789 echo "$as_me:12789: \$? = $ac_status" >&5
12790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12792 # The compiler can only warn and ignore the option if not recognized
12793 # So say no if there are warnings
12794 if test ! -s out/conftest.err; then
12795 lt_cv_prog_compiler_c_o_F77=yes
12799 $rm conftest* out/*
12806 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12807 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12810 hard_links="nottested"
12811 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12812 # do not overwrite the value of need_locks provided by the user
12813 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12814 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12819 ln conftest.a conftest.b 2>&5 || hard_links=no
12820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12821 echo "$as_me:$LINENO: result: $hard_links" >&5
12822 echo "${ECHO_T}$hard_links" >&6
12823 if test "$hard_links" = no; then
12824 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12825 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12832 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12833 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12836 allow_undefined_flag_F77=
12837 enable_shared_with_static_runtimes_F77=no
12839 archive_expsym_cmds_F77=
12840 old_archive_From_new_cmds_F77=
12841 old_archive_from_expsyms_cmds_F77=
12842 export_dynamic_flag_spec_F77=
12843 whole_archive_flag_spec_F77=
12844 thread_safe_flag_spec_F77=
12845 hardcode_libdir_flag_spec_F77=
12846 hardcode_libdir_flag_spec_ld_F77=
12847 hardcode_libdir_separator_F77=
12848 hardcode_direct_F77=no
12849 hardcode_minus_L_F77=no
12850 hardcode_shlibpath_var_F77=unsupported
12851 link_all_deplibs_F77=unknown
12852 hardcode_automatic_F77=no
12854 module_expsym_cmds_F77=
12855 always_export_symbols_F77=no
12856 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12857 # include_expsyms should be a list of space-separated symbols to be *always*
12858 # included in the symbol list
12859 include_expsyms_F77=
12860 # exclude_expsyms can be an extended regexp of symbols to exclude
12861 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12862 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12863 # as well as any symbol that contains `d'.
12864 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12866 # platforms (ab)use it in PIC code, but their linkers get confused if
12867 # the symbol is explicitly referenced. Since portable code cannot
12868 # rely on this symbol name, it's probably fine to never include it in
12869 # preloaded symbol tables.
12870 extract_expsyms_cmds=
12873 cygwin* | mingw* | pw32*)
12874 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12875 # When not using gcc, we currently assume that we are using
12876 # Microsoft Visual C++.
12877 if test "$GCC" != yes; then
12887 if test "$with_gnu_ld" = yes; then
12888 # If archive_cmds runs LD, not CC, wlarc should be empty
12891 # See if GNU ld supports shared libraries.
12893 aix3* | aix4* | aix5*)
12894 # On AIX/PPC, the GNU linker is very broken
12895 if test "$host_cpu" != ia64; then
12899 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12900 *** to be unable to reliably create shared libraries on AIX.
12901 *** Therefore, libtool is disabling shared libraries support. If you
12902 *** really care for shared libraries, you may want to modify your PATH
12903 *** so that a non-GNU linker is found, and then restart.
12910 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)'
12911 hardcode_libdir_flag_spec_F77='-L$libdir'
12912 hardcode_minus_L_F77=yes
12914 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12915 # that the semantics of dynamic libraries on AmigaOS, at least up
12916 # to version 4, is to share data among multiple programs linked
12917 # with the same dynamic library. Since this doesn't match the
12918 # behavior of shared libraries on other platforms, we can't use
12924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12925 allow_undefined_flag_F77=unsupported
12926 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12927 # support --undefined. This deserves some investigation. FIXME
12928 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934 cygwin* | mingw* | pw32*)
12935 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12936 # as there is no search path for DLLs.
12937 hardcode_libdir_flag_spec_F77='-L$libdir'
12938 allow_undefined_flag_F77=unsupported
12939 always_export_symbols_F77=no
12940 enable_shared_with_static_runtimes_F77=yes
12941 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12943 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12944 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12945 # If the export-symbols file already is a .def file (1st line
12946 # is EXPORTS), use it as is; otherwise, prepend...
12947 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12948 cp $export_symbols $output_objdir/$soname.def;
12950 echo EXPORTS > $output_objdir/$soname.def;
12951 cat $export_symbols >> $output_objdir/$soname.def;
12953 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12961 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12964 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12965 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12970 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12975 *** create shared libraries on Solaris systems. Therefore, libtool
12976 *** is disabling shared libraries support. We urge you to upgrade GNU
12977 *** binutils to release 2.9.1 or newer. Another option is to modify
12978 *** your PATH or compiler configuration so that the native linker is
12979 *** used, and then restart.
12982 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12983 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12991 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12993 hardcode_direct_F77=yes
12994 hardcode_shlibpath_var_F77=no
12998 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12999 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13000 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13007 if test "$ld_shlibs_F77" = yes; then
13008 runpath_var=LD_RUN_PATH
13009 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13010 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13011 # ancient GNU ld didn't support --whole-archive et. al.
13012 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13013 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13015 whole_archive_flag_spec_F77=
13019 # PORTME fill in a description of your system's linker (not GNU ld)
13022 allow_undefined_flag_F77=unsupported
13023 always_export_symbols_F77=yes
13024 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'
13025 # Note: this linker hardcodes the directories in LIBPATH if there
13026 # are no directories specified by -L.
13027 hardcode_minus_L_F77=yes
13028 if test "$GCC" = yes && test -z "$link_static_flag"; then
13029 # Neither direct hardcoding nor static linking is supported with a
13031 hardcode_direct_F77=unsupported
13036 if test "$host_cpu" = ia64; then
13037 # On IA64, the linker does run time linking by default, so we don't
13038 # have to do anything special.
13039 aix_use_runtimelinking=no
13040 exp_sym_flag='-Bexport'
13043 # If we're using GNU nm, then we don't want the "-C" option.
13044 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13045 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13046 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'
13048 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'
13050 aix_use_runtimelinking=no
13052 # Test if we are trying to use run time linking or normal
13053 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13054 # need to do runtime linking.
13055 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13056 for ld_flag in $LDFLAGS; do
13057 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13058 aix_use_runtimelinking=yes
13064 exp_sym_flag='-bexport'
13065 no_entry_flag='-bnoentry'
13068 # When large executables or shared objects are built, AIX ld can
13069 # have problems creating the table of contents. If linking a library
13070 # or program results in "error TOC overflow" add -mminimal-toc to
13071 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13072 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13074 archive_cmds_F77=''
13075 hardcode_direct_F77=yes
13076 hardcode_libdir_separator_F77=':'
13077 link_all_deplibs_F77=yes
13079 if test "$GCC" = yes; then
13080 case $host_os in aix4.012|aix4.012.*)
13081 # We only want to do this on AIX 4.2 and lower, the check
13082 # below for broken collect2 doesn't work under 4.3+
13083 collect2name=`${CC} -print-prog-name=collect2`
13084 if test -f "$collect2name" && \
13085 strings "$collect2name" | grep resolve_lib_name >/dev/null
13087 # We have reworked collect2
13088 hardcode_direct_F77=yes
13090 # We have old collect2
13091 hardcode_direct_F77=unsupported
13092 # It fails to find uninstalled libraries when the uninstalled
13093 # path is not listed in the libpath. Setting hardcode_minus_L
13094 # to unsupported forces relinking
13095 hardcode_minus_L_F77=yes
13096 hardcode_libdir_flag_spec_F77='-L$libdir'
13097 hardcode_libdir_separator_F77=
13100 shared_flag='-shared'
13103 if test "$host_cpu" = ia64; then
13104 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13105 # chokes on -Wl,-G. The following line is correct:
13108 if test "$aix_use_runtimelinking" = yes; then
13109 shared_flag='${wl}-G'
13111 shared_flag='${wl}-bM:SRE'
13116 # It seems that -bexpall does not export symbols beginning with
13117 # underscore (_), so it is better to generate a list of symbols to export.
13118 always_export_symbols_F77=yes
13119 if test "$aix_use_runtimelinking" = yes; then
13120 # Warning - without using the other runtime loading flags (-brtl),
13121 # -berok will link without error, but may produce a broken library.
13122 allow_undefined_flag_F77='-berok'
13123 # Determine the default libpath from the value encoded in an empty executable.
13124 cat >conftest.$ac_ext <<_ACEOF
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13131 (eval $ac_link) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -s conftest$ac_exeext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13142 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13144 # Check for a 64-bit object if we didn't find anything.
13145 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; }
13148 echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13155 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13156 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"
13158 if test "$host_cpu" = ia64; then
13159 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13160 allow_undefined_flag_F77="-z nodefs"
13161 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"
13163 # Determine the default libpath from the value encoded in an empty executable.
13164 cat >conftest.$ac_ext <<_ACEOF
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171 (eval $ac_link) 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } &&
13175 { ac_try='test -s conftest$ac_exeext'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
13182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13184 # Check for a 64-bit object if we didn't find anything.
13185 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; }
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13195 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13196 # Warning - without using the other run time loading flags,
13197 # -berok will link without error, but may produce a broken library.
13198 no_undefined_flag_F77=' ${wl}-bernotok'
13199 allow_undefined_flag_F77=' ${wl}-berok'
13200 # -bexpall does not export symbols beginning with underscore (_)
13201 always_export_symbols_F77=yes
13202 # Exported symbols can be pulled into shared objects from archives
13203 whole_archive_flag_spec_F77=' '
13204 archive_cmds_need_lc_F77=yes
13205 # This is similar to how AIX traditionally builds it's shared libraries.
13206 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'
13212 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)'
13213 hardcode_libdir_flag_spec_F77='-L$libdir'
13214 hardcode_minus_L_F77=yes
13215 # see comment about different semantics on the GNU ld section
13220 export_dynamic_flag_spec_F77=-rdynamic
13223 cygwin* | mingw* | pw32*)
13224 # When not using gcc, we currently assume that we are using
13225 # Microsoft Visual C++.
13226 # hardcode_libdir_flag_spec is actually meaningless, as there is
13227 # no search path for DLLs.
13228 hardcode_libdir_flag_spec_F77=' '
13229 allow_undefined_flag_F77=unsupported
13230 # Tell ltmain to make .lib files, not .a files.
13232 # Tell ltmain to make .dll files, not .so files.
13234 # FIXME: Setting linknames here is a bad hack.
13235 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13236 # The linker will automatically build a .lib file if we build a DLL.
13237 old_archive_From_new_cmds_F77='true'
13238 # FIXME: Should let the user specify the lib program.
13239 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13240 fix_srcfile_path='`cygpath -w "$srcfile"`'
13241 enable_shared_with_static_runtimes_F77=yes
13244 darwin* | rhapsody*)
13245 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13246 archive_cmds_need_lc_F77=no
13248 rhapsody* | darwin1.[012])
13249 allow_undefined_flag_F77='-undefined suppress'
13252 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13255 # FIXME: Relying on posixy $() will cause problems for
13256 # cross-compilation, but unfortunately the echo tests do not
13257 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13258 # `"' quotes if we put them in here... so don't!
13259 lt_int_apple_cc_single_mod=no
13260 output_verbose_link_cmd='echo'
13261 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13262 lt_int_apple_cc_single_mod=yes
13264 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13265 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13267 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'
13269 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13270 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13271 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13272 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}'
13274 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}'
13276 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}'
13277 hardcode_direct_F77=no
13278 hardcode_automatic_F77=yes
13279 hardcode_shlibpath_var_F77=unsupported
13280 whole_archive_flag_spec_F77='-all_load $convenience'
13281 link_all_deplibs_F77=yes
13286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287 hardcode_libdir_flag_spec_F77='-L$libdir'
13288 hardcode_shlibpath_var_F77=no
13295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13296 # support. Future versions do this automatically, but an explicit c++rt0.o
13297 # does not break anything, and helps significantly (at the cost of a little
13300 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13301 hardcode_libdir_flag_spec_F77='-R$libdir'
13302 hardcode_direct_F77=yes
13303 hardcode_shlibpath_var_F77=no
13306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13308 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13309 hardcode_direct_F77=yes
13310 hardcode_minus_L_F77=yes
13311 hardcode_shlibpath_var_F77=no
13314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13316 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13317 hardcode_libdir_flag_spec_F77='-R$libdir'
13318 hardcode_direct_F77=yes
13319 hardcode_shlibpath_var_F77=no
13323 if test "$GCC" = yes; then
13324 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'
13326 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'
13328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13329 hardcode_libdir_separator_F77=:
13330 hardcode_direct_F77=yes
13332 # hardcode_minus_L: Not really in the search PATH,
13333 # but as the default location of the library.
13334 hardcode_minus_L_F77=yes
13335 export_dynamic_flag_spec_F77='${wl}-E'
13339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13340 case "$host_cpu" in
13342 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13345 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13349 case "$host_cpu" in
13351 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13354 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13358 if test "$with_gnu_ld" = no; then
13359 case "$host_cpu" in
13361 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13362 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13363 hardcode_libdir_separator_F77=:
13364 hardcode_direct_F77=no
13365 hardcode_shlibpath_var_F77=no
13368 hardcode_libdir_flag_spec_F77='-L$libdir'
13369 hardcode_direct_F77=no
13370 hardcode_shlibpath_var_F77=no
13372 # hardcode_minus_L: Not really in the search PATH,
13373 # but as the default location of the library.
13374 hardcode_minus_L_F77=yes
13377 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13378 hardcode_libdir_separator_F77=:
13379 hardcode_direct_F77=yes
13380 export_dynamic_flag_spec_F77='${wl}-E'
13382 # hardcode_minus_L: Not really in the search PATH,
13383 # but as the default location of the library.
13384 hardcode_minus_L_F77=yes
13390 irix5* | irix6* | nonstopux*)
13391 if test "$GCC" = yes; then
13392 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'
13394 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'
13395 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13397 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13398 hardcode_libdir_separator_F77=:
13399 link_all_deplibs_F77=yes
13403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13404 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13406 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13408 hardcode_libdir_flag_spec_F77='-R$libdir'
13409 hardcode_direct_F77=yes
13410 hardcode_shlibpath_var_F77=no
13414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13415 hardcode_direct_F77=yes
13416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13417 hardcode_libdir_separator_F77=:
13418 hardcode_shlibpath_var_F77=no
13422 hardcode_direct_F77=yes
13423 hardcode_shlibpath_var_F77=no
13424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13425 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13426 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13427 export_dynamic_flag_spec_F77='${wl}-E'
13430 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13431 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13432 hardcode_libdir_flag_spec_F77='-R$libdir'
13435 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13436 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13443 hardcode_libdir_flag_spec_F77='-L$libdir'
13444 hardcode_minus_L_F77=yes
13445 allow_undefined_flag_F77=unsupported
13446 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'
13447 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13451 if test "$GCC" = yes; then
13452 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13453 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'
13455 allow_undefined_flag_F77=' -expect_unresolved \*'
13456 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'
13458 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13459 hardcode_libdir_separator_F77=:
13462 osf4* | osf5*) # as osf3* with the addition of -msym flag
13463 if test "$GCC" = yes; then
13464 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13465 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'
13466 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13468 allow_undefined_flag_F77=' -expect_unresolved \*'
13469 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'
13470 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~
13471 $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'
13473 # Both c and cxx compiler support -rpath directly
13474 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13476 hardcode_libdir_separator_F77=:
13480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481 hardcode_shlibpath_var_F77=no
13482 export_dynamic_flag_spec_F77='${wl}-Bexport'
13483 runpath_var=LD_RUN_PATH
13484 hardcode_runpath_var=yes
13488 no_undefined_flag_F77=' -z text'
13489 if test "$GCC" = yes; then
13490 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13492 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13494 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13498 hardcode_libdir_flag_spec_F77='-R$libdir'
13499 hardcode_shlibpath_var_F77=no
13501 solaris2.[0-5] | solaris2.[0-5].*) ;;
13502 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13503 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13505 link_all_deplibs_F77=yes
13509 if test "x$host_vendor" = xsequent; then
13510 # Use $CC to link under sequent, because it throws in some extra .o
13511 # files that make .init and .fini sections work.
13512 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13514 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_libdir_flag_spec_F77='-L$libdir'
13517 hardcode_direct_F77=yes
13518 hardcode_minus_L_F77=yes
13519 hardcode_shlibpath_var_F77=no
13523 case $host_vendor in
13525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526 hardcode_direct_F77=yes # is this really true???
13529 ## LD is ld it makes a PLAMLIB
13530 ## CC just makes a GrossModule.
13531 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13532 reload_cmds_F77='$CC -r -o $output$reload_objs'
13533 hardcode_direct_F77=no
13536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13540 runpath_var='LD_RUN_PATH'
13541 hardcode_shlibpath_var_F77=no
13545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13546 hardcode_shlibpath_var_F77=no
13547 export_dynamic_flag_spec_F77='-Bexport'
13551 if test -d /usr/nec; then
13552 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553 hardcode_shlibpath_var_F77=no
13554 runpath_var=LD_RUN_PATH
13555 hardcode_runpath_var=yes
13561 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13562 hardcode_direct_F77=yes
13563 hardcode_minus_L_F77=no
13564 hardcode_shlibpath_var_F77=no
13565 hardcode_runpath_var=yes
13566 runpath_var=LD_RUN_PATH
13569 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13570 no_undefined_flag_F77='${wl}-z ${wl}text'
13571 if test "$GCC" = yes; then
13572 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13574 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13576 runpath_var='LD_RUN_PATH'
13577 hardcode_shlibpath_var_F77=no
13581 no_undefined_flag_F77=' -z text'
13582 # $CC -shared without GNU ld will not create a library from C++
13583 # object files and a static libstdc++, better avoid it by now
13584 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13585 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13586 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13587 hardcode_libdir_flag_spec_F77=
13588 hardcode_shlibpath_var_F77=no
13589 runpath_var='LD_RUN_PATH'
13593 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13594 hardcode_libdir_flag_spec_F77='-L$libdir'
13595 hardcode_shlibpath_var_F77=no
13604 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13605 echo "${ECHO_T}$ld_shlibs_F77" >&6
13606 test "$ld_shlibs_F77" = no && can_build_shared=no
13608 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13609 if test "$GCC" = yes; then
13610 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13614 # Do we need to explicitly link libc?
13616 case "x$archive_cmds_need_lc_F77" in
13618 # Assume -lc should be added
13619 archive_cmds_need_lc_F77=yes
13621 if test "$enable_shared" = yes && test "$GCC" = yes; then
13622 case $archive_cmds_F77 in
13624 # FIXME: we may have to deal with multi-command sequences.
13627 # Test whether the compiler implicitly links with -lc since on some
13628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13629 # to ld, don't add -lc before -lgcc.
13630 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13636 (eval $ac_compile) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } 2>conftest.err; then
13642 libobjs=conftest.$ac_objext
13644 wl=$lt_prog_compiler_wl_F77
13650 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13651 allow_undefined_flag_F77=
13652 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13653 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }
13658 archive_cmds_need_lc_F77=no
13660 archive_cmds_need_lc_F77=yes
13662 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13664 cat conftest.err 1>&5
13667 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13668 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13675 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13676 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13677 hardcode_action_F77=
13678 if test -n "$hardcode_libdir_flag_spec_F77" || \
13679 test -n "$runpath_var F77" || \
13680 test "X$hardcode_automatic_F77"="Xyes" ; then
13682 # We can hardcode non-existant directories.
13683 if test "$hardcode_direct_F77" != no &&
13684 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13685 # have to relink, otherwise we might link with an installed library
13686 # when we should be linking with a yet-to-be-installed one
13687 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13688 test "$hardcode_minus_L_F77" != no; then
13689 # Linking always hardcodes the temporary library directory.
13690 hardcode_action_F77=relink
13692 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13693 hardcode_action_F77=immediate
13696 # We cannot hardcode anything, or else we can only hardcode existing
13698 hardcode_action_F77=unsupported
13700 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13701 echo "${ECHO_T}$hardcode_action_F77" >&6
13703 if test "$hardcode_action_F77" = relink; then
13704 # Fast installation is not supported
13705 enable_fast_install=no
13706 elif test "$shlibpath_overrides_runpath" = yes ||
13707 test "$enable_shared" = no; then
13708 # Fast installation is not necessary
13709 enable_fast_install=needless
13714 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13715 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13716 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13717 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13718 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13719 echo "$as_me:$LINENO: result: yes" >&5
13720 echo "${ECHO_T}yes" >&6
13722 # FIXME - insert some real tests, host_os isn't really good enough
13725 if test -n "$STRIP" ; then
13726 striplib="$STRIP -x"
13727 echo "$as_me:$LINENO: result: yes" >&5
13728 echo "${ECHO_T}yes" >&6
13730 echo "$as_me:$LINENO: result: no" >&5
13731 echo "${ECHO_T}no" >&6
13735 echo "$as_me:$LINENO: result: no" >&5
13736 echo "${ECHO_T}no" >&6
13741 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13742 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13743 library_names_spec=
13744 libname_spec='lib$name'
13748 postuninstall_cmds=
13752 shlibpath_overrides_runpath=unknown
13754 dynamic_linker="$host_os ld.so"
13755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13756 if test "$GCC" = yes; then
13757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13758 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13759 # if the path contains ";" then we assume it to be the separator
13760 # otherwise default to the standard path separator (i.e. ":") - it is
13761 # assumed that no part of a normal pathname contains ";" but that should
13762 # okay in the real world where ";" in dirpaths is itself problematic.
13763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13768 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13770 need_lib_prefix=unknown
13771 hardcode_into_libs=no
13773 # when you set need_version to no, make sure it does not cause -set_version
13774 # flags to be left without arguments
13775 need_version=unknown
13780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13781 shlibpath_var=LIBPATH
13783 # AIX 3 has no versioning support, so we append a major version to the name.
13784 soname_spec='${libname}${release}${shared_ext}$major'
13791 hardcode_into_libs=yes
13792 if test "$host_cpu" = ia64; then
13793 # AIX 5 supports IA64
13794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13795 shlibpath_var=LD_LIBRARY_PATH
13797 # With GCC up to 2.95.x, collect2 would create an import file
13798 # for dependence libraries. The import file would start with
13799 # the line `#! .'. This would cause the generated library to
13800 # depend on `.', always an invalid library. This was fixed in
13801 # development snapshots of GCC prior to 3.0.
13803 aix4 | aix4.[01] | aix4.[01].*)
13804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13806 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13809 can_build_shared=no
13813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13814 # soname into executable. Probably we can add versioning support to
13815 # collect2, so additional links can be useful in future.
13816 if test "$aix_use_runtimelinking" = yes; then
13817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13818 # instead of lib<name>.a to let people know that these are not
13819 # typical AIX shared libraries.
13820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13822 # We preserve .a as extension for shared libraries through AIX4.2
13823 # and later when we are not doing run time linking.
13824 library_names_spec='${libname}${release}.a $libname.a'
13825 soname_spec='${libname}${release}${shared_ext}$major'
13827 shlibpath_var=LIBPATH
13832 library_names_spec='$libname.ixlibrary $libname.a'
13833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13834 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'
13838 library_names_spec='${libname}${shared_ext}'
13839 dynamic_linker="$host_os ld.so"
13840 shlibpath_var=LIBRARY_PATH
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847 soname_spec='${libname}${release}${shared_ext}$major'
13848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13849 shlibpath_var=LD_LIBRARY_PATH
13850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13852 # the default ld.so.conf also contains /usr/contrib/lib and
13853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13854 # libtool to hard-code these into programs
13857 cygwin* | mingw* | pw32*)
13858 version_type=windows
13863 case $GCC,$host_os in
13864 yes,cygwin* | yes,mingw* | yes,pw32*)
13865 library_names_spec='$libname.dll.a'
13866 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13867 postinstall_cmds='base_file=`basename \${file}`~
13868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13869 dldir=$destdir/`dirname \$dlpath`~
13870 test -d \$dldir || mkdir -p \$dldir~
13871 $install_prog $dir/$dlname \$dldir/$dlname'
13872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13873 dlpath=$dir/\$dldll~
13875 shlibpath_overrides_runpath=yes
13879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13881 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13884 # MinGW DLLs use traditional 'lib' prefix
13885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13887 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13888 # It is most probably a Windows format PATH printed by
13889 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13890 # path with ; separators, and with drive letters. We can handle the
13891 # drive letters (cygwin fileutils understands them), so leave them,
13892 # especially as we might pass files found there to a mingw objdump,
13893 # which wouldn't understand a cygwinified path. Ahh.
13894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13900 # pw32 DLLs use 'pw' prefix rather than 'lib'
13901 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13907 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13910 dynamic_linker='Win32 ld.exe'
13911 # FIXME: first we should search . and the directory the executable is in
13915 darwin* | rhapsody*)
13916 dynamic_linker="$host_os dyld"
13917 version_type=darwin
13920 # FIXME: Relying on posixy $() will cause problems for
13921 # cross-compilation, but unfortunately the echo tests do not
13922 # yet detect zsh echo's removal of \ escapes.
13923 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13924 soname_spec='${libname}${release}${major}$shared_ext'
13925 shlibpath_overrides_runpath=yes
13926 shlibpath_var=DYLD_LIBRARY_PATH
13927 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13928 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13929 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13930 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"`
13932 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13940 soname_spec='${libname}${release}${shared_ext}$major'
13941 shlibpath_var=LD_LIBRARY_PATH
13949 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13950 version_type=freebsd-$objformat
13951 case $version_type in
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13962 shlibpath_var=LD_LIBRARY_PATH
13965 shlibpath_overrides_runpath=yes
13967 freebsd3.01* | freebsdelf3.01*)
13968 shlibpath_overrides_runpath=yes
13969 hardcode_into_libs=yes
13972 shlibpath_overrides_runpath=no
13973 hardcode_into_libs=yes
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 shlibpath_var=LD_LIBRARY_PATH
13985 hardcode_into_libs=yes
13988 hpux9* | hpux10* | hpux11*)
13989 # Give a soname corresponding to the major version so that dld.sl refuses to
13990 # link against other versions.
13994 case "$host_cpu" in
13997 hardcode_into_libs=yes
13998 dynamic_linker="$host_os dld.so"
13999 shlibpath_var=LD_LIBRARY_PATH
14000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14002 soname_spec='${libname}${release}${shared_ext}$major'
14003 if test "X$HPUX_IA64_MODE" = X32; then
14004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14012 hardcode_into_libs=yes
14013 dynamic_linker="$host_os dld.sl"
14014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14023 dynamic_linker="$host_os dld.sl"
14024 shlibpath_var=SHLIB_PATH
14025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027 soname_spec='${libname}${release}${shared_ext}$major'
14030 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14031 postinstall_cmds='chmod 555 $lib'
14034 irix5* | irix6* | nonstopux*)
14036 nonstopux*) version_type=nonstopux ;;
14038 if test "$lt_cv_prog_gnu_ld" = yes; then
14046 soname_spec='${libname}${release}${shared_ext}$major'
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14049 irix5* | nonstopux*)
14050 libsuff= shlibsuff=
14053 case $LD in # libtool.m4 will add one of these switches to LD
14054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14055 libsuff= shlibsuff= libmagic=32-bit;;
14056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14057 libsuff=32 shlibsuff=N32 libmagic=N32;;
14058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14060 *) libsuff= shlibsuff= libmagic=never-match;;
14064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14065 shlibpath_overrides_runpath=no
14066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14068 hardcode_into_libs=yes
14071 # No shared lib support for Linux oldld, aout, or coff.
14072 linux*oldld* | linux*aout* | linux*coff*)
14076 # This must be Linux ELF.
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14084 shlibpath_var=LD_LIBRARY_PATH
14085 shlibpath_overrides_runpath=no
14086 # This implies no fast_install, which is unacceptable.
14087 # Some rework will be needed to allow for fast_install
14088 # before this can be enabled.
14089 hardcode_into_libs=yes
14091 # We used to test for /lib/ld.so.1 and disable shared libraries on
14092 # powerpc, because MkLinux only supported shared libraries with the
14093 # GNU dynamic linker. Since this was broken with cross compilers,
14094 # most powerpc-linux boxes support dynamic linking these days and
14095 # people can always --disable-shared, the test was removed, and we
14096 # assume the GNU/Linux dynamic linker is in use.
14097 dynamic_linker='GNU/Linux ld.so'
14104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14107 dynamic_linker='NetBSD (a.out) ld.so'
14109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14110 soname_spec='${libname}${release}${shared_ext}$major'
14111 dynamic_linker='NetBSD ld.elf_so'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 shlibpath_overrides_runpath=yes
14115 hardcode_into_libs=yes
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 shlibpath_overrides_runpath=yes
14129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130 soname_spec='${libname}${release}${shared_ext}$major'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 shlibpath_overrides_runpath=yes
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14141 shlibpath_var=LD_LIBRARY_PATH
14142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14144 openbsd2.[89] | openbsd2.[89].*)
14145 shlibpath_overrides_runpath=no
14148 shlibpath_overrides_runpath=yes
14152 shlibpath_overrides_runpath=yes
14157 libname_spec='$name'
14160 library_names_spec='$libname${shared_ext} $libname.a'
14161 dynamic_linker='OS/2 ld.exe'
14162 shlibpath_var=LIBPATH
14165 osf3* | osf4* | osf5*)
14169 soname_spec='${libname}${release}${shared_ext}$major'
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14178 soname_spec='${libname}${release}${shared_ext}$major'
14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180 shlibpath_var=LD_LIBRARY_PATH
14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188 soname_spec='${libname}${release}${shared_ext}$major'
14189 shlibpath_var=LD_LIBRARY_PATH
14190 shlibpath_overrides_runpath=yes
14191 hardcode_into_libs=yes
14192 # ldd complains unless libraries are executable
14193 postinstall_cmds='chmod +x $lib'
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14200 shlibpath_var=LD_LIBRARY_PATH
14201 shlibpath_overrides_runpath=yes
14202 if test "$with_gnu_ld" = yes; then
14208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211 soname_spec='${libname}${release}${shared_ext}$major'
14212 shlibpath_var=LD_LIBRARY_PATH
14213 case $host_vendor in
14215 shlibpath_overrides_runpath=no
14217 export_dynamic_flag_spec='${wl}-Blargedynsym'
14218 runpath_var=LD_RUN_PATH
14226 shlibpath_overrides_runpath=no
14227 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14233 if test -d /usr/nec ;then
14235 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14236 soname_spec='$libname${shared_ext}.$major'
14237 shlibpath_var=LD_LIBRARY_PATH
14243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14244 soname_spec='${libname}${release}${shared_ext}$major'
14245 shlibpath_var=LD_LIBRARY_PATH
14252 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14253 echo "${ECHO_T}$dynamic_linker" >&6
14254 test "$dynamic_linker" = no && can_build_shared=no
14257 # The else clause should only fire when bootstrapping the
14258 # libtool distribution, otherwise you forgot to ship ltmain.sh
14259 # with your package, and you will get complaints that there are
14260 # no rules to generate ltmain.sh.
14261 if test -f "$ltmain"; then
14262 # See if we are running on zsh, and set the options which allow our commands through
14263 # without removal of \ escapes.
14264 if test -n "${ZSH_VERSION+set}" ; then
14265 setopt NO_GLOB_SUBST
14267 # Now quote all the things that may contain metacharacters while being
14268 # careful not to overquote the AC_SUBSTed values. We take copies of the
14269 # variables and quote the copies for generation of the libtool script.
14270 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14271 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14272 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14273 deplibs_check_method reload_flag reload_cmds need_locks \
14274 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14275 lt_cv_sys_global_symbol_to_c_name_address \
14276 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14277 old_postinstall_cmds old_postuninstall_cmds \
14281 lt_prog_compiler_wl_F77 \
14282 lt_prog_compiler_pic_F77 \
14283 lt_prog_compiler_static_F77 \
14284 lt_prog_compiler_no_builtin_flag_F77 \
14285 export_dynamic_flag_spec_F77 \
14286 thread_safe_flag_spec_F77 \
14287 whole_archive_flag_spec_F77 \
14288 enable_shared_with_static_runtimes_F77 \
14289 old_archive_cmds_F77 \
14290 old_archive_from_new_cmds_F77 \
14291 predep_objects_F77 \
14292 postdep_objects_F77 \
14295 compiler_lib_search_path_F77 \
14297 archive_expsym_cmds_F77 \
14298 postinstall_cmds_F77 \
14299 postuninstall_cmds_F77 \
14300 old_archive_from_expsyms_cmds_F77 \
14301 allow_undefined_flag_F77 \
14302 no_undefined_flag_F77 \
14303 export_symbols_cmds_F77 \
14304 hardcode_libdir_flag_spec_F77 \
14305 hardcode_libdir_flag_spec_ld_F77 \
14306 hardcode_libdir_separator_F77 \
14307 hardcode_automatic_F77 \
14309 module_expsym_cmds_F77 \
14310 lt_cv_prog_compiler_c_o_F77 \
14311 exclude_expsyms_F77 \
14312 include_expsyms_F77; do
14315 old_archive_cmds_F77 | \
14316 old_archive_from_new_cmds_F77 | \
14317 archive_cmds_F77 | \
14318 archive_expsym_cmds_F77 | \
14319 module_cmds_F77 | \
14320 module_expsym_cmds_F77 | \
14321 old_archive_from_expsyms_cmds_F77 | \
14322 export_symbols_cmds_F77 | \
14323 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14324 postinstall_cmds | postuninstall_cmds | \
14325 old_postinstall_cmds | old_postuninstall_cmds | \
14326 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14327 # Double-quote double-evaled strings.
14328 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14337 *'\$0 --fallback-echo"')
14338 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14344 cat <<__EOF__ >> "$cfgfile"
14345 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14347 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14349 # Shell to use when invoking shell scripts.
14352 # Whether or not to build shared libraries.
14353 build_libtool_libs=$enable_shared
14355 # Whether or not to build static libraries.
14356 build_old_libs=$enable_static
14358 # Whether or not to add -lc for building shared libraries.
14359 build_libtool_need_lc=$archive_cmds_need_lc_F77
14361 # Whether or not to disallow shared libs when runtime libs are static
14362 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14364 # Whether or not to optimize for fast installation.
14365 fast_install=$enable_fast_install
14368 host_alias=$host_alias
14371 # An echo program that does not interpret backslashes.
14376 AR_FLAGS=$lt_AR_FLAGS
14381 # A language-specific compiler.
14382 CC=$lt_compiler_F77
14384 # Is the compiler the GNU C compiler?
14390 # The linker used to build libraries.
14393 # Whether we need hard or soft links.
14396 # A BSD-compatible nm program.
14399 # A symbol stripping program
14402 # Used to examine libraries when file_magic_cmd begins "file"
14403 MAGIC_CMD=$MAGIC_CMD
14405 # Used on cygwin: DLL creation program.
14408 # Used on cygwin: object dumper.
14411 # Used on cygwin: assembler.
14414 # The name of the directory that contains temporary libtool files.
14417 # How to create reloadable object files.
14418 reload_flag=$lt_reload_flag
14419 reload_cmds=$lt_reload_cmds
14421 # How to pass a linker flag through the compiler.
14422 wl=$lt_lt_prog_compiler_wl_F77
14424 # Object file suffix (normally "o").
14425 objext="$ac_objext"
14427 # Old archive suffix (normally "a").
14430 # Shared library suffix (normally ".so").
14433 # Executable file suffix (normally "").
14436 # Additional compiler flags for building library objects.
14437 pic_flag=$lt_lt_prog_compiler_pic_F77
14440 # What is the maximum length of a command?
14441 max_cmd_len=$lt_cv_sys_max_cmd_len
14443 # Does compiler simultaneously support -c and -o options?
14444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14446 # Must we lock files when doing compilation ?
14447 need_locks=$lt_need_locks
14449 # Do we need the lib prefix for modules?
14450 need_lib_prefix=$need_lib_prefix
14452 # Do we need a version for libraries?
14453 need_version=$need_version
14455 # Whether dlopen is supported.
14456 dlopen_support=$enable_dlopen
14458 # Whether dlopen of programs is supported.
14459 dlopen_self=$enable_dlopen_self
14461 # Whether dlopen of statically linked programs is supported.
14462 dlopen_self_static=$enable_dlopen_self_static
14464 # Compiler flag to prevent dynamic linking.
14465 link_static_flag=$lt_lt_prog_compiler_static_F77
14467 # Compiler flag to turn off builtin functions.
14468 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14470 # Compiler flag to allow reflexive dlopens.
14471 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14473 # Compiler flag to generate shared objects directly from archives.
14474 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14476 # Compiler flag to generate thread-safe objects.
14477 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14479 # Library versioning type.
14480 version_type=$version_type
14482 # Format of library name prefix.
14483 libname_spec=$lt_libname_spec
14485 # List of archive names. First name is the real one, the rest are links.
14486 # The last name is the one that the linker finds with -lNAME.
14487 library_names_spec=$lt_library_names_spec
14489 # The coded name of the library, if different from the real name.
14490 soname_spec=$lt_soname_spec
14492 # Commands used to build and install an old-style archive.
14494 old_archive_cmds=$lt_old_archive_cmds_F77
14495 old_postinstall_cmds=$lt_old_postinstall_cmds
14496 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14498 # Create an old-style archive from a shared archive.
14499 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14501 # Create a temporary old-style archive to link instead of a shared archive.
14502 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14504 # Commands used to build and install a shared archive.
14505 archive_cmds=$lt_archive_cmds_F77
14506 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14507 postinstall_cmds=$lt_postinstall_cmds
14508 postuninstall_cmds=$lt_postuninstall_cmds
14510 # Commands used to build a loadable module (assumed same as above if empty)
14511 module_cmds=$lt_module_cmds_F77
14512 module_expsym_cmds=$lt_module_expsym_cmds_F77
14514 # Commands to strip libraries.
14515 old_striplib=$lt_old_striplib
14516 striplib=$lt_striplib
14518 # Dependencies to place before the objects being linked to create a
14520 predep_objects=$lt_predep_objects_F77
14522 # Dependencies to place after the objects being linked to create a
14524 postdep_objects=$lt_postdep_objects_F77
14526 # Dependencies to place before the objects being linked to create a
14528 predeps=$lt_predeps_F77
14530 # Dependencies to place after the objects being linked to create a
14532 postdeps=$lt_postdeps_F77
14534 # The library search path used internally by the compiler when linking
14535 # a shared library.
14536 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14538 # Method to check whether dependent libraries are shared objects.
14539 deplibs_check_method=$lt_deplibs_check_method
14541 # Command to use when deplibs_check_method == file_magic.
14542 file_magic_cmd=$lt_file_magic_cmd
14544 # Flag that allows shared libraries with undefined symbols to be built.
14545 allow_undefined_flag=$lt_allow_undefined_flag_F77
14547 # Flag that forces no undefined symbols.
14548 no_undefined_flag=$lt_no_undefined_flag_F77
14550 # Commands used to finish a libtool library installation in a directory.
14551 finish_cmds=$lt_finish_cmds
14553 # Same as above, but a single script fragment to be evaled but not shown.
14554 finish_eval=$lt_finish_eval
14556 # Take the output of nm and produce a listing of raw symbols and C names.
14557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14559 # Transform the output of nm in a proper C declaration
14560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14562 # Transform the output of nm in a C name address pair
14563 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14565 # This is the shared library runtime path variable.
14566 runpath_var=$runpath_var
14568 # This is the shared library path variable.
14569 shlibpath_var=$shlibpath_var
14571 # Is shlibpath searched before the hard-coded library search path?
14572 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14574 # How to hardcode a shared library path into an executable.
14575 hardcode_action=$hardcode_action_F77
14577 # Whether we should hardcode library paths into libraries.
14578 hardcode_into_libs=$hardcode_into_libs
14580 # Flag to hardcode \$libdir into a binary during linking.
14581 # This must work even if \$libdir does not exist.
14582 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14584 # If ld is used when linking, flag to hardcode \$libdir into
14585 # a binary during linking. This must work even if \$libdir does
14587 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14589 # Whether we need a single -rpath flag with a separated argument.
14590 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14592 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14593 # resulting binary.
14594 hardcode_direct=$hardcode_direct_F77
14596 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14597 # resulting binary.
14598 hardcode_minus_L=$hardcode_minus_L_F77
14600 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14601 # the resulting binary.
14602 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14604 # Set to yes if building a shared library automatically hardcodes DIR into the library
14605 # and all subsequent libraries and executables linked against it.
14606 hardcode_automatic=$hardcode_automatic_F77
14608 # Variables whose values should be saved in libtool wrapper scripts and
14609 # restored at relink time.
14610 variables_saved_for_relink="$variables_saved_for_relink"
14612 # Whether libtool must link a program against all its dependency libraries.
14613 link_all_deplibs=$link_all_deplibs_F77
14615 # Compile-time system search path for libraries
14616 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14618 # Run-time system search path for libraries
14619 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14621 # Fix the shell variable \$srcfile for the compiler.
14622 fix_srcfile_path="$fix_srcfile_path_F77"
14624 # Set to yes if exported symbols are required.
14625 always_export_symbols=$always_export_symbols_F77
14627 # The commands to list exported symbols.
14628 export_symbols_cmds=$lt_export_symbols_cmds_F77
14630 # The commands to extract the exported symbol list from a shared archive.
14631 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14633 # Symbols that should not be listed in the preloaded symbols.
14634 exclude_expsyms=$lt_exclude_expsyms_F77
14636 # Symbols that must always be exported.
14637 include_expsyms=$lt_include_expsyms_F77
14639 # ### END LIBTOOL TAG CONFIG: $tagname
14645 # If there is no Makefile yet, we rely on a make rule to execute
14646 # `config.status --recheck' to rerun these tests and create the
14647 # libtool script then.
14648 test -f Makefile && make "$ltmain"
14653 ac_cpp='$CPP $CPPFLAGS'
14654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14666 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14670 # Source file extension for Java test sources.
14673 # Object file extension for compiled Java test sources.
14677 # Code to be used in simple compile tests
14678 lt_simple_compile_test_code="class foo {}\n"
14680 # Code to be used in simple link tests
14681 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14683 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14685 # If no C compiler was specified, use CC.
14688 # Allow CC to be a program name with arguments.
14692 # Allow CC to be a program name with arguments.
14698 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14699 archive_cmds_need_lc_GCJ=no
14702 ## There is no encapsulation within the following macros, do not change
14703 ## the running order or otherwise move them around unless you know exactly
14704 ## what you are doing...
14706 lt_prog_compiler_no_builtin_flag_GCJ=
14708 if test "$GCC" = yes; then
14709 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14711 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14712 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14713 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 lt_cv_prog_compiler_rtti_exceptions=no
14717 ac_outfile=conftest.$ac_objext
14718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14719 lt_compiler_flag="-fno-rtti -fno-exceptions"
14720 # Insert the option either (1) after the last *FLAGS variable, or
14721 # (2) before a word containing "conftest.", or (3) at the end.
14722 # Note that $ac_compile itself does not contain backslashes and begins
14723 # with a dollar sign (not a hyphen), so the echo should work correctly.
14724 # The option is referenced via a variable to avoid confusing sed.
14725 lt_compile=`echo "$ac_compile" | $SED \
14726 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14728 -e 's:$: $lt_compiler_flag:'`
14729 (eval echo "\"\$as_me:14729: $lt_compile\"" >&5)
14730 (eval "$lt_compile" 2>conftest.err)
14732 cat conftest.err >&5
14733 echo "$as_me:14733: \$? = $ac_status" >&5
14734 if (exit $ac_status) && test -s "$ac_outfile"; then
14735 # The compiler can only warn and ignore the option if not recognized
14736 # So say no if there are warnings
14737 if test ! -s conftest.err; then
14738 lt_cv_prog_compiler_rtti_exceptions=yes
14744 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14745 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14748 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14755 lt_prog_compiler_wl_GCJ=
14756 lt_prog_compiler_pic_GCJ=
14757 lt_prog_compiler_static_GCJ=
14759 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14762 if test "$GCC" = yes; then
14763 lt_prog_compiler_wl_GCJ='-Wl,'
14764 lt_prog_compiler_static_GCJ='-static'
14768 # All AIX code is PIC.
14769 if test "$host_cpu" = ia64; then
14770 # AIX 5 now supports IA64 processor
14771 lt_prog_compiler_static_GCJ='-Bstatic'
14776 # FIXME: we need at least 68020 code to build shared libraries, but
14777 # adding the `-m68020' flag to GCC prevents building anything better,
14779 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14782 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14783 # PIC is the default for these OSes.
14786 mingw* | pw32* | os2*)
14787 # This hack is so that the source file can tell whether it is being
14788 # built for inclusion in a dll (and should export symbols for example).
14789 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14792 darwin* | rhapsody*)
14793 # PIC is the default on this platform
14794 # Common symbols not allowed in MH_DYLIB files
14795 lt_prog_compiler_pic_GCJ='-fno-common'
14799 # Just because we use GCC doesn't mean we suddenly get shared libraries
14800 # on systems that don't support them.
14801 lt_prog_compiler_can_build_shared_GCJ=no
14806 if test -d /usr/nec; then
14807 lt_prog_compiler_pic_GCJ=-Kconform_pic
14812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14813 # not for PA HP-UX.
14814 case "$host_cpu" in
14819 lt_prog_compiler_pic_GCJ='-fPIC'
14825 lt_prog_compiler_pic_GCJ='-fPIC'
14829 # PORTME Check for flag to pass linker flags through the system compiler.
14832 lt_prog_compiler_wl_GCJ='-Wl,'
14833 if test "$host_cpu" = ia64; then
14834 # AIX 5 now supports IA64 processor
14835 lt_prog_compiler_static_GCJ='-Bstatic'
14837 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14841 mingw* | pw32* | os2*)
14842 # This hack is so that the source file can tell whether it is being
14843 # built for inclusion in a dll (and should export symbols for example).
14844 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14847 hpux9* | hpux10* | hpux11*)
14848 lt_prog_compiler_wl_GCJ='-Wl,'
14849 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14850 # not for PA HP-UX.
14851 case "$host_cpu" in
14856 lt_prog_compiler_pic_GCJ='+Z'
14859 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14860 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14863 irix5* | irix6* | nonstopux*)
14864 lt_prog_compiler_wl_GCJ='-Wl,'
14865 # PIC (with -KPIC) is the default.
14866 lt_prog_compiler_static_GCJ='-non_shared'
14870 lt_prog_compiler_pic_GCJ='-KPIC'
14871 lt_prog_compiler_static_GCJ='-Bstatic'
14877 lt_prog_compiler_wl_GCJ='-Wl,'
14878 lt_prog_compiler_pic_GCJ='-KPIC'
14879 lt_prog_compiler_static_GCJ='-static'
14882 lt_prog_compiler_wl_GCJ='-Wl,'
14883 # All Alpha code is PIC.
14884 lt_prog_compiler_static_GCJ='-non_shared'
14889 osf3* | osf4* | osf5*)
14890 lt_prog_compiler_wl_GCJ='-Wl,'
14891 # All OSF/1 code is PIC.
14892 lt_prog_compiler_static_GCJ='-non_shared'
14896 lt_prog_compiler_pic_GCJ='-Kpic'
14897 lt_prog_compiler_static_GCJ='-dn'
14901 lt_prog_compiler_wl_GCJ='-Wl,'
14902 lt_prog_compiler_pic_GCJ='-KPIC'
14903 lt_prog_compiler_static_GCJ='-Bstatic'
14907 lt_prog_compiler_wl_GCJ='-Qoption ld '
14908 lt_prog_compiler_pic_GCJ='-PIC'
14909 lt_prog_compiler_static_GCJ='-Bstatic'
14912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14913 lt_prog_compiler_wl_GCJ='-Wl,'
14914 lt_prog_compiler_pic_GCJ='-KPIC'
14915 lt_prog_compiler_static_GCJ='-Bstatic'
14919 if test -d /usr/nec ;then
14920 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14921 lt_prog_compiler_static_GCJ='-Bstatic'
14926 lt_prog_compiler_pic_GCJ='-pic'
14927 lt_prog_compiler_static_GCJ='-Bstatic'
14931 lt_prog_compiler_can_build_shared_GCJ=no
14936 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14937 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14940 # Check to make sure the PIC flag actually works.
14942 if test -n "$lt_prog_compiler_pic_GCJ"; then
14943 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14944 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14945 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 lt_prog_compiler_pic_works_GCJ=no
14949 ac_outfile=conftest.$ac_objext
14950 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14951 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14952 # Insert the option either (1) after the last *FLAGS variable, or
14953 # (2) before a word containing "conftest.", or (3) at the end.
14954 # Note that $ac_compile itself does not contain backslashes and begins
14955 # with a dollar sign (not a hyphen), so the echo should work correctly.
14956 # The option is referenced via a variable to avoid confusing sed.
14957 lt_compile=`echo "$ac_compile" | $SED \
14958 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14960 -e 's:$: $lt_compiler_flag:'`
14961 (eval echo "\"\$as_me:14961: $lt_compile\"" >&5)
14962 (eval "$lt_compile" 2>conftest.err)
14964 cat conftest.err >&5
14965 echo "$as_me:14965: \$? = $ac_status" >&5
14966 if (exit $ac_status) && test -s "$ac_outfile"; then
14967 # The compiler can only warn and ignore the option if not recognized
14968 # So say no if there are warnings
14969 if test ! -s conftest.err; then
14970 lt_prog_compiler_pic_works_GCJ=yes
14976 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14977 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14979 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14980 case $lt_prog_compiler_pic_GCJ in
14982 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14985 lt_prog_compiler_pic_GCJ=
14986 lt_prog_compiler_can_build_shared_GCJ=no
14991 # For platforms which do not support PIC, -DPIC is meaningless:
14993 lt_prog_compiler_pic_GCJ=
14996 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15000 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15001 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15002 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 lt_cv_prog_compiler_c_o_GCJ=no
15006 $rm -r conftest 2>/dev/null
15010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15012 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15013 # that will create temporary files in the current directory regardless of
15014 # the output directory. Thus, making CWD read-only will cause this test
15015 # to fail, enabling locking or at least warning the user not to do parallel
15019 lt_compiler_flag="-o out/conftest2.$ac_objext"
15020 # Insert the option either (1) after the last *FLAGS variable, or
15021 # (2) before a word containing "conftest.", or (3) at the end.
15022 # Note that $ac_compile itself does not contain backslashes and begins
15023 # with a dollar sign (not a hyphen), so the echo should work correctly.
15024 lt_compile=`echo "$ac_compile" | $SED \
15025 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15027 -e 's:$: $lt_compiler_flag:'`
15028 (eval echo "\"\$as_me:15028: $lt_compile\"" >&5)
15029 (eval "$lt_compile" 2>out/conftest.err)
15031 cat out/conftest.err >&5
15032 echo "$as_me:15032: \$? = $ac_status" >&5
15033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15035 # The compiler can only warn and ignore the option if not recognized
15036 # So say no if there are warnings
15037 if test ! -s out/conftest.err; then
15038 lt_cv_prog_compiler_c_o_GCJ=yes
15042 $rm conftest* out/*
15049 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15050 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15053 hard_links="nottested"
15054 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15055 # do not overwrite the value of need_locks provided by the user
15056 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15057 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15062 ln conftest.a conftest.b 2>&5 || hard_links=no
15063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15064 echo "$as_me:$LINENO: result: $hard_links" >&5
15065 echo "${ECHO_T}$hard_links" >&6
15066 if test "$hard_links" = no; then
15067 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15068 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15075 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15076 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15079 allow_undefined_flag_GCJ=
15080 enable_shared_with_static_runtimes_GCJ=no
15082 archive_expsym_cmds_GCJ=
15083 old_archive_From_new_cmds_GCJ=
15084 old_archive_from_expsyms_cmds_GCJ=
15085 export_dynamic_flag_spec_GCJ=
15086 whole_archive_flag_spec_GCJ=
15087 thread_safe_flag_spec_GCJ=
15088 hardcode_libdir_flag_spec_GCJ=
15089 hardcode_libdir_flag_spec_ld_GCJ=
15090 hardcode_libdir_separator_GCJ=
15091 hardcode_direct_GCJ=no
15092 hardcode_minus_L_GCJ=no
15093 hardcode_shlibpath_var_GCJ=unsupported
15094 link_all_deplibs_GCJ=unknown
15095 hardcode_automatic_GCJ=no
15097 module_expsym_cmds_GCJ=
15098 always_export_symbols_GCJ=no
15099 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15100 # include_expsyms should be a list of space-separated symbols to be *always*
15101 # included in the symbol list
15102 include_expsyms_GCJ=
15103 # exclude_expsyms can be an extended regexp of symbols to exclude
15104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15106 # as well as any symbol that contains `d'.
15107 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15109 # platforms (ab)use it in PIC code, but their linkers get confused if
15110 # the symbol is explicitly referenced. Since portable code cannot
15111 # rely on this symbol name, it's probably fine to never include it in
15112 # preloaded symbol tables.
15113 extract_expsyms_cmds=
15116 cygwin* | mingw* | pw32*)
15117 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15118 # When not using gcc, we currently assume that we are using
15119 # Microsoft Visual C++.
15120 if test "$GCC" != yes; then
15130 if test "$with_gnu_ld" = yes; then
15131 # If archive_cmds runs LD, not CC, wlarc should be empty
15134 # See if GNU ld supports shared libraries.
15136 aix3* | aix4* | aix5*)
15137 # On AIX/PPC, the GNU linker is very broken
15138 if test "$host_cpu" != ia64; then
15142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15143 *** to be unable to reliably create shared libraries on AIX.
15144 *** Therefore, libtool is disabling shared libraries support. If you
15145 *** really care for shared libraries, you may want to modify your PATH
15146 *** so that a non-GNU linker is found, and then restart.
15153 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)'
15154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15155 hardcode_minus_L_GCJ=yes
15157 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15158 # that the semantics of dynamic libraries on AmigaOS, at least up
15159 # to version 4, is to share data among multiple programs linked
15160 # with the same dynamic library. Since this doesn't match the
15161 # behavior of shared libraries on other platforms, we can't use
15167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168 allow_undefined_flag_GCJ=unsupported
15169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15170 # support --undefined. This deserves some investigation. FIXME
15171 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15177 cygwin* | mingw* | pw32*)
15178 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15179 # as there is no search path for DLLs.
15180 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15181 allow_undefined_flag_GCJ=unsupported
15182 always_export_symbols_GCJ=no
15183 enable_shared_with_static_runtimes_GCJ=yes
15184 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15186 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15187 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15188 # If the export-symbols file already is a .def file (1st line
15189 # is EXPORTS), use it as is; otherwise, prepend...
15190 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15191 cp $export_symbols $output_objdir/$soname.def;
15193 echo EXPORTS > $output_objdir/$soname.def;
15194 cat $export_symbols >> $output_objdir/$soname.def;
15196 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15204 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15207 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15213 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15218 *** create shared libraries on Solaris systems. Therefore, libtool
15219 *** is disabling shared libraries support. We urge you to upgrade GNU
15220 *** binutils to release 2.9.1 or newer. Another option is to modify
15221 *** your PATH or compiler configuration so that the native linker is
15222 *** used, and then restart.
15225 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15226 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15234 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15236 hardcode_direct_GCJ=yes
15237 hardcode_shlibpath_var_GCJ=no
15241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15242 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15243 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15250 if test "$ld_shlibs_GCJ" = yes; then
15251 runpath_var=LD_RUN_PATH
15252 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15253 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15254 # ancient GNU ld didn't support --whole-archive et. al.
15255 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15256 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15258 whole_archive_flag_spec_GCJ=
15262 # PORTME fill in a description of your system's linker (not GNU ld)
15265 allow_undefined_flag_GCJ=unsupported
15266 always_export_symbols_GCJ=yes
15267 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'
15268 # Note: this linker hardcodes the directories in LIBPATH if there
15269 # are no directories specified by -L.
15270 hardcode_minus_L_GCJ=yes
15271 if test "$GCC" = yes && test -z "$link_static_flag"; then
15272 # Neither direct hardcoding nor static linking is supported with a
15274 hardcode_direct_GCJ=unsupported
15279 if test "$host_cpu" = ia64; then
15280 # On IA64, the linker does run time linking by default, so we don't
15281 # have to do anything special.
15282 aix_use_runtimelinking=no
15283 exp_sym_flag='-Bexport'
15286 # If we're using GNU nm, then we don't want the "-C" option.
15287 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15288 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15289 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'
15291 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'
15293 aix_use_runtimelinking=no
15295 # Test if we are trying to use run time linking or normal
15296 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15297 # need to do runtime linking.
15298 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15299 for ld_flag in $LDFLAGS; do
15300 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15301 aix_use_runtimelinking=yes
15307 exp_sym_flag='-bexport'
15308 no_entry_flag='-bnoentry'
15311 # When large executables or shared objects are built, AIX ld can
15312 # have problems creating the table of contents. If linking a library
15313 # or program results in "error TOC overflow" add -mminimal-toc to
15314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15317 archive_cmds_GCJ=''
15318 hardcode_direct_GCJ=yes
15319 hardcode_libdir_separator_GCJ=':'
15320 link_all_deplibs_GCJ=yes
15322 if test "$GCC" = yes; then
15323 case $host_os in aix4.012|aix4.012.*)
15324 # We only want to do this on AIX 4.2 and lower, the check
15325 # below for broken collect2 doesn't work under 4.3+
15326 collect2name=`${CC} -print-prog-name=collect2`
15327 if test -f "$collect2name" && \
15328 strings "$collect2name" | grep resolve_lib_name >/dev/null
15330 # We have reworked collect2
15331 hardcode_direct_GCJ=yes
15333 # We have old collect2
15334 hardcode_direct_GCJ=unsupported
15335 # It fails to find uninstalled libraries when the uninstalled
15336 # path is not listed in the libpath. Setting hardcode_minus_L
15337 # to unsupported forces relinking
15338 hardcode_minus_L_GCJ=yes
15339 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15340 hardcode_libdir_separator_GCJ=
15343 shared_flag='-shared'
15346 if test "$host_cpu" = ia64; then
15347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15348 # chokes on -Wl,-G. The following line is correct:
15351 if test "$aix_use_runtimelinking" = yes; then
15352 shared_flag='${wl}-G'
15354 shared_flag='${wl}-bM:SRE'
15359 # It seems that -bexpall does not export symbols beginning with
15360 # underscore (_), so it is better to generate a list of symbols to export.
15361 always_export_symbols_GCJ=yes
15362 if test "$aix_use_runtimelinking" = yes; then
15363 # Warning - without using the other runtime loading flags (-brtl),
15364 # -berok will link without error, but may produce a broken library.
15365 allow_undefined_flag_GCJ='-berok'
15366 # Determine the default libpath from the value encoded in an empty executable.
15367 cat >conftest.$ac_ext <<_ACEOF
15368 #line $LINENO "configure"
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15383 rm -f conftest.$ac_objext conftest$ac_exeext
15384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15385 (eval $ac_link) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -s conftest$ac_exeext'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }; then
15396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15398 # Check for a 64-bit object if we didn't find anything.
15399 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; }
15402 echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15409 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15410 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"
15412 if test "$host_cpu" = ia64; then
15413 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15414 allow_undefined_flag_GCJ="-z nodefs"
15415 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"
15417 # Determine the default libpath from the value encoded in an empty executable.
15418 cat >conftest.$ac_ext <<_ACEOF
15419 #line $LINENO "configure"
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15434 rm -f conftest.$ac_objext conftest$ac_exeext
15435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15436 (eval $ac_link) 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -s conftest$ac_exeext'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15449 # Check for a 64-bit object if we didn't find anything.
15450 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; }
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15460 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15461 # Warning - without using the other run time loading flags,
15462 # -berok will link without error, but may produce a broken library.
15463 no_undefined_flag_GCJ=' ${wl}-bernotok'
15464 allow_undefined_flag_GCJ=' ${wl}-berok'
15465 # -bexpall does not export symbols beginning with underscore (_)
15466 always_export_symbols_GCJ=yes
15467 # Exported symbols can be pulled into shared objects from archives
15468 whole_archive_flag_spec_GCJ=' '
15469 archive_cmds_need_lc_GCJ=yes
15470 # This is similar to how AIX traditionally builds it's shared libraries.
15471 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'
15477 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)'
15478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15479 hardcode_minus_L_GCJ=yes
15480 # see comment about different semantics on the GNU ld section
15485 export_dynamic_flag_spec_GCJ=-rdynamic
15488 cygwin* | mingw* | pw32*)
15489 # When not using gcc, we currently assume that we are using
15490 # Microsoft Visual C++.
15491 # hardcode_libdir_flag_spec is actually meaningless, as there is
15492 # no search path for DLLs.
15493 hardcode_libdir_flag_spec_GCJ=' '
15494 allow_undefined_flag_GCJ=unsupported
15495 # Tell ltmain to make .lib files, not .a files.
15497 # Tell ltmain to make .dll files, not .so files.
15499 # FIXME: Setting linknames here is a bad hack.
15500 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15501 # The linker will automatically build a .lib file if we build a DLL.
15502 old_archive_From_new_cmds_GCJ='true'
15503 # FIXME: Should let the user specify the lib program.
15504 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15505 fix_srcfile_path='`cygpath -w "$srcfile"`'
15506 enable_shared_with_static_runtimes_GCJ=yes
15509 darwin* | rhapsody*)
15510 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15511 archive_cmds_need_lc_GCJ=no
15513 rhapsody* | darwin1.[012])
15514 allow_undefined_flag_GCJ='-undefined suppress'
15517 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15520 # FIXME: Relying on posixy $() will cause problems for
15521 # cross-compilation, but unfortunately the echo tests do not
15522 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15523 # `"' quotes if we put them in here... so don't!
15524 lt_int_apple_cc_single_mod=no
15525 output_verbose_link_cmd='echo'
15526 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15527 lt_int_apple_cc_single_mod=yes
15529 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15530 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15532 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'
15534 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15536 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15537 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}'
15539 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}'
15541 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}'
15542 hardcode_direct_GCJ=no
15543 hardcode_automatic_GCJ=yes
15544 hardcode_shlibpath_var_GCJ=unsupported
15545 whole_archive_flag_spec_GCJ='-all_load $convenience'
15546 link_all_deplibs_GCJ=yes
15551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15553 hardcode_shlibpath_var_GCJ=no
15560 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15561 # support. Future versions do this automatically, but an explicit c++rt0.o
15562 # does not break anything, and helps significantly (at the cost of a little
15565 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15566 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15567 hardcode_direct_GCJ=yes
15568 hardcode_shlibpath_var_GCJ=no
15571 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15573 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15574 hardcode_direct_GCJ=yes
15575 hardcode_minus_L_GCJ=yes
15576 hardcode_shlibpath_var_GCJ=no
15579 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15581 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15582 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15583 hardcode_direct_GCJ=yes
15584 hardcode_shlibpath_var_GCJ=no
15588 if test "$GCC" = yes; then
15589 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'
15591 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'
15593 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15594 hardcode_libdir_separator_GCJ=:
15595 hardcode_direct_GCJ=yes
15597 # hardcode_minus_L: Not really in the search PATH,
15598 # but as the default location of the library.
15599 hardcode_minus_L_GCJ=yes
15600 export_dynamic_flag_spec_GCJ='${wl}-E'
15604 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15605 case "$host_cpu" in
15607 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15610 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15614 case "$host_cpu" in
15616 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15619 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15623 if test "$with_gnu_ld" = no; then
15624 case "$host_cpu" in
15626 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15627 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15628 hardcode_libdir_separator_GCJ=:
15629 hardcode_direct_GCJ=no
15630 hardcode_shlibpath_var_GCJ=no
15633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15634 hardcode_direct_GCJ=no
15635 hardcode_shlibpath_var_GCJ=no
15637 # hardcode_minus_L: Not really in the search PATH,
15638 # but as the default location of the library.
15639 hardcode_minus_L_GCJ=yes
15642 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15643 hardcode_libdir_separator_GCJ=:
15644 hardcode_direct_GCJ=yes
15645 export_dynamic_flag_spec_GCJ='${wl}-E'
15647 # hardcode_minus_L: Not really in the search PATH,
15648 # but as the default location of the library.
15649 hardcode_minus_L_GCJ=yes
15655 irix5* | irix6* | nonstopux*)
15656 if test "$GCC" = yes; then
15657 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'
15659 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'
15660 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15663 hardcode_libdir_separator_GCJ=:
15664 link_all_deplibs_GCJ=yes
15668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15669 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15671 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15673 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15674 hardcode_direct_GCJ=yes
15675 hardcode_shlibpath_var_GCJ=no
15679 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680 hardcode_direct_GCJ=yes
15681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15682 hardcode_libdir_separator_GCJ=:
15683 hardcode_shlibpath_var_GCJ=no
15687 hardcode_direct_GCJ=yes
15688 hardcode_shlibpath_var_GCJ=no
15689 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15690 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15692 export_dynamic_flag_spec_GCJ='${wl}-E'
15695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15696 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15697 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15700 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15708 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15709 hardcode_minus_L_GCJ=yes
15710 allow_undefined_flag_GCJ=unsupported
15711 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'
15712 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15716 if test "$GCC" = yes; then
15717 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15718 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'
15720 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15721 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'
15723 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15724 hardcode_libdir_separator_GCJ=:
15727 osf4* | osf5*) # as osf3* with the addition of -msym flag
15728 if test "$GCC" = yes; then
15729 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15730 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'
15731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15733 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15734 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'
15735 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~
15736 $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'
15738 # Both c and cxx compiler support -rpath directly
15739 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15741 hardcode_libdir_separator_GCJ=:
15745 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15746 hardcode_shlibpath_var_GCJ=no
15747 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15748 runpath_var=LD_RUN_PATH
15749 hardcode_runpath_var=yes
15753 no_undefined_flag_GCJ=' -z text'
15754 if test "$GCC" = yes; then
15755 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15757 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15759 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15761 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15763 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15764 hardcode_shlibpath_var_GCJ=no
15766 solaris2.[0-5] | solaris2.[0-5].*) ;;
15767 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15768 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15770 link_all_deplibs_GCJ=yes
15774 if test "x$host_vendor" = xsequent; then
15775 # Use $CC to link under sequent, because it throws in some extra .o
15776 # files that make .init and .fini sections work.
15777 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15779 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15782 hardcode_direct_GCJ=yes
15783 hardcode_minus_L_GCJ=yes
15784 hardcode_shlibpath_var_GCJ=no
15788 case $host_vendor in
15790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791 hardcode_direct_GCJ=yes # is this really true???
15794 ## LD is ld it makes a PLAMLIB
15795 ## CC just makes a GrossModule.
15796 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15797 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15798 hardcode_direct_GCJ=no
15801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15805 runpath_var='LD_RUN_PATH'
15806 hardcode_shlibpath_var_GCJ=no
15810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15811 hardcode_shlibpath_var_GCJ=no
15812 export_dynamic_flag_spec_GCJ='-Bexport'
15816 if test -d /usr/nec; then
15817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_shlibpath_var_GCJ=no
15819 runpath_var=LD_RUN_PATH
15820 hardcode_runpath_var=yes
15826 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15827 hardcode_direct_GCJ=yes
15828 hardcode_minus_L_GCJ=no
15829 hardcode_shlibpath_var_GCJ=no
15830 hardcode_runpath_var=yes
15831 runpath_var=LD_RUN_PATH
15834 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15835 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15836 if test "$GCC" = yes; then
15837 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15839 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841 runpath_var='LD_RUN_PATH'
15842 hardcode_shlibpath_var_GCJ=no
15846 no_undefined_flag_GCJ=' -z text'
15847 # $CC -shared without GNU ld will not create a library from C++
15848 # object files and a static libstdc++, better avoid it by now
15849 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15852 hardcode_libdir_flag_spec_GCJ=
15853 hardcode_shlibpath_var_GCJ=no
15854 runpath_var='LD_RUN_PATH'
15858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15860 hardcode_shlibpath_var_GCJ=no
15869 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15870 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15871 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15873 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15874 if test "$GCC" = yes; then
15875 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15879 # Do we need to explicitly link libc?
15881 case "x$archive_cmds_need_lc_GCJ" in
15883 # Assume -lc should be added
15884 archive_cmds_need_lc_GCJ=yes
15886 if test "$enable_shared" = yes && test "$GCC" = yes; then
15887 case $archive_cmds_GCJ in
15889 # FIXME: we may have to deal with multi-command sequences.
15892 # Test whether the compiler implicitly links with -lc since on some
15893 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15894 # to ld, don't add -lc before -lgcc.
15895 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15896 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15898 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901 (eval $ac_compile) 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } 2>conftest.err; then
15907 libobjs=conftest.$ac_objext
15909 wl=$lt_prog_compiler_wl_GCJ
15915 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15916 allow_undefined_flag_GCJ=
15917 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15918 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }
15923 archive_cmds_need_lc_GCJ=no
15925 archive_cmds_need_lc_GCJ=yes
15927 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15929 cat conftest.err 1>&5
15932 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15933 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15940 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15941 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15942 hardcode_action_GCJ=
15943 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15944 test -n "$runpath_var GCJ" || \
15945 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15947 # We can hardcode non-existant directories.
15948 if test "$hardcode_direct_GCJ" != no &&
15949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15950 # have to relink, otherwise we might link with an installed library
15951 # when we should be linking with a yet-to-be-installed one
15952 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15953 test "$hardcode_minus_L_GCJ" != no; then
15954 # Linking always hardcodes the temporary library directory.
15955 hardcode_action_GCJ=relink
15957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15958 hardcode_action_GCJ=immediate
15961 # We cannot hardcode anything, or else we can only hardcode existing
15963 hardcode_action_GCJ=unsupported
15965 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15966 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15968 if test "$hardcode_action_GCJ" = relink; then
15969 # Fast installation is not supported
15970 enable_fast_install=no
15971 elif test "$shlibpath_overrides_runpath" = yes ||
15972 test "$enable_shared" = no; then
15973 # Fast installation is not necessary
15974 enable_fast_install=needless
15979 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15980 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15981 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15982 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15983 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15984 echo "$as_me:$LINENO: result: yes" >&5
15985 echo "${ECHO_T}yes" >&6
15987 # FIXME - insert some real tests, host_os isn't really good enough
15990 if test -n "$STRIP" ; then
15991 striplib="$STRIP -x"
15992 echo "$as_me:$LINENO: result: yes" >&5
15993 echo "${ECHO_T}yes" >&6
15995 echo "$as_me:$LINENO: result: no" >&5
15996 echo "${ECHO_T}no" >&6
16000 echo "$as_me:$LINENO: result: no" >&5
16001 echo "${ECHO_T}no" >&6
16006 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16007 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16008 library_names_spec=
16009 libname_spec='lib$name'
16013 postuninstall_cmds=
16017 shlibpath_overrides_runpath=unknown
16019 dynamic_linker="$host_os ld.so"
16020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16021 if test "$GCC" = yes; then
16022 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16023 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16024 # if the path contains ";" then we assume it to be the separator
16025 # otherwise default to the standard path separator (i.e. ":") - it is
16026 # assumed that no part of a normal pathname contains ";" but that should
16027 # okay in the real world where ";" in dirpaths is itself problematic.
16028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16033 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16035 need_lib_prefix=unknown
16036 hardcode_into_libs=no
16038 # when you set need_version to no, make sure it does not cause -set_version
16039 # flags to be left without arguments
16040 need_version=unknown
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16046 shlibpath_var=LIBPATH
16048 # AIX 3 has no versioning support, so we append a major version to the name.
16049 soname_spec='${libname}${release}${shared_ext}$major'
16056 hardcode_into_libs=yes
16057 if test "$host_cpu" = ia64; then
16058 # AIX 5 supports IA64
16059 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16060 shlibpath_var=LD_LIBRARY_PATH
16062 # With GCC up to 2.95.x, collect2 would create an import file
16063 # for dependence libraries. The import file would start with
16064 # the line `#! .'. This would cause the generated library to
16065 # depend on `.', always an invalid library. This was fixed in
16066 # development snapshots of GCC prior to 3.0.
16068 aix4 | aix4.[01] | aix4.[01].*)
16069 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16071 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16074 can_build_shared=no
16078 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16079 # soname into executable. Probably we can add versioning support to
16080 # collect2, so additional links can be useful in future.
16081 if test "$aix_use_runtimelinking" = yes; then
16082 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16083 # instead of lib<name>.a to let people know that these are not
16084 # typical AIX shared libraries.
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 # We preserve .a as extension for shared libraries through AIX4.2
16088 # and later when we are not doing run time linking.
16089 library_names_spec='${libname}${release}.a $libname.a'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16092 shlibpath_var=LIBPATH
16097 library_names_spec='$libname.ixlibrary $libname.a'
16098 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16099 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'
16103 library_names_spec='${libname}${shared_ext}'
16104 dynamic_linker="$host_os ld.so"
16105 shlibpath_var=LIBRARY_PATH
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112 soname_spec='${libname}${release}${shared_ext}$major'
16113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16114 shlibpath_var=LD_LIBRARY_PATH
16115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16117 # the default ld.so.conf also contains /usr/contrib/lib and
16118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16119 # libtool to hard-code these into programs
16122 cygwin* | mingw* | pw32*)
16123 version_type=windows
16128 case $GCC,$host_os in
16129 yes,cygwin* | yes,mingw* | yes,pw32*)
16130 library_names_spec='$libname.dll.a'
16131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16132 postinstall_cmds='base_file=`basename \${file}`~
16133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16134 dldir=$destdir/`dirname \$dlpath`~
16135 test -d \$dldir || mkdir -p \$dldir~
16136 $install_prog $dir/$dlname \$dldir/$dlname'
16137 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16138 dlpath=$dir/\$dldll~
16140 shlibpath_overrides_runpath=yes
16144 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16145 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16146 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16149 # MinGW DLLs use traditional 'lib' prefix
16150 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16151 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16152 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16153 # It is most probably a Windows format PATH printed by
16154 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16155 # path with ; separators, and with drive letters. We can handle the
16156 # drive letters (cygwin fileutils understands them), so leave them,
16157 # especially as we might pass files found there to a mingw objdump,
16158 # which wouldn't understand a cygwinified path. Ahh.
16159 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16161 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16165 # pw32 DLLs use 'pw' prefix rather than 'lib'
16166 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16172 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16175 dynamic_linker='Win32 ld.exe'
16176 # FIXME: first we should search . and the directory the executable is in
16180 darwin* | rhapsody*)
16181 dynamic_linker="$host_os dyld"
16182 version_type=darwin
16185 # FIXME: Relying on posixy $() will cause problems for
16186 # cross-compilation, but unfortunately the echo tests do not
16187 # yet detect zsh echo's removal of \ escapes.
16188 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16189 soname_spec='${libname}${release}${major}$shared_ext'
16190 shlibpath_overrides_runpath=yes
16191 shlibpath_var=DYLD_LIBRARY_PATH
16192 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16193 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16194 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16195 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"`
16197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 shlibpath_var=LD_LIBRARY_PATH
16214 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16215 version_type=freebsd-$objformat
16216 case $version_type in
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16227 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16232 freebsd3.01* | freebsdelf3.01*)
16233 shlibpath_overrides_runpath=yes
16234 hardcode_into_libs=yes
16237 shlibpath_overrides_runpath=no
16238 hardcode_into_libs=yes
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 hardcode_into_libs=yes
16253 hpux9* | hpux10* | hpux11*)
16254 # Give a soname corresponding to the major version so that dld.sl refuses to
16255 # link against other versions.
16259 case "$host_cpu" in
16262 hardcode_into_libs=yes
16263 dynamic_linker="$host_os dld.so"
16264 shlibpath_var=LD_LIBRARY_PATH
16265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16267 soname_spec='${libname}${release}${shared_ext}$major'
16268 if test "X$HPUX_IA64_MODE" = X32; then
16269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16277 hardcode_into_libs=yes
16278 dynamic_linker="$host_os dld.sl"
16279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16288 dynamic_linker="$host_os dld.sl"
16289 shlibpath_var=SHLIB_PATH
16290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16292 soname_spec='${libname}${release}${shared_ext}$major'
16295 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16296 postinstall_cmds='chmod 555 $lib'
16299 irix5* | irix6* | nonstopux*)
16301 nonstopux*) version_type=nonstopux ;;
16303 if test "$lt_cv_prog_gnu_ld" = yes; then
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16314 irix5* | nonstopux*)
16315 libsuff= shlibsuff=
16318 case $LD in # libtool.m4 will add one of these switches to LD
16319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16320 libsuff= shlibsuff= libmagic=32-bit;;
16321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16322 libsuff=32 shlibsuff=N32 libmagic=N32;;
16323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16325 *) libsuff= shlibsuff= libmagic=never-match;;
16329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16330 shlibpath_overrides_runpath=no
16331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16333 hardcode_into_libs=yes
16336 # No shared lib support for Linux oldld, aout, or coff.
16337 linux*oldld* | linux*aout* | linux*coff*)
16341 # This must be Linux ELF.
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16349 shlibpath_var=LD_LIBRARY_PATH
16350 shlibpath_overrides_runpath=no
16351 # This implies no fast_install, which is unacceptable.
16352 # Some rework will be needed to allow for fast_install
16353 # before this can be enabled.
16354 hardcode_into_libs=yes
16356 # We used to test for /lib/ld.so.1 and disable shared libraries on
16357 # powerpc, because MkLinux only supported shared libraries with the
16358 # GNU dynamic linker. Since this was broken with cross compilers,
16359 # most powerpc-linux boxes support dynamic linking these days and
16360 # people can always --disable-shared, the test was removed, and we
16361 # assume the GNU/Linux dynamic linker is in use.
16362 dynamic_linker='GNU/Linux ld.so'
16369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16372 dynamic_linker='NetBSD (a.out) ld.so'
16374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16375 soname_spec='${libname}${release}${shared_ext}$major'
16376 dynamic_linker='NetBSD ld.elf_so'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 shlibpath_overrides_runpath=yes
16380 hardcode_into_libs=yes
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 shlibpath_overrides_runpath=yes
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395 soname_spec='${libname}${release}${shared_ext}$major'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 shlibpath_overrides_runpath=yes
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16409 openbsd2.[89] | openbsd2.[89].*)
16410 shlibpath_overrides_runpath=no
16413 shlibpath_overrides_runpath=yes
16417 shlibpath_overrides_runpath=yes
16422 libname_spec='$name'
16425 library_names_spec='$libname${shared_ext} $libname.a'
16426 dynamic_linker='OS/2 ld.exe'
16427 shlibpath_var=LIBPATH
16430 osf3* | osf4* | osf5*)
16434 soname_spec='${libname}${release}${shared_ext}$major'
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 shlibpath_var=LD_LIBRARY_PATH
16437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445 shlibpath_var=LD_LIBRARY_PATH
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16453 soname_spec='${libname}${release}${shared_ext}$major'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 shlibpath_overrides_runpath=yes
16456 hardcode_into_libs=yes
16457 # ldd complains unless libraries are executable
16458 postinstall_cmds='chmod +x $lib'
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16464 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 shlibpath_overrides_runpath=yes
16467 if test "$with_gnu_ld" = yes; then
16473 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 case $host_vendor in
16480 shlibpath_overrides_runpath=no
16482 export_dynamic_flag_spec='${wl}-Blargedynsym'
16483 runpath_var=LD_RUN_PATH
16491 shlibpath_overrides_runpath=no
16492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16498 if test -d /usr/nec ;then
16500 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16501 soname_spec='$libname${shared_ext}.$major'
16502 shlibpath_var=LD_LIBRARY_PATH
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 shlibpath_var=LD_LIBRARY_PATH
16517 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16518 echo "${ECHO_T}$dynamic_linker" >&6
16519 test "$dynamic_linker" = no && can_build_shared=no
16521 if test "x$enable_dlopen" != xyes; then
16522 enable_dlopen=unknown
16523 enable_dlopen_self=unknown
16524 enable_dlopen_self_static=unknown
16531 lt_cv_dlopen="load_add_on"
16533 lt_cv_dlopen_self=yes
16537 lt_cv_dlopen="LoadLibrary"
16542 lt_cv_dlopen="dlopen"
16547 # if libdl is installed we need to link against it
16548 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16549 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16550 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 ac_check_lib_save_LIBS=$LIBS
16555 cat >conftest.$ac_ext <<_ACEOF
16556 #line $LINENO "configure"
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16563 /* Override any gcc2 internal prototype to avoid an error. */
16567 /* We use char because int might match the return type of a gcc2
16568 builtin and then its argument prototype would still apply. */
16578 rm -f conftest.$ac_objext conftest$ac_exeext
16579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16580 (eval $ac_link) 2>&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } &&
16584 { ac_try='test -s conftest$ac_exeext'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_lib_dl_dlopen=yes
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ac_cv_lib_dl_dlopen=no
16597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16598 LIBS=$ac_check_lib_save_LIBS
16600 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16601 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16602 if test $ac_cv_lib_dl_dlopen = yes; then
16603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16606 lt_cv_dlopen="dyld"
16608 lt_cv_dlopen_self=yes
16615 echo "$as_me:$LINENO: checking for shl_load" >&5
16616 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16617 if test "${ac_cv_func_shl_load+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 cat >conftest.$ac_ext <<_ACEOF
16621 #line $LINENO "configure"
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 /* System header to define __stub macros and hopefully few prototypes,
16628 which can conflict with char shl_load (); below.
16629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16630 <limits.h> exists even on freestanding compilers. */
16632 # include <limits.h>
16634 # include <assert.h>
16636 /* Override any gcc2 internal prototype to avoid an error. */
16641 /* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16644 /* The GNU C library defines this for functions which it implements
16645 to always fail with ENOSYS. Some functions are actually named
16646 something starting with __ and the normal name is an alias. */
16647 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16650 char (*f) () = shl_load;
16659 return f != shl_load;
16664 rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16666 (eval $ac_link) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -s conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_func_shl_load=yes
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 ac_cv_func_shl_load=no
16683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16685 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16686 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16687 if test $ac_cv_func_shl_load = yes; then
16688 lt_cv_dlopen="shl_load"
16690 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16691 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16692 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 ac_check_lib_save_LIBS=$LIBS
16697 cat >conftest.$ac_ext <<_ACEOF
16698 #line $LINENO "configure"
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16705 /* Override any gcc2 internal prototype to avoid an error. */
16709 /* We use char because int might match the return type of a gcc2
16710 builtin and then its argument prototype would still apply. */
16720 rm -f conftest.$ac_objext conftest$ac_exeext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16722 (eval $ac_link) 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_lib_dld_shl_load=yes
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 ac_cv_lib_dld_shl_load=no
16739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16742 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16743 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16744 if test $ac_cv_lib_dld_shl_load = yes; then
16745 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16747 echo "$as_me:$LINENO: checking for dlopen" >&5
16748 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16749 if test "${ac_cv_func_dlopen+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16753 #line $LINENO "configure"
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 /* System header to define __stub macros and hopefully few prototypes,
16760 which can conflict with char dlopen (); below.
16761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16762 <limits.h> exists even on freestanding compilers. */
16764 # include <limits.h>
16766 # include <assert.h>
16768 /* Override any gcc2 internal prototype to avoid an error. */
16773 /* We use char because int might match the return type of a gcc2
16774 builtin and then its argument prototype would still apply. */
16776 /* The GNU C library defines this for functions which it implements
16777 to always fail with ENOSYS. Some functions are actually named
16778 something starting with __ and the normal name is an alias. */
16779 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16782 char (*f) () = dlopen;
16791 return f != dlopen;
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try='test -s conftest$ac_exeext'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ac_cv_func_dlopen=yes
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16813 ac_cv_func_dlopen=no
16815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16817 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16818 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16819 if test $ac_cv_func_dlopen = yes; then
16820 lt_cv_dlopen="dlopen"
16822 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16823 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16824 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 ac_check_lib_save_LIBS=$LIBS
16829 cat >conftest.$ac_ext <<_ACEOF
16830 #line $LINENO "configure"
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16837 /* Override any gcc2 internal prototype to avoid an error. */
16841 /* We use char because int might match the return type of a gcc2
16842 builtin and then its argument prototype would still apply. */
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854 (eval $ac_link) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -s conftest$ac_exeext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_lib_dl_dlopen=yes
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_cv_lib_dl_dlopen=no
16871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16872 LIBS=$ac_check_lib_save_LIBS
16874 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16875 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16876 if test $ac_cv_lib_dl_dlopen = yes; then
16877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16879 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16880 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16881 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 ac_check_lib_save_LIBS=$LIBS
16885 LIBS="-lsvld $LIBS"
16886 cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16894 /* Override any gcc2 internal prototype to avoid an error. */
16898 /* We use char because int might match the return type of a gcc2
16899 builtin and then its argument prototype would still apply. */
16909 rm -f conftest.$ac_objext conftest$ac_exeext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16911 (eval $ac_link) 2>&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try='test -s conftest$ac_exeext'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 ac_cv_lib_svld_dlopen=yes
16923 echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16926 ac_cv_lib_svld_dlopen=no
16928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16929 LIBS=$ac_check_lib_save_LIBS
16931 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16932 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16933 if test $ac_cv_lib_svld_dlopen = yes; then
16934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16936 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16937 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16938 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 ac_check_lib_save_LIBS=$LIBS
16943 cat >conftest.$ac_ext <<_ACEOF
16944 #line $LINENO "configure"
16947 cat confdefs.h >>conftest.$ac_ext
16948 cat >>conftest.$ac_ext <<_ACEOF
16949 /* end confdefs.h. */
16951 /* Override any gcc2 internal prototype to avoid an error. */
16955 /* We use char because int might match the return type of a gcc2
16956 builtin and then its argument prototype would still apply. */
16966 rm -f conftest.$ac_objext conftest$ac_exeext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16968 (eval $ac_link) 2>&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } &&
16972 { ac_try='test -s conftest$ac_exeext'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16978 ac_cv_lib_dld_dld_link=yes
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_cv_lib_dld_dld_link=no
16985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16986 LIBS=$ac_check_lib_save_LIBS
16988 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16989 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16990 if test $ac_cv_lib_dld_dld_link = yes; then
16991 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17012 if test "x$lt_cv_dlopen" != xno; then
17018 case $lt_cv_dlopen in
17020 save_CPPFLAGS="$CPPFLAGS"
17021 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17023 save_LDFLAGS="$LDFLAGS"
17024 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17027 LIBS="$lt_cv_dlopen_libs $LIBS"
17029 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17030 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17031 if test "${lt_cv_dlopen_self+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 if test "$cross_compiling" = yes; then :
17035 lt_cv_dlopen_self=cross
17037 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17038 lt_status=$lt_dlunknown
17039 cat > conftest.$ac_ext <<EOF
17040 #line 17040 "configure"
17041 #include "confdefs.h"
17050 # define LT_DLGLOBAL RTLD_GLOBAL
17053 # define LT_DLGLOBAL DL_GLOBAL
17055 # define LT_DLGLOBAL 0
17059 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17060 find out it does not work in some platform. */
17061 #ifndef LT_DLLAZY_OR_NOW
17063 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17066 # define LT_DLLAZY_OR_NOW DL_LAZY
17069 # define LT_DLLAZY_OR_NOW RTLD_NOW
17072 # define LT_DLLAZY_OR_NOW DL_NOW
17074 # define LT_DLLAZY_OR_NOW 0
17082 extern "C" void exit (int);
17085 void fnord() { int i=42;}
17088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17089 int status = $lt_dlunknown;
17093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17094 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17095 /* dlclose (self); */
17101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17102 (eval $ac_link) 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17106 (./conftest; exit; ) 2>/dev/null
17108 case x$lt_status in
17109 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17110 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17111 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17114 # compilation failed
17115 lt_cv_dlopen_self=no
17122 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17123 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17125 if test "x$lt_cv_dlopen_self" = xyes; then
17126 LDFLAGS="$LDFLAGS $link_static_flag"
17127 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17128 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17129 if test "${lt_cv_dlopen_self_static+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 if test "$cross_compiling" = yes; then :
17133 lt_cv_dlopen_self_static=cross
17135 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17136 lt_status=$lt_dlunknown
17137 cat > conftest.$ac_ext <<EOF
17138 #line 17138 "configure"
17139 #include "confdefs.h"
17148 # define LT_DLGLOBAL RTLD_GLOBAL
17151 # define LT_DLGLOBAL DL_GLOBAL
17153 # define LT_DLGLOBAL 0
17157 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17158 find out it does not work in some platform. */
17159 #ifndef LT_DLLAZY_OR_NOW
17161 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17164 # define LT_DLLAZY_OR_NOW DL_LAZY
17167 # define LT_DLLAZY_OR_NOW RTLD_NOW
17170 # define LT_DLLAZY_OR_NOW DL_NOW
17172 # define LT_DLLAZY_OR_NOW 0
17180 extern "C" void exit (int);
17183 void fnord() { int i=42;}
17186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17187 int status = $lt_dlunknown;
17191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17192 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17193 /* dlclose (self); */
17199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17200 (eval $ac_link) 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17204 (./conftest; exit; ) 2>/dev/null
17206 case x$lt_status in
17207 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17208 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17209 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17212 # compilation failed
17213 lt_cv_dlopen_self_static=no
17220 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17221 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17224 CPPFLAGS="$save_CPPFLAGS"
17225 LDFLAGS="$save_LDFLAGS"
17230 case $lt_cv_dlopen_self in
17231 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17232 *) enable_dlopen_self=unknown ;;
17235 case $lt_cv_dlopen_self_static in
17236 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17237 *) enable_dlopen_self_static=unknown ;;
17242 # The else clause should only fire when bootstrapping the
17243 # libtool distribution, otherwise you forgot to ship ltmain.sh
17244 # with your package, and you will get complaints that there are
17245 # no rules to generate ltmain.sh.
17246 if test -f "$ltmain"; then
17247 # See if we are running on zsh, and set the options which allow our commands through
17248 # without removal of \ escapes.
17249 if test -n "${ZSH_VERSION+set}" ; then
17250 setopt NO_GLOB_SUBST
17252 # Now quote all the things that may contain metacharacters while being
17253 # careful not to overquote the AC_SUBSTed values. We take copies of the
17254 # variables and quote the copies for generation of the libtool script.
17255 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17256 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17257 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17258 deplibs_check_method reload_flag reload_cmds need_locks \
17259 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17260 lt_cv_sys_global_symbol_to_c_name_address \
17261 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17262 old_postinstall_cmds old_postuninstall_cmds \
17266 lt_prog_compiler_wl_GCJ \
17267 lt_prog_compiler_pic_GCJ \
17268 lt_prog_compiler_static_GCJ \
17269 lt_prog_compiler_no_builtin_flag_GCJ \
17270 export_dynamic_flag_spec_GCJ \
17271 thread_safe_flag_spec_GCJ \
17272 whole_archive_flag_spec_GCJ \
17273 enable_shared_with_static_runtimes_GCJ \
17274 old_archive_cmds_GCJ \
17275 old_archive_from_new_cmds_GCJ \
17276 predep_objects_GCJ \
17277 postdep_objects_GCJ \
17280 compiler_lib_search_path_GCJ \
17282 archive_expsym_cmds_GCJ \
17283 postinstall_cmds_GCJ \
17284 postuninstall_cmds_GCJ \
17285 old_archive_from_expsyms_cmds_GCJ \
17286 allow_undefined_flag_GCJ \
17287 no_undefined_flag_GCJ \
17288 export_symbols_cmds_GCJ \
17289 hardcode_libdir_flag_spec_GCJ \
17290 hardcode_libdir_flag_spec_ld_GCJ \
17291 hardcode_libdir_separator_GCJ \
17292 hardcode_automatic_GCJ \
17294 module_expsym_cmds_GCJ \
17295 lt_cv_prog_compiler_c_o_GCJ \
17296 exclude_expsyms_GCJ \
17297 include_expsyms_GCJ; do
17300 old_archive_cmds_GCJ | \
17301 old_archive_from_new_cmds_GCJ | \
17302 archive_cmds_GCJ | \
17303 archive_expsym_cmds_GCJ | \
17304 module_cmds_GCJ | \
17305 module_expsym_cmds_GCJ | \
17306 old_archive_from_expsyms_cmds_GCJ | \
17307 export_symbols_cmds_GCJ | \
17308 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17309 postinstall_cmds | postuninstall_cmds | \
17310 old_postinstall_cmds | old_postuninstall_cmds | \
17311 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17312 # Double-quote double-evaled strings.
17313 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17322 *'\$0 --fallback-echo"')
17323 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17329 cat <<__EOF__ >> "$cfgfile"
17330 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17332 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17334 # Shell to use when invoking shell scripts.
17337 # Whether or not to build shared libraries.
17338 build_libtool_libs=$enable_shared
17340 # Whether or not to build static libraries.
17341 build_old_libs=$enable_static
17343 # Whether or not to add -lc for building shared libraries.
17344 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17346 # Whether or not to disallow shared libs when runtime libs are static
17347 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17349 # Whether or not to optimize for fast installation.
17350 fast_install=$enable_fast_install
17353 host_alias=$host_alias
17356 # An echo program that does not interpret backslashes.
17361 AR_FLAGS=$lt_AR_FLAGS
17366 # A language-specific compiler.
17367 CC=$lt_compiler_GCJ
17369 # Is the compiler the GNU C compiler?
17375 # The linker used to build libraries.
17378 # Whether we need hard or soft links.
17381 # A BSD-compatible nm program.
17384 # A symbol stripping program
17387 # Used to examine libraries when file_magic_cmd begins "file"
17388 MAGIC_CMD=$MAGIC_CMD
17390 # Used on cygwin: DLL creation program.
17393 # Used on cygwin: object dumper.
17396 # Used on cygwin: assembler.
17399 # The name of the directory that contains temporary libtool files.
17402 # How to create reloadable object files.
17403 reload_flag=$lt_reload_flag
17404 reload_cmds=$lt_reload_cmds
17406 # How to pass a linker flag through the compiler.
17407 wl=$lt_lt_prog_compiler_wl_GCJ
17409 # Object file suffix (normally "o").
17410 objext="$ac_objext"
17412 # Old archive suffix (normally "a").
17415 # Shared library suffix (normally ".so").
17418 # Executable file suffix (normally "").
17421 # Additional compiler flags for building library objects.
17422 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17425 # What is the maximum length of a command?
17426 max_cmd_len=$lt_cv_sys_max_cmd_len
17428 # Does compiler simultaneously support -c and -o options?
17429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17431 # Must we lock files when doing compilation ?
17432 need_locks=$lt_need_locks
17434 # Do we need the lib prefix for modules?
17435 need_lib_prefix=$need_lib_prefix
17437 # Do we need a version for libraries?
17438 need_version=$need_version
17440 # Whether dlopen is supported.
17441 dlopen_support=$enable_dlopen
17443 # Whether dlopen of programs is supported.
17444 dlopen_self=$enable_dlopen_self
17446 # Whether dlopen of statically linked programs is supported.
17447 dlopen_self_static=$enable_dlopen_self_static
17449 # Compiler flag to prevent dynamic linking.
17450 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17452 # Compiler flag to turn off builtin functions.
17453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17455 # Compiler flag to allow reflexive dlopens.
17456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17458 # Compiler flag to generate shared objects directly from archives.
17459 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17461 # Compiler flag to generate thread-safe objects.
17462 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17464 # Library versioning type.
17465 version_type=$version_type
17467 # Format of library name prefix.
17468 libname_spec=$lt_libname_spec
17470 # List of archive names. First name is the real one, the rest are links.
17471 # The last name is the one that the linker finds with -lNAME.
17472 library_names_spec=$lt_library_names_spec
17474 # The coded name of the library, if different from the real name.
17475 soname_spec=$lt_soname_spec
17477 # Commands used to build and install an old-style archive.
17479 old_archive_cmds=$lt_old_archive_cmds_GCJ
17480 old_postinstall_cmds=$lt_old_postinstall_cmds
17481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17483 # Create an old-style archive from a shared archive.
17484 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17486 # Create a temporary old-style archive to link instead of a shared archive.
17487 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17489 # Commands used to build and install a shared archive.
17490 archive_cmds=$lt_archive_cmds_GCJ
17491 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17492 postinstall_cmds=$lt_postinstall_cmds
17493 postuninstall_cmds=$lt_postuninstall_cmds
17495 # Commands used to build a loadable module (assumed same as above if empty)
17496 module_cmds=$lt_module_cmds_GCJ
17497 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17499 # Commands to strip libraries.
17500 old_striplib=$lt_old_striplib
17501 striplib=$lt_striplib
17503 # Dependencies to place before the objects being linked to create a
17505 predep_objects=$lt_predep_objects_GCJ
17507 # Dependencies to place after the objects being linked to create a
17509 postdep_objects=$lt_postdep_objects_GCJ
17511 # Dependencies to place before the objects being linked to create a
17513 predeps=$lt_predeps_GCJ
17515 # Dependencies to place after the objects being linked to create a
17517 postdeps=$lt_postdeps_GCJ
17519 # The library search path used internally by the compiler when linking
17520 # a shared library.
17521 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17523 # Method to check whether dependent libraries are shared objects.
17524 deplibs_check_method=$lt_deplibs_check_method
17526 # Command to use when deplibs_check_method == file_magic.
17527 file_magic_cmd=$lt_file_magic_cmd
17529 # Flag that allows shared libraries with undefined symbols to be built.
17530 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17532 # Flag that forces no undefined symbols.
17533 no_undefined_flag=$lt_no_undefined_flag_GCJ
17535 # Commands used to finish a libtool library installation in a directory.
17536 finish_cmds=$lt_finish_cmds
17538 # Same as above, but a single script fragment to be evaled but not shown.
17539 finish_eval=$lt_finish_eval
17541 # Take the output of nm and produce a listing of raw symbols and C names.
17542 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17544 # Transform the output of nm in a proper C declaration
17545 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17547 # Transform the output of nm in a C name address pair
17548 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17550 # This is the shared library runtime path variable.
17551 runpath_var=$runpath_var
17553 # This is the shared library path variable.
17554 shlibpath_var=$shlibpath_var
17556 # Is shlibpath searched before the hard-coded library search path?
17557 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17559 # How to hardcode a shared library path into an executable.
17560 hardcode_action=$hardcode_action_GCJ
17562 # Whether we should hardcode library paths into libraries.
17563 hardcode_into_libs=$hardcode_into_libs
17565 # Flag to hardcode \$libdir into a binary during linking.
17566 # This must work even if \$libdir does not exist.
17567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17569 # If ld is used when linking, flag to hardcode \$libdir into
17570 # a binary during linking. This must work even if \$libdir does
17572 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17574 # Whether we need a single -rpath flag with a separated argument.
17575 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17577 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17578 # resulting binary.
17579 hardcode_direct=$hardcode_direct_GCJ
17581 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17582 # resulting binary.
17583 hardcode_minus_L=$hardcode_minus_L_GCJ
17585 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17586 # the resulting binary.
17587 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17589 # Set to yes if building a shared library automatically hardcodes DIR into the library
17590 # and all subsequent libraries and executables linked against it.
17591 hardcode_automatic=$hardcode_automatic_GCJ
17593 # Variables whose values should be saved in libtool wrapper scripts and
17594 # restored at relink time.
17595 variables_saved_for_relink="$variables_saved_for_relink"
17597 # Whether libtool must link a program against all its dependency libraries.
17598 link_all_deplibs=$link_all_deplibs_GCJ
17600 # Compile-time system search path for libraries
17601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17603 # Run-time system search path for libraries
17604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17606 # Fix the shell variable \$srcfile for the compiler.
17607 fix_srcfile_path="$fix_srcfile_path_GCJ"
17609 # Set to yes if exported symbols are required.
17610 always_export_symbols=$always_export_symbols_GCJ
17612 # The commands to list exported symbols.
17613 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17615 # The commands to extract the exported symbol list from a shared archive.
17616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17618 # Symbols that should not be listed in the preloaded symbols.
17619 exclude_expsyms=$lt_exclude_expsyms_GCJ
17621 # Symbols that must always be exported.
17622 include_expsyms=$lt_include_expsyms_GCJ
17624 # ### END LIBTOOL TAG CONFIG: $tagname
17630 # If there is no Makefile yet, we rely on a make rule to execute
17631 # `config.status --recheck' to rerun these tests and create the
17632 # libtool script then.
17633 test -f Makefile && make "$ltmain"
17638 ac_cpp='$CPP $CPPFLAGS'
17639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17654 # Source file extension for RC test sources.
17657 # Object file extension for compiled RC test sources.
17661 # Code to be used in simple compile tests
17662 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17664 # Code to be used in simple link tests
17665 lt_simple_link_test_code="$lt_simple_compile_test_code"
17667 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17669 # If no C compiler was specified, use CC.
17672 # Allow CC to be a program name with arguments.
17676 # Allow CC to be a program name with arguments.
17681 lt_cv_prog_compiler_c_o_RC=yes
17683 # The else clause should only fire when bootstrapping the
17684 # libtool distribution, otherwise you forgot to ship ltmain.sh
17685 # with your package, and you will get complaints that there are
17686 # no rules to generate ltmain.sh.
17687 if test -f "$ltmain"; then
17688 # See if we are running on zsh, and set the options which allow our commands through
17689 # without removal of \ escapes.
17690 if test -n "${ZSH_VERSION+set}" ; then
17691 setopt NO_GLOB_SUBST
17693 # Now quote all the things that may contain metacharacters while being
17694 # careful not to overquote the AC_SUBSTed values. We take copies of the
17695 # variables and quote the copies for generation of the libtool script.
17696 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17697 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17698 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17699 deplibs_check_method reload_flag reload_cmds need_locks \
17700 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17701 lt_cv_sys_global_symbol_to_c_name_address \
17702 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17703 old_postinstall_cmds old_postuninstall_cmds \
17707 lt_prog_compiler_wl_RC \
17708 lt_prog_compiler_pic_RC \
17709 lt_prog_compiler_static_RC \
17710 lt_prog_compiler_no_builtin_flag_RC \
17711 export_dynamic_flag_spec_RC \
17712 thread_safe_flag_spec_RC \
17713 whole_archive_flag_spec_RC \
17714 enable_shared_with_static_runtimes_RC \
17715 old_archive_cmds_RC \
17716 old_archive_from_new_cmds_RC \
17717 predep_objects_RC \
17718 postdep_objects_RC \
17721 compiler_lib_search_path_RC \
17723 archive_expsym_cmds_RC \
17724 postinstall_cmds_RC \
17725 postuninstall_cmds_RC \
17726 old_archive_from_expsyms_cmds_RC \
17727 allow_undefined_flag_RC \
17728 no_undefined_flag_RC \
17729 export_symbols_cmds_RC \
17730 hardcode_libdir_flag_spec_RC \
17731 hardcode_libdir_flag_spec_ld_RC \
17732 hardcode_libdir_separator_RC \
17733 hardcode_automatic_RC \
17735 module_expsym_cmds_RC \
17736 lt_cv_prog_compiler_c_o_RC \
17737 exclude_expsyms_RC \
17738 include_expsyms_RC; do
17741 old_archive_cmds_RC | \
17742 old_archive_from_new_cmds_RC | \
17743 archive_cmds_RC | \
17744 archive_expsym_cmds_RC | \
17746 module_expsym_cmds_RC | \
17747 old_archive_from_expsyms_cmds_RC | \
17748 export_symbols_cmds_RC | \
17749 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17750 postinstall_cmds | postuninstall_cmds | \
17751 old_postinstall_cmds | old_postuninstall_cmds | \
17752 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17753 # Double-quote double-evaled strings.
17754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17763 *'\$0 --fallback-echo"')
17764 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17770 cat <<__EOF__ >> "$cfgfile"
17771 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17775 # Shell to use when invoking shell scripts.
17778 # Whether or not to build shared libraries.
17779 build_libtool_libs=$enable_shared
17781 # Whether or not to build static libraries.
17782 build_old_libs=$enable_static
17784 # Whether or not to add -lc for building shared libraries.
17785 build_libtool_need_lc=$archive_cmds_need_lc_RC
17787 # Whether or not to disallow shared libs when runtime libs are static
17788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17790 # Whether or not to optimize for fast installation.
17791 fast_install=$enable_fast_install
17794 host_alias=$host_alias
17797 # An echo program that does not interpret backslashes.
17802 AR_FLAGS=$lt_AR_FLAGS
17807 # A language-specific compiler.
17810 # Is the compiler the GNU C compiler?
17816 # The linker used to build libraries.
17819 # Whether we need hard or soft links.
17822 # A BSD-compatible nm program.
17825 # A symbol stripping program
17828 # Used to examine libraries when file_magic_cmd begins "file"
17829 MAGIC_CMD=$MAGIC_CMD
17831 # Used on cygwin: DLL creation program.
17834 # Used on cygwin: object dumper.
17837 # Used on cygwin: assembler.
17840 # The name of the directory that contains temporary libtool files.
17843 # How to create reloadable object files.
17844 reload_flag=$lt_reload_flag
17845 reload_cmds=$lt_reload_cmds
17847 # How to pass a linker flag through the compiler.
17848 wl=$lt_lt_prog_compiler_wl_RC
17850 # Object file suffix (normally "o").
17851 objext="$ac_objext"
17853 # Old archive suffix (normally "a").
17856 # Shared library suffix (normally ".so").
17859 # Executable file suffix (normally "").
17862 # Additional compiler flags for building library objects.
17863 pic_flag=$lt_lt_prog_compiler_pic_RC
17866 # What is the maximum length of a command?
17867 max_cmd_len=$lt_cv_sys_max_cmd_len
17869 # Does compiler simultaneously support -c and -o options?
17870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17872 # Must we lock files when doing compilation ?
17873 need_locks=$lt_need_locks
17875 # Do we need the lib prefix for modules?
17876 need_lib_prefix=$need_lib_prefix
17878 # Do we need a version for libraries?
17879 need_version=$need_version
17881 # Whether dlopen is supported.
17882 dlopen_support=$enable_dlopen
17884 # Whether dlopen of programs is supported.
17885 dlopen_self=$enable_dlopen_self
17887 # Whether dlopen of statically linked programs is supported.
17888 dlopen_self_static=$enable_dlopen_self_static
17890 # Compiler flag to prevent dynamic linking.
17891 link_static_flag=$lt_lt_prog_compiler_static_RC
17893 # Compiler flag to turn off builtin functions.
17894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17896 # Compiler flag to allow reflexive dlopens.
17897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17899 # Compiler flag to generate shared objects directly from archives.
17900 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17902 # Compiler flag to generate thread-safe objects.
17903 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17905 # Library versioning type.
17906 version_type=$version_type
17908 # Format of library name prefix.
17909 libname_spec=$lt_libname_spec
17911 # List of archive names. First name is the real one, the rest are links.
17912 # The last name is the one that the linker finds with -lNAME.
17913 library_names_spec=$lt_library_names_spec
17915 # The coded name of the library, if different from the real name.
17916 soname_spec=$lt_soname_spec
17918 # Commands used to build and install an old-style archive.
17920 old_archive_cmds=$lt_old_archive_cmds_RC
17921 old_postinstall_cmds=$lt_old_postinstall_cmds
17922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17924 # Create an old-style archive from a shared archive.
17925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17927 # Create a temporary old-style archive to link instead of a shared archive.
17928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17930 # Commands used to build and install a shared archive.
17931 archive_cmds=$lt_archive_cmds_RC
17932 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17933 postinstall_cmds=$lt_postinstall_cmds
17934 postuninstall_cmds=$lt_postuninstall_cmds
17936 # Commands used to build a loadable module (assumed same as above if empty)
17937 module_cmds=$lt_module_cmds_RC
17938 module_expsym_cmds=$lt_module_expsym_cmds_RC
17940 # Commands to strip libraries.
17941 old_striplib=$lt_old_striplib
17942 striplib=$lt_striplib
17944 # Dependencies to place before the objects being linked to create a
17946 predep_objects=$lt_predep_objects_RC
17948 # Dependencies to place after the objects being linked to create a
17950 postdep_objects=$lt_postdep_objects_RC
17952 # Dependencies to place before the objects being linked to create a
17954 predeps=$lt_predeps_RC
17956 # Dependencies to place after the objects being linked to create a
17958 postdeps=$lt_postdeps_RC
17960 # The library search path used internally by the compiler when linking
17961 # a shared library.
17962 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17964 # Method to check whether dependent libraries are shared objects.
17965 deplibs_check_method=$lt_deplibs_check_method
17967 # Command to use when deplibs_check_method == file_magic.
17968 file_magic_cmd=$lt_file_magic_cmd
17970 # Flag that allows shared libraries with undefined symbols to be built.
17971 allow_undefined_flag=$lt_allow_undefined_flag_RC
17973 # Flag that forces no undefined symbols.
17974 no_undefined_flag=$lt_no_undefined_flag_RC
17976 # Commands used to finish a libtool library installation in a directory.
17977 finish_cmds=$lt_finish_cmds
17979 # Same as above, but a single script fragment to be evaled but not shown.
17980 finish_eval=$lt_finish_eval
17982 # Take the output of nm and produce a listing of raw symbols and C names.
17983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17985 # Transform the output of nm in a proper C declaration
17986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17988 # Transform the output of nm in a C name address pair
17989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17991 # This is the shared library runtime path variable.
17992 runpath_var=$runpath_var
17994 # This is the shared library path variable.
17995 shlibpath_var=$shlibpath_var
17997 # Is shlibpath searched before the hard-coded library search path?
17998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18000 # How to hardcode a shared library path into an executable.
18001 hardcode_action=$hardcode_action_RC
18003 # Whether we should hardcode library paths into libraries.
18004 hardcode_into_libs=$hardcode_into_libs
18006 # Flag to hardcode \$libdir into a binary during linking.
18007 # This must work even if \$libdir does not exist.
18008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18010 # If ld is used when linking, flag to hardcode \$libdir into
18011 # a binary during linking. This must work even if \$libdir does
18013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18015 # Whether we need a single -rpath flag with a separated argument.
18016 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18018 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18019 # resulting binary.
18020 hardcode_direct=$hardcode_direct_RC
18022 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18023 # resulting binary.
18024 hardcode_minus_L=$hardcode_minus_L_RC
18026 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18027 # the resulting binary.
18028 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18030 # Set to yes if building a shared library automatically hardcodes DIR into the library
18031 # and all subsequent libraries and executables linked against it.
18032 hardcode_automatic=$hardcode_automatic_RC
18034 # Variables whose values should be saved in libtool wrapper scripts and
18035 # restored at relink time.
18036 variables_saved_for_relink="$variables_saved_for_relink"
18038 # Whether libtool must link a program against all its dependency libraries.
18039 link_all_deplibs=$link_all_deplibs_RC
18041 # Compile-time system search path for libraries
18042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18044 # Run-time system search path for libraries
18045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18047 # Fix the shell variable \$srcfile for the compiler.
18048 fix_srcfile_path="$fix_srcfile_path_RC"
18050 # Set to yes if exported symbols are required.
18051 always_export_symbols=$always_export_symbols_RC
18053 # The commands to list exported symbols.
18054 export_symbols_cmds=$lt_export_symbols_cmds_RC
18056 # The commands to extract the exported symbol list from a shared archive.
18057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18059 # Symbols that should not be listed in the preloaded symbols.
18060 exclude_expsyms=$lt_exclude_expsyms_RC
18062 # Symbols that must always be exported.
18063 include_expsyms=$lt_include_expsyms_RC
18065 # ### END LIBTOOL TAG CONFIG: $tagname
18071 # If there is no Makefile yet, we rely on a make rule to execute
18072 # `config.status --recheck' to rerun these tests and create the
18073 # libtool script then.
18074 test -f Makefile && make "$ltmain"
18079 ac_cpp='$CPP $CPPFLAGS'
18080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18089 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18090 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18091 { (exit 1); exit 1; }; }
18095 # Append the new tag name to the list of available tags.
18096 if test -n "$tagname" ; then
18097 available_tags="$available_tags $tagname"
18103 # Now substitute the updated list of available tags.
18104 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18105 mv "${ofile}T" "$ofile"
18109 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18110 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18111 { (exit 1); exit 1; }; }
18117 # This can be used to rebuild libtool when needed
18118 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18120 # Always use our own libtool.
18121 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18123 # Prevent multiple expansion
18145 # Extract the first word of "pwd", so it can be a program name with args.
18146 set dummy pwd; ac_word=$2
18147 echo "$as_me:$LINENO: checking for $ac_word" >&5
18148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18149 if test "${ac_cv_path_RPWD+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18158 for as_dir in $PATH
18161 test -z "$as_dir" && as_dir=.
18162 for ac_exec_ext in '' $ac_executable_extensions; do
18163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18164 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18171 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18175 RPWD=$ac_cv_path_RPWD
18177 if test -n "$RPWD"; then
18178 echo "$as_me:$LINENO: result: $RPWD" >&5
18179 echo "${ECHO_T}$RPWD" >&6
18181 echo "$as_me:$LINENO: result: no" >&5
18182 echo "${ECHO_T}no" >&6
18185 if test ${RPWD} = "false"
18187 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18188 echo "$as_me: error: pwd required but not found" >&2;}
18189 { (exit 1); exit 1; }; }
18192 # Extract the first word of "ar", so it can be a program name with args.
18193 set dummy ar; ac_word=$2
18194 echo "$as_me:$LINENO: checking for $ac_word" >&5
18195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18196 if test "${ac_cv_path_AR+set}" = set; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18205 for as_dir in $PATH
18208 test -z "$as_dir" && as_dir=.
18209 for ac_exec_ext in '' $ac_executable_extensions; do
18210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18211 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18218 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18224 if test -n "$AR"; then
18225 echo "$as_me:$LINENO: result: $AR" >&5
18226 echo "${ECHO_T}$AR" >&6
18228 echo "$as_me:$LINENO: result: no" >&5
18229 echo "${ECHO_T}no" >&6
18232 if test ${AR} = "false"
18234 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18235 echo "$as_me: error: ar required but not found" >&2;}
18236 { (exit 1); exit 1; }; }
18239 # Extract the first word of "sed", so it can be a program name with args.
18240 set dummy sed; ac_word=$2
18241 echo "$as_me:$LINENO: checking for $ac_word" >&5
18242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18243 if test "${ac_cv_path_SED+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18252 for as_dir in $PATH
18255 test -z "$as_dir" && as_dir=.
18256 for ac_exec_ext in '' $ac_executable_extensions; do
18257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18258 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18265 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18269 SED=$ac_cv_path_SED
18271 if test -n "$SED"; then
18272 echo "$as_me:$LINENO: result: $SED" >&5
18273 echo "${ECHO_T}$SED" >&6
18275 echo "$as_me:$LINENO: result: no" >&5
18276 echo "${ECHO_T}no" >&6
18279 if test ${SED} = "false"
18281 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18282 echo "$as_me: error: sed required but not found" >&2;}
18283 { (exit 1); exit 1; }; }
18286 # Extract the first word of "rm", so it can be a program name with args.
18287 set dummy rm; ac_word=$2
18288 echo "$as_me:$LINENO: checking for $ac_word" >&5
18289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18290 if test "${ac_cv_path_RM+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18299 for as_dir in $PATH
18302 test -z "$as_dir" && as_dir=.
18303 for ac_exec_ext in '' $ac_executable_extensions; do
18304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18305 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18312 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18318 if test -n "$RM"; then
18319 echo "$as_me:$LINENO: result: $RM" >&5
18320 echo "${ECHO_T}$RM" >&6
18322 echo "$as_me:$LINENO: result: no" >&5
18323 echo "${ECHO_T}no" >&6
18326 if test ${RM} = "false"
18328 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18329 echo "$as_me: error: rm required but not found" >&2;}
18330 { (exit 1); exit 1; }; }
18333 # Extract the first word of "echo", so it can be a program name with args.
18334 set dummy echo; ac_word=$2
18335 echo "$as_me:$LINENO: checking for $ac_word" >&5
18336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18337 if test "${ac_cv_path_ECHO+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18346 for as_dir in $PATH
18349 test -z "$as_dir" && as_dir=.
18350 for ac_exec_ext in '' $ac_executable_extensions; do
18351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18352 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18359 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18363 ECHO=$ac_cv_path_ECHO
18365 if test -n "$ECHO"; then
18366 echo "$as_me:$LINENO: result: $ECHO" >&5
18367 echo "${ECHO_T}$ECHO" >&6
18369 echo "$as_me:$LINENO: result: no" >&5
18370 echo "${ECHO_T}no" >&6
18373 if test ${ECHO} = "false"
18375 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18376 echo "$as_me: error: echo required but not found" >&2;}
18377 { (exit 1); exit 1; }; }
18380 # Extract the first word of "mkdir", so it can be a program name with args.
18381 set dummy mkdir; ac_word=$2
18382 echo "$as_me:$LINENO: checking for $ac_word" >&5
18383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18384 if test "${ac_cv_path_MKDIR+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18393 for as_dir in $PATH
18396 test -z "$as_dir" && as_dir=.
18397 for ac_exec_ext in '' $ac_executable_extensions; do
18398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18399 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18406 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18410 MKDIR=$ac_cv_path_MKDIR
18412 if test -n "$MKDIR"; then
18413 echo "$as_me:$LINENO: result: $MKDIR" >&5
18414 echo "${ECHO_T}$MKDIR" >&6
18416 echo "$as_me:$LINENO: result: no" >&5
18417 echo "${ECHO_T}no" >&6
18420 if test ${MKDIR} = "false"
18422 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18423 echo "$as_me: error: mkdir required but not found" >&2;}
18424 { (exit 1); exit 1; }; }
18427 # Extract the first word of "date", so it can be a program name with args.
18428 set dummy date; ac_word=$2
18429 echo "$as_me:$LINENO: checking for $ac_word" >&5
18430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18431 if test "${ac_cv_path_DATE+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18436 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18440 for as_dir in $PATH
18443 test -z "$as_dir" && as_dir=.
18444 for ac_exec_ext in '' $ac_executable_extensions; do
18445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18446 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18453 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18457 DATE=$ac_cv_path_DATE
18459 if test -n "$DATE"; then
18460 echo "$as_me:$LINENO: result: $DATE" >&5
18461 echo "${ECHO_T}$DATE" >&6
18463 echo "$as_me:$LINENO: result: no" >&5
18464 echo "${ECHO_T}no" >&6
18467 if test ${DATE} = "false"
18469 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18470 echo "$as_me: error: date required but not found" >&2;}
18471 { (exit 1); exit 1; }; }
18474 # Extract the first word of "mv", so it can be a program name with args.
18475 set dummy mv; ac_word=$2
18476 echo "$as_me:$LINENO: checking for $ac_word" >&5
18477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18478 if test "${ac_cv_path_MV+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18487 for as_dir in $PATH
18490 test -z "$as_dir" && as_dir=.
18491 for ac_exec_ext in '' $ac_executable_extensions; do
18492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18493 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18500 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18506 if test -n "$MV"; then
18507 echo "$as_me:$LINENO: result: $MV" >&5
18508 echo "${ECHO_T}$MV" >&6
18510 echo "$as_me:$LINENO: result: no" >&5
18511 echo "${ECHO_T}no" >&6
18514 if test ${MV} = "false"
18516 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18517 echo "$as_me: error: mv required but not found" >&2;}
18518 { (exit 1); exit 1; }; }
18521 # Extract the first word of "dot", so it can be a program name with args.
18522 set dummy dot; ac_word=$2
18523 echo "$as_me:$LINENO: checking for $ac_word" >&5
18524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18525 if test "${ac_cv_path_DOT+set}" = set; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
18530 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18534 for as_dir in $PATH
18537 test -z "$as_dir" && as_dir=.
18538 for ac_exec_ext in '' $ac_executable_extensions; do
18539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18540 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18547 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18551 DOT=$ac_cv_path_DOT
18553 if test -n "$DOT"; then
18554 echo "$as_me:$LINENO: result: $DOT" >&5
18555 echo "${ECHO_T}$DOT" >&6
18557 echo "$as_me:$LINENO: result: no" >&5
18558 echo "${ECHO_T}no" >&6
18562 # Extract the first word of "etags", so it can be a program name with args.
18563 set dummy etags; ac_word=$2
18564 echo "$as_me:$LINENO: checking for $ac_word" >&5
18565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18566 if test "${ac_cv_path_ETAGS+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $PATH
18578 test -z "$as_dir" && as_dir=.
18579 for ac_exec_ext in '' $ac_executable_extensions; do
18580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18581 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18588 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18592 ETAGS=$ac_cv_path_ETAGS
18594 if test -n "$ETAGS"; then
18595 echo "$as_me:$LINENO: result: $ETAGS" >&5
18596 echo "${ECHO_T}$ETAGS" >&6
18598 echo "$as_me:$LINENO: result: no" >&5
18599 echo "${ECHO_T}no" >&6
18603 # Extract the first word of "python", so it can be a program name with args.
18604 set dummy python; ac_word=$2
18605 echo "$as_me:$LINENO: checking for $ac_word" >&5
18606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18607 if test "${ac_cv_path_PYTHON+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18612 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 for as_dir in $PATH
18619 test -z "$as_dir" && as_dir=.
18620 for ac_exec_ext in '' $ac_executable_extensions; do
18621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18629 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18633 PYTHON=$ac_cv_path_PYTHON
18635 if test -n "$PYTHON"; then
18636 echo "$as_me:$LINENO: result: $PYTHON" >&5
18637 echo "${ECHO_T}$PYTHON" >&6
18639 echo "$as_me:$LINENO: result: no" >&5
18640 echo "${ECHO_T}no" >&6
18643 if test ${PYTHON} = "false"
18645 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18646 echo "$as_me: WARNING: python required but not found" >&2;}
18649 # Extract the first word of "qmtest", so it can be a program name with args.
18650 set dummy qmtest; ac_word=$2
18651 echo "$as_me:$LINENO: checking for $ac_word" >&5
18652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18653 if test "${ac_cv_path_QMTEST+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18662 for as_dir in $PATH
18665 test -z "$as_dir" && as_dir=.
18666 for ac_exec_ext in '' $ac_executable_extensions; do
18667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18668 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18675 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18679 QMTEST=$ac_cv_path_QMTEST
18681 if test -n "$QMTEST"; then
18682 echo "$as_me:$LINENO: result: $QMTEST" >&5
18683 echo "${ECHO_T}$QMTEST" >&6
18685 echo "$as_me:$LINENO: result: no" >&5
18686 echo "${ECHO_T}no" >&6
18689 if test ${QMTEST} = "false"
18691 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
18692 echo "$as_me: WARNING: qmtest required but not found" >&2;}
18695 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18696 pymajor=`echo $pyversion | cut -d. -f1`
18697 pyminor=`echo $pyversion | cut -d. -f2`
18699 if test "$pymajor" -ge "2"
18701 if test "$pymajor" -eq "2"
18703 if test "$pyminor" -lt "2"
18705 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18706 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18710 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18711 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18718 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18719 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18720 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18723 ac_check_lib_save_LIBS=$LIBS
18725 cat >conftest.$ac_ext <<_ACEOF
18726 #line $LINENO "configure"
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18733 /* Override any gcc2 internal prototype to avoid an error. */
18737 /* We use char because int might match the return type of a gcc2
18738 builtin and then its argument prototype would still apply. */
18748 rm -f conftest.$ac_objext conftest$ac_exeext
18749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18750 (eval $ac_link) 2>&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -s conftest$ac_exeext'
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; }; then
18760 ac_cv_lib_elf_elf_begin=yes
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18765 ac_cv_lib_elf_elf_begin=no
18767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18768 LIBS=$ac_check_lib_save_LIBS
18770 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18771 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18772 if test $ac_cv_lib_elf_elf_begin = yes; then
18773 cat >>confdefs.h <<_ACEOF
18774 #define HAVE_LIBELF 1
18782 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18783 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18784 if test "${ac_cv_search_dlopen+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 ac_func_search_save_LIBS=$LIBS
18788 ac_cv_search_dlopen=no
18789 cat >conftest.$ac_ext <<_ACEOF
18790 #line $LINENO "configure"
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18797 /* Override any gcc2 internal prototype to avoid an error. */
18801 /* We use char because int might match the return type of a gcc2
18802 builtin and then its argument prototype would still apply. */
18812 rm -f conftest.$ac_objext conftest$ac_exeext
18813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18814 (eval $ac_link) 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -s conftest$ac_exeext'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18824 ac_cv_search_dlopen="none required"
18826 echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18831 if test "$ac_cv_search_dlopen" = no; then
18832 for ac_lib in dl; do
18833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18834 cat >conftest.$ac_ext <<_ACEOF
18835 #line $LINENO "configure"
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18842 /* Override any gcc2 internal prototype to avoid an error. */
18846 /* We use char because int might match the return type of a gcc2
18847 builtin and then its argument prototype would still apply. */
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18859 (eval $ac_link) 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } &&
18863 { ac_try='test -s conftest$ac_exeext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 ac_cv_search_dlopen="-l$ac_lib"
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18879 LIBS=$ac_func_search_save_LIBS
18881 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18882 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18883 if test "$ac_cv_search_dlopen" != no; then
18884 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18886 cat >>confdefs.h <<\_ACEOF
18887 #define HAVE_DLOPEN 1
18891 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18892 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18896 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18897 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18898 if test "${ac_cv_search_mallinfo+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 ac_func_search_save_LIBS=$LIBS
18902 ac_cv_search_mallinfo=no
18903 cat >conftest.$ac_ext <<_ACEOF
18904 #line $LINENO "configure"
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18911 /* Override any gcc2 internal prototype to avoid an error. */
18915 /* We use char because int might match the return type of a gcc2
18916 builtin and then its argument prototype would still apply. */
18926 rm -f conftest.$ac_objext conftest$ac_exeext
18927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928 (eval $ac_link) 2>&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try='test -s conftest$ac_exeext'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; }; then
18938 ac_cv_search_mallinfo="none required"
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18945 if test "$ac_cv_search_mallinfo" = no; then
18946 for ac_lib in malloc; do
18947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18948 cat >conftest.$ac_ext <<_ACEOF
18949 #line $LINENO "configure"
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18956 /* Override any gcc2 internal prototype to avoid an error. */
18960 /* We use char because int might match the return type of a gcc2
18961 builtin and then its argument prototype would still apply. */
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973 (eval $ac_link) 2>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
18977 { ac_try='test -s conftest$ac_exeext'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_cv_search_mallinfo="-l$ac_lib"
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18993 LIBS=$ac_func_search_save_LIBS
18995 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18996 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18997 if test "$ac_cv_search_mallinfo" != no; then
18998 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE_MALLINFO 1
19008 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19010 if test "${ac_cv_header_stdc+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 cat >conftest.$ac_ext <<_ACEOF
19014 #line $LINENO "configure"
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 #include <stdlib.h>
19021 #include <stdarg.h>
19022 #include <string.h>
19033 rm -f conftest.$ac_objext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035 (eval $ac_compile) 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
19039 { ac_try='test -s conftest.$ac_objext'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 ac_cv_header_stdc=yes
19047 echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19050 ac_cv_header_stdc=no
19052 rm -f conftest.$ac_objext conftest.$ac_ext
19054 if test $ac_cv_header_stdc = yes; then
19055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19056 cat >conftest.$ac_ext <<_ACEOF
19057 #line $LINENO "configure"
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19063 #include <string.h>
19066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19067 $EGREP "memchr" >/dev/null 2>&1; then
19070 ac_cv_header_stdc=no
19076 if test $ac_cv_header_stdc = yes; then
19077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19078 cat >conftest.$ac_ext <<_ACEOF
19079 #line $LINENO "configure"
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19085 #include <stdlib.h>
19088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19089 $EGREP "free" >/dev/null 2>&1; then
19092 ac_cv_header_stdc=no
19098 if test $ac_cv_header_stdc = yes; then
19099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19100 if test "$cross_compiling" = yes; then
19103 cat >conftest.$ac_ext <<_ACEOF
19104 #line $LINENO "configure"
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19111 #if ((' ' & 0x0FF) == 0x020)
19112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19115 # define ISLOWER(c) \
19116 (('a' <= (c) && (c) <= 'i') \
19117 || ('j' <= (c) && (c) <= 'r') \
19118 || ('s' <= (c) && (c) <= 'z'))
19119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19127 for (i = 0; i < 256; i++)
19128 if (XOR (islower (i), ISLOWER (i))
19129 || toupper (i) != TOUPPER (i))
19134 rm -f conftest$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136 (eval $ac_link) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19147 echo "$as_me: program exited with status $ac_status" >&5
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19151 ( exit $ac_status )
19152 ac_cv_header_stdc=no
19154 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19158 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19159 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19160 if test $ac_cv_header_stdc = yes; then
19162 cat >>confdefs.h <<\_ACEOF
19163 #define STDC_HEADERS 1
19168 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19169 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19170 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 cat >conftest.$ac_ext <<_ACEOF
19174 #line $LINENO "configure"
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180 #include <sys/types.h>
19181 #include <sys/wait.h>
19182 #ifndef WEXITSTATUS
19183 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19186 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19194 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19199 rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201 (eval $ac_compile) 2>&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -s conftest.$ac_objext'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 ac_cv_header_sys_wait_h=yes
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_cv_header_sys_wait_h=no
19218 rm -f conftest.$ac_objext conftest.$ac_ext
19220 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19221 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19222 if test $ac_cv_header_sys_wait_h = yes; then
19224 cat >>confdefs.h <<\_ACEOF
19225 #define HAVE_SYS_WAIT_H 1
19239 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19243 echo "$as_me:$LINENO: checking for $ac_header" >&5
19244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19251 # Is the header compilable?
19252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19254 cat >conftest.$ac_ext <<_ACEOF
19255 #line $LINENO "configure"
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19261 $ac_includes_default
19262 #include <$ac_header>
19264 rm -f conftest.$ac_objext
19265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19266 (eval $ac_compile) 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
19270 { ac_try='test -s conftest.$ac_objext'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 ac_header_compiler=yes
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 ac_header_compiler=no
19283 rm -f conftest.$ac_objext conftest.$ac_ext
19284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19285 echo "${ECHO_T}$ac_header_compiler" >&6
19287 # Is the header present?
19288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19290 cat >conftest.$ac_ext <<_ACEOF
19291 #line $LINENO "configure"
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 #include <$ac_header>
19299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19302 grep -v '^ *+' conftest.er1 >conftest.err
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } >/dev/null; then
19307 if test -s conftest.err; then
19308 ac_cpp_err=$ac_c_preproc_warn_flag
19315 if test -z "$ac_cpp_err"; then
19316 ac_header_preproc=yes
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19321 ac_header_preproc=no
19323 rm -f conftest.err conftest.$ac_ext
19324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19325 echo "${ECHO_T}$ac_header_preproc" >&6
19327 # So? What about this header?
19328 case $ac_header_compiler:$ac_header_preproc in
19330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19336 ## ------------------------------------ ##
19337 ## Report this to bug-autoconf@gnu.org. ##
19338 ## ------------------------------------ ##
19341 sed "s/^/$as_me: WARNING: /" >&2
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19352 ## ------------------------------------ ##
19353 ## Report this to bug-autoconf@gnu.org. ##
19354 ## ------------------------------------ ##
19357 sed "s/^/$as_me: WARNING: /" >&2
19360 echo "$as_me:$LINENO: checking for $ac_header" >&5
19361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 eval "$as_ac_Header=$ac_header_preproc"
19367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19372 cat >>confdefs.h <<_ACEOF
19373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19384 for ac_header in malloc.h sys/mman.h sys/resource.h
19386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19388 echo "$as_me:$LINENO: checking for $ac_header" >&5
19389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19396 # Is the header compilable?
19397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19399 cat >conftest.$ac_ext <<_ACEOF
19400 #line $LINENO "configure"
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19406 $ac_includes_default
19407 #include <$ac_header>
19409 rm -f conftest.$ac_objext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19411 (eval $ac_compile) 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try='test -s conftest.$ac_objext'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421 ac_header_compiler=yes
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 ac_header_compiler=no
19428 rm -f conftest.$ac_objext conftest.$ac_ext
19429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19430 echo "${ECHO_T}$ac_header_compiler" >&6
19432 # Is the header present?
19433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19435 cat >conftest.$ac_ext <<_ACEOF
19436 #line $LINENO "configure"
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19442 #include <$ac_header>
19444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19447 grep -v '^ *+' conftest.er1 >conftest.err
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } >/dev/null; then
19452 if test -s conftest.err; then
19453 ac_cpp_err=$ac_c_preproc_warn_flag
19460 if test -z "$ac_cpp_err"; then
19461 ac_header_preproc=yes
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19466 ac_header_preproc=no
19468 rm -f conftest.err conftest.$ac_ext
19469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19470 echo "${ECHO_T}$ac_header_preproc" >&6
19472 # So? What about this header?
19473 case $ac_header_compiler:$ac_header_preproc in
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19481 ## ------------------------------------ ##
19482 ## Report this to bug-autoconf@gnu.org. ##
19483 ## ------------------------------------ ##
19486 sed "s/^/$as_me: WARNING: /" >&2
19489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19497 ## ------------------------------------ ##
19498 ## Report this to bug-autoconf@gnu.org. ##
19499 ## ------------------------------------ ##
19502 sed "s/^/$as_me: WARNING: /" >&2
19505 echo "$as_me:$LINENO: checking for $ac_header" >&5
19506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 eval "$as_ac_Header=$ac_header_preproc"
19512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19517 cat >>confdefs.h <<_ACEOF
19518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19528 for ac_header in dlfcn.h link.h
19530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19532 echo "$as_me:$LINENO: checking for $ac_header" >&5
19533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19540 # Is the header compilable?
19541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19543 cat >conftest.$ac_ext <<_ACEOF
19544 #line $LINENO "configure"
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19550 $ac_includes_default
19551 #include <$ac_header>
19553 rm -f conftest.$ac_objext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19555 (eval $ac_compile) 2>&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -s conftest.$ac_objext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 ac_header_compiler=yes
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_header_compiler=no
19572 rm -f conftest.$ac_objext conftest.$ac_ext
19573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574 echo "${ECHO_T}$ac_header_compiler" >&6
19576 # Is the header present?
19577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19579 cat >conftest.$ac_ext <<_ACEOF
19580 #line $LINENO "configure"
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 #include <$ac_header>
19588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } >/dev/null; then
19596 if test -s conftest.err; then
19597 ac_cpp_err=$ac_c_preproc_warn_flag
19604 if test -z "$ac_cpp_err"; then
19605 ac_header_preproc=yes
19607 echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 ac_header_preproc=no
19612 rm -f conftest.err conftest.$ac_ext
19613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614 echo "${ECHO_T}$ac_header_preproc" >&6
19616 # So? What about this header?
19617 case $ac_header_compiler:$ac_header_preproc in
19619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19625 ## ------------------------------------ ##
19626 ## Report this to bug-autoconf@gnu.org. ##
19627 ## ------------------------------------ ##
19630 sed "s/^/$as_me: WARNING: /" >&2
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19641 ## ------------------------------------ ##
19642 ## Report this to bug-autoconf@gnu.org. ##
19643 ## ------------------------------------ ##
19646 sed "s/^/$as_me: WARNING: /" >&2
19649 echo "$as_me:$LINENO: checking for $ac_header" >&5
19650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 eval "$as_ac_Header=$ac_header_preproc"
19656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19661 cat >>confdefs.h <<_ACEOF
19662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19671 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19672 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19673 if test "${ac_cv_c_const+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 cat >conftest.$ac_ext <<_ACEOF
19677 #line $LINENO "configure"
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19687 /* FIXME: Include the comments suggested by Paul. */
19688 #ifndef __cplusplus
19689 /* Ultrix mips cc rejects this. */
19690 typedef int charset[2];
19692 /* SunOS 4.1.1 cc rejects this. */
19693 char const *const *ccp;
19695 /* NEC SVR4.0.2 mips cc rejects this. */
19696 struct point {int x, y;};
19697 static struct point const zero = {0,0};
19698 /* AIX XL C 1.02.0.0 rejects this.
19699 It does not let you subtract one const X* pointer from another in
19700 an arm of an if-expression whose if-part is not a constant
19702 const char *g = "string";
19703 ccp = &g + (g ? g-g : 0);
19704 /* HPUX 7.0 cc rejects these. */
19707 ccp = (char const *const *) p;
19708 { /* SCO 3.2v4 cc rejects this. */
19710 char const *s = 0 ? (char *) 0 : (char const *) 0;
19714 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19715 int x[] = {25, 17};
19716 const int *foo = &x[0];
19719 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19720 typedef const int *iptr;
19724 { /* AIX XL C 1.02.0.0 rejects this saying
19725 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19726 struct s { int j; const int *ap[3]; };
19727 struct s *b; b->j = 5;
19729 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19730 const int foo = 10;
19738 rm -f conftest.$ac_objext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -s conftest.$ac_objext'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19757 rm -f conftest.$ac_objext conftest.$ac_ext
19759 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19760 echo "${ECHO_T}$ac_cv_c_const" >&6
19761 if test $ac_cv_c_const = no; then
19763 cat >>confdefs.h <<\_ACEOF
19769 echo "$as_me:$LINENO: checking for inline" >&5
19770 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19771 if test "${ac_cv_c_inline+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 for ac_kw in inline __inline__ __inline; do
19776 cat >conftest.$ac_ext <<_ACEOF
19777 #line $LINENO "configure"
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 #ifndef __cplusplus
19785 static $ac_kw foo_t static_foo () {return 0; }
19786 $ac_kw foo_t foo () {return 0; }
19790 rm -f conftest.$ac_objext
19791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19792 (eval $ac_compile) 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -s conftest.$ac_objext'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_cv_c_inline=$ac_kw; break
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19808 rm -f conftest.$ac_objext conftest.$ac_ext
19812 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19813 echo "${ECHO_T}$ac_cv_c_inline" >&6
19814 case $ac_cv_c_inline in
19817 cat >>confdefs.h <<\_ACEOF
19821 *) cat >>confdefs.h <<_ACEOF
19822 #define inline $ac_cv_c_inline
19828 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19829 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19830 if test "${ac_cv_c_bigendian+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 # See if sys/param.h defines the BYTE_ORDER macro.
19834 cat >conftest.$ac_ext <<_ACEOF
19835 #line $LINENO "configure"
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 #include <sys/types.h>
19842 #include <sys/param.h>
19847 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19848 bogus endian macros
19855 rm -f conftest.$ac_objext
19856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19857 (eval $ac_compile) 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } &&
19861 { ac_try='test -s conftest.$ac_objext'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 # It does; now see whether it defined to BIG_ENDIAN or not.
19868 cat >conftest.$ac_ext <<_ACEOF
19869 #line $LINENO "configure"
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 #include <sys/types.h>
19876 #include <sys/param.h>
19881 #if BYTE_ORDER != BIG_ENDIAN
19889 rm -f conftest.$ac_objext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891 (eval $ac_compile) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } &&
19895 { ac_try='test -s conftest.$ac_objext'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; }; then
19901 ac_cv_c_bigendian=yes
19903 echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19906 ac_cv_c_bigendian=no
19908 rm -f conftest.$ac_objext conftest.$ac_ext
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19913 # It does not; compile a test program.
19914 if test "$cross_compiling" = yes; then
19915 # try to guess the endianness by grepping values into an object file
19916 ac_cv_c_bigendian=unknown
19917 cat >conftest.$ac_ext <<_ACEOF
19918 #line $LINENO "configure"
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19925 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19926 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19927 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19928 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19929 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19933 _ascii (); _ebcdic ();
19938 rm -f conftest.$ac_objext
19939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19940 (eval $ac_compile) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -s conftest.$ac_objext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19951 ac_cv_c_bigendian=yes
19953 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19954 if test "$ac_cv_c_bigendian" = unknown; then
19955 ac_cv_c_bigendian=no
19957 # finding both strings is unlikely to happen, but who knows?
19958 ac_cv_c_bigendian=unknown
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19966 rm -f conftest.$ac_objext conftest.$ac_ext
19968 cat >conftest.$ac_ext <<_ACEOF
19969 #line $LINENO "configure"
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19978 /* Are we little or big endian? From Harbison&Steele. */
19982 char c[sizeof (long)];
19985 exit (u.c[sizeof (long) - 1] == 1);
19988 rm -f conftest$ac_exeext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990 (eval $ac_link) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 ac_cv_c_bigendian=no
20001 echo "$as_me: program exited with status $ac_status" >&5
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ( exit $ac_status )
20006 ac_cv_c_bigendian=yes
20008 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20011 rm -f conftest.$ac_objext conftest.$ac_ext
20013 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20014 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20015 case $ac_cv_c_bigendian in
20018 cat >>confdefs.h <<\_ACEOF
20024 cat >>confdefs.h <<\_ACEOF
20025 #define ENDIAN_LITTLE
20029 { { echo "$as_me:$LINENO: error: unknown endianness
20030 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20031 echo "$as_me: error: unknown endianness
20032 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20033 { (exit 1); exit 1; }; } ;;
20037 echo "$as_me:$LINENO: checking for pid_t" >&5
20038 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20039 if test "${ac_cv_type_pid_t+set}" = set; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 cat >conftest.$ac_ext <<_ACEOF
20043 #line $LINENO "configure"
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 $ac_includes_default
20055 if (sizeof (pid_t))
20061 rm -f conftest.$ac_objext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } &&
20067 { ac_try='test -s conftest.$ac_objext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_type_pid_t=yes
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20078 ac_cv_type_pid_t=no
20080 rm -f conftest.$ac_objext conftest.$ac_ext
20082 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20083 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20084 if test $ac_cv_type_pid_t = yes; then
20088 cat >>confdefs.h <<_ACEOF
20094 echo "$as_me:$LINENO: checking for size_t" >&5
20095 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20096 if test "${ac_cv_type_size_t+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 cat >conftest.$ac_ext <<_ACEOF
20100 #line $LINENO "configure"
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106 $ac_includes_default
20112 if (sizeof (size_t))
20118 rm -f conftest.$ac_objext
20119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20120 (eval $ac_compile) 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } &&
20124 { ac_try='test -s conftest.$ac_objext'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_cv_type_size_t=yes
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20135 ac_cv_type_size_t=no
20137 rm -f conftest.$ac_objext conftest.$ac_ext
20139 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20140 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20141 if test $ac_cv_type_size_t = yes; then
20145 cat >>confdefs.h <<_ACEOF
20146 #define size_t unsigned
20151 echo "$as_me:$LINENO: checking for int64_t" >&5
20152 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20153 if test "${ac_cv_type_int64_t+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 cat >conftest.$ac_ext <<_ACEOF
20157 #line $LINENO "configure"
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 $ac_includes_default
20169 if (sizeof (int64_t))
20175 rm -f conftest.$ac_objext
20176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20177 (eval $ac_compile) 2>&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -s conftest.$ac_objext'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; }; then
20187 ac_cv_type_int64_t=yes
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 ac_cv_type_int64_t=no
20194 rm -f conftest.$ac_objext conftest.$ac_ext
20196 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20197 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20198 if test $ac_cv_type_int64_t = yes; then
20200 cat >>confdefs.h <<_ACEOF
20201 #define HAVE_INT64_T 1
20206 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20207 echo "$as_me: error: Type int64_t required but not found" >&2;}
20208 { (exit 1); exit 1; }; }
20211 echo "$as_me:$LINENO: checking for uint64_t" >&5
20212 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20213 if test "${ac_cv_type_uint64_t+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20217 #line $LINENO "configure"
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 $ac_includes_default
20227 if ((uint64_t *) 0)
20229 if (sizeof (uint64_t))
20235 rm -f conftest.$ac_objext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237 (eval $ac_compile) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_type_uint64_t=yes
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ac_cv_type_uint64_t=no
20254 rm -f conftest.$ac_objext conftest.$ac_ext
20256 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20257 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20258 if test $ac_cv_type_uint64_t = yes; then
20260 cat >>confdefs.h <<_ACEOF
20261 #define HAVE_UINT64_T 1
20266 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20267 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20268 { (exit 1); exit 1; }; }
20271 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20272 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20273 if test "${ac_cv_header_time+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 cat >conftest.$ac_ext <<_ACEOF
20277 #line $LINENO "configure"
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 #include <sys/types.h>
20284 #include <sys/time.h>
20290 if ((struct tm *) 0)
20296 rm -f conftest.$ac_objext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298 (eval $ac_compile) 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try='test -s conftest.$ac_objext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 ac_cv_header_time=yes
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_cv_header_time=no
20315 rm -f conftest.$ac_objext conftest.$ac_ext
20317 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20318 echo "${ECHO_T}$ac_cv_header_time" >&6
20319 if test $ac_cv_header_time = yes; then
20321 cat >>confdefs.h <<\_ACEOF
20322 #define TIME_WITH_SYS_TIME 1
20327 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20328 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20329 if test "${ac_cv_struct_tm+set}" = set; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 cat >conftest.$ac_ext <<_ACEOF
20333 #line $LINENO "configure"
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20339 #include <sys/types.h>
20345 struct tm *tp; tp->tm_sec;
20350 rm -f conftest.$ac_objext
20351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20352 (eval $ac_compile) 2>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -s conftest.$ac_objext'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_struct_tm=time.h
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_struct_tm=sys/time.h
20369 rm -f conftest.$ac_objext conftest.$ac_ext
20371 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20372 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20373 if test $ac_cv_struct_tm = sys/time.h; then
20375 cat >>confdefs.h <<\_ACEOF
20376 #define TM_IN_SYS_TIME 1
20386 ac_cpp='$CPP $CPPFLAGS'
20387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20391 if test "$cross_compiling" = yes; then
20392 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20393 See \`config.log' for more details." >&5
20394 echo "$as_me: error: cannot run test program while cross compiling
20395 See \`config.log' for more details." >&2;}
20396 { (exit 1); exit 1; }; }
20398 cat >conftest.$ac_ext <<_ACEOF
20399 #line $LINENO "configure"
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20406 #include <stdlib.h>
20411 volatile double A, B;
20415 sprintf(Buffer, "%a", A);
20419 if (A != 0x1.999999999999ap-4)
20426 rm -f conftest$ac_exeext
20427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20428 (eval $ac_link) 2>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20439 echo "$as_me: program exited with status $ac_status" >&5
20440 echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.$ac_ext >&5
20443 ( exit $ac_status )
20446 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20449 ac_cpp='$CPP $CPPFLAGS'
20450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20454 if test "$ac_c_printf_a" = "yes"; then
20456 cat >>confdefs.h <<\_ACEOF
20457 #define HAVE_PRINTF_A 1
20463 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20464 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20465 if test "${ac_cv_cxx_namespaces+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 ac_cpp='$CXXCPP $CPPFLAGS'
20472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20476 cat >conftest.$ac_ext <<_ACEOF
20477 #line $LINENO "configure"
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 namespace Outer { namespace Inner { int i = 0; }}
20487 using namespace Outer::Inner; return i;
20492 rm -f conftest.$ac_objext
20493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20494 (eval $ac_compile) 2>&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -s conftest.$ac_objext'
20499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500 (eval $ac_try) 2>&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; }; then
20504 ac_cv_cxx_namespaces=yes
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 ac_cv_cxx_namespaces=no
20511 rm -f conftest.$ac_objext conftest.$ac_ext
20513 ac_cpp='$CPP $CPPFLAGS'
20514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20520 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20521 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20522 if test "$ac_cv_cxx_namespaces" = yes; then
20524 cat >>confdefs.h <<\_ACEOF
20525 #define HAVE_NAMESPACES
20530 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20531 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20532 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 ac_cpp='$CXXCPP $CPPFLAGS'
20540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20544 cat >conftest.$ac_ext <<_ACEOF
20545 #line $LINENO "configure"
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 #include <ext/hash_map>
20552 #ifdef HAVE_NAMESPACES
20553 using namespace std;
20558 hash_map<int, int> t;
20563 rm -f conftest.$ac_objext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20565 (eval $ac_compile) 2>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try='test -s conftest.$ac_objext'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
20575 ac_cv_cxx_have_std_ext_hash_map=yes
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 ac_cv_cxx_have_std_ext_hash_map=no
20582 rm -f conftest.$ac_objext conftest.$ac_ext
20584 ac_cpp='$CPP $CPPFLAGS'
20585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20590 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20591 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20592 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
20594 cat >>confdefs.h <<\_ACEOF
20595 #define HAVE_STD_EXT_HASH_MAP
20599 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20600 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20601 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 ac_cpp='$CXXCPP $CPPFLAGS'
20609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20613 cat >conftest.$ac_ext <<_ACEOF
20614 #line $LINENO "configure"
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 #include <ext/hash_map>
20621 #ifdef HAVE_NAMESPACES
20622 using namespace __gnu_cxx;
20627 hash_map<int,int> t;
20632 rm -f conftest.$ac_objext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20634 (eval $ac_compile) 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -s conftest.$ac_objext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 ac_cv_cxx_have_gnu_ext_hash_map=yes
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 ac_cv_cxx_have_gnu_ext_hash_map=no
20651 rm -f conftest.$ac_objext conftest.$ac_ext
20653 ac_cpp='$CPP $CPPFLAGS'
20654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20659 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20660 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20661 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
20663 cat >>confdefs.h <<\_ACEOF
20664 #define HAVE_GNU_EXT_HASH_MAP
20668 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20669 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20670 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 ac_cpp='$CXXCPP $CPPFLAGS'
20678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20682 cat >conftest.$ac_ext <<_ACEOF
20683 #line $LINENO "configure"
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 #include <hash_map>
20693 hash_map<int,int> t;
20698 rm -f conftest.$ac_objext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700 (eval $ac_compile) 2>&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } &&
20704 { ac_try='test -s conftest.$ac_objext'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; }; then
20710 ac_cv_cxx_have_global_hash_map=yes
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 ac_cv_cxx_have_global_hash_map=no
20717 rm -f conftest.$ac_objext conftest.$ac_ext
20719 ac_cpp='$CPP $CPPFLAGS'
20720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20725 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20726 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20727 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
20729 cat >>confdefs.h <<\_ACEOF
20730 #define HAVE_GLOBAL_HASH_MAP
20734 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20735 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20736 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20743 ac_cpp='$CXXCPP $CPPFLAGS'
20744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20748 cat >conftest.$ac_ext <<_ACEOF
20749 #line $LINENO "configure"
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20755 #include <ext/hash_set>
20756 #ifdef HAVE_NAMESPACES
20757 using namespace std;
20767 rm -f conftest.$ac_objext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20769 (eval $ac_compile) 2>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -s conftest.$ac_objext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_cv_cxx_have_std_ext_hash_set=yes
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ac_cv_cxx_have_std_ext_hash_set=no
20786 rm -f conftest.$ac_objext conftest.$ac_ext
20788 ac_cpp='$CPP $CPPFLAGS'
20789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20794 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20795 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20796 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20798 cat >>confdefs.h <<\_ACEOF
20799 #define HAVE_STD_EXT_HASH_SET
20803 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20804 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20805 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 ac_cpp='$CXXCPP $CPPFLAGS'
20813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20817 cat >conftest.$ac_ext <<_ACEOF
20818 #line $LINENO "configure"
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 #include <ext/hash_set>
20825 #ifdef HAVE_NAMESPACES
20826 using namespace __gnu_cxx;
20836 rm -f conftest.$ac_objext
20837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20838 (eval $ac_compile) 2>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
20842 { ac_try='test -s conftest.$ac_objext'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; }; then
20848 ac_cv_cxx_have_gnu_ext_hash_set=yes
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20853 ac_cv_cxx_have_gnu_ext_hash_set=no
20855 rm -f conftest.$ac_objext conftest.$ac_ext
20857 ac_cpp='$CPP $CPPFLAGS'
20858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20864 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20865 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20867 cat >>confdefs.h <<\_ACEOF
20868 #define HAVE_GNU_EXT_HASH_SET
20872 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20873 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20874 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 ac_cpp='$CXXCPP $CPPFLAGS'
20882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20886 cat >conftest.$ac_ext <<_ACEOF
20887 #line $LINENO "configure"
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20893 #include <hash_set>
20897 hash_set<int> t; return 0;
20902 rm -f conftest.$ac_objext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20904 (eval $ac_compile) 2>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } &&
20908 { ac_try='test -s conftest.$ac_objext'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 ac_cv_cxx_have_global_hash_set=yes
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_cv_cxx_have_global_hash_set=no
20921 rm -f conftest.$ac_objext conftest.$ac_ext
20923 ac_cpp='$CPP $CPPFLAGS'
20924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20929 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20930 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20931 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
20933 cat >>confdefs.h <<\_ACEOF
20934 #define HAVE_GLOBAL_HASH_SET
20938 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20939 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20940 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 ac_cpp='$CXXCPP $CPPFLAGS'
20948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20952 cat >conftest.$ac_ext <<_ACEOF
20953 #line $LINENO "configure"
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20959 #include <ext/slist>
20960 #ifdef HAVE_NAMESPACES
20961 using namespace std;
20966 slist<int> s; return 0;
20971 rm -f conftest.$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973 (eval $ac_compile) 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -s conftest.$ac_objext'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_cxx_have_ext_slist=std
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20988 ac_cv_cxx_have_ext_slist=no
20990 rm -f conftest.$ac_objext conftest.$ac_ext
20991 cat >conftest.$ac_ext <<_ACEOF
20992 #line $LINENO "configure"
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h. */
20998 #include <ext/slist>
20999 #ifdef HAVE_NAMESPACES
21000 using namespace __gnu_cxx;
21005 slist<int> s; return 0;
21010 rm -f conftest.$ac_objext
21011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21012 (eval $ac_compile) 2>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
21016 { ac_try='test -s conftest.$ac_objext'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_cxx_have_ext_slist=gnu
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21027 ac_cv_cxx_have_ext_slist=no
21029 rm -f conftest.$ac_objext conftest.$ac_ext
21032 ac_cpp='$CPP $CPPFLAGS'
21033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21039 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21040 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21041 if test "$ac_cv_cxx_have_ext_slist" = std; then
21043 cat >>confdefs.h <<\_ACEOF
21044 #define HAVE_EXT_SLIST std
21048 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21050 cat >>confdefs.h <<\_ACEOF
21051 #define HAVE_EXT_SLIST gnu
21056 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21057 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21058 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 ac_cpp='$CXXCPP $CPPFLAGS'
21066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21070 cat >conftest.$ac_ext <<_ACEOF
21071 #line $LINENO "configure"
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <iterator>
21078 #ifdef HAVE_NAMESPACES
21079 using namespace std;
21084 iterator<int,int,int> t; return 0;
21089 rm -f conftest.$ac_objext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091 (eval $ac_compile) 2>&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } &&
21095 { ac_try='test -s conftest.$ac_objext'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
21101 ac_cv_cxx_have_std_iterator=yes
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_cv_cxx_have_std_iterator=no
21108 rm -f conftest.$ac_objext conftest.$ac_ext
21110 ac_cpp='$CPP $CPPFLAGS'
21111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21117 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21118 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21119 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21121 cat >>confdefs.h <<\_ACEOF
21122 #define HAVE_STD_ITERATOR
21127 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21128 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21129 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21136 ac_cpp='$CXXCPP $CPPFLAGS'
21137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21141 cat >conftest.$ac_ext <<_ACEOF
21142 #line $LINENO "configure"
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 #include <iterator>
21149 #ifdef HAVE_NAMESPACES
21150 using namespace std;
21155 bidirectional_iterator<int,int> t; return 0;
21160 rm -f conftest.$ac_objext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21162 (eval $ac_compile) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } &&
21166 { ac_try='test -s conftest.$ac_objext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ac_cv_cxx_have_bi_iterator=yes
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ac_cv_cxx_have_bi_iterator=no
21179 rm -f conftest.$ac_objext conftest.$ac_ext
21181 ac_cpp='$CPP $CPPFLAGS'
21182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21188 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21189 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21190 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21192 cat >>confdefs.h <<\_ACEOF
21193 #define HAVE_BI_ITERATOR
21198 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21199 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21200 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 ac_cpp='$CXXCPP $CPPFLAGS'
21208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21212 cat >conftest.$ac_ext <<_ACEOF
21213 #line $LINENO "configure"
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 #include <iterator>
21220 #ifdef HAVE_NAMESPACES
21221 using namespace std;
21226 forward_iterator<int,int> t; return 0;
21231 rm -f conftest.$ac_objext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233 (eval $ac_compile) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -s conftest.$ac_objext'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 ac_cv_cxx_have_fwd_iterator=yes
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 ac_cv_cxx_have_fwd_iterator=no
21250 rm -f conftest.$ac_objext conftest.$ac_ext
21252 ac_cpp='$CPP $CPPFLAGS'
21253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21260 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21261 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21263 cat >>confdefs.h <<\_ACEOF
21264 #define HAVE_FWD_ITERATOR
21270 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21271 # for constant arguments. Useless!
21272 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21273 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21274 if test "${ac_cv_working_alloca_h+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 cat >conftest.$ac_ext <<_ACEOF
21278 #line $LINENO "configure"
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 #include <alloca.h>
21288 char *p = (char *) alloca (2 * sizeof (int));
21293 rm -f conftest.$ac_objext conftest$ac_exeext
21294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21295 (eval $ac_link) 2>&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
21299 { ac_try='test -s conftest$ac_exeext'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 ac_cv_working_alloca_h=yes
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ac_cv_working_alloca_h=no
21312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21314 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21315 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21316 if test $ac_cv_working_alloca_h = yes; then
21318 cat >>confdefs.h <<\_ACEOF
21319 #define HAVE_ALLOCA_H 1
21324 echo "$as_me:$LINENO: checking for alloca" >&5
21325 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21326 if test "${ac_cv_func_alloca_works+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21329 cat >conftest.$ac_ext <<_ACEOF
21330 #line $LINENO "configure"
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21337 # define alloca __builtin_alloca
21340 # include <malloc.h>
21341 # define alloca _alloca
21344 # include <alloca.h>
21349 # ifndef alloca /* predefined by HP cc +Olibcalls */
21360 char *p = (char *) alloca (1);
21365 rm -f conftest.$ac_objext conftest$ac_exeext
21366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21367 (eval $ac_link) 2>&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } &&
21371 { ac_try='test -s conftest$ac_exeext'
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ac_cv_func_alloca_works=yes
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 ac_cv_func_alloca_works=no
21384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21386 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21387 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21389 if test $ac_cv_func_alloca_works = yes; then
21391 cat >>confdefs.h <<\_ACEOF
21392 #define HAVE_ALLOCA 1
21396 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21397 # that cause trouble. Some versions do not even contain alloca or
21398 # contain a buggy version. If you still want to use their alloca,
21399 # use ar to extract alloca.o from them instead of compiling alloca.c.
21401 ALLOCA=alloca.$ac_objext
21403 cat >>confdefs.h <<\_ACEOF
21408 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21409 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21410 if test "${ac_cv_os_cray+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 cat >conftest.$ac_ext <<_ACEOF
21414 #line $LINENO "configure"
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 #if defined(CRAY) && ! defined(CRAY2)
21427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21428 $EGREP "webecray" >/dev/null 2>&1; then
21436 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21437 echo "${ECHO_T}$ac_cv_os_cray" >&6
21438 if test $ac_cv_os_cray = yes; then
21439 for ac_func in _getb67 GETB67 getb67; do
21440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21441 echo "$as_me:$LINENO: checking for $ac_func" >&5
21442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21443 if eval "test \"\${$as_ac_var+set}\" = set"; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 cat >conftest.$ac_ext <<_ACEOF
21447 #line $LINENO "configure"
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 /* System header to define __stub macros and hopefully few prototypes,
21454 which can conflict with char $ac_func (); below.
21455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21456 <limits.h> exists even on freestanding compilers. */
21458 # include <limits.h>
21460 # include <assert.h>
21462 /* Override any gcc2 internal prototype to avoid an error. */
21467 /* We use char because int might match the return type of a gcc2
21468 builtin and then its argument prototype would still apply. */
21470 /* The GNU C library defines this for functions which it implements
21471 to always fail with ENOSYS. Some functions are actually named
21472 something starting with __ and the normal name is an alias. */
21473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21476 char (*f) () = $ac_func;
21485 return f != $ac_func;
21490 rm -f conftest.$ac_objext conftest$ac_exeext
21491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21492 (eval $ac_link) 2>&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } &&
21496 { ac_try='test -s conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 eval "$as_ac_var=yes"
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 eval "$as_ac_var=no"
21509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21513 if test `eval echo '${'$as_ac_var'}'` = yes; then
21515 cat >>confdefs.h <<_ACEOF
21516 #define CRAY_STACKSEG_END $ac_func
21525 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21526 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21527 if test "${ac_cv_c_stack_direction+set}" = set; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21530 if test "$cross_compiling" = yes; then
21531 ac_cv_c_stack_direction=0
21533 cat >conftest.$ac_ext <<_ACEOF
21534 #line $LINENO "configure"
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21541 find_stack_direction ()
21543 static char *addr = 0;
21548 return find_stack_direction ();
21551 return (&dummy > addr) ? 1 : -1;
21557 exit (find_stack_direction () < 0);
21560 rm -f conftest$ac_exeext
21561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21562 (eval $ac_link) 2>&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_c_stack_direction=1
21573 echo "$as_me: program exited with status $ac_status" >&5
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ( exit $ac_status )
21578 ac_cv_c_stack_direction=-1
21580 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21583 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21584 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21586 cat >>confdefs.h <<_ACEOF
21587 #define STACK_DIRECTION $ac_cv_c_stack_direction
21593 if test $ac_cv_c_compiler_gnu = yes; then
21594 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21595 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21596 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21597 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 ac_pattern="Autoconf.*'x'"
21600 cat >conftest.$ac_ext <<_ACEOF
21601 #line $LINENO "configure"
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21611 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21612 ac_cv_prog_gcc_traditional=yes
21614 ac_cv_prog_gcc_traditional=no
21619 if test $ac_cv_prog_gcc_traditional = no; then
21620 cat >conftest.$ac_ext <<_ACEOF
21621 #line $LINENO "configure"
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 #include <termio.h>
21630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21631 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21632 ac_cv_prog_gcc_traditional=yes
21638 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21639 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21640 if test $ac_cv_prog_gcc_traditional = yes; then
21641 CC="$CC -traditional"
21645 echo "$as_me:$LINENO: checking for working memcmp" >&5
21646 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21647 if test "${ac_cv_func_memcmp_working+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 if test "$cross_compiling" = yes; then
21651 ac_cv_func_memcmp_working=no
21653 cat >conftest.$ac_ext <<_ACEOF
21654 #line $LINENO "configure"
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21665 /* Some versions of memcmp are not 8-bit clean. */
21666 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21667 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21670 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21671 or more and with at least one buffer not starting on a 4-byte boundary.
21672 William Lewis provided this test program. */
21677 for (i = 0; i < 4; i++)
21681 strcpy (a, "--------01111111");
21682 strcpy (b, "--------10000000");
21683 if (memcmp (a, b, 16) >= 0)
21693 rm -f conftest$ac_exeext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21695 (eval $ac_link) 2>&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700 (eval $ac_try) 2>&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; }; then
21704 ac_cv_func_memcmp_working=yes
21706 echo "$as_me: program exited with status $ac_status" >&5
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 ( exit $ac_status )
21711 ac_cv_func_memcmp_working=no
21713 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21716 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21717 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21718 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21722 for ac_header in stdlib.h unistd.h
21724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21726 echo "$as_me:$LINENO: checking for $ac_header" >&5
21727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21734 # Is the header compilable?
21735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21737 cat >conftest.$ac_ext <<_ACEOF
21738 #line $LINENO "configure"
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 $ac_includes_default
21745 #include <$ac_header>
21747 rm -f conftest.$ac_objext
21748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21749 (eval $ac_compile) 2>&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } &&
21753 { ac_try='test -s conftest.$ac_objext'
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759 ac_header_compiler=yes
21761 echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21764 ac_header_compiler=no
21766 rm -f conftest.$ac_objext conftest.$ac_ext
21767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21768 echo "${ECHO_T}$ac_header_compiler" >&6
21770 # Is the header present?
21771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21773 cat >conftest.$ac_ext <<_ACEOF
21774 #line $LINENO "configure"
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 #include <$ac_header>
21782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21785 grep -v '^ *+' conftest.er1 >conftest.err
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } >/dev/null; then
21790 if test -s conftest.err; then
21791 ac_cpp_err=$ac_c_preproc_warn_flag
21798 if test -z "$ac_cpp_err"; then
21799 ac_header_preproc=yes
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21804 ac_header_preproc=no
21806 rm -f conftest.err conftest.$ac_ext
21807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21808 echo "${ECHO_T}$ac_header_preproc" >&6
21810 # So? What about this header?
21811 case $ac_header_compiler:$ac_header_preproc in
21813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21819 ## ------------------------------------ ##
21820 ## Report this to bug-autoconf@gnu.org. ##
21821 ## ------------------------------------ ##
21824 sed "s/^/$as_me: WARNING: /" >&2
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21835 ## ------------------------------------ ##
21836 ## Report this to bug-autoconf@gnu.org. ##
21837 ## ------------------------------------ ##
21840 sed "s/^/$as_me: WARNING: /" >&2
21843 echo "$as_me:$LINENO: checking for $ac_header" >&5
21844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21848 eval "$as_ac_Header=$ac_header_preproc"
21850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21855 cat >>confdefs.h <<_ACEOF
21856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21864 for ac_func in getpagesize
21866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21867 echo "$as_me:$LINENO: checking for $ac_func" >&5
21868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21869 if eval "test \"\${$as_ac_var+set}\" = set"; then
21870 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 cat >conftest.$ac_ext <<_ACEOF
21873 #line $LINENO "configure"
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 /* System header to define __stub macros and hopefully few prototypes,
21880 which can conflict with char $ac_func (); below.
21881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21882 <limits.h> exists even on freestanding compilers. */
21884 # include <limits.h>
21886 # include <assert.h>
21888 /* Override any gcc2 internal prototype to avoid an error. */
21893 /* We use char because int might match the return type of a gcc2
21894 builtin and then its argument prototype would still apply. */
21896 /* The GNU C library defines this for functions which it implements
21897 to always fail with ENOSYS. Some functions are actually named
21898 something starting with __ and the normal name is an alias. */
21899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21902 char (*f) () = $ac_func;
21911 return f != $ac_func;
21916 rm -f conftest.$ac_objext conftest$ac_exeext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918 (eval $ac_link) 2>&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } &&
21922 { ac_try='test -s conftest$ac_exeext'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21928 eval "$as_ac_var=yes"
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 eval "$as_ac_var=no"
21935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21939 if test `eval echo '${'$as_ac_var'}'` = yes; then
21940 cat >>confdefs.h <<_ACEOF
21941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21947 echo "$as_me:$LINENO: checking for working mmap" >&5
21948 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21949 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 if test "$cross_compiling" = yes; then
21953 ac_cv_func_mmap_fixed_mapped=no
21955 cat >conftest.$ac_ext <<_ACEOF
21956 #line $LINENO "configure"
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 $ac_includes_default
21963 /* malloc might have been renamed as rpl_malloc. */
21966 /* Thanks to Mike Haertel and Jim Avera for this test.
21967 Here is a matrix of mmap possibilities:
21968 mmap private not fixed
21969 mmap private fixed at somewhere currently unmapped
21970 mmap private fixed at somewhere already mapped
21971 mmap shared not fixed
21972 mmap shared fixed at somewhere currently unmapped
21973 mmap shared fixed at somewhere already mapped
21974 For private mappings, we should verify that changes cannot be read()
21975 back from the file, nor mmap's back from the file at a different
21976 address. (There have been systems where private was not correctly
21977 implemented like the infamous i386 svr4.0, and systems where the
21978 VM page cache was not coherent with the file system buffer cache
21979 like early versions of FreeBSD and possibly contemporary NetBSD.)
21980 For shared mappings, we should conversely verify that changes get
21981 propagated back to all the places they're supposed to be.
21983 Grep wants private fixed already mapped.
21984 The main things grep needs to know about mmap are:
21985 * does it exist and is it safe to write into the mmap'd area
21986 * how to use it (BSD variants) */
21989 #include <sys/mman.h>
21991 #if !STDC_HEADERS && !HAVE_STDLIB_H
21995 /* This mess was copied from the GNU getpagesize.h. */
21996 #if !HAVE_GETPAGESIZE
21997 /* Assume that all systems that can run configure have sys/param.h. */
21998 # if !HAVE_SYS_PARAM_H
21999 # define HAVE_SYS_PARAM_H 1
22002 # ifdef _SC_PAGESIZE
22003 # define getpagesize() sysconf(_SC_PAGESIZE)
22004 # else /* no _SC_PAGESIZE */
22005 # if HAVE_SYS_PARAM_H
22006 # include <sys/param.h>
22007 # ifdef EXEC_PAGESIZE
22008 # define getpagesize() EXEC_PAGESIZE
22009 # else /* no EXEC_PAGESIZE */
22011 # define getpagesize() NBPG * CLSIZE
22014 # endif /* no CLSIZE */
22015 # else /* no NBPG */
22017 # define getpagesize() NBPC
22018 # else /* no NBPC */
22020 # define getpagesize() PAGESIZE
22021 # endif /* PAGESIZE */
22022 # endif /* no NBPC */
22023 # endif /* no NBPG */
22024 # endif /* no EXEC_PAGESIZE */
22025 # else /* no HAVE_SYS_PARAM_H */
22026 # define getpagesize() 8192 /* punt totally */
22027 # endif /* no HAVE_SYS_PARAM_H */
22028 # endif /* no _SC_PAGESIZE */
22030 #endif /* no HAVE_GETPAGESIZE */
22035 char *data, *data2, *data3;
22039 pagesize = getpagesize ();
22041 /* First, make a file with some known garbage in it. */
22042 data = (char *) malloc (pagesize);
22045 for (i = 0; i < pagesize; ++i)
22046 *(data + i) = rand ();
22048 fd = creat ("conftest.mmap", 0600);
22051 if (write (fd, data, pagesize) != pagesize)
22055 /* Next, try to mmap the file at a fixed address which already has
22056 something else allocated at it. If we can, also make sure that
22057 we see the same garbage. */
22058 fd = open ("conftest.mmap", O_RDWR);
22061 data2 = (char *) malloc (2 * pagesize);
22064 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22065 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22066 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22068 for (i = 0; i < pagesize; ++i)
22069 if (*(data + i) != *(data2 + i))
22072 /* Finally, make sure that changes to the mapped area do not
22073 percolate back to the file as seen by read(). (This is a bug on
22074 some variants of i386 svr4.0.) */
22075 for (i = 0; i < pagesize; ++i)
22076 *(data2 + i) = *(data2 + i) + 1;
22077 data3 = (char *) malloc (pagesize);
22080 if (read (fd, data3, pagesize) != pagesize)
22082 for (i = 0; i < pagesize; ++i)
22083 if (*(data + i) != *(data3 + i))
22089 rm -f conftest$ac_exeext
22090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22091 (eval $ac_link) 2>&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; }; then
22100 ac_cv_func_mmap_fixed_mapped=yes
22102 echo "$as_me: program exited with status $ac_status" >&5
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ( exit $ac_status )
22107 ac_cv_func_mmap_fixed_mapped=no
22109 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22112 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22113 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22114 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22116 cat >>confdefs.h <<\_ACEOF
22117 #define HAVE_MMAP 1
22121 rm -f conftest.mmap
22123 echo "$as_me:$LINENO: checking for mmap of files" >&5
22124 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22125 if test "${ac_cv_func_mmap_file+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22131 ac_cpp='$CPP $CPPFLAGS'
22132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22136 if test "$cross_compiling" = yes; then
22137 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22138 See \`config.log' for more details." >&5
22139 echo "$as_me: error: cannot run test program while cross compiling
22140 See \`config.log' for more details." >&2;}
22141 { (exit 1); exit 1; }; }
22143 cat >conftest.$ac_ext <<_ACEOF
22144 #line $LINENO "configure"
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22151 #ifdef HAVE_SYS_TYPES_H
22152 #include <sys/types.h>
22155 #ifdef HAVE_SYS_MMAN_H
22156 #include <sys/mman.h>
22159 #ifdef HAVE_FCNTL_H
22165 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22167 rm -f conftest$ac_exeext
22168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22169 (eval $ac_link) 2>&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ac_cv_func_mmap_file=yes
22180 echo "$as_me: program exited with status $ac_status" >&5
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 ( exit $ac_status )
22185 ac_cv_func_mmap_file=no
22187 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22190 ac_cpp='$CPP $CPPFLAGS'
22191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22197 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22198 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22199 if test "$ac_cv_func_mmap_file" = yes; then
22201 cat >>confdefs.h <<\_ACEOF
22202 #define HAVE_MMAP_FILE
22209 if test ${ac_cv_func_mmap_file} = "no"
22211 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22212 echo "$as_me: error: mmap() of files required but not found" >&2;}
22213 { (exit 1); exit 1; }; }
22215 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22216 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22217 if test "${ac_cv_header_mmap_anon+set}" = set; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
22223 ac_cpp='$CPP $CPPFLAGS'
22224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22228 cat >conftest.$ac_ext <<_ACEOF
22229 #line $LINENO "configure"
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h. */
22235 #include <sys/mman.h>
22236 #include <unistd.h>
22241 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22246 rm -f conftest.$ac_objext
22247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22248 (eval $ac_compile) 2>&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
22252 { ac_try='test -s conftest.$ac_objext'
22253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254 (eval $ac_try) 2>&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_header_mmap_anon=yes
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22263 ac_cv_header_mmap_anon=no
22265 rm -f conftest.$ac_objext conftest.$ac_ext
22267 ac_cpp='$CPP $CPPFLAGS'
22268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22274 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22275 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22276 if test "$ac_cv_header_mmap_anon" = yes; then
22278 cat >>confdefs.h <<\_ACEOF
22279 #define HAVE_MMAP_ANONYMOUS
22284 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22285 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22286 if test "${ac_cv_type_signal+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 cat >conftest.$ac_ext <<_ACEOF
22290 #line $LINENO "configure"
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 #include <sys/types.h>
22297 #include <signal.h>
22302 extern "C" void (*signal (int, void (*)(int)))(int);
22304 void (*signal ()) ();
22315 rm -f conftest.$ac_objext
22316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22317 (eval $ac_compile) 2>&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } &&
22321 { ac_try='test -s conftest.$ac_objext'
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; }; then
22327 ac_cv_type_signal=void
22329 echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22332 ac_cv_type_signal=int
22334 rm -f conftest.$ac_objext conftest.$ac_ext
22336 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22337 echo "${ECHO_T}$ac_cv_type_signal" >&6
22339 cat >>confdefs.h <<_ACEOF
22340 #define RETSIGTYPE $ac_cv_type_signal
22355 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22358 echo "$as_me:$LINENO: checking for $ac_func" >&5
22359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22360 if eval "test \"\${$as_ac_var+set}\" = set"; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22363 cat >conftest.$ac_ext <<_ACEOF
22364 #line $LINENO "configure"
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h. */
22370 /* System header to define __stub macros and hopefully few prototypes,
22371 which can conflict with char $ac_func (); below.
22372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22373 <limits.h> exists even on freestanding compilers. */
22375 # include <limits.h>
22377 # include <assert.h>
22379 /* Override any gcc2 internal prototype to avoid an error. */
22384 /* We use char because int might match the return type of a gcc2
22385 builtin and then its argument prototype would still apply. */
22387 /* The GNU C library defines this for functions which it implements
22388 to always fail with ENOSYS. Some functions are actually named
22389 something starting with __ and the normal name is an alias. */
22390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22393 char (*f) () = $ac_func;
22402 return f != $ac_func;
22407 rm -f conftest.$ac_objext conftest$ac_exeext
22408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22409 (eval $ac_link) 2>&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } &&
22413 { ac_try='test -s conftest$ac_exeext'
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; }; then
22419 eval "$as_ac_var=yes"
22421 echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22424 eval "$as_ac_var=no"
22426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22430 if test `eval echo '${'$as_ac_var'}'` = yes; then
22431 cat >>confdefs.h <<_ACEOF
22432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22440 echo "$as_me:$LINENO: checking for mmap" >&5
22441 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22442 if test "${ac_cv_func_mmap+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 cat >conftest.$ac_ext <<_ACEOF
22446 #line $LINENO "configure"
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22452 /* System header to define __stub macros and hopefully few prototypes,
22453 which can conflict with char mmap (); below.
22454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22455 <limits.h> exists even on freestanding compilers. */
22457 # include <limits.h>
22459 # include <assert.h>
22461 /* Override any gcc2 internal prototype to avoid an error. */
22466 /* We use char because int might match the return type of a gcc2
22467 builtin and then its argument prototype would still apply. */
22469 /* The GNU C library defines this for functions which it implements
22470 to always fail with ENOSYS. Some functions are actually named
22471 something starting with __ and the normal name is an alias. */
22472 #if defined (__stub_mmap) || defined (__stub___mmap)
22475 char (*f) () = mmap;
22489 rm -f conftest.$ac_objext conftest$ac_exeext
22490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22491 (eval $ac_link) 2>&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } &&
22495 { ac_try='test -s conftest$ac_exeext'
22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497 (eval $ac_try) 2>&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }; then
22501 ac_cv_func_mmap=yes
22503 echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22510 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22511 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22512 if test $ac_cv_func_mmap = yes; then
22515 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22516 echo "$as_me: error: Function mmap() required but not found" >&2;}
22517 { (exit 1); exit 1; }; }
22520 echo "$as_me:$LINENO: checking for mprotect" >&5
22521 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22522 if test "${ac_cv_func_mprotect+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22525 cat >conftest.$ac_ext <<_ACEOF
22526 #line $LINENO "configure"
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h. */
22532 /* System header to define __stub macros and hopefully few prototypes,
22533 which can conflict with char mprotect (); below.
22534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22535 <limits.h> exists even on freestanding compilers. */
22537 # include <limits.h>
22539 # include <assert.h>
22541 /* Override any gcc2 internal prototype to avoid an error. */
22546 /* We use char because int might match the return type of a gcc2
22547 builtin and then its argument prototype would still apply. */
22549 /* The GNU C library defines this for functions which it implements
22550 to always fail with ENOSYS. Some functions are actually named
22551 something starting with __ and the normal name is an alias. */
22552 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22555 char (*f) () = mprotect;
22564 return f != mprotect;
22569 rm -f conftest.$ac_objext conftest$ac_exeext
22570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22571 (eval $ac_link) 2>&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } &&
22575 { ac_try='test -s conftest$ac_exeext'
22576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577 (eval $ac_try) 2>&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); }; }; then
22581 ac_cv_func_mprotect=yes
22583 echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22586 ac_cv_func_mprotect=no
22588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22590 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22591 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22592 if test $ac_cv_func_mprotect = yes; then
22595 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22596 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22597 { (exit 1); exit 1; }; }
22605 ac_cpp='$CPP $CPPFLAGS'
22606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22610 oldcflags="$CFLAGS"
22611 CFLAGS="$CFLAGS -Wl,-R."
22612 cat >conftest.$ac_ext <<_ACEOF
22613 int main() { return 0; }
22615 rm -f conftest.$ac_objext conftest$ac_exeext
22616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22617 (eval $ac_link) 2>&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } &&
22621 { ac_try='test -s conftest$ac_exeext'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 ac_cv_link_use_r=yes
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22632 ac_cv_link_use_r=no
22634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22635 CFLAGS="$oldcflags"
22637 ac_cpp='$CPP $CPPFLAGS'
22638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22642 if test "$ac_cv_link_use_r" = yes
22645 cat >>confdefs.h <<\_ACEOF
22646 #define HAVE_LINK_R 1
22653 # Check whether --enable-purify or --disable-purify was given.
22654 if test "${enable_purify+set}" = set; then
22655 enableval="$enable_purify"
22660 if test ${enableval} = "no"
22665 ENABLE_PURIFY=ENABLE_PURIFY=1
22669 # Check whether --enable-optimized or --disable-optimized was given.
22670 if test "${enable_optimized+set}" = set; then
22671 enableval="$enable_optimized"
22676 if test ${enableval} = "no"
22681 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22685 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22686 if test "${enable_spec2000+set}" = set; then
22687 enableval="$enable_spec2000"
22692 if test ${enableval} = "no"
22694 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22696 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22698 USE_SPEC=USE_SPEC=1
22706 if test ${enableval} = ""
22708 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22711 SPEC_ROOT=${enableval}
22714 USE_SPEC=USE_SPEC=1
22718 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22719 if test "${enable_precompiled_bytecode+set}" = set; then
22720 enableval="$enable_precompiled_bytecode"
22725 if test ${enableval} = "no"
22730 UPB=USE_PRECOMPILED_BYTECODE=1
22735 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22736 if test "${enable_llc_diffs+set}" = set; then
22737 enableval="$enable_llc_diffs"
22742 if test ${enableval} = "no"
22744 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22751 # Check whether --enable-jit or --disable-jit was given.
22752 if test "${enable_jit+set}" = set; then
22753 enableval="$enable_jit"
22759 if test ${enableval} = "no"
22766 JIT=TARGET_HAS_JIT=1
22770 JIT=TARGET_HAS_JIT=1
22782 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22783 if test "${with_llvmgccdir+set}" = set; then
22784 withval="$with_llvmgccdir"
22785 LLVMGCCDIR=$withval
22789 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22790 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22792 if test -d "$LLVMGCCDIR"
22794 if test -x "$LLVMGCCDIR/bin/gcc"
22796 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22800 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22801 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22802 if test "$LLVM_GCC_CHECK" = "no"
22807 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22808 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22810 if test -x "$LLVM_GCC_CHECK"
22812 cp /dev/null conftest.c
22813 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22820 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22821 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22822 if test "$LLVM_GCC_SANE" = "no"
22828 # Check whether --with-bcrepos or --without-bcrepos was given.
22829 if test "${with_bcrepos+set}" = set; then
22830 withval="$with_bcrepos"
22834 BCR=/home/vadve/lattner/LLVMPrograms
22839 # Check whether --with-papi or --without-papi was given.
22840 if test "${with_papi+set}" = set; then
22841 withval="$with_papi"
22845 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22850 # Check whether --with-purify or --without-purify was given.
22851 if test "${with_purify+set}" = set; then
22852 withval="$with_purify"
22858 ac_config_files="$ac_config_files Makefile.config"
22859 cat >confcache <<\_ACEOF
22860 # This file is a shell script that caches the results of configure
22861 # tests run on this system so they can be shared between configure
22862 # scripts and configure runs, see configure's option --config-cache.
22863 # It is not useful on other systems. If it contains results you don't
22864 # want to keep, you may remove or edit it.
22866 # config.status only pays attention to the cache file if you give it
22867 # the --recheck option to rerun configure.
22869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22871 # following values.
22875 # The following way of writing the cache mishandles newlines in values,
22876 # but we know of no workaround that is simple, portable, and efficient.
22877 # So, don't put newlines in cache variables' values.
22878 # Ultrix sh set writes to stderr and can't be redirected directly,
22879 # and sets the high bit in the cache file unless we assign to the vars.
22882 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22884 # `set' does not quote correctly, so add quotes (double-quote
22885 # substitution turns \\\\ into \\, and sed turns \\ into \).
22888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22891 # `set' quotes correctly as required by POSIX, so do not add quotes.
22893 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22900 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22902 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22904 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22905 if test -w $cache_file; then
22906 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22907 cat confcache >$cache_file
22909 echo "not updating unwritable cache $cache_file"
22914 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22915 # Let make expand exec_prefix.
22916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22918 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22919 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22920 # trailing colons and then remove the whole line if VPATH becomes empty
22921 # (actually we leave an empty line to preserve line numbers).
22922 if test "x$srcdir" = x.; then
22923 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22924 s/:*\$(srcdir):*/:/;
22925 s/:*\${srcdir}:*/:/;
22927 s/^\([^=]*=[ ]*\):*/\1/;
22933 DEFS=-DHAVE_CONFIG_H
22937 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22938 # 1. Remove the extension, and $U if already installed.
22939 ac_i=`echo "$ac_i" |
22940 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22942 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22943 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22945 LIBOBJS=$ac_libobjs
22947 LTLIBOBJS=$ac_ltlibobjs
22951 : ${CONFIG_STATUS=./config.status}
22952 ac_clean_files_save=$ac_clean_files
22953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22954 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22955 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22956 cat >$CONFIG_STATUS <<_ACEOF
22958 # Generated by $as_me.
22959 # Run this file to recreate the current configuration.
22960 # Compiler output produced by configure, useful for debugging
22961 # configure, is in config.log if it exists.
22964 ac_cs_recheck=false
22966 SHELL=\${CONFIG_SHELL-$SHELL}
22969 cat >>$CONFIG_STATUS <<\_ACEOF
22970 ## --------------------- ##
22971 ## M4sh Initialization. ##
22972 ## --------------------- ##
22974 # Be Bourne compatible
22975 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22978 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22979 # is contrary to our usage. Disable this feature.
22980 alias -g '${1+"$@"}'='"$@"'
22981 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22985 # Support unset when possible.
22986 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22993 # Work around bugs in pre-3.0 UWIN ksh.
22994 $as_unset ENV MAIL MAILPATH
23001 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23002 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23003 LC_TELEPHONE LC_TIME
23005 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23006 eval $as_var=C; export $as_var
23012 # Required to use basename.
23013 if expr a : '\(a\)' >/dev/null 2>&1; then
23019 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23020 as_basename=basename
23026 # Name of the executable.
23027 as_me=`$as_basename "$0" ||
23028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23029 X"$0" : 'X\(//\)$' \| \
23030 X"$0" : 'X\(/\)$' \| \
23031 . : '\(.\)' 2>/dev/null ||
23033 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23034 /^X\/\(\/\/\)$/{ s//\1/; q; }
23035 /^X\/\(\/\).*/{ s//\1/; q; }
23039 # PATH needs CR, and LINENO needs CR and PATH.
23040 # Avoid depending upon Character Ranges.
23041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23044 as_cr_digits='0123456789'
23045 as_cr_alnum=$as_cr_Letters$as_cr_digits
23047 # The user is always right.
23048 if test "${PATH_SEPARATOR+set}" != set; then
23049 echo "#! /bin/sh" >conf$$.sh
23050 echo "exit 0" >>conf$$.sh
23052 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23061 as_lineno_1=$LINENO
23062 as_lineno_2=$LINENO
23063 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23064 test "x$as_lineno_1" != "x$as_lineno_2" &&
23065 test "x$as_lineno_3" = "x$as_lineno_2" || {
23066 # Find who we are. Look in the path if we contain no path at all
23069 *[\\/]* ) as_myself=$0 ;;
23070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23071 for as_dir in $PATH
23074 test -z "$as_dir" && as_dir=.
23075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23080 # We did not find ourselves, most probably we were run as `sh COMMAND'
23081 # in which case we are not to be found in the path.
23082 if test "x$as_myself" = x; then
23085 if test ! -f "$as_myself"; then
23086 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23087 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23088 { (exit 1); exit 1; }; }
23090 case $CONFIG_SHELL in
23092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23093 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23096 test -z "$as_dir" && as_dir=.
23097 for as_base in sh bash ksh sh5; do
23100 if ("$as_dir/$as_base" -c '
23101 as_lineno_1=$LINENO
23102 as_lineno_2=$LINENO
23103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23104 test "x$as_lineno_1" != "x$as_lineno_2" &&
23105 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23106 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23107 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23108 CONFIG_SHELL=$as_dir/$as_base
23109 export CONFIG_SHELL
23110 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23118 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23119 # uniformly replaced by the line number. The first 'sed' inserts a
23120 # line-number line before each line; the second 'sed' does the real
23121 # work. The second script uses 'N' to pair each line-number line
23122 # with the numbered line, and appends trailing '-' during
23123 # substitution so that $LINENO is not a special case at line end.
23124 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23125 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23126 sed '=' <$as_myself |
23131 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23134 s,^['$as_cr_digits']*\n,,
23135 ' >$as_me.lineno &&
23136 chmod +x $as_me.lineno ||
23137 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23138 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23139 { (exit 1); exit 1; }; }
23141 # Don't try to exec as it changes $[0], causing all sort of problems
23142 # (the dirname of $[0] is not the place where we might find the
23143 # original and so on. Autoconf is especially sensible to this).
23145 # Exit status is that of the last command.
23150 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23151 *c*,-n*) ECHO_N= ECHO_C='
23153 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23154 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23157 if expr a : '\(a\)' >/dev/null 2>&1; then
23163 rm -f conf$$ conf$$.exe conf$$.file
23165 if ln -s conf$$.file conf$$ 2>/dev/null; then
23166 # We could just check for DJGPP; but this test a) works b) is more generic
23167 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23168 if test -f conf$$.exe; then
23169 # Don't use ln at all; we don't have any links
23174 elif ln conf$$.file conf$$ 2>/dev/null; then
23179 rm -f conf$$ conf$$.exe conf$$.file
23181 if mkdir -p . 2>/dev/null; then
23187 as_executable_p="test -f"
23189 # Sed expression to map a string onto a valid CPP name.
23190 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23192 # Sed expression to map a string onto a valid variable name.
23193 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23197 # We need space, tab and new line, in precisely that order.
23207 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23208 # report actual input values of CONFIG_FILES etc. instead of their
23209 # values after options handling. Logging --version etc. is OK.
23213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23214 ## Running $as_me. ##
23219 This file was extended by [LLVM] $as_me [1.0], which was
23220 generated by GNU Autoconf 2.57. Invocation command line was
23222 CONFIG_FILES = $CONFIG_FILES
23223 CONFIG_HEADERS = $CONFIG_HEADERS
23224 CONFIG_LINKS = $CONFIG_LINKS
23225 CONFIG_COMMANDS = $CONFIG_COMMANDS
23229 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23233 # Files that config.status was made for.
23234 if test -n "$ac_config_files"; then
23235 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23238 if test -n "$ac_config_headers"; then
23239 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23242 if test -n "$ac_config_links"; then
23243 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23246 if test -n "$ac_config_commands"; then
23247 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23250 cat >>$CONFIG_STATUS <<\_ACEOF
23253 \`$as_me' instantiates files from templates according to the
23254 current configuration.
23256 Usage: $0 [OPTIONS] [FILE]...
23258 -h, --help print this help, then exit
23259 -V, --version print version number, then exit
23260 -q, --quiet do not print progress messages
23261 -d, --debug don't remove temporary files
23262 --recheck update $as_me by reconfiguring in the same conditions
23263 --file=FILE[:TEMPLATE]
23264 instantiate the configuration file FILE
23265 --header=FILE[:TEMPLATE]
23266 instantiate the configuration header FILE
23268 Configuration files:
23271 Configuration headers:
23274 Configuration commands:
23277 Report bugs to <bug-autoconf@gnu.org>."
23280 cat >>$CONFIG_STATUS <<_ACEOF
23282 [LLVM] config.status [1.0]
23283 configured by $0, generated by GNU Autoconf 2.57,
23284 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23286 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23287 Free Software Foundation, Inc.
23288 This config.status script is free software; the Free Software Foundation
23289 gives unlimited permission to copy, distribute and modify it."
23294 cat >>$CONFIG_STATUS <<\_ACEOF
23295 # If no file are specified by the user, then we need to provide default
23296 # value. By we need to know if files were specified by the user.
23302 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23303 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23311 *) # This is not an option, so the user has probably given explicit
23314 ac_need_defaults=false;;
23318 # Handling of the options.
23320 cat >>$CONFIG_STATUS <<\_ACEOF
23321 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23323 --version | --vers* | -V )
23324 echo "$ac_cs_version"; exit 0 ;;
23326 # Conflict between --help and --header
23327 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23328 Try \`$0 --help' for more information." >&5
23329 echo "$as_me: error: ambiguous option: $1
23330 Try \`$0 --help' for more information." >&2;}
23331 { (exit 1); exit 1; }; };;
23332 --help | --hel | -h )
23333 echo "$ac_cs_usage"; exit 0 ;;
23334 --debug | --d* | -d )
23336 --file | --fil | --fi | --f )
23338 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23339 ac_need_defaults=false;;
23340 --header | --heade | --head | --hea )
23342 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23343 ac_need_defaults=false;;
23344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23348 # This is an error.
23349 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23350 Try \`$0 --help' for more information." >&5
23351 echo "$as_me: error: unrecognized option: $1
23352 Try \`$0 --help' for more information." >&2;}
23353 { (exit 1); exit 1; }; } ;;
23355 *) ac_config_targets="$ac_config_targets $1" ;;
23361 ac_configure_extra_args=
23363 if $ac_cs_silent; then
23365 ac_configure_extra_args="$ac_configure_extra_args --silent"
23369 cat >>$CONFIG_STATUS <<_ACEOF
23370 if \$ac_cs_recheck; then
23371 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23372 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23377 cat >>$CONFIG_STATUS <<_ACEOF
23379 # INIT-COMMANDS section.
23382 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23383 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23384 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23385 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23388 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23389 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23404 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23405 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23406 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23407 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23408 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23409 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23410 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23411 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23412 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23413 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23414 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23415 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23416 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23417 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23418 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23419 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23420 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23421 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23424 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23425 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23426 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23427 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23428 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23429 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23430 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23431 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23432 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23433 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/Makefile`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/compiler/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/runtime/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/tools/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/tools/stkrc/Makefile`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/test/Makefile`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/samples/Makefile`
23446 cat >>$CONFIG_STATUS <<\_ACEOF
23447 for ac_config_target in $ac_config_targets
23449 case "$ac_config_target" in
23450 # Handling of arguments.
23451 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23452 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23453 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23454 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23455 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23456 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23457 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23458 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23459 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23460 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23461 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23462 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23463 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23464 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23465 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23466 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23467 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23468 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23469 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23470 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23471 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23472 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23473 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23474 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23475 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23476 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23477 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23478 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23479 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23480 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23481 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23482 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23483 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23484 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23485 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23486 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23487 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23488 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23489 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23490 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23491 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23492 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23493 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23494 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23495 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23496 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23497 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23498 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23499 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23500 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23501 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23502 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23503 "projects/Stacker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/Makefile" ;;
23504 "projects/Stacker/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/Makefile" ;;
23505 "projects/Stacker/lib/compiler/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/compiler/Makefile" ;;
23506 "projects/Stacker/lib/runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/runtime/Makefile" ;;
23507 "projects/Stacker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/tools/Makefile" ;;
23508 "projects/Stacker/tools/stkrc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/tools/stkrc/Makefile" ;;
23509 "projects/Stacker/test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/test/Makefile" ;;
23510 "projects/Stacker/samples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/samples/Makefile" ;;
23511 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23512 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23513 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23514 { (exit 1); exit 1; }; };;
23518 # If the user did not use the arguments to specify the items to instantiate,
23519 # then the envvar interface is used. Set only those that are not.
23520 # We use the long form for the default assignment because of an extremely
23521 # bizarre bug on SunOS 4.1.3.
23522 if $ac_need_defaults; then
23523 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23524 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23525 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23528 # Have a temporary directory for convenience. Make it in the build tree
23529 # simply because there is no reason to put it here, and in addition,
23530 # creating and moving files from /tmp can sometimes cause problems.
23531 # Create a temporary directory, and hook for its removal unless debugging.
23534 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23535 trap '{ (exit 1); exit 1; }' 1 2 13 15
23538 # Create a (secure) tmp directory for tmp files.
23541 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23542 test -n "$tmp" && test -d "$tmp"
23545 tmp=./confstat$$-$RANDOM
23546 (umask 077 && mkdir $tmp)
23549 echo "$me: cannot create a temporary directory in ." >&2
23550 { (exit 1); exit 1; }
23555 cat >>$CONFIG_STATUS <<_ACEOF
23558 # CONFIG_FILES section.
23561 # No need to generate the scripts if there are no CONFIG_FILES.
23562 # This happens for instance when ./config.status config.h
23563 if test -n "\$CONFIG_FILES"; then
23564 # Protect against being on the right side of a sed subst in config.status.
23565 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23566 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23567 s,@SHELL@,$SHELL,;t t
23568 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23569 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23570 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23571 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23572 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23573 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23574 s,@exec_prefix@,$exec_prefix,;t t
23575 s,@prefix@,$prefix,;t t
23576 s,@program_transform_name@,$program_transform_name,;t t
23577 s,@bindir@,$bindir,;t t
23578 s,@sbindir@,$sbindir,;t t
23579 s,@libexecdir@,$libexecdir,;t t
23580 s,@datadir@,$datadir,;t t
23581 s,@sysconfdir@,$sysconfdir,;t t
23582 s,@sharedstatedir@,$sharedstatedir,;t t
23583 s,@localstatedir@,$localstatedir,;t t
23584 s,@libdir@,$libdir,;t t
23585 s,@includedir@,$includedir,;t t
23586 s,@oldincludedir@,$oldincludedir,;t t
23587 s,@infodir@,$infodir,;t t
23588 s,@mandir@,$mandir,;t t
23589 s,@build_alias@,$build_alias,;t t
23590 s,@host_alias@,$host_alias,;t t
23591 s,@target_alias@,$target_alias,;t t
23592 s,@DEFS@,$DEFS,;t t
23593 s,@ECHO_C@,$ECHO_C,;t t
23594 s,@ECHO_N@,$ECHO_N,;t t
23595 s,@ECHO_T@,$ECHO_T,;t t
23596 s,@LIBS@,$LIBS,;t t
23597 s,@subdirs@,$subdirs,;t t
23598 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23599 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23600 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23601 s,@build@,$build,;t t
23602 s,@build_cpu@,$build_cpu,;t t
23603 s,@build_vendor@,$build_vendor,;t t
23604 s,@build_os@,$build_os,;t t
23605 s,@host@,$host,;t t
23606 s,@host_cpu@,$host_cpu,;t t
23607 s,@host_vendor@,$host_vendor,;t t
23608 s,@host_os@,$host_os,;t t
23609 s,@target@,$target,;t t
23610 s,@target_cpu@,$target_cpu,;t t
23611 s,@target_vendor@,$target_vendor,;t t
23612 s,@target_os@,$target_os,;t t
23614 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23615 s,@ARCH@,$ARCH,;t t
23617 s,@CXXFLAGS@,$CXXFLAGS,;t t
23618 s,@LDFLAGS@,$LDFLAGS,;t t
23619 s,@CPPFLAGS@,$CPPFLAGS,;t t
23620 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23621 s,@EXEEXT@,$EXEEXT,;t t
23622 s,@OBJEXT@,$OBJEXT,;t t
23624 s,@CFLAGS@,$CFLAGS,;t t
23625 s,@ac_ct_CC@,$ac_ct_CC,;t t
23627 s,@ifGNUmake@,$ifGNUmake,;t t
23629 s,@LEXLIB@,$LEXLIB,;t t
23630 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23631 s,@YACC@,$YACC,;t t
23632 s,@EGREP@,$EGREP,;t t
23633 s,@LN_S@,$LN_S,;t t
23634 s,@ECHO@,$ECHO,;t t
23636 s,@ac_ct_AR@,$ac_ct_AR,;t t
23637 s,@RANLIB@,$RANLIB,;t t
23638 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23639 s,@STRIP@,$STRIP,;t t
23640 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23641 s,@CXXCPP@,$CXXCPP,;t t
23643 s,@FFLAGS@,$FFLAGS,;t t
23644 s,@ac_ct_F77@,$ac_ct_F77,;t t
23645 s,@LIBTOOL@,$LIBTOOL,;t t
23646 s,@RPWD@,$RPWD,;t t
23649 s,@MKDIR@,$MKDIR,;t t
23650 s,@DATE@,$DATE,;t t
23653 s,@ETAGS@,$ETAGS,;t t
23654 s,@PYTHON@,$PYTHON,;t t
23655 s,@QMTEST@,$QMTEST,;t t
23656 s,@ALLOCA@,$ALLOCA,;t t
23657 s,@LIBOBJS@,$LIBOBJS,;t t
23658 s,@MMAP_FILE@,$MMAP_FILE,;t t
23659 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23660 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23661 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23662 s,@USE_SPEC@,$USE_SPEC,;t t
23664 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23667 s,@PAPIDIR@,$PAPIDIR,;t t
23668 s,@PURIFY@,$PURIFY,;t t
23669 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23674 cat >>$CONFIG_STATUS <<\_ACEOF
23675 # Split the substitutions into bite-sized pieces for seds with
23676 # small command number limits, like on Digital OSF/1 and HP-UX.
23677 ac_max_sed_lines=48
23678 ac_sed_frag=1 # Number of current file.
23679 ac_beg=1 # First line for current file.
23680 ac_end=$ac_max_sed_lines # Line after last line for current file.
23683 while $ac_more_lines; do
23684 if test $ac_beg -gt 1; then
23685 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23687 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23689 if test ! -s $tmp/subs.frag; then
23690 ac_more_lines=false
23692 # The purpose of the label and of the branching condition is to
23693 # speed up the sed processing (if there are no `@' at all, there
23694 # is no need to browse any of the substitutions).
23695 # These are the two extra sed commands mentioned above.
23697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23698 if test -z "$ac_sed_cmds"; then
23699 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23701 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23703 ac_sed_frag=`expr $ac_sed_frag + 1`
23705 ac_end=`expr $ac_end + $ac_max_sed_lines`
23708 if test -z "$ac_sed_cmds"; then
23711 fi # test -n "$CONFIG_FILES"
23714 cat >>$CONFIG_STATUS <<\_ACEOF
23715 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23718 - | *:- | *:-:* ) # input from stdin
23720 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23721 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23722 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23724 * ) ac_file_in=$ac_file.in ;;
23727 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23728 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23730 X"$ac_file" : 'X\(//\)[^/]' \| \
23731 X"$ac_file" : 'X\(//\)$' \| \
23732 X"$ac_file" : 'X\(/\)' \| \
23733 . : '\(.\)' 2>/dev/null ||
23735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23737 /^X\(\/\/\)$/{ s//\1/; q; }
23738 /^X\(\/\).*/{ s//\1/; q; }
23740 { if $as_mkdir_p; then
23745 while test ! -d "$as_dir"; do
23746 as_dirs="$as_dir $as_dirs"
23747 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23749 X"$as_dir" : 'X\(//\)[^/]' \| \
23750 X"$as_dir" : 'X\(//\)$' \| \
23751 X"$as_dir" : 'X\(/\)' \| \
23752 . : '\(.\)' 2>/dev/null ||
23754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23756 /^X\(\/\/\)$/{ s//\1/; q; }
23757 /^X\(\/\).*/{ s//\1/; q; }
23760 test ! -n "$as_dirs" || mkdir $as_dirs
23761 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23762 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23763 { (exit 1); exit 1; }; }; }
23767 if test "$ac_dir" != .; then
23768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23769 # A "../" for each directory in $ac_dir_suffix.
23770 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23772 ac_dir_suffix= ac_top_builddir=
23776 .) # No --srcdir option. We are building in place.
23778 if test -z "$ac_top_builddir"; then
23781 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23783 [\\/]* | ?:[\\/]* ) # Absolute path.
23784 ac_srcdir=$srcdir$ac_dir_suffix;
23785 ac_top_srcdir=$srcdir ;;
23786 *) # Relative path.
23787 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23788 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23790 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23792 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23793 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23794 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23795 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23799 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23800 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23803 if test x"$ac_file" != x-; then
23804 { echo "$as_me:$LINENO: creating $ac_file" >&5
23805 echo "$as_me: creating $ac_file" >&6;}
23808 # Let's still pretend it is `configure' which instantiates (i.e., don't
23809 # use $as_me), people would be surprised to read:
23810 # /* config.h. Generated by config.status. */
23811 if test x"$ac_file" = x-; then
23814 configure_input="$ac_file. "
23816 configure_input=$configure_input"Generated from `echo $ac_file_in |
23817 sed 's,.*/,,'` by configure."
23819 # First look for the input files in the build tree, otherwise in the
23821 ac_file_inputs=`IFS=:
23822 for f in $ac_file_in; do
23824 -) echo $tmp/stdin ;;
23826 # Absolute (can't be DOS-style, as IFS=:)
23827 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23828 echo "$as_me: error: cannot find input file: $f" >&2;}
23829 { (exit 1); exit 1; }; }
23832 if test -f "$f"; then
23835 elif test -f "$srcdir/$f"; then
23840 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23841 echo "$as_me: error: cannot find input file: $f" >&2;}
23842 { (exit 1); exit 1; }; }
23845 done` || { (exit 1); exit 1; }
23847 cat >>$CONFIG_STATUS <<_ACEOF
23851 cat >>$CONFIG_STATUS <<\_ACEOF
23853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23854 s,@configure_input@,$configure_input,;t t
23855 s,@srcdir@,$ac_srcdir,;t t
23856 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23857 s,@top_srcdir@,$ac_top_srcdir,;t t
23858 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23859 s,@builddir@,$ac_builddir,;t t
23860 s,@abs_builddir@,$ac_abs_builddir,;t t
23861 s,@top_builddir@,$ac_top_builddir,;t t
23862 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23863 s,@INSTALL@,$ac_INSTALL,;t t
23864 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23866 if test x"$ac_file" != x-; then
23867 mv $tmp/out $ac_file
23875 cat >>$CONFIG_STATUS <<\_ACEOF
23878 # CONFIG_HEADER section.
23881 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23882 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23884 # ac_d sets the value in "#define NAME VALUE" lines.
23885 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23886 ac_dB='[ ].*$,\1#\2'
23889 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23890 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23891 ac_uB='$,\1#\2define\3'
23895 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23896 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23898 - | *:- | *:-:* ) # input from stdin
23900 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23901 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23902 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23903 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23904 * ) ac_file_in=$ac_file.in ;;
23907 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23908 echo "$as_me: creating $ac_file" >&6;}
23910 # First look for the input files in the build tree, otherwise in the
23912 ac_file_inputs=`IFS=:
23913 for f in $ac_file_in; do
23915 -) echo $tmp/stdin ;;
23917 # Absolute (can't be DOS-style, as IFS=:)
23918 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23919 echo "$as_me: error: cannot find input file: $f" >&2;}
23920 { (exit 1); exit 1; }; }
23923 if test -f "$f"; then
23926 elif test -f "$srcdir/$f"; then
23931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23932 echo "$as_me: error: cannot find input file: $f" >&2;}
23933 { (exit 1); exit 1; }; }
23936 done` || { (exit 1); exit 1; }
23937 # Remove the trailing spaces.
23938 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23942 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23943 # `conftest.undefs', that substitutes the proper values into
23944 # config.h.in to produce config.h. The first handles `#define'
23945 # templates, and the second `#undef' templates.
23946 # And first: Protect against being on the right side of a sed subst in
23947 # config.status. Protect against being in an unquoted here document
23948 # in config.status.
23949 rm -f conftest.defines conftest.undefs
23950 # Using a here document instead of a string reduces the quoting nightmare.
23951 # Putting comments in sed scripts is not portable.
23953 # `end' is used to avoid that the second main sed command (meant for
23954 # 0-ary CPP macros) applies to n-ary macro definitions.
23955 # See the Autoconf documentation for `clear'.
23956 cat >confdef2sed.sed <<\_ACEOF
23961 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23963 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23966 # If some macros were called several times there might be several times
23967 # the same #defines, which is useless. Nevertheless, we may not want to
23968 # sort them, since we want the *last* AC-DEFINE to be honored.
23969 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23970 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23971 rm -f confdef2sed.sed
23973 # This sed command replaces #undef with comments. This is necessary, for
23974 # example, in the case of _POSIX_SOURCE, which is predefined and required
23975 # on some systems where configure will not decide to define it.
23976 cat >>conftest.undefs <<\_ACEOF
23977 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23980 # Break up conftest.defines because some shells have a limit on the size
23981 # of here documents, and old seds have small limits too (100 cmds).
23982 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23983 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23984 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23985 echo ' :' >>$CONFIG_STATUS
23986 rm -f conftest.tail
23987 while grep . conftest.defines >/dev/null
23989 # Write a limited-size here document to $tmp/defines.sed.
23990 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23991 # Speed up: don't consider the non `#define' lines.
23992 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23993 # Work around the forget-to-reset-the-flag bug.
23994 echo 't clr' >>$CONFIG_STATUS
23995 echo ': clr' >>$CONFIG_STATUS
23996 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23998 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24000 mv $tmp/out $tmp/in
24002 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24003 rm -f conftest.defines
24004 mv conftest.tail conftest.defines
24006 rm -f conftest.defines
24007 echo ' fi # grep' >>$CONFIG_STATUS
24008 echo >>$CONFIG_STATUS
24010 # Break up conftest.undefs because some shells have a limit on the size
24011 # of here documents, and old seds have small limits too (100 cmds).
24012 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24013 rm -f conftest.tail
24014 while grep . conftest.undefs >/dev/null
24016 # Write a limited-size here document to $tmp/undefs.sed.
24017 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24018 # Speed up: don't consider the non `#undef'
24019 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24020 # Work around the forget-to-reset-the-flag bug.
24021 echo 't clr' >>$CONFIG_STATUS
24022 echo ': clr' >>$CONFIG_STATUS
24023 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24025 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24027 mv $tmp/out $tmp/in
24029 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24030 rm -f conftest.undefs
24031 mv conftest.tail conftest.undefs
24033 rm -f conftest.undefs
24035 cat >>$CONFIG_STATUS <<\_ACEOF
24036 # Let's still pretend it is `configure' which instantiates (i.e., don't
24037 # use $as_me), people would be surprised to read:
24038 # /* config.h. Generated by config.status. */
24039 if test x"$ac_file" = x-; then
24040 echo "/* Generated by configure. */" >$tmp/config.h
24042 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24044 cat $tmp/in >>$tmp/config.h
24046 if test x"$ac_file" != x-; then
24047 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24048 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24049 echo "$as_me: $ac_file is unchanged" >&6;}
24051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24053 X"$ac_file" : 'X\(//\)[^/]' \| \
24054 X"$ac_file" : 'X\(//\)$' \| \
24055 X"$ac_file" : 'X\(/\)' \| \
24056 . : '\(.\)' 2>/dev/null ||
24058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24060 /^X\(\/\/\)$/{ s//\1/; q; }
24061 /^X\(\/\).*/{ s//\1/; q; }
24063 { if $as_mkdir_p; then
24068 while test ! -d "$as_dir"; do
24069 as_dirs="$as_dir $as_dirs"
24070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24072 X"$as_dir" : 'X\(//\)[^/]' \| \
24073 X"$as_dir" : 'X\(//\)$' \| \
24074 X"$as_dir" : 'X\(/\)' \| \
24075 . : '\(.\)' 2>/dev/null ||
24077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24079 /^X\(\/\/\)$/{ s//\1/; q; }
24080 /^X\(\/\).*/{ s//\1/; q; }
24083 test ! -n "$as_dirs" || mkdir $as_dirs
24084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24086 { (exit 1); exit 1; }; }; }
24089 mv $tmp/config.h $ac_file
24093 rm -f $tmp/config.h
24097 cat >>$CONFIG_STATUS <<\_ACEOF
24100 # CONFIG_COMMANDS section.
24102 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24103 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24104 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24105 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24106 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24107 X"$ac_dest" : 'X\(//\)[^/]' \| \
24108 X"$ac_dest" : 'X\(//\)$' \| \
24109 X"$ac_dest" : 'X\(/\)' \| \
24110 . : '\(.\)' 2>/dev/null ||
24112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24114 /^X\(\/\/\)$/{ s//\1/; q; }
24115 /^X\(\/\).*/{ s//\1/; q; }
24119 if test "$ac_dir" != .; then
24120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24121 # A "../" for each directory in $ac_dir_suffix.
24122 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24124 ac_dir_suffix= ac_top_builddir=
24128 .) # No --srcdir option. We are building in place.
24130 if test -z "$ac_top_builddir"; then
24133 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24135 [\\/]* | ?:[\\/]* ) # Absolute path.
24136 ac_srcdir=$srcdir$ac_dir_suffix;
24137 ac_top_srcdir=$srcdir ;;
24138 *) # Relative path.
24139 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24140 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24142 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24144 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24145 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24146 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24147 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24150 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24151 echo "$as_me: executing $ac_dest commands" >&6;}
24153 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24154 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24155 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24156 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24157 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24158 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24159 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24160 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24161 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24162 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24163 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24164 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24165 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24166 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24167 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24168 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24169 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24170 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24171 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24172 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24173 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24174 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24175 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24176 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24177 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24178 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24179 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 ;;
24180 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24181 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24182 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 ;;
24183 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 ;;
24184 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 ;;
24185 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 ;;
24186 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 ;;
24187 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 ;;
24188 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 ;;
24189 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 ;;
24190 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 ;;
24191 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 ;;
24192 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 ;;
24193 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 ;;
24194 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 ;;
24195 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24196 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24197 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24198 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24199 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24200 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24201 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24202 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24203 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24204 projects/Stacker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/Makefile projects/Stacker/Makefile ;;
24205 projects/Stacker/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/Makefile projects/Stacker/lib/Makefile ;;
24206 projects/Stacker/lib/compiler/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/compiler/Makefile projects/Stacker/lib/compiler/Makefile ;;
24207 projects/Stacker/lib/runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/runtime/Makefile projects/Stacker/lib/runtime/Makefile ;;
24208 projects/Stacker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/tools/Makefile projects/Stacker/tools/Makefile ;;
24209 projects/Stacker/tools/stkrc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/tools/stkrc/Makefile projects/Stacker/tools/stkrc/Makefile ;;
24210 projects/Stacker/test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/test/Makefile projects/Stacker/test/Makefile ;;
24211 projects/Stacker/samples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/samples/Makefile projects/Stacker/samples/Makefile ;;
24216 cat >>$CONFIG_STATUS <<\_ACEOF
24218 { (exit 0); exit 0; }
24220 chmod +x $CONFIG_STATUS
24221 ac_clean_files=$ac_clean_files_save
24224 # configure is writing to config.log, and then calls config.status.
24225 # config.status does its own redirection, appending to config.log.
24226 # Unfortunately, on DOS this fails, as config.log is still kept open
24227 # by configure, so config.status won't be able to write to it; its
24228 # output is simply discarded. So we exec the FD to /dev/null,
24229 # effectively closing config.log, so it can be properly (re)opened and
24230 # appended to by config.status. When coming back to configure, we
24231 # need to make the FD available again.
24232 if test "$no_create" != yes; then
24234 ac_config_status_args=
24235 test "$silent" = yes &&
24236 ac_config_status_args="$ac_config_status_args --quiet"
24238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24241 # would make configure fail if this is the last instruction.
24242 $ac_cs_success || { (exit 1); exit 1; }
24246 # CONFIG_SUBDIRS section.
24248 if test "$no_recursion" != yes; then
24250 # Remove --cache-file and --srcdir arguments so they do not pile up.
24251 ac_sub_configure_args=
24253 for ac_arg in $ac_configure_args; do
24254 if test -n "$ac_prev"; then
24259 -cache-file | --cache-file | --cache-fil | --cache-fi \
24260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24261 ac_prev=cache_file ;;
24262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24266 --config-cache | -C)
24268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24276 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24280 # Always prepend --prefix to ensure using the same prefix
24281 # in subdir configurations.
24282 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24285 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24287 # Do not complain, so a configure script can configure whichever
24288 # parts of a large source tree are present.
24289 test -d $srcdir/$ac_dir || continue
24291 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24292 echo "$as_me: configuring in $ac_dir" >&6;}
24293 { if $as_mkdir_p; then
24298 while test ! -d "$as_dir"; do
24299 as_dirs="$as_dir $as_dirs"
24300 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24302 X"$as_dir" : 'X\(//\)[^/]' \| \
24303 X"$as_dir" : 'X\(//\)$' \| \
24304 X"$as_dir" : 'X\(/\)' \| \
24305 . : '\(.\)' 2>/dev/null ||
24307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24309 /^X\(\/\/\)$/{ s//\1/; q; }
24310 /^X\(\/\).*/{ s//\1/; q; }
24313 test ! -n "$as_dirs" || mkdir $as_dirs
24314 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24315 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24316 { (exit 1); exit 1; }; }; }
24320 if test "$ac_dir" != .; then
24321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24322 # A "../" for each directory in $ac_dir_suffix.
24323 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24325 ac_dir_suffix= ac_top_builddir=
24329 .) # No --srcdir option. We are building in place.
24331 if test -z "$ac_top_builddir"; then
24334 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24336 [\\/]* | ?:[\\/]* ) # Absolute path.
24337 ac_srcdir=$srcdir$ac_dir_suffix;
24338 ac_top_srcdir=$srcdir ;;
24339 *) # Relative path.
24340 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24341 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24343 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24345 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24346 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24347 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24348 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24353 # Check for guested configure; otherwise get Cygnus style configure.
24354 if test -f $ac_srcdir/configure.gnu; then
24355 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24356 elif test -f $ac_srcdir/configure; then
24357 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24358 elif test -f $ac_srcdir/configure.in; then
24359 ac_sub_configure=$ac_configure
24361 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24362 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24366 # The recursion is here.
24367 if test -n "$ac_sub_configure"; then
24368 # Make the cache file name correct relative to the subdirectory.
24369 case $cache_file in
24370 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24371 *) # Relative path.
24372 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24375 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24376 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24377 # The eval makes quoting arguments work.
24378 eval $ac_sub_configure $ac_sub_configure_args \
24379 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24380 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24381 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24382 { (exit 1); exit 1; }; }
24390 if test $llvmgccwarn = yes
24392 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24393 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24394 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24395 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24396 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24397 echo "$as_me: WARNING: ***** " >&2;}
24398 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24399 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24400 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24401 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24402 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24403 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}