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 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_unique_file=""Makefile.config.in""
467 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 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 PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR OBJROOT LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012 --target=TARGET configure for building compilers for TARGET [HOST]
1016 if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
1031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-purify Compile with purify (default is NO)
1033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec Compile SPEC benchmarks (default is NO)
1035 --enable-precompiled_bytecode
1036 Use pre-compiled bytecode (default is NO)
1037 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1038 --enable-jit Enable Just In Time Compiling (default is YES)
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1047 include additional configurations [automatic]
1048 --with-spec Location of SPEC benchmarks
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
1052 --with-purify Location of purify program
1053 --with-objroot Location where object files should be placed
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 ac_config_headers="$ac_config_headers include/Config/config.h"
1518 # Find a good install program. We prefer a C program (faster),
1519 # so one script is as good as another. But avoid the broken or
1520 # incompatible versions:
1521 # SysV /etc/install, /usr/sbin/install
1522 # SunOS /usr/etc/install
1523 # IRIX /sbin/install
1525 # AmigaOS /C/install, which installs bootblocks on floppy discs
1526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1529 # ./install, which can be erroneously created by make from ./install.sh.
1530 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1531 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1532 if test -z "$INSTALL"; then
1533 if test "${ac_cv_path_install+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 # Account for people who put trailing slashes in PATH elements.
1543 ./ | .// | /cC/* | \
1544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1547 # OSF1 and SCO ODT 3.0 have their own names for install.
1548 # Don't use installbsd from OSF since it installs stuff as root
1550 for ac_prog in ginstall scoinst install; do
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1553 if test $ac_prog = install &&
1554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1555 # AIX install. It has an incompatible calling convention.
1557 elif test $ac_prog = install &&
1558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1559 # program-specific install script used by HP pwplus--don't use.
1562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1574 if test "${ac_cv_path_install+set}" = set; then
1575 INSTALL=$ac_cv_path_install
1577 # As a last resort, use the slow shell script. We don't cache a
1578 # path for INSTALL within a source directory, because that will
1579 # break other packages using the cache if that directory is
1580 # removed, or if the path is relative.
1581 INSTALL=$ac_install_sh
1584 echo "$as_me:$LINENO: result: $INSTALL" >&5
1585 echo "${ECHO_T}$INSTALL" >&6
1587 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1588 # It thinks the first close brace ends the variable substitution.
1589 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1591 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1593 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1596 # Make sure we can run config.sub.
1597 $ac_config_sub sun4 >/dev/null 2>&1 ||
1598 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1599 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1600 { (exit 1); exit 1; }; }
1602 echo "$as_me:$LINENO: checking build system type" >&5
1603 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1604 if test "${ac_cv_build+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 ac_cv_build_alias=$build_alias
1608 test -z "$ac_cv_build_alias" &&
1609 ac_cv_build_alias=`$ac_config_guess`
1610 test -z "$ac_cv_build_alias" &&
1611 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1612 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1613 { (exit 1); exit 1; }; }
1614 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1616 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1620 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1621 echo "${ECHO_T}$ac_cv_build" >&6
1623 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628 echo "$as_me:$LINENO: checking host system type" >&5
1629 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1630 if test "${ac_cv_host+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 ac_cv_host_alias=$host_alias
1634 test -z "$ac_cv_host_alias" &&
1635 ac_cv_host_alias=$ac_cv_build_alias
1636 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1638 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1642 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1643 echo "${ECHO_T}$ac_cv_host" >&6
1645 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650 echo "$as_me:$LINENO: checking target system type" >&5
1651 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1652 if test "${ac_cv_target+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 ac_cv_target_alias=$target_alias
1656 test "x$ac_cv_target_alias" = "x" &&
1657 ac_cv_target_alias=$ac_cv_host_alias
1658 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1660 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1665 echo "${ECHO_T}$ac_cv_target" >&6
1666 target=$ac_cv_target
1667 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 # The aliases save the names the user supplied, while $host etc.
1673 # will get canonicalized.
1674 test -n "$target_alias" &&
1675 test "$program_prefix$program_suffix$program_transform_name" = \
1677 program_prefix=${target_alias}-
1682 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1688 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1698 *sparc*solaris*) target=sparcv9-sun-solaris2.8
1707 *sparc*solaris*) ARCH=Sparc
1714 ac_cpp='$CXXCPP $CPPFLAGS'
1715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1718 if test -n "$ac_tool_prefix"; then
1719 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_CXX+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 if test -n "$CXX"; then
1729 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 if test -n "$CXX"; then
1749 echo "$as_me:$LINENO: result: $CXX" >&5
1750 echo "${ECHO_T}$CXX" >&6
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1756 test -n "$CXX" && break
1759 if test -z "$CXX"; then
1761 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1763 # Extract the first word of "$ac_prog", so it can be a program name with args.
1764 set dummy $ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 if test -n "$ac_ct_CXX"; then
1771 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_ac_ct_CXX="$ac_prog"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1790 if test -n "$ac_ct_CXX"; then
1791 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1792 echo "${ECHO_T}$ac_ct_CXX" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1798 test -n "$ac_ct_CXX" && break
1800 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1806 # Provide some information about the compiler.
1807 echo "$as_me:$LINENO:" \
1808 "checking for C++ compiler version" >&5
1809 ac_compiler=`set X $ac_compile; echo $2`
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1811 (eval $ac_compiler --version </dev/null >&5) 2>&5
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }
1815 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1816 (eval $ac_compiler -v </dev/null >&5) 2>&5
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }
1820 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1821 (eval $ac_compiler -V </dev/null >&5) 2>&5
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }
1826 cat >conftest.$ac_ext <<_ACEOF
1827 #line $LINENO "configure"
1830 cat confdefs.h >>conftest.$ac_ext
1831 cat >>conftest.$ac_ext <<_ACEOF
1832 /* end confdefs.h. */
1842 ac_clean_files_save=$ac_clean_files
1843 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1844 # Try to create an executable without -o first, disregard a.out.
1845 # It will help us diagnose broken compilers, and finding out an intuition
1847 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1848 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1849 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1850 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1851 (eval $ac_link_default) 2>&5
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; then
1855 # Find the output, starting from the most likely. This scheme is
1856 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1859 # Be careful to initialize this variable, since it used to be cached.
1860 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1862 # b.out is created by i960 compilers.
1863 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1865 test -f "$ac_file" || continue
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1870 # This is the source file.
1873 # We found the default executable, but exeext='' is most
1877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1878 # FIXME: I believe we export ac_cv_exeext for Libtool,
1879 # but it would be cool to find out if it's true. Does anybody
1880 # maintain Libtool? --akim.
1888 echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1891 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: C++ compiler cannot create executables
1894 See \`config.log' for more details." >&2;}
1895 { (exit 77); exit 77; }; }
1898 ac_exeext=$ac_cv_exeext
1899 echo "$as_me:$LINENO: result: $ac_file" >&5
1900 echo "${ECHO_T}$ac_file" >&6
1902 # Check the compiler produces executables we can run. If not, either
1903 # the compiler is broken, or we cross compile.
1904 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1905 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1906 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1907 # If not cross compiling, check that we can run a simple program.
1908 if test "$cross_compiling" != yes; then
1909 if { ac_try='./$ac_file'
1910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; }; then
1917 if test "$cross_compiling" = maybe; then
1920 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1921 If you meant to cross compile, use \`--host'.
1922 See \`config.log' for more details." >&5
1923 echo "$as_me: error: cannot run C++ compiled programs.
1924 If you meant to cross compile, use \`--host'.
1925 See \`config.log' for more details." >&2;}
1926 { (exit 1); exit 1; }; }
1930 echo "$as_me:$LINENO: result: yes" >&5
1931 echo "${ECHO_T}yes" >&6
1933 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1934 ac_clean_files=$ac_clean_files_save
1935 # Check the compiler produces executables we can run. If not, either
1936 # the compiler is broken, or we cross compile.
1937 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1938 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1939 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1940 echo "${ECHO_T}$cross_compiling" >&6
1942 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1943 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1945 (eval $ac_link) 2>&5
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; then
1949 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1950 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1951 # work properly (i.e., refer to `conftest.exe'), while it won't with
1953 for ac_file in conftest.exe conftest conftest.*; do
1954 test -f "$ac_file" || continue
1956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1957 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1964 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1967 See \`config.log' for more details." >&2;}
1968 { (exit 1); exit 1; }; }
1971 rm -f conftest$ac_cv_exeext
1972 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1973 echo "${ECHO_T}$ac_cv_exeext" >&6
1975 rm -f conftest.$ac_ext
1976 EXEEXT=$ac_cv_exeext
1978 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1979 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1980 if test "${ac_cv_objext+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 cat >conftest.$ac_ext <<_ACEOF
1984 #line $LINENO "configure"
1987 cat confdefs.h >>conftest.$ac_ext
1988 cat >>conftest.$ac_ext <<_ACEOF
1989 /* end confdefs.h. */
1999 rm -f conftest.o conftest.obj
2000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; then
2005 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2017 See \`config.log' for more details." >&5
2018 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2019 See \`config.log' for more details." >&2;}
2020 { (exit 1); exit 1; }; }
2023 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2025 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2026 echo "${ECHO_T}$ac_cv_objext" >&6
2027 OBJEXT=$ac_cv_objext
2029 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2030 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2031 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 cat >conftest.$ac_ext <<_ACEOF
2035 #line $LINENO "configure"
2038 cat confdefs.h >>conftest.$ac_ext
2039 cat >>conftest.$ac_ext <<_ACEOF
2040 /* end confdefs.h. */
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -s conftest.$ac_objext'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; }; then
2067 echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2072 rm -f conftest.$ac_objext conftest.$ac_ext
2073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2078 GXX=`test $ac_compiler_gnu = yes && echo yes`
2079 ac_test_CXXFLAGS=${CXXFLAGS+set}
2080 ac_save_CXXFLAGS=$CXXFLAGS
2082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2084 if test "${ac_cv_prog_cxx_g+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h. */
2103 rm -f conftest.$ac_objext
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 ac_cv_prog_cxx_g=yes
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2122 rm -f conftest.$ac_objext conftest.$ac_ext
2124 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2125 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2126 if test "$ac_test_CXXFLAGS" = set; then
2127 CXXFLAGS=$ac_save_CXXFLAGS
2128 elif test $ac_cv_prog_cxx_g = yes; then
2129 if test "$GXX" = yes; then
2135 if test "$GXX" = yes; then
2141 for ac_declaration in \
2143 '#include <stdlib.h>' \
2144 'extern "C" void std::exit (int) throw (); using std::exit;' \
2145 'extern "C" void std::exit (int); using std::exit;' \
2146 'extern "C" void exit (int) throw ();' \
2147 'extern "C" void exit (int);' \
2150 cat >conftest.$ac_ext <<_ACEOF
2151 #line $LINENO "configure"
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2186 rm -f conftest.$ac_objext conftest.$ac_ext
2187 cat >conftest.$ac_ext <<_ACEOF
2188 #line $LINENO "configure"
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2203 rm -f conftest.$ac_objext
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2221 rm -f conftest.$ac_objext conftest.$ac_ext
2224 if test -n "$ac_declaration"; then
2225 echo '#ifdef __cplusplus' >>confdefs.h
2226 echo $ac_declaration >>confdefs.h
2227 echo '#endif' >>confdefs.h
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241 if test -n "$ac_tool_prefix"; then
2244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2246 echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248 if test "${ac_cv_prog_CC+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 if test -n "$CC"; then
2252 ac_cv_prog_CC="$CC" # Let the user override the test.
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 if test -n "$CC"; then
2272 echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6
2275 echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6
2279 test -n "$CC" && break
2282 if test -z "$CC"; then
2286 # Extract the first word of "$ac_prog", so it can be a program name with args.
2287 set dummy $ac_prog; ac_word=$2
2288 echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 if test -n "$ac_ct_CC"; then
2294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303 ac_cv_prog_ac_ct_CC="$ac_prog"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313 if test -n "$ac_ct_CC"; then
2314 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315 echo "${ECHO_T}$ac_ct_CC" >&6
2317 echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2321 test -n "$ac_ct_CC" && break
2328 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: no acceptable C compiler found in \$PATH
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2334 # Provide some information about the compiler.
2335 echo "$as_me:$LINENO:" \
2336 "checking for C compiler version" >&5
2337 ac_compiler=`set X $ac_compile; echo $2`
2338 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2339 (eval $ac_compiler --version </dev/null >&5) 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2343 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2344 (eval $ac_compiler -v </dev/null >&5) 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
2348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2349 (eval $ac_compiler -V </dev/null >&5) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2354 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2356 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 cat >conftest.$ac_ext <<_ACEOF
2360 #line $LINENO "configure"
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2397 rm -f conftest.$ac_objext conftest.$ac_ext
2398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403 GCC=`test $ac_compiler_gnu = yes && echo yes`
2404 ac_test_CFLAGS=${CFLAGS+set}
2405 ac_save_CFLAGS=$CFLAGS
2407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409 if test "${ac_cv_prog_cc_g+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 cat >conftest.$ac_ext <<_ACEOF
2413 #line $LINENO "configure"
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f conftest.$ac_objext conftest.$ac_ext
2449 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451 if test "$ac_test_CFLAGS" = set; then
2452 CFLAGS=$ac_save_CFLAGS
2453 elif test $ac_cv_prog_cc_g = yes; then
2454 if test "$GCC" = yes; then
2460 if test "$GCC" = yes; then
2466 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 ac_cv_prog_cc_stdc=no
2473 cat >conftest.$ac_ext <<_ACEOF
2474 #line $LINENO "configure"
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2482 #include <sys/types.h>
2483 #include <sys/stat.h>
2484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2485 struct buf { int x; };
2486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2487 static char *e (p, i)
2493 static char *f (char * (*g) (char **, int), char **p, ...)
2498 s = g (p, va_arg (v,int));
2502 int test (int i, double x);
2503 struct s1 {int (*f) (int a);};
2504 struct s2 {int (*f) (double a);};
2505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2511 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2516 # Don't try gcc -ansi; that turns off useful extensions and
2517 # breaks some systems' header files.
2518 # AIX -qlanglvl=ansi
2519 # Ultrix and OSF/1 -std1
2520 # HP-UX 10.20 and later -Ae
2521 # HP-UX older versions -Aa -D_HPUX_SOURCE
2522 # SVR4 -Xc -D__EXTENSIONS__
2523 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2525 CC="$ac_save_CC $ac_arg"
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 ac_cv_prog_cc_stdc=$ac_arg
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2545 rm -f conftest.$ac_objext
2547 rm -f conftest.$ac_ext conftest.$ac_objext
2552 case "x$ac_cv_prog_cc_stdc" in
2554 echo "$as_me:$LINENO: result: none needed" >&5
2555 echo "${ECHO_T}none needed" >&6 ;;
2557 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2558 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2559 CC="$CC $ac_cv_prog_cc_stdc" ;;
2562 # Some people use a C++ compiler to compile C. Since we use `exit',
2563 # in C++ we need to declare it. In case someone uses the same compiler
2564 # for both compiling C and C++ we need to have the C++ compiler decide
2565 # the declaration of exit, since it's the most demanding environment.
2566 cat >conftest.$ac_ext <<_ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration in \
2585 '#include <stdlib.h>' \
2586 'extern "C" void std::exit (int) throw (); using std::exit;' \
2587 'extern "C" void std::exit (int); using std::exit;' \
2588 'extern "C" void exit (int) throw ();' \
2589 'extern "C" void exit (int);' \
2592 cat >conftest.$ac_ext <<_ACEOF
2593 #line $LINENO "configure"
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2628 rm -f conftest.$ac_objext conftest.$ac_ext
2629 cat >conftest.$ac_ext <<_ACEOF
2630 #line $LINENO "configure"
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f conftest.$ac_objext conftest.$ac_ext
2666 if test -n "$ac_declaration"; then
2667 echo '#ifdef __cplusplus' >>confdefs.h
2668 echo $ac_declaration >>confdefs.h
2669 echo '#endif' >>confdefs.h
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.$ac_objext conftest.$ac_ext
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2690 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2691 # On Suns, sometimes $CPP names a directory.
2692 if test -n "$CPP" && test -d "$CPP"; then
2695 if test -z "$CPP"; then
2696 if test "${ac_cv_prog_CPP+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 # Double quotes because CPP needs to be expanded
2700 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2703 for ac_c_preproc_warn_flag in '' yes
2705 # Use a header file that comes with gcc, so configuring glibc
2706 # with a fresh cross-compiler works.
2707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2708 # <limits.h> exists even on freestanding compilers.
2709 # On the NeXT, cc -E runs the code through the compiler's parser,
2710 # not just through cpp. "Syntax error" is here to catch this case.
2711 cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2719 # include <limits.h>
2721 # include <assert.h>
2725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1 >conftest.err
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } >/dev/null; then
2733 if test -s conftest.err; then
2734 ac_cpp_err=$ac_c_preproc_warn_flag
2741 if test -z "$ac_cpp_err"; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2747 # Broken: fails on valid input.
2750 rm -f conftest.err conftest.$ac_ext
2752 # OK, works on sane cases. Now check whether non-existent headers
2753 # can be detected and how.
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2761 #include <ac_nonexistent.h>
2763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1 >conftest.err
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } >/dev/null; then
2771 if test -s conftest.err; then
2772 ac_cpp_err=$ac_c_preproc_warn_flag
2779 if test -z "$ac_cpp_err"; then
2780 # Broken: success on invalid input.
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 # Passes both tests.
2790 rm -f conftest.err conftest.$ac_ext
2793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2794 rm -f conftest.err conftest.$ac_ext
2795 if $ac_preproc_ok; then
2807 echo "$as_me:$LINENO: result: $CPP" >&5
2808 echo "${ECHO_T}$CPP" >&6
2810 for ac_c_preproc_warn_flag in '' yes
2812 # Use a header file that comes with gcc, so configuring glibc
2813 # with a fresh cross-compiler works.
2814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815 # <limits.h> exists even on freestanding compilers.
2816 # On the NeXT, cc -E runs the code through the compiler's parser,
2817 # not just through cpp. "Syntax error" is here to catch this case.
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2826 # include <limits.h>
2828 # include <assert.h>
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev/null; then
2840 if test -s conftest.err; then
2841 ac_cpp_err=$ac_c_preproc_warn_flag
2848 if test -z "$ac_cpp_err"; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 # Broken: fails on valid input.
2857 rm -f conftest.err conftest.$ac_ext
2859 # OK, works on sane cases. Now check whether non-existent headers
2860 # can be detected and how.
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2886 if test -z "$ac_cpp_err"; then
2887 # Broken: success on invalid input.
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 # Passes both tests.
2897 rm -f conftest.err conftest.$ac_ext
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2908 See \`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 if test "$GCC" != "yes"
2921 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2922 echo "$as_me: error: gcc required but not found" >&2;}
2923 { (exit 1); exit 1; }; }
2926 if test "$GXX" != "yes"
2928 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2929 echo "$as_me: error: g++ required but not found" >&2;}
2930 { (exit 1); exit 1; }; }
2933 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
2934 if test "$gccmajor" -lt "3"
2936 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
2937 echo "$as_me: error: gcc 3.x required" >&2;}
2938 { (exit 1); exit 1; }; }
2941 echo "$as_me:$LINENO: checking for GNU make" >&5
2942 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2943 if test "${_cv_gnu_make_command+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 _cv_gnu_make_command='' ;
2947 for a in "$MAKE" make gmake gnumake ; do
2948 if test -z "$a" ; then continue ; fi ;
2949 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
2950 _cv_gnu_make_command=$a ;
2956 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2957 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2958 if test "x$_cv_gnu_make_command" != "x" ; then
2962 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2963 echo "${ECHO_T}\"Not found\"" >&6;
2967 if test -z "$_cv_gnu_make_command"
2969 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2970 echo "$as_me: error: GNU Make required but not found" >&2;}
2971 { (exit 1); exit 1; }; }
2975 echo "$as_me:$LINENO: checking " >&5
2976 echo $ECHO_N "checking ... $ECHO_C" >&6
2977 if test "${ac_cv_has_flex+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 for ac_prog in flex lex
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_LEX+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 if test -n "$LEX"; then
2990 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_LEX="$ac_prog"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 if test -n "$LEX"; then
3010 echo "$as_me:$LINENO: result: $LEX" >&5
3011 echo "${ECHO_T}$LEX" >&6
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3017 test -n "$LEX" && break
3019 test -n "$LEX" || LEX=":"
3021 if test -z "$LEXLIB"
3023 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3024 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3025 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 ac_check_lib_save_LIBS=$LIBS
3030 cat >conftest.$ac_ext <<_ACEOF
3031 #line $LINENO "configure"
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3038 /* Override any gcc2 internal prototype to avoid an error. */
3042 /* We use char because int might match the return type of a gcc2
3043 builtin and then its argument prototype would still apply. */
3053 rm -f conftest.$ac_objext conftest$ac_exeext
3054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3055 (eval $ac_link) 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -s conftest$ac_exeext'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_cv_lib_fl_yywrap=yes
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 ac_cv_lib_fl_yywrap=no
3072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3073 LIBS=$ac_check_lib_save_LIBS
3075 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3076 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3077 if test $ac_cv_lib_fl_yywrap = yes; then
3080 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3081 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3082 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 ac_check_lib_save_LIBS=$LIBS
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line $LINENO "configure"
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3095 /* Override any gcc2 internal prototype to avoid an error. */
3099 /* We use char because int might match the return type of a gcc2
3100 builtin and then its argument prototype would still apply. */
3110 rm -f conftest.$ac_objext conftest$ac_exeext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3112 (eval $ac_link) 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } &&
3116 { ac_try='test -s conftest$ac_exeext'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3122 ac_cv_lib_l_yywrap=yes
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3127 ac_cv_lib_l_yywrap=no
3129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3130 LIBS=$ac_check_lib_save_LIBS
3132 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3133 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3134 if test $ac_cv_lib_l_yywrap = yes; then
3142 if test "x$LEX" != "x:"; then
3143 echo "$as_me:$LINENO: checking lex output file root" >&5
3144 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3145 if test "${ac_cv_prog_lex_root+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 # The minimal lex program is just a single line: %%. But some broken lexes
3149 # (Solaris, I think it was) want two %% lines, so accommodate them.
3150 cat >conftest.l <<_ACEOF
3154 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3155 (eval $LEX conftest.l) 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }
3159 if test -f lex.yy.c; then
3160 ac_cv_prog_lex_root=lex.yy
3161 elif test -f lexyy.c; then
3162 ac_cv_prog_lex_root=lexyy
3164 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3165 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3166 { (exit 1); exit 1; }; }
3169 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3170 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3172 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3174 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3175 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3176 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 # POSIX says lex can declare yytext either as a pointer or an array; the
3180 # default is implementation-dependent. Figure out which it is, since
3181 # not all implementations provide the %pointer and %array declarations.
3182 ac_cv_prog_lex_yytext_pointer=no
3183 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3185 LIBS="$LIBS $LEXLIB"
3186 cat >conftest.$ac_ext <<_ACEOF
3187 `cat $LEX_OUTPUT_ROOT.c`
3189 rm -f conftest.$ac_objext conftest$ac_exeext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3191 (eval $ac_link) 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest$ac_exeext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_cv_prog_lex_yytext_pointer=yes
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3209 rm -f "${LEX_OUTPUT_ROOT}.c"
3212 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3213 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3214 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3216 cat >>confdefs.h <<\_ACEOF
3217 #define YYTEXT_POINTER 1
3225 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3226 echo "${ECHO_T}$ac_cv_has_flex" >&6
3227 if test "$LEX" != "flex"; then
3228 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3229 echo "$as_me: error: flex not found but required" >&2;}
3230 { (exit 1); exit 1; }; }
3233 echo "$as_me:$LINENO: checking " >&5
3234 echo $ECHO_N "checking ... $ECHO_C" >&6
3235 if test "${ac_cv_has_bison+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 for ac_prog in 'bison -y' byacc
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy $ac_prog; ac_word=$2
3242 echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_YACC+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if test -n "$YACC"; then
3248 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_YACC="$ac_prog"
3258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 YACC=$ac_cv_prog_YACC
3267 if test -n "$YACC"; then
3268 echo "$as_me:$LINENO: result: $YACC" >&5
3269 echo "${ECHO_T}$YACC" >&6
3271 echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3275 test -n "$YACC" && break
3277 test -n "$YACC" || YACC="yacc"
3281 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3282 echo "${ECHO_T}$ac_cv_has_bison" >&6
3283 if test "$YACC" != "bison -y"; then
3284 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3285 echo "$as_me: error: bison not found but required" >&2;}
3286 { (exit 1); exit 1; }; }
3293 # Check whether --enable-shared or --disable-shared was given.
3294 if test "${enable_shared+set}" = set; then
3295 enableval="$enable_shared"
3296 p=${PACKAGE-default}
3298 yes) enable_shared=yes ;;
3299 no) enable_shared=no ;;
3302 # Look at the argument we got. We use all the common list separators.
3303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3304 for pkg in $enableval; do
3306 if test "X$pkg" = "X$p"; then
3317 # Check whether --enable-static or --disable-static was given.
3318 if test "${enable_static+set}" = set; then
3319 enableval="$enable_static"
3320 p=${PACKAGE-default}
3322 yes) enable_static=yes ;;
3323 no) enable_static=no ;;
3326 # Look at the argument we got. We use all the common list separators.
3327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3328 for pkg in $enableval; do
3330 if test "X$pkg" = "X$p"; then
3341 # Check whether --enable-fast-install or --disable-fast-install was given.
3342 if test "${enable_fast_install+set}" = set; then
3343 enableval="$enable_fast_install"
3344 p=${PACKAGE-default}
3346 yes) enable_fast_install=yes ;;
3347 no) enable_fast_install=no ;;
3349 enable_fast_install=no
3350 # Look at the argument we got. We use all the common list separators.
3351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3352 for pkg in $enableval; do
3354 if test "X$pkg" = "X$p"; then
3355 enable_fast_install=yes
3362 enable_fast_install=yes
3365 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3366 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3367 if test "${lt_cv_path_SED+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 # Loop through the user's path and test for sed and gsed.
3371 # Then use that list of sed's as ones to test for truncation.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir=.
3377 for lt_ac_prog in sed gsed; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3380 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3387 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3388 # along with /bin/sed that truncates output.
3389 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3390 test ! -f $lt_ac_sed && break
3391 cat /dev/null > conftest.in
3393 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3394 # Check for GNU sed and select it if it is found.
3395 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3396 lt_cv_path_SED=$lt_ac_sed
3400 cat conftest.in conftest.in >conftest.tmp
3401 mv conftest.tmp conftest.in
3402 cp conftest.in conftest.nl
3404 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3405 cmp -s conftest.out conftest.nl || break
3406 # 10000 chars as input seems more than enough
3407 test $lt_ac_count -gt 10 && break
3408 lt_ac_count=`expr $lt_ac_count + 1`
3409 if test $lt_ac_count -gt $lt_ac_max; then
3410 lt_ac_max=$lt_ac_count
3411 lt_cv_path_SED=$lt_ac_sed
3419 echo "$as_me:$LINENO: result: $SED" >&5
3420 echo "${ECHO_T}$SED" >&6
3422 echo "$as_me:$LINENO: checking for egrep" >&5
3423 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3424 if test "${ac_cv_prog_egrep+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3428 then ac_cv_prog_egrep='grep -E'
3429 else ac_cv_prog_egrep='egrep'
3432 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3433 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3434 EGREP=$ac_cv_prog_egrep
3438 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3439 if test "${with_gnu_ld+set}" = set; then
3440 withval="$with_gnu_ld"
3441 test "$withval" = no || with_gnu_ld=yes
3446 if test "$GCC" = yes; then
3447 # Check if gcc -print-prog-name=ld gives a path.
3448 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3449 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3452 # gcc leaves a trailing carriage return which upsets mingw
3453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3458 # Accept absolute paths.
3460 re_direlt='/[^/][^/]*/\.\./'
3461 # Canonicalize the path of ld
3462 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3463 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3464 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3466 test -z "$LD" && LD="$ac_prog"
3469 # If it fails, then pretend we aren't using GCC.
3473 # If it is relative, then search for the first ld in PATH.
3477 elif test "$with_gnu_ld" = yes; then
3478 echo "$as_me:$LINENO: checking for GNU ld" >&5
3479 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3481 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3482 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3484 if test "${lt_cv_path_LD+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 if test -z "$LD"; then
3488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3489 for ac_dir in $PATH; do
3491 test -z "$ac_dir" && ac_dir=.
3492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3493 lt_cv_path_LD="$ac_dir/$ac_prog"
3494 # Check to see if the program is GNU ld. I'd rather use --version,
3495 # but apparently some GNU ld's only accept -v.
3496 # Break only if it was the GNU/non-GNU ld that we prefer.
3497 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3498 *GNU* | *'with BFD'*)
3499 test "$with_gnu_ld" != no && break
3502 test "$with_gnu_ld" != yes && break
3509 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3514 if test -n "$LD"; then
3515 echo "$as_me:$LINENO: result: $LD" >&5
3516 echo "${ECHO_T}$LD" >&6
3518 echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3521 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3522 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3523 { (exit 1); exit 1; }; }
3524 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3525 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3526 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3530 case `"$LD" -v 2>&1 </dev/null` in
3531 *GNU* | *'with BFD'*)
3532 lt_cv_prog_gnu_ld=yes
3535 lt_cv_prog_gnu_ld=no
3539 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3540 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3541 with_gnu_ld=$lt_cv_prog_gnu_ld
3544 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3545 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3546 if test "${lt_cv_ld_reload_flag+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 lt_cv_ld_reload_flag='-r'
3551 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3552 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3553 reload_flag=$lt_cv_ld_reload_flag
3554 case $reload_flag in
3556 *) reload_flag=" $reload_flag" ;;
3558 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3560 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3561 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3562 if test "${lt_cv_path_NM+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 if test -n "$NM"; then
3566 # Let the user override the test.
3569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3570 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3572 test -z "$ac_dir" && ac_dir=.
3573 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3574 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3575 # Check to see if the nm accepts a BSD-compat flag.
3576 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3577 # nm: unknown option "B" ignored
3578 # Tru64's nm complains that /dev/null is an invalid object file
3579 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3580 */dev/null* | *'Invalid file or object type'*)
3581 lt_cv_path_NM="$tmp_nm -B"
3585 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3587 lt_cv_path_NM="$tmp_nm -p"
3591 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3592 continue # so that we can try to find one that supports BSD flags
3599 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3602 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3603 echo "${ECHO_T}$lt_cv_path_NM" >&6
3606 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3607 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3609 if test "$LN_S" = "ln -s"; then
3610 echo "$as_me:$LINENO: result: yes" >&5
3611 echo "${ECHO_T}yes" >&6
3613 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3614 echo "${ECHO_T}no, using $LN_S" >&6
3617 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3618 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3619 if test "${lt_cv_deplibs_check_method+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 lt_cv_file_magic_cmd='$MAGIC_CMD'
3623 lt_cv_file_magic_test_file=
3624 lt_cv_deplibs_check_method='unknown'
3625 # Need to set the preceding variable on all platforms that support
3626 # interlibrary dependencies.
3627 # 'none' -- dependencies not supported.
3628 # `unknown' -- same as none, but documents that we really don't know.
3629 # 'pass_all' -- all dependencies passed with no checks.
3630 # 'test_compile' -- check by making test program.
3631 # 'file_magic [[regex]]' -- check by looking for files in library path
3632 # which responds to the $file_magic_cmd with a given extended regex.
3633 # If you have `file' or equivalent on your system and you're not sure
3634 # whether `pass_all' will *always* work, you probably want this one.
3638 lt_cv_deplibs_check_method=pass_all
3642 lt_cv_deplibs_check_method=pass_all
3646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3647 lt_cv_file_magic_cmd='/usr/bin/file -L'
3648 lt_cv_file_magic_test_file=/shlib/libc.so
3651 cygwin* | mingw* | pw32*)
3652 # win32_libid is a shell function defined in ltmain.sh
3653 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3654 lt_cv_file_magic_cmd='win32_libid'
3657 darwin* | rhapsody*)
3658 # this will be overwritten by pass_all, but leave it in just in case
3659 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3660 lt_cv_file_magic_cmd='/usr/bin/file -L'
3662 rhapsody* | darwin1.[012])
3663 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3666 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3669 lt_cv_deplibs_check_method=pass_all
3673 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3676 # Not sure whether the presence of OpenBSD here was a mistake.
3677 # Let's accept both of them until this is cleared up.
3678 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3679 lt_cv_file_magic_cmd=/usr/bin/file
3680 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3684 lt_cv_deplibs_check_method=pass_all
3689 lt_cv_deplibs_check_method=pass_all
3692 hpux10.20* | hpux11*)
3693 lt_cv_file_magic_cmd=/usr/bin/file
3696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3697 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3700 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]'
3701 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3705 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3710 irix5* | irix6* | nonstopux*)
3712 irix5* | nonstopux*)
3713 # this will be overridden with pass_all, but let us keep it just in case
3714 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3718 *-32|*"-32 ") libmagic=32-bit;;
3719 *-n32|*"-n32 ") libmagic=N32;;
3720 *-64|*"-64 ") libmagic=64-bit;;
3721 *) libmagic=never-match;;
3723 # this will be overridden with pass_all, but let us keep it just in case
3724 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3727 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3728 lt_cv_deplibs_check_method=pass_all
3731 # This must be Linux ELF.
3734 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3735 lt_cv_deplibs_check_method=pass_all ;;
3737 # glibc up to 2.1.1 does not perform some relocations on ARM
3738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3740 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3744 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3753 lt_cv_file_magic_cmd=/usr/bin/file
3754 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3758 lt_cv_deplibs_check_method=unknown
3762 lt_cv_file_magic_cmd=/usr/bin/file
3763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3767 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3771 osf3* | osf4* | osf5*)
3772 # this will be overridden with pass_all, but let us keep it just in case
3773 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3774 lt_cv_file_magic_test_file=/shlib/libc.so
3775 lt_cv_deplibs_check_method=pass_all
3779 lt_cv_deplibs_check_method=pass_all
3783 lt_cv_deplibs_check_method=pass_all
3784 lt_cv_file_magic_test_file=/lib/libc.so
3787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3788 case $host_vendor in
3790 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]'
3791 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3794 lt_cv_deplibs_check_method=pass_all
3797 lt_cv_file_magic_cmd='/bin/file'
3798 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3801 lt_cv_file_magic_cmd='/bin/file'
3802 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3803 lt_cv_file_magic_test_file=/lib/libc.so
3806 lt_cv_deplibs_check_method=pass_all
3811 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3812 lt_cv_deplibs_check_method=pass_all
3817 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3818 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3819 file_magic_cmd=$lt_cv_file_magic_cmd
3820 deplibs_check_method=$lt_cv_deplibs_check_method
3821 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3826 # If no C compiler was specified, use CC.
3829 # Allow CC to be a program name with arguments.
3832 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3833 if test "${enable_libtool_lock+set}" = set; then
3834 enableval="$enable_libtool_lock"
3837 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3839 # Some flags need to be propagated to the compiler or linker for good
3843 # Find out which ABI we are using.
3844 echo 'int i;' > conftest.$ac_ext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; then
3850 case `/usr/bin/file conftest.$ac_objext` in
3862 # Find out which ABI we are using.
3863 echo '#line 3863 "configure"' > conftest.$ac_ext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; then
3869 if test "$lt_cv_prog_gnu_ld" = yes; then
3870 case `/usr/bin/file conftest.$ac_objext` in
3872 LD="${LD-ld} -melf32bsmip"
3875 LD="${LD-ld} -melf32bmipn32"
3878 LD="${LD-ld} -melf64bmip"
3882 case `/usr/bin/file conftest.$ac_objext` in
3898 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3899 # Find out which ABI we are using.
3900 echo 'int i;' > conftest.$ac_ext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3902 (eval $ac_compile) 2>&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; then
3906 case "`/usr/bin/file conftest.o`" in
3910 LD="${LD-ld} -m elf_i386"
3913 LD="${LD-ld} -m elf32ppclinux"
3916 LD="${LD-ld} -m elf_s390"
3919 LD="${LD-ld} -m elf32_sparc"
3926 LD="${LD-ld} -m elf_x86_64"
3928 ppc*-*linux*|powerpc*-*linux*)
3929 LD="${LD-ld} -m elf64ppc"
3932 LD="${LD-ld} -m elf64_s390"
3935 LD="${LD-ld} -m elf64_sparc"
3945 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3946 SAVE_CFLAGS="$CFLAGS"
3947 CFLAGS="$CFLAGS -belf"
3948 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3949 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3950 if test "${lt_cv_cc_needs_belf+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 cat >conftest.$ac_ext <<_ACEOF
3960 #line $LINENO "configure"
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3975 rm -f conftest.$ac_objext conftest$ac_exeext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977 (eval $ac_link) 2>&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } &&
3981 { ac_try='test -s conftest$ac_exeext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 lt_cv_cc_needs_belf=yes
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 lt_cv_cc_needs_belf=no
3994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4003 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4004 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4005 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4006 CFLAGS="$SAVE_CFLAGS"
4012 need_locks="$enable_libtool_lock"
4016 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4017 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4018 if test "${ac_cv_header_stdc+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.$ac_ext <<_ACEOF
4022 #line $LINENO "configure"
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4041 rm -f conftest.$ac_objext
4042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043 (eval $ac_compile) 2>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 ac_cv_header_stdc=yes
4055 echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4058 ac_cv_header_stdc=no
4060 rm -f conftest.$ac_objext conftest.$ac_ext
4062 if test $ac_cv_header_stdc = yes; then
4063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4064 cat >conftest.$ac_ext <<_ACEOF
4065 #line $LINENO "configure"
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075 $EGREP "memchr" >/dev/null 2>&1; then
4078 ac_cv_header_stdc=no
4084 if test $ac_cv_header_stdc = yes; then
4085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4086 cat >conftest.$ac_ext <<_ACEOF
4087 #line $LINENO "configure"
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "free" >/dev/null 2>&1; then
4100 ac_cv_header_stdc=no
4106 if test $ac_cv_header_stdc = yes; then
4107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4108 if test "$cross_compiling" = yes; then
4111 cat >conftest.$ac_ext <<_ACEOF
4112 #line $LINENO "configure"
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 #if ((' ' & 0x0FF) == 0x020)
4120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4123 # define ISLOWER(c) \
4124 (('a' <= (c) && (c) <= 'i') \
4125 || ('j' <= (c) && (c) <= 'r') \
4126 || ('s' <= (c) && (c) <= 'z'))
4127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4135 for (i = 0; i < 256; i++)
4136 if (XOR (islower (i), ISLOWER (i))
4137 || toupper (i) != TOUPPER (i))
4142 rm -f conftest$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4155 echo "$as_me: program exited with status $ac_status" >&5
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4160 ac_cv_header_stdc=no
4162 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4166 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4167 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4168 if test $ac_cv_header_stdc = yes; then
4170 cat >>confdefs.h <<\_ACEOF
4171 #define STDC_HEADERS 1
4176 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4186 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4187 inttypes.h stdint.h unistd.h
4189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4190 echo "$as_me:$LINENO: checking for $ac_header" >&5
4191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 cat >conftest.$ac_ext <<_ACEOF
4196 #line $LINENO "configure"
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4204 #include <$ac_header>
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 eval "$as_ac_Header=yes"
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 eval "$as_ac_Header=no"
4225 rm -f conftest.$ac_objext conftest.$ac_ext
4227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4230 cat >>confdefs.h <<_ACEOF
4231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4240 for ac_header in dlfcn.h
4242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4244 echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4252 # Is the header compilable?
4253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4255 cat >conftest.$ac_ext <<_ACEOF
4256 #line $LINENO "configure"
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 $ac_includes_default
4263 #include <$ac_header>
4265 rm -f conftest.$ac_objext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 ac_header_compiler=yes
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 ac_header_compiler=no
4284 rm -f conftest.$ac_objext conftest.$ac_ext
4285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4286 echo "${ECHO_T}$ac_header_compiler" >&6
4288 # Is the header present?
4289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4291 cat >conftest.$ac_ext <<_ACEOF
4292 #line $LINENO "configure"
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #include <$ac_header>
4300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev/null; then
4308 if test -s conftest.err; then
4309 ac_cpp_err=$ac_c_preproc_warn_flag
4316 if test -z "$ac_cpp_err"; then
4317 ac_header_preproc=yes
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 ac_header_preproc=no
4324 rm -f conftest.err conftest.$ac_ext
4325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4326 echo "${ECHO_T}$ac_header_preproc" >&6
4328 # So? What about this header?
4329 case $ac_header_compiler:$ac_header_preproc in
4331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4337 ## ------------------------------------ ##
4338 ## Report this to bug-autoconf@gnu.org. ##
4339 ## ------------------------------------ ##
4342 sed "s/^/$as_me: WARNING: /" >&2
4345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4353 ## ------------------------------------ ##
4354 ## Report this to bug-autoconf@gnu.org. ##
4355 ## ------------------------------------ ##
4358 sed "s/^/$as_me: WARNING: /" >&2
4361 echo "$as_me:$LINENO: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 eval "$as_ac_Header=$ac_header_preproc"
4368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4373 cat >>confdefs.h <<_ACEOF
4374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4382 ac_cpp='$CXXCPP $CPPFLAGS'
4383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4386 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4387 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4388 if test -z "$CXXCPP"; then
4389 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 # Double quotes because CXXCPP needs to be expanded
4393 for CXXCPP in "$CXX -E" "/lib/cpp"
4396 for ac_cxx_preproc_warn_flag in '' yes
4398 # Use a header file that comes with gcc, so configuring glibc
4399 # with a fresh cross-compiler works.
4400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401 # <limits.h> exists even on freestanding compilers.
4402 # On the NeXT, cc -E runs the code through the compiler's parser,
4403 # not just through cpp. "Syntax error" is here to catch this case.
4404 cat >conftest.$ac_ext <<_ACEOF
4405 #line $LINENO "configure"
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4412 # include <limits.h>
4414 # include <assert.h>
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev/null; then
4426 if test -s conftest.err; then
4427 ac_cpp_err=$ac_cxx_preproc_warn_flag
4434 if test -z "$ac_cpp_err"; then
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 # Broken: fails on valid input.
4443 rm -f conftest.err conftest.$ac_ext
4445 # OK, works on sane cases. Now check whether non-existent headers
4446 # can be detected and how.
4447 cat >conftest.$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <ac_nonexistent.h>
4456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4459 grep -v '^ *+' conftest.er1 >conftest.err
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } >/dev/null; then
4464 if test -s conftest.err; then
4465 ac_cpp_err=$ac_cxx_preproc_warn_flag
4472 if test -z "$ac_cpp_err"; then
4473 # Broken: success on invalid input.
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 # Passes both tests.
4483 rm -f conftest.err conftest.$ac_ext
4486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487 rm -f conftest.err conftest.$ac_ext
4488 if $ac_preproc_ok; then
4493 ac_cv_prog_CXXCPP=$CXXCPP
4496 CXXCPP=$ac_cv_prog_CXXCPP
4498 ac_cv_prog_CXXCPP=$CXXCPP
4500 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4501 echo "${ECHO_T}$CXXCPP" >&6
4503 for ac_cxx_preproc_warn_flag in '' yes
4505 # Use a header file that comes with gcc, so configuring glibc
4506 # with a fresh cross-compiler works.
4507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508 # <limits.h> exists even on freestanding compilers.
4509 # On the NeXT, cc -E runs the code through the compiler's parser,
4510 # not just through cpp. "Syntax error" is here to catch this case.
4511 cat >conftest.$ac_ext <<_ACEOF
4512 #line $LINENO "configure"
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4519 # include <limits.h>
4521 # include <assert.h>
4525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } >/dev/null; then
4533 if test -s conftest.err; then
4534 ac_cpp_err=$ac_cxx_preproc_warn_flag
4541 if test -z "$ac_cpp_err"; then
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 # Broken: fails on valid input.
4550 rm -f conftest.err conftest.$ac_ext
4552 # OK, works on sane cases. Now check whether non-existent headers
4553 # can be detected and how.
4554 cat >conftest.$ac_ext <<_ACEOF
4555 #line $LINENO "configure"
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <ac_nonexistent.h>
4563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4566 grep -v '^ *+' conftest.er1 >conftest.err
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_cxx_preproc_warn_flag
4579 if test -z "$ac_cpp_err"; then
4580 # Broken: success on invalid input.
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 # Passes both tests.
4590 rm -f conftest.err conftest.$ac_ext
4593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4594 rm -f conftest.err conftest.$ac_ext
4595 if $ac_preproc_ok; then
4598 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4599 See \`config.log' for more details." >&5
4600 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4601 See \`config.log' for more details." >&2;}
4602 { (exit 1); exit 1; }; }
4606 ac_cpp='$CXXCPP $CPPFLAGS'
4607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4613 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4614 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4616 if test -n "$ac_tool_prefix"; then
4617 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4621 echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623 if test "${ac_cv_prog_F77+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -n "$F77"; then
4627 ac_cv_prog_F77="$F77" # Let the user override the test.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$F77"; then
4647 echo "$as_me:$LINENO: result: $F77" >&5
4648 echo "${ECHO_T}$F77" >&6
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4654 test -n "$F77" && break
4657 if test -z "$F77"; then
4659 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4661 # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy $ac_prog; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$ac_ct_F77"; then
4669 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_ac_ct_F77="$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4688 if test -n "$ac_ct_F77"; then
4689 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4690 echo "${ECHO_T}$ac_ct_F77" >&6
4692 echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4696 test -n "$ac_ct_F77" && break
4703 # Provide some information about the compiler.
4704 echo "$as_me:4704:" \
4705 "checking for Fortran 77 compiler version" >&5
4706 ac_compiler=`set X $ac_compile; echo $2`
4707 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4708 (eval $ac_compiler --version </dev/null >&5) 2>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }
4712 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4713 (eval $ac_compiler -v </dev/null >&5) 2>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }
4717 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4718 (eval $ac_compiler -V </dev/null >&5) 2>&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }
4723 # If we don't use `.F' as extension, the preprocessor is not run on the
4727 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4728 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4729 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 cat >conftest.$ac_ext <<_ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4759 rm -f conftest.$ac_objext conftest.$ac_ext
4760 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4763 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4764 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4766 G77=`test $ac_compiler_gnu = yes && echo yes`
4767 ac_test_FFLAGS=${FFLAGS+set}
4768 ac_save_FFLAGS=$FFLAGS
4770 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4771 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4772 if test "${ac_cv_prog_f77_g+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 cat >conftest.$ac_ext <<_ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
4787 { ac_try='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 ac_cv_prog_f77_g=yes
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4800 rm -f conftest.$ac_objext conftest.$ac_ext
4803 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4804 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4805 if test "$ac_test_FFLAGS" = set; then
4806 FFLAGS=$ac_save_FFLAGS
4807 elif test $ac_cv_prog_f77_g = yes; then
4808 if test "$G77" = yes; then
4814 if test "$G77" = yes; then
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4830 # find the maximum length of command line arguments
4831 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4832 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4833 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 # On DJGPP, this test can blow up pretty badly due to problems in libc
4842 # (any single argument exceeding 2000 bytes causes a buffer overrun
4843 # during glob expansion). Even if it were fixed, the result of this
4844 # check would be larger than it should be.
4845 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4849 # Under GNU Hurd, this test is not required because there is
4850 # no limit to the length of command line arguments.
4851 # Libtool will interpret -1 as no limit whatsoever
4852 lt_cv_sys_max_cmd_len=-1;
4856 # On Win9x/ME, this test blows up -- it succeeds, but takes
4857 # about 5 minutes as the teststring grows exponentially.
4858 # Worse, since 9x/ME are not pre-emptively multitasking,
4859 # you end up with a "frozen" computer, even though with patience
4860 # the test eventually succeeds (with a max line length of 256k).
4861 # Instead, let's just punt: use the minimum linelength reported by
4862 # all of the supported platforms: 8192 (on NT/2K/XP).
4863 lt_cv_sys_max_cmd_len=8192;
4867 # If test is not a shell built-in, we'll probably end up computing a
4868 # maximum length that is only half of the actual maximum length, but
4870 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4871 = "XX$testring") >/dev/null 2>&1 &&
4872 new_result=`expr "X$testring" : ".*" 2>&1` &&
4873 lt_cv_sys_max_cmd_len=$new_result &&
4874 test $i != 17 # 1/2 MB should be enough
4877 testring=$testring$testring
4880 # Add a significant safety factor because C++ compilers can tack on massive
4881 # amounts of additional arguments before passing them to the linker.
4882 # It appears as though 1/2 is a usable value.
4883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4889 if test -n $lt_cv_sys_max_cmd_len ; then
4890 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4891 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4893 echo "$as_me:$LINENO: result: none" >&5
4894 echo "${ECHO_T}none" >&6
4900 # Check for command to grab the raw symbol name followed by C symbol from nm.
4901 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4902 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4903 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 # These are sane defaults that work on at least a few old systems.
4908 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4910 # Character class describing NM global symbol codes.
4911 symcode='[BCDEGRST]'
4913 # Regexp to match symbols that can be accessed directly from C.
4914 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4916 # Transform the above into a raw symbol and a C symbol.
4917 symxfrm='\1 \2\3 \3'
4919 # Transform an extracted symbol line into a proper C declaration
4920 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4922 # Transform an extracted symbol line into symbol name and symbol address
4923 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'"
4925 # Define system-specific variables.
4930 cygwin* | mingw* | pw32*)
4931 symcode='[ABCDGISTW]'
4933 hpux*) # Its linker distinguishes data from code symbols
4934 if test "$host_cpu" = ia64; then
4935 symcode='[ABCDEGRST]'
4937 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4938 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'"
4941 symcode='[BCDEGRST]'
4944 symcode='[BCDEGQRST]'
4954 # Handle CRLF in mingw tool chain
4958 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4962 # If we're using GNU nm, then use its standard symbol codes.
4963 case `$NM -V 2>&1` in
4964 *GNU* | *'with BFD'*)
4965 symcode='[ABCDGISTW]' ;;
4968 # Try without a prefix undercore, then with it.
4969 for ac_symprfx in "" "_"; do
4971 # Write the raw and C identifiers.
4972 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4974 # Check to see that the pipe works correctly.
4978 cat > conftest.$ac_ext <<EOF
4983 void nm_test_func(){}
4987 int main(){nm_test_var='a';nm_test_func();return(0);}
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; then
4995 # Now try to grab the symbols.
4997 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4998 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && test -s "$nlist"; then
5002 # Try sorting and uniquifying the output.
5003 if sort "$nlist" | uniq > "$nlist"T; then
5004 mv -f "$nlist"T "$nlist"
5009 # Make sure that we snagged all the symbols we need.
5010 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5011 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5012 cat <<EOF > conftest.$ac_ext
5018 # Now generate the symbol file.
5019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5021 cat <<EOF >> conftest.$ac_ext
5022 #if defined (__STDC__) && __STDC__
5023 # define lt_ptr_t void *
5025 # define lt_ptr_t char *
5029 /* The mapping between symbol names and symbols. */
5034 lt_preloaded_symbols[] =
5037 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5038 cat <<\EOF >> conftest.$ac_ext
5046 # Now try linking the two files.
5047 mv conftest.$ac_objext conftstm.$ac_objext
5048 lt_save_LIBS="$LIBS"
5049 lt_save_CFLAGS="$CFLAGS"
5050 LIBS="conftstm.$ac_objext"
5051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5059 LIBS="$lt_save_LIBS"
5060 CFLAGS="$lt_save_CFLAGS"
5062 echo "cannot find nm_test_func in $nlist" >&5
5065 echo "cannot find nm_test_var in $nlist" >&5
5068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5071 echo "$progname: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 rm -f conftest* conftst*
5076 # Do not use the global_symbol_pipe unless it works.
5077 if test "$pipe_works" = yes; then
5080 lt_cv_sys_global_symbol_pipe=
5086 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5087 lt_cv_sys_global_symbol_to_cdecl=
5089 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5090 echo "$as_me:$LINENO: result: failed" >&5
5091 echo "${ECHO_T}failed" >&6
5093 echo "$as_me:$LINENO: result: ok" >&5
5094 echo "${ECHO_T}ok" >&6
5097 echo "$as_me:$LINENO: checking for objdir" >&5
5098 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5099 if test "${lt_cv_objdir+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 rm -f .libs 2>/dev/null
5103 mkdir .libs 2>/dev/null
5104 if test -d .libs; then
5107 # MS-DOS does not allow filenames that begin with a dot.
5110 rmdir .libs 2>/dev/null
5112 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5113 echo "${ECHO_T}$lt_cv_objdir" >&6
5114 objdir=$lt_cv_objdir
5122 # AIX sometimes has problems with the GCC collect2 program. For some
5123 # reason, if we set the COLLECT_NAMES environment variable, the problems
5124 # vanish in a puff of smoke.
5125 if test "X${COLLECT_NAMES+set}" != Xset; then
5127 export COLLECT_NAMES
5132 # Sed substitution that helps us do robust quoting. It backslashifies
5133 # metacharacters that are still active within double-quoted strings.
5134 Xsed='sed -e s/^X//'
5135 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5137 # Same as above, but do not quote variable references.
5138 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5140 # Sed substitution to delay expansion of an escaped shell variable in a
5141 # double_quote_subst'ed string.
5142 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5144 # Sed substitution to avoid accidental globbing in evaled expressions
5145 no_glob_subst='s/\*/\\\*/g'
5152 can_build_shared=yes
5154 # All known linkers require a `.a' archive for static linking (except M$VC,
5155 # which needs '.lib').
5157 ltmain="$ac_aux_dir/ltmain.sh"
5158 ofile="$default_ofile"
5159 with_gnu_ld="$lt_cv_prog_gnu_ld"
5161 if test -n "$ac_tool_prefix"; then
5162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5163 set dummy ${ac_tool_prefix}ar; ac_word=$2
5164 echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_AR+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 if test -n "$AR"; then
5170 ac_cv_prog_AR="$AR" # Let the user override the test.
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_AR="${ac_tool_prefix}ar"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 if test -n "$AR"; then
5190 echo "$as_me:$LINENO: result: $AR" >&5
5191 echo "${ECHO_T}$AR" >&6
5193 echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5198 if test -z "$ac_cv_prog_AR"; then
5200 # Extract the first word of "ar", so it can be a program name with args.
5201 set dummy ar; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 if test -n "$ac_ct_AR"; then
5208 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_AR="ar"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5228 if test -n "$ac_ct_AR"; then
5229 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5230 echo "${ECHO_T}$ac_ct_AR" >&6
5232 echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5241 if test -n "$ac_tool_prefix"; then
5242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5243 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_RANLIB+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 if test -n "$RANLIB"; then
5250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 RANLIB=$ac_cv_prog_RANLIB
5269 if test -n "$RANLIB"; then
5270 echo "$as_me:$LINENO: result: $RANLIB" >&5
5271 echo "${ECHO_T}$RANLIB" >&6
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5278 if test -z "$ac_cv_prog_RANLIB"; then
5279 ac_ct_RANLIB=$RANLIB
5280 # Extract the first word of "ranlib", so it can be a program name with args.
5281 set dummy ranlib; ac_word=$2
5282 echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5284 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 if test -n "$ac_ct_RANLIB"; then
5288 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297 ac_cv_prog_ac_ct_RANLIB="ranlib"
5298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5307 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5308 if test -n "$ac_ct_RANLIB"; then
5309 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5310 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5312 echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6
5316 RANLIB=$ac_ct_RANLIB
5318 RANLIB="$ac_cv_prog_RANLIB"
5321 if test -n "$ac_tool_prefix"; then
5322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5323 set dummy ${ac_tool_prefix}strip; ac_word=$2
5324 echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326 if test "${ac_cv_prog_STRIP+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 if test -n "$STRIP"; then
5330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 STRIP=$ac_cv_prog_STRIP
5349 if test -n "$STRIP"; then
5350 echo "$as_me:$LINENO: result: $STRIP" >&5
5351 echo "${ECHO_T}$STRIP" >&6
5353 echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5358 if test -z "$ac_cv_prog_STRIP"; then
5360 # Extract the first word of "strip", so it can be a program name with args.
5361 set dummy strip; ac_word=$2
5362 echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 if test -n "$ac_ct_STRIP"; then
5368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_ac_ct_STRIP="strip"
5378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5388 if test -n "$ac_ct_STRIP"; then
5389 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5390 echo "${ECHO_T}$ac_ct_STRIP" >&6
5392 echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5398 STRIP="$ac_cv_prog_STRIP"
5403 old_CFLAGS="$CFLAGS"
5405 # Set sane defaults for various variables
5406 test -z "$AR" && AR=ar
5407 test -z "$AR_FLAGS" && AR_FLAGS=cru
5408 test -z "$AS" && AS=as
5409 test -z "$CC" && CC=cc
5410 test -z "$LTCC" && LTCC=$CC
5411 test -z "$DLLTOOL" && DLLTOOL=dlltool
5412 test -z "$LD" && LD=ld
5413 test -z "$LN_S" && LN_S="ln -s"
5414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5415 test -z "$NM" && NM=nm
5416 test -z "$SED" && SED=sed
5417 test -z "$OBJDUMP" && OBJDUMP=objdump
5418 test -z "$RANLIB" && RANLIB=:
5419 test -z "$STRIP" && STRIP=:
5420 test -z "$ac_objext" && ac_objext=o
5422 # Determine commands to create old-style static archives.
5423 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5424 old_postinstall_cmds='chmod 644 $oldlib'
5425 old_postuninstall_cmds=
5427 if test -n "$RANLIB"; then
5430 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5433 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5436 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5439 # Only perform the check for file, if the check method requires it
5440 case $deplibs_check_method in
5442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5443 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5444 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5453 lt_save_MAGIC_CMD="$MAGIC_CMD"
5454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5456 for ac_dir in $ac_dummy; do
5458 test -z "$ac_dir" && ac_dir=.
5459 if test -f $ac_dir/${ac_tool_prefix}file; then
5460 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5461 if test -n "$file_magic_test_file"; then
5462 case $deplibs_check_method in
5464 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5467 $EGREP "$file_magic_regex" > /dev/null; then
5472 *** Warning: the command libtool uses to detect shared libraries,
5473 *** $file_magic_cmd, produces output that libtool cannot recognize.
5474 *** The result is that libtool may fail to recognize shared libraries
5475 *** as such. This will affect the creation of libtool libraries that
5476 *** depend on shared libraries, but programs linked with such libtool
5477 *** libraries will work regardless of this problem. Nevertheless, you
5478 *** may want to report the problem to your system manager and/or to
5479 *** bug-libtool@gnu.org
5489 MAGIC_CMD="$lt_save_MAGIC_CMD"
5494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5495 if test -n "$MAGIC_CMD"; then
5496 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5497 echo "${ECHO_T}$MAGIC_CMD" >&6
5499 echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6
5503 if test -z "$lt_cv_path_MAGIC_CMD"; then
5504 if test -n "$ac_tool_prefix"; then
5505 echo "$as_me:$LINENO: checking for file" >&5
5506 echo $ECHO_N "checking for file... $ECHO_C" >&6
5507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5515 lt_save_MAGIC_CMD="$MAGIC_CMD"
5516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5518 for ac_dir in $ac_dummy; do
5520 test -z "$ac_dir" && ac_dir=.
5521 if test -f $ac_dir/file; then
5522 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5523 if test -n "$file_magic_test_file"; then
5524 case $deplibs_check_method in
5526 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5529 $EGREP "$file_magic_regex" > /dev/null; then
5534 *** Warning: the command libtool uses to detect shared libraries,
5535 *** $file_magic_cmd, produces output that libtool cannot recognize.
5536 *** The result is that libtool may fail to recognize shared libraries
5537 *** as such. This will affect the creation of libtool libraries that
5538 *** depend on shared libraries, but programs linked with such libtool
5539 *** libraries will work regardless of this problem. Nevertheless, you
5540 *** may want to report the problem to your system manager and/or to
5541 *** bug-libtool@gnu.org
5551 MAGIC_CMD="$lt_save_MAGIC_CMD"
5556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5557 if test -n "$MAGIC_CMD"; then
5558 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5559 echo "${ECHO_T}$MAGIC_CMD" >&6
5561 echo "$as_me:$LINENO: result: no" >&5
5562 echo "${ECHO_T}no" >&6
5577 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5578 if test "${enable_libtool_lock+set}" = set; then
5579 enableval="$enable_libtool_lock"
5582 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5585 # Check whether --with-pic or --without-pic was given.
5586 if test "${with_pic+set}" = set; then
5592 test -z "$pic_mode" && pic_mode=default
5594 # Use C for the default configuration in the libtool script
5598 ac_cpp='$CPP $CPPFLAGS'
5599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5604 # Source file extension for C test sources.
5607 # Object file extension for compiled C test sources.
5611 # Code to be used in simple compile tests
5612 lt_simple_compile_test_code="int some_variable = 0;\n"
5614 # Code to be used in simple link tests
5615 lt_simple_link_test_code='int main(){return(0);}\n'
5618 # If no C compiler was specified, use CC.
5621 # Allow CC to be a program name with arguments.
5626 # Check for any special shared library compilation flags.
5629 if test "$GCC" = no; then
5632 lt_prog_cc_shlib='-belf'
5636 if test -n "$lt_prog_cc_shlib"; then
5637 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5638 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5639 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5641 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5642 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5643 lt_cv_prog_cc_can_build_shared=no
5649 # Check to make sure the static flag actually works.
5651 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5652 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5653 if test "${lt_prog_compiler_static_works+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 lt_prog_compiler_static_works=no
5657 save_LDFLAGS="$LDFLAGS"
5658 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5659 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5661 # The compiler can only warn and ignore the option if not recognized
5662 # So say no if there are warnings
5663 if test -s conftest.err; then
5664 # Append any errors to the config.log.
5665 cat conftest.err 1>&5
5667 lt_prog_compiler_static_works=yes
5671 LDFLAGS="$save_LDFLAGS"
5674 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5675 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5677 if test x"$lt_prog_compiler_static_works" = xyes; then
5680 lt_prog_compiler_static=
5686 ## There is no encapsulation within the following macros, do not change
5687 ## the running order or otherwise move them around unless you know exactly
5688 ## what you are doing...
5690 lt_prog_compiler_no_builtin_flag=
5692 if test "$GCC" = yes; then
5693 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5695 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5696 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5697 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 lt_cv_prog_compiler_rtti_exceptions=no
5701 ac_outfile=conftest.$ac_objext
5702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5703 lt_compiler_flag="-fno-rtti -fno-exceptions"
5704 # Insert the option either (1) after the last *FLAGS variable, or
5705 # (2) before a word containing "conftest.", or (3) at the end.
5706 # Note that $ac_compile itself does not contain backslashes and begins
5707 # with a dollar sign (not a hyphen), so the echo should work correctly.
5708 # The option is referenced via a variable to avoid confusing sed.
5709 lt_compile=`echo "$ac_compile" | $SED \
5710 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5712 -e 's:$: $lt_compiler_flag:'`
5713 (eval echo "\"\$as_me:5713: $lt_compile\"" >&5)
5714 (eval "$lt_compile" 2>conftest.err)
5716 cat conftest.err >&5
5717 echo "$as_me:5717: \$? = $ac_status" >&5
5718 if (exit $ac_status) && test -s "$ac_outfile"; then
5719 # The compiler can only warn and ignore the option if not recognized
5720 # So say no if there are warnings
5721 if test ! -s conftest.err; then
5722 lt_cv_prog_compiler_rtti_exceptions=yes
5728 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5729 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5731 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5732 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5739 lt_prog_compiler_wl=
5740 lt_prog_compiler_pic=
5741 lt_prog_compiler_static=
5743 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5744 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5746 if test "$GCC" = yes; then
5747 lt_prog_compiler_wl='-Wl,'
5748 lt_prog_compiler_static='-static'
5752 # All AIX code is PIC.
5753 if test "$host_cpu" = ia64; then
5754 # AIX 5 now supports IA64 processor
5755 lt_prog_compiler_static='-Bstatic'
5760 # FIXME: we need at least 68020 code to build shared libraries, but
5761 # adding the `-m68020' flag to GCC prevents building anything better,
5763 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5766 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5767 # PIC is the default for these OSes.
5770 mingw* | pw32* | os2*)
5771 # This hack is so that the source file can tell whether it is being
5772 # built for inclusion in a dll (and should export symbols for example).
5773 lt_prog_compiler_pic='-DDLL_EXPORT'
5776 darwin* | rhapsody*)
5777 # PIC is the default on this platform
5778 # Common symbols not allowed in MH_DYLIB files
5779 lt_prog_compiler_pic='-fno-common'
5783 # Just because we use GCC doesn't mean we suddenly get shared libraries
5784 # on systems that don't support them.
5785 lt_prog_compiler_can_build_shared=no
5790 if test -d /usr/nec; then
5791 lt_prog_compiler_pic=-Kconform_pic
5796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5803 lt_prog_compiler_pic='-fPIC'
5809 lt_prog_compiler_pic='-fPIC'
5813 # PORTME Check for flag to pass linker flags through the system compiler.
5816 lt_prog_compiler_wl='-Wl,'
5817 if test "$host_cpu" = ia64; then
5818 # AIX 5 now supports IA64 processor
5819 lt_prog_compiler_static='-Bstatic'
5821 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5825 mingw* | pw32* | os2*)
5826 # This hack is so that the source file can tell whether it is being
5827 # built for inclusion in a dll (and should export symbols for example).
5828 lt_prog_compiler_pic='-DDLL_EXPORT'
5831 hpux9* | hpux10* | hpux11*)
5832 lt_prog_compiler_wl='-Wl,'
5833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5840 lt_prog_compiler_pic='+Z'
5843 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5844 lt_prog_compiler_static='${wl}-a ${wl}archive'
5847 irix5* | irix6* | nonstopux*)
5848 lt_prog_compiler_wl='-Wl,'
5849 # PIC (with -KPIC) is the default.
5850 lt_prog_compiler_static='-non_shared'
5854 lt_prog_compiler_pic='-KPIC'
5855 lt_prog_compiler_static='-Bstatic'
5861 lt_prog_compiler_wl='-Wl,'
5862 lt_prog_compiler_pic='-KPIC'
5863 lt_prog_compiler_static='-static'
5866 lt_prog_compiler_wl='-Wl,'
5867 # All Alpha code is PIC.
5868 lt_prog_compiler_static='-non_shared'
5873 osf3* | osf4* | osf5*)
5874 lt_prog_compiler_wl='-Wl,'
5875 # All OSF/1 code is PIC.
5876 lt_prog_compiler_static='-non_shared'
5880 lt_prog_compiler_pic='-Kpic'
5881 lt_prog_compiler_static='-dn'
5885 lt_prog_compiler_wl='-Wl,'
5886 lt_prog_compiler_pic='-KPIC'
5887 lt_prog_compiler_static='-Bstatic'
5891 lt_prog_compiler_wl='-Qoption ld '
5892 lt_prog_compiler_pic='-PIC'
5893 lt_prog_compiler_static='-Bstatic'
5896 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5897 lt_prog_compiler_wl='-Wl,'
5898 lt_prog_compiler_pic='-KPIC'
5899 lt_prog_compiler_static='-Bstatic'
5903 if test -d /usr/nec ;then
5904 lt_prog_compiler_pic='-Kconform_pic'
5905 lt_prog_compiler_static='-Bstatic'
5910 lt_prog_compiler_pic='-pic'
5911 lt_prog_compiler_static='-Bstatic'
5915 lt_prog_compiler_can_build_shared=no
5920 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5921 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5924 # Check to make sure the PIC flag actually works.
5926 if test -n "$lt_prog_compiler_pic"; then
5927 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5928 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5929 if test "${lt_prog_compiler_pic_works+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 lt_prog_compiler_pic_works=no
5933 ac_outfile=conftest.$ac_objext
5934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5935 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5936 # Insert the option either (1) after the last *FLAGS variable, or
5937 # (2) before a word containing "conftest.", or (3) at the end.
5938 # Note that $ac_compile itself does not contain backslashes and begins
5939 # with a dollar sign (not a hyphen), so the echo should work correctly.
5940 # The option is referenced via a variable to avoid confusing sed.
5941 lt_compile=`echo "$ac_compile" | $SED \
5942 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5944 -e 's:$: $lt_compiler_flag:'`
5945 (eval echo "\"\$as_me:5945: $lt_compile\"" >&5)
5946 (eval "$lt_compile" 2>conftest.err)
5948 cat conftest.err >&5
5949 echo "$as_me:5949: \$? = $ac_status" >&5
5950 if (exit $ac_status) && test -s "$ac_outfile"; then
5951 # The compiler can only warn and ignore the option if not recognized
5952 # So say no if there are warnings
5953 if test ! -s conftest.err; then
5954 lt_prog_compiler_pic_works=yes
5960 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5961 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5963 if test x"$lt_prog_compiler_pic_works" = xyes; then
5964 case $lt_prog_compiler_pic in
5966 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5969 lt_prog_compiler_pic=
5970 lt_prog_compiler_can_build_shared=no
5975 # For platforms which do not support PIC, -DPIC is meaningless:
5977 lt_prog_compiler_pic=
5980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5984 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5985 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5986 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 lt_cv_prog_compiler_c_o=no
5990 $rm -r conftest 2>/dev/null
5994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5996 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5997 # that will create temporary files in the current directory regardless of
5998 # the output directory. Thus, making CWD read-only will cause this test
5999 # to fail, enabling locking or at least warning the user not to do parallel
6003 lt_compiler_flag="-o out/conftest2.$ac_objext"
6004 # Insert the option either (1) after the last *FLAGS variable, or
6005 # (2) before a word containing "conftest.", or (3) at the end.
6006 # Note that $ac_compile itself does not contain backslashes and begins
6007 # with a dollar sign (not a hyphen), so the echo should work correctly.
6008 lt_compile=`echo "$ac_compile" | $SED \
6009 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6011 -e 's:$: $lt_compiler_flag:'`
6012 (eval echo "\"\$as_me:6012: $lt_compile\"" >&5)
6013 (eval "$lt_compile" 2>out/conftest.err)
6015 cat out/conftest.err >&5
6016 echo "$as_me:6016: \$? = $ac_status" >&5
6017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6019 # The compiler can only warn and ignore the option if not recognized
6020 # So say no if there are warnings
6021 if test ! -s out/conftest.err; then
6022 lt_cv_prog_compiler_c_o=yes
6033 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6034 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6037 hard_links="nottested"
6038 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6039 # do not overwrite the value of need_locks provided by the user
6040 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6041 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6046 ln conftest.a conftest.b 2>&5 || hard_links=no
6047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6048 echo "$as_me:$LINENO: result: $hard_links" >&5
6049 echo "${ECHO_T}$hard_links" >&6
6050 if test "$hard_links" = no; then
6051 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6052 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6059 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6060 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6063 allow_undefined_flag=
6064 enable_shared_with_static_runtimes=no
6066 archive_expsym_cmds=
6067 old_archive_From_new_cmds=
6068 old_archive_from_expsyms_cmds=
6069 export_dynamic_flag_spec=
6070 whole_archive_flag_spec=
6071 thread_safe_flag_spec=
6072 hardcode_libdir_flag_spec=
6073 hardcode_libdir_flag_spec_ld=
6074 hardcode_libdir_separator=
6077 hardcode_shlibpath_var=unsupported
6078 link_all_deplibs=unknown
6079 hardcode_automatic=no
6082 always_export_symbols=no
6083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6084 # include_expsyms should be a list of space-separated symbols to be *always*
6085 # included in the symbol list
6087 # exclude_expsyms can be an extended regexp of symbols to exclude
6088 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6089 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6090 # as well as any symbol that contains `d'.
6091 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6092 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6093 # platforms (ab)use it in PIC code, but their linkers get confused if
6094 # the symbol is explicitly referenced. Since portable code cannot
6095 # rely on this symbol name, it's probably fine to never include it in
6096 # preloaded symbol tables.
6097 extract_expsyms_cmds=
6100 cygwin* | mingw* | pw32*)
6101 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6102 # When not using gcc, we currently assume that we are using
6103 # Microsoft Visual C++.
6104 if test "$GCC" != yes; then
6114 if test "$with_gnu_ld" = yes; then
6115 # If archive_cmds runs LD, not CC, wlarc should be empty
6118 # See if GNU ld supports shared libraries.
6120 aix3* | aix4* | aix5*)
6121 # On AIX/PPC, the GNU linker is very broken
6122 if test "$host_cpu" != ia64; then
6126 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6127 *** to be unable to reliably create shared libraries on AIX.
6128 *** Therefore, libtool is disabling shared libraries support. If you
6129 *** really care for shared libraries, you may want to modify your PATH
6130 *** so that a non-GNU linker is found, and then restart.
6137 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)'
6138 hardcode_libdir_flag_spec='-L$libdir'
6139 hardcode_minus_L=yes
6141 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6142 # that the semantics of dynamic libraries on AmigaOS, at least up
6143 # to version 4, is to share data among multiple programs linked
6144 # with the same dynamic library. Since this doesn't match the
6145 # behavior of shared libraries on other platforms, we can't use
6151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6152 allow_undefined_flag=unsupported
6153 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6154 # support --undefined. This deserves some investigation. FIXME
6155 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6161 cygwin* | mingw* | pw32*)
6162 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6163 # as there is no search path for DLLs.
6164 hardcode_libdir_flag_spec='-L$libdir'
6165 allow_undefined_flag=unsupported
6166 always_export_symbols=no
6167 enable_shared_with_static_runtimes=yes
6168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6170 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6172 # If the export-symbols file already is a .def file (1st line
6173 # is EXPORTS), use it as is; otherwise, prepend...
6174 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6175 cp $export_symbols $output_objdir/$soname.def;
6177 echo EXPORTS > $output_objdir/$soname.def;
6178 cat $export_symbols >> $output_objdir/$soname.def;
6180 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6187 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6188 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6197 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6201 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6202 *** create shared libraries on Solaris systems. Therefore, libtool
6203 *** is disabling shared libraries support. We urge you to upgrade GNU
6204 *** binutils to release 2.9.1 or newer. Another option is to modify
6205 *** your PATH or compiler configuration so that the native linker is
6206 *** used, and then restart.
6209 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6218 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6221 hardcode_shlibpath_var=no
6225 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6234 if test "$ld_shlibs" = yes; then
6235 runpath_var=LD_RUN_PATH
6236 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6237 export_dynamic_flag_spec='${wl}--export-dynamic'
6238 # ancient GNU ld didn't support --whole-archive et. al.
6239 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6240 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6242 whole_archive_flag_spec=
6246 # PORTME fill in a description of your system's linker (not GNU ld)
6249 allow_undefined_flag=unsupported
6250 always_export_symbols=yes
6251 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'
6252 # Note: this linker hardcodes the directories in LIBPATH if there
6253 # are no directories specified by -L.
6254 hardcode_minus_L=yes
6255 if test "$GCC" = yes && test -z "$link_static_flag"; then
6256 # Neither direct hardcoding nor static linking is supported with a
6258 hardcode_direct=unsupported
6263 if test "$host_cpu" = ia64; then
6264 # On IA64, the linker does run time linking by default, so we don't
6265 # have to do anything special.
6266 aix_use_runtimelinking=no
6267 exp_sym_flag='-Bexport'
6270 # If we're using GNU nm, then we don't want the "-C" option.
6271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6272 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6273 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'
6275 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'
6277 aix_use_runtimelinking=no
6279 # Test if we are trying to use run time linking or normal
6280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6281 # need to do runtime linking.
6282 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6283 for ld_flag in $LDFLAGS; do
6284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6285 aix_use_runtimelinking=yes
6291 exp_sym_flag='-bexport'
6292 no_entry_flag='-bnoentry'
6295 # When large executables or shared objects are built, AIX ld can
6296 # have problems creating the table of contents. If linking a library
6297 # or program results in "error TOC overflow" add -mminimal-toc to
6298 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6299 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6303 hardcode_libdir_separator=':'
6304 link_all_deplibs=yes
6306 if test "$GCC" = yes; then
6307 case $host_os in aix4.012|aix4.012.*)
6308 # We only want to do this on AIX 4.2 and lower, the check
6309 # below for broken collect2 doesn't work under 4.3+
6310 collect2name=`${CC} -print-prog-name=collect2`
6311 if test -f "$collect2name" && \
6312 strings "$collect2name" | grep resolve_lib_name >/dev/null
6314 # We have reworked collect2
6317 # We have old collect2
6318 hardcode_direct=unsupported
6319 # It fails to find uninstalled libraries when the uninstalled
6320 # path is not listed in the libpath. Setting hardcode_minus_L
6321 # to unsupported forces relinking
6322 hardcode_minus_L=yes
6323 hardcode_libdir_flag_spec='-L$libdir'
6324 hardcode_libdir_separator=
6327 shared_flag='-shared'
6330 if test "$host_cpu" = ia64; then
6331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6332 # chokes on -Wl,-G. The following line is correct:
6335 if test "$aix_use_runtimelinking" = yes; then
6336 shared_flag='${wl}-G'
6338 shared_flag='${wl}-bM:SRE'
6343 # It seems that -bexpall does not export symbols beginning with
6344 # underscore (_), so it is better to generate a list of symbols to export.
6345 always_export_symbols=yes
6346 if test "$aix_use_runtimelinking" = yes; then
6347 # Warning - without using the other runtime loading flags (-brtl),
6348 # -berok will link without error, but may produce a broken library.
6349 allow_undefined_flag='-berok'
6350 # Determine the default libpath from the value encoded in an empty executable.
6351 cat >conftest.$ac_ext <<_ACEOF
6352 #line $LINENO "configure"
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try='test -s conftest$ac_exeext'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
6380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6382 # Check for a 64-bit object if we didn't find anything.
6383 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; }
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6391 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6393 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6394 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"
6396 if test "$host_cpu" = ia64; then
6397 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6398 allow_undefined_flag="-z nodefs"
6399 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"
6401 # Determine the default libpath from the value encoded in an empty executable.
6402 cat >conftest.$ac_ext <<_ACEOF
6403 #line $LINENO "configure"
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6420 (eval $ac_link) 2>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -s conftest$ac_exeext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6433 # Check for a 64-bit object if we didn't find anything.
6434 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; }
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6444 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6445 # Warning - without using the other run time loading flags,
6446 # -berok will link without error, but may produce a broken library.
6447 no_undefined_flag=' ${wl}-bernotok'
6448 allow_undefined_flag=' ${wl}-berok'
6449 # -bexpall does not export symbols beginning with underscore (_)
6450 always_export_symbols=yes
6451 # Exported symbols can be pulled into shared objects from archives
6452 whole_archive_flag_spec=' '
6453 archive_cmds_need_lc=yes
6454 # This is similar to how AIX traditionally builds it's shared libraries.
6455 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'
6461 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)'
6462 hardcode_libdir_flag_spec='-L$libdir'
6463 hardcode_minus_L=yes
6464 # see comment about different semantics on the GNU ld section
6469 export_dynamic_flag_spec=-rdynamic
6472 cygwin* | mingw* | pw32*)
6473 # When not using gcc, we currently assume that we are using
6474 # Microsoft Visual C++.
6475 # hardcode_libdir_flag_spec is actually meaningless, as there is
6476 # no search path for DLLs.
6477 hardcode_libdir_flag_spec=' '
6478 allow_undefined_flag=unsupported
6479 # Tell ltmain to make .lib files, not .a files.
6481 # Tell ltmain to make .dll files, not .so files.
6483 # FIXME: Setting linknames here is a bad hack.
6484 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6485 # The linker will automatically build a .lib file if we build a DLL.
6486 old_archive_From_new_cmds='true'
6487 # FIXME: Should let the user specify the lib program.
6488 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6489 fix_srcfile_path='`cygpath -w "$srcfile"`'
6490 enable_shared_with_static_runtimes=yes
6493 darwin* | rhapsody*)
6494 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6495 archive_cmds_need_lc=no
6497 rhapsody* | darwin1.[012])
6498 allow_undefined_flag='-undefined suppress'
6501 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6504 # FIXME: Relying on posixy $() will cause problems for
6505 # cross-compilation, but unfortunately the echo tests do not
6506 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6507 # `"' quotes if we put them in here... so don't!
6508 lt_int_apple_cc_single_mod=no
6509 output_verbose_link_cmd='echo'
6510 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6511 lt_int_apple_cc_single_mod=yes
6513 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6514 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6516 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'
6518 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6519 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6520 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6521 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}'
6523 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}'
6525 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}'
6527 hardcode_automatic=yes
6528 hardcode_shlibpath_var=unsupported
6529 whole_archive_flag_spec='-all_load $convenience'
6530 link_all_deplibs=yes
6535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6536 hardcode_libdir_flag_spec='-L$libdir'
6537 hardcode_shlibpath_var=no
6544 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6545 # support. Future versions do this automatically, but an explicit c++rt0.o
6546 # does not break anything, and helps significantly (at the cost of a little
6549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6550 hardcode_libdir_flag_spec='-R$libdir'
6552 hardcode_shlibpath_var=no
6555 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6559 hardcode_minus_L=yes
6560 hardcode_shlibpath_var=no
6563 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6565 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6566 hardcode_libdir_flag_spec='-R$libdir'
6568 hardcode_shlibpath_var=no
6572 if test "$GCC" = yes; then
6573 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'
6575 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'
6577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6578 hardcode_libdir_separator=:
6581 # hardcode_minus_L: Not really in the search PATH,
6582 # but as the default location of the library.
6583 hardcode_minus_L=yes
6584 export_dynamic_flag_spec='${wl}-E'
6588 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6591 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6594 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6600 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6603 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6607 if test "$with_gnu_ld" = no; then
6610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6611 hardcode_libdir_flag_spec_ld='+b $libdir'
6612 hardcode_libdir_separator=:
6614 hardcode_shlibpath_var=no
6617 hardcode_libdir_flag_spec='-L$libdir'
6619 hardcode_shlibpath_var=no
6621 # hardcode_minus_L: Not really in the search PATH,
6622 # but as the default location of the library.
6623 hardcode_minus_L=yes
6626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6627 hardcode_libdir_separator=:
6629 export_dynamic_flag_spec='${wl}-E'
6631 # hardcode_minus_L: Not really in the search PATH,
6632 # but as the default location of the library.
6633 hardcode_minus_L=yes
6639 irix5* | irix6* | nonstopux*)
6640 if test "$GCC" = yes; then
6641 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'
6643 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'
6644 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6647 hardcode_libdir_separator=:
6648 link_all_deplibs=yes
6652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6655 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6657 hardcode_libdir_flag_spec='-R$libdir'
6659 hardcode_shlibpath_var=no
6663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6666 hardcode_libdir_separator=:
6667 hardcode_shlibpath_var=no
6672 hardcode_shlibpath_var=no
6673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6676 export_dynamic_flag_spec='${wl}-E'
6679 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6680 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6681 hardcode_libdir_flag_spec='-R$libdir'
6684 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6692 hardcode_libdir_flag_spec='-L$libdir'
6693 hardcode_minus_L=yes
6694 allow_undefined_flag=unsupported
6695 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'
6696 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6700 if test "$GCC" = yes; then
6701 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6702 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'
6704 allow_undefined_flag=' -expect_unresolved \*'
6705 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'
6707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6708 hardcode_libdir_separator=:
6711 osf4* | osf5*) # as osf3* with the addition of -msym flag
6712 if test "$GCC" = yes; then
6713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6714 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'
6715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6717 allow_undefined_flag=' -expect_unresolved \*'
6718 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'
6719 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6720 $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'
6722 # Both c and cxx compiler support -rpath directly
6723 hardcode_libdir_flag_spec='-rpath $libdir'
6725 hardcode_libdir_separator=:
6729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6730 hardcode_shlibpath_var=no
6731 export_dynamic_flag_spec='${wl}-Bexport'
6732 runpath_var=LD_RUN_PATH
6733 hardcode_runpath_var=yes
6737 no_undefined_flag=' -z text'
6738 if test "$GCC" = yes; then
6739 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6740 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6741 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6743 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6744 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6747 hardcode_libdir_flag_spec='-R$libdir'
6748 hardcode_shlibpath_var=no
6750 solaris2.[0-5] | solaris2.[0-5].*) ;;
6751 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6752 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6754 link_all_deplibs=yes
6758 if test "x$host_vendor" = xsequent; then
6759 # Use $CC to link under sequent, because it throws in some extra .o
6760 # files that make .init and .fini sections work.
6761 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6763 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6765 hardcode_libdir_flag_spec='-L$libdir'
6767 hardcode_minus_L=yes
6768 hardcode_shlibpath_var=no
6772 case $host_vendor in
6774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6775 hardcode_direct=yes # is this really true???
6778 ## LD is ld it makes a PLAMLIB
6779 ## CC just makes a GrossModule.
6780 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6781 reload_cmds='$CC -r -o $output$reload_objs'
6785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6786 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6789 runpath_var='LD_RUN_PATH'
6790 hardcode_shlibpath_var=no
6794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6795 hardcode_shlibpath_var=no
6796 export_dynamic_flag_spec='-Bexport'
6800 if test -d /usr/nec; then
6801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6802 hardcode_shlibpath_var=no
6803 runpath_var=LD_RUN_PATH
6804 hardcode_runpath_var=yes
6810 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6813 hardcode_shlibpath_var=no
6814 hardcode_runpath_var=yes
6815 runpath_var=LD_RUN_PATH
6818 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6819 no_undefined_flag='${wl}-z ${wl}text'
6820 if test "$GCC" = yes; then
6821 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6823 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6825 runpath_var='LD_RUN_PATH'
6826 hardcode_shlibpath_var=no
6830 no_undefined_flag=' -z text'
6831 # $CC -shared without GNU ld will not create a library from C++
6832 # object files and a static libstdc++, better avoid it by now
6833 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6834 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6836 hardcode_libdir_flag_spec=
6837 hardcode_shlibpath_var=no
6838 runpath_var='LD_RUN_PATH'
6842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6843 hardcode_libdir_flag_spec='-L$libdir'
6844 hardcode_shlibpath_var=no
6853 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6854 echo "${ECHO_T}$ld_shlibs" >&6
6855 test "$ld_shlibs" = no && can_build_shared=no
6857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6858 if test "$GCC" = yes; then
6859 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6863 # Do we need to explicitly link libc?
6865 case "x$archive_cmds_need_lc" in
6867 # Assume -lc should be added
6868 archive_cmds_need_lc=yes
6870 if test "$enable_shared" = yes && test "$GCC" = yes; then
6871 case $archive_cmds in
6873 # FIXME: we may have to deal with multi-command sequences.
6876 # Test whether the compiler implicitly links with -lc since on some
6877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6878 # to ld, don't add -lc before -lgcc.
6879 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6880 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } 2>conftest.err; then
6891 libobjs=conftest.$ac_objext
6893 wl=$lt_prog_compiler_wl
6899 lt_save_allow_undefined_flag=$allow_undefined_flag
6900 allow_undefined_flag=
6901 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6902 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }
6907 archive_cmds_need_lc=no
6909 archive_cmds_need_lc=yes
6911 allow_undefined_flag=$lt_save_allow_undefined_flag
6913 cat conftest.err 1>&5
6916 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6917 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6924 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6925 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6927 if test -n "$hardcode_libdir_flag_spec" || \
6928 test -n "$runpath_var " || \
6929 test "X$hardcode_automatic"="Xyes" ; then
6931 # We can hardcode non-existant directories.
6932 if test "$hardcode_direct" != no &&
6933 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6934 # have to relink, otherwise we might link with an installed library
6935 # when we should be linking with a yet-to-be-installed one
6936 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6937 test "$hardcode_minus_L" != no; then
6938 # Linking always hardcodes the temporary library directory.
6939 hardcode_action=relink
6941 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6942 hardcode_action=immediate
6945 # We cannot hardcode anything, or else we can only hardcode existing
6947 hardcode_action=unsupported
6949 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6950 echo "${ECHO_T}$hardcode_action" >&6
6952 if test "$hardcode_action" = relink; then
6953 # Fast installation is not supported
6954 enable_fast_install=no
6955 elif test "$shlibpath_overrides_runpath" = yes ||
6956 test "$enable_shared" = no; then
6957 # Fast installation is not necessary
6958 enable_fast_install=needless
6963 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6964 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6965 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6966 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6967 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6968 echo "$as_me:$LINENO: result: yes" >&5
6969 echo "${ECHO_T}yes" >&6
6971 # FIXME - insert some real tests, host_os isn't really good enough
6974 if test -n "$STRIP" ; then
6975 striplib="$STRIP -x"
6976 echo "$as_me:$LINENO: result: yes" >&5
6977 echo "${ECHO_T}yes" >&6
6979 echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6
6984 echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6
6990 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6991 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6993 libname_spec='lib$name'
7001 shlibpath_overrides_runpath=unknown
7003 dynamic_linker="$host_os ld.so"
7004 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7005 if test "$GCC" = yes; then
7006 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7007 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7008 # if the path contains ";" then we assume it to be the separator
7009 # otherwise default to the standard path separator (i.e. ":") - it is
7010 # assumed that no part of a normal pathname contains ";" but that should
7011 # okay in the real world where ";" in dirpaths is itself problematic.
7012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7017 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7019 need_lib_prefix=unknown
7020 hardcode_into_libs=no
7022 # when you set need_version to no, make sure it does not cause -set_version
7023 # flags to be left without arguments
7024 need_version=unknown
7029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7030 shlibpath_var=LIBPATH
7032 # AIX 3 has no versioning support, so we append a major version to the name.
7033 soname_spec='${libname}${release}${shared_ext}$major'
7040 hardcode_into_libs=yes
7041 if test "$host_cpu" = ia64; then
7042 # AIX 5 supports IA64
7043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7044 shlibpath_var=LD_LIBRARY_PATH
7046 # With GCC up to 2.95.x, collect2 would create an import file
7047 # for dependence libraries. The import file would start with
7048 # the line `#! .'. This would cause the generated library to
7049 # depend on `.', always an invalid library. This was fixed in
7050 # development snapshots of GCC prior to 3.0.
7052 aix4 | aix4.[01] | aix4.[01].*)
7053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7055 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7063 # soname into executable. Probably we can add versioning support to
7064 # collect2, so additional links can be useful in future.
7065 if test "$aix_use_runtimelinking" = yes; then
7066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7067 # instead of lib<name>.a to let people know that these are not
7068 # typical AIX shared libraries.
7069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7071 # We preserve .a as extension for shared libraries through AIX4.2
7072 # and later when we are not doing run time linking.
7073 library_names_spec='${libname}${release}.a $libname.a'
7074 soname_spec='${libname}${release}${shared_ext}$major'
7076 shlibpath_var=LIBPATH
7081 library_names_spec='$libname.ixlibrary $libname.a'
7082 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7083 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'
7087 library_names_spec='${libname}${shared_ext}'
7088 dynamic_linker="$host_os ld.so"
7089 shlibpath_var=LIBRARY_PATH
7095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7096 soname_spec='${libname}${release}${shared_ext}$major'
7097 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7098 shlibpath_var=LD_LIBRARY_PATH
7099 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7100 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7101 # the default ld.so.conf also contains /usr/contrib/lib and
7102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7103 # libtool to hard-code these into programs
7106 cygwin* | mingw* | pw32*)
7107 version_type=windows
7112 case $GCC,$host_os in
7113 yes,cygwin* | yes,mingw* | yes,pw32*)
7114 library_names_spec='$libname.dll.a'
7115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7116 postinstall_cmds='base_file=`basename \${file}`~
7117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7118 dldir=$destdir/`dirname \$dlpath`~
7119 test -d \$dldir || mkdir -p \$dldir~
7120 $install_prog $dir/$dlname \$dldir/$dlname'
7121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7122 dlpath=$dir/\$dldll~
7124 shlibpath_overrides_runpath=yes
7128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7130 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7133 # MinGW DLLs use traditional 'lib' prefix
7134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7137 # It is most probably a Windows format PATH printed by
7138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7139 # path with ; separators, and with drive letters. We can handle the
7140 # drive letters (cygwin fileutils understands them), so leave them,
7141 # especially as we might pass files found there to a mingw objdump,
7142 # which wouldn't understand a cygwinified path. Ahh.
7143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7149 # pw32 DLLs use 'pw' prefix rather than 'lib'
7150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7159 dynamic_linker='Win32 ld.exe'
7160 # FIXME: first we should search . and the directory the executable is in
7164 darwin* | rhapsody*)
7165 dynamic_linker="$host_os dyld"
7169 # FIXME: Relying on posixy $() will cause problems for
7170 # cross-compilation, but unfortunately the echo tests do not
7171 # yet detect zsh echo's removal of \ escapes.
7172 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7173 soname_spec='${libname}${release}${major}$shared_ext'
7174 shlibpath_overrides_runpath=yes
7175 shlibpath_var=DYLD_LIBRARY_PATH
7176 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7177 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7178 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7179 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"`
7181 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7189 soname_spec='${libname}${release}${shared_ext}$major'
7190 shlibpath_var=LD_LIBRARY_PATH
7198 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7199 version_type=freebsd-$objformat
7200 case $version_type in
7202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7211 shlibpath_var=LD_LIBRARY_PATH
7214 shlibpath_overrides_runpath=yes
7216 freebsd3.01* | freebsdelf3.01*)
7217 shlibpath_overrides_runpath=yes
7218 hardcode_into_libs=yes
7221 shlibpath_overrides_runpath=no
7222 hardcode_into_libs=yes
7231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7232 soname_spec='${libname}${release}${shared_ext}$major'
7233 shlibpath_var=LD_LIBRARY_PATH
7234 hardcode_into_libs=yes
7237 hpux9* | hpux10* | hpux11*)
7238 # Give a soname corresponding to the major version so that dld.sl refuses to
7239 # link against other versions.
7246 hardcode_into_libs=yes
7247 dynamic_linker="$host_os dld.so"
7248 shlibpath_var=LD_LIBRARY_PATH
7249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7251 soname_spec='${libname}${release}${shared_ext}$major'
7252 if test "X$HPUX_IA64_MODE" = X32; then
7253 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7255 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7261 hardcode_into_libs=yes
7262 dynamic_linker="$host_os dld.sl"
7263 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7266 soname_spec='${libname}${release}${shared_ext}$major'
7267 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7272 dynamic_linker="$host_os dld.sl"
7273 shlibpath_var=SHLIB_PATH
7274 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7276 soname_spec='${libname}${release}${shared_ext}$major'
7279 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7280 postinstall_cmds='chmod 555 $lib'
7283 irix5* | irix6* | nonstopux*)
7285 nonstopux*) version_type=nonstopux ;;
7287 if test "$lt_cv_prog_gnu_ld" = yes; then
7295 soname_spec='${libname}${release}${shared_ext}$major'
7296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7298 irix5* | nonstopux*)
7302 case $LD in # libtool.m4 will add one of these switches to LD
7303 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7304 libsuff= shlibsuff= libmagic=32-bit;;
7305 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7306 libsuff=32 shlibsuff=N32 libmagic=N32;;
7307 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7308 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7309 *) libsuff= shlibsuff= libmagic=never-match;;
7313 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7314 shlibpath_overrides_runpath=no
7315 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7316 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7317 hardcode_into_libs=yes
7320 # No shared lib support for Linux oldld, aout, or coff.
7321 linux*oldld* | linux*aout* | linux*coff*)
7325 # This must be Linux ELF.
7330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7331 soname_spec='${libname}${release}${shared_ext}$major'
7332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7333 shlibpath_var=LD_LIBRARY_PATH
7334 shlibpath_overrides_runpath=no
7335 # This implies no fast_install, which is unacceptable.
7336 # Some rework will be needed to allow for fast_install
7337 # before this can be enabled.
7338 hardcode_into_libs=yes
7340 # We used to test for /lib/ld.so.1 and disable shared libraries on
7341 # powerpc, because MkLinux only supported shared libraries with the
7342 # GNU dynamic linker. Since this was broken with cross compilers,
7343 # most powerpc-linux boxes support dynamic linking these days and
7344 # people can always --disable-shared, the test was removed, and we
7345 # assume the GNU/Linux dynamic linker is in use.
7346 dynamic_linker='GNU/Linux ld.so'
7353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7356 dynamic_linker='NetBSD (a.out) ld.so'
7358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7359 soname_spec='${libname}${release}${shared_ext}$major'
7360 dynamic_linker='NetBSD ld.elf_so'
7362 shlibpath_var=LD_LIBRARY_PATH
7363 shlibpath_overrides_runpath=yes
7364 hardcode_into_libs=yes
7369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7370 shlibpath_var=LD_LIBRARY_PATH
7371 shlibpath_overrides_runpath=yes
7378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7379 soname_spec='${libname}${release}${shared_ext}$major'
7380 shlibpath_var=LD_LIBRARY_PATH
7381 shlibpath_overrides_runpath=yes
7388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7390 shlibpath_var=LD_LIBRARY_PATH
7391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7393 openbsd2.[89] | openbsd2.[89].*)
7394 shlibpath_overrides_runpath=no
7397 shlibpath_overrides_runpath=yes
7401 shlibpath_overrides_runpath=yes
7406 libname_spec='$name'
7409 library_names_spec='$libname${shared_ext} $libname.a'
7410 dynamic_linker='OS/2 ld.exe'
7411 shlibpath_var=LIBPATH
7414 osf3* | osf4* | osf5*)
7418 soname_spec='${libname}${release}${shared_ext}$major'
7419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7420 shlibpath_var=LD_LIBRARY_PATH
7421 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7422 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7427 soname_spec='${libname}${release}${shared_ext}$major'
7428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7429 shlibpath_var=LD_LIBRARY_PATH
7436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7437 soname_spec='${libname}${release}${shared_ext}$major'
7438 shlibpath_var=LD_LIBRARY_PATH
7439 shlibpath_overrides_runpath=yes
7440 hardcode_into_libs=yes
7441 # ldd complains unless libraries are executable
7442 postinstall_cmds='chmod +x $lib'
7447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7449 shlibpath_var=LD_LIBRARY_PATH
7450 shlibpath_overrides_runpath=yes
7451 if test "$with_gnu_ld" = yes; then
7457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7460 soname_spec='${libname}${release}${shared_ext}$major'
7461 shlibpath_var=LD_LIBRARY_PATH
7462 case $host_vendor in
7464 shlibpath_overrides_runpath=no
7466 export_dynamic_flag_spec='${wl}-Blargedynsym'
7467 runpath_var=LD_RUN_PATH
7475 shlibpath_overrides_runpath=no
7476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7482 if test -d /usr/nec ;then
7484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7485 soname_spec='$libname${shared_ext}.$major'
7486 shlibpath_var=LD_LIBRARY_PATH
7492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7493 soname_spec='${libname}${release}${shared_ext}$major'
7494 shlibpath_var=LD_LIBRARY_PATH
7501 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7502 echo "${ECHO_T}$dynamic_linker" >&6
7503 test "$dynamic_linker" = no && can_build_shared=no
7505 if test "x$enable_dlopen" != xyes; then
7506 enable_dlopen=unknown
7507 enable_dlopen_self=unknown
7508 enable_dlopen_self_static=unknown
7515 lt_cv_dlopen="load_add_on"
7517 lt_cv_dlopen_self=yes
7521 lt_cv_dlopen="LoadLibrary"
7526 lt_cv_dlopen="dlopen"
7531 # if libdl is installed we need to link against it
7532 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7533 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 ac_check_lib_save_LIBS=$LIBS
7539 cat >conftest.$ac_ext <<_ACEOF
7540 #line $LINENO "configure"
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7547 /* Override any gcc2 internal prototype to avoid an error. */
7551 /* We use char because int might match the return type of a gcc2
7552 builtin and then its argument prototype would still apply. */
7562 rm -f conftest.$ac_objext conftest$ac_exeext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564 (eval $ac_link) 2>&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } &&
7568 { ac_try='test -s conftest$ac_exeext'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; }; then
7574 ac_cv_lib_dl_dlopen=yes
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 ac_cv_lib_dl_dlopen=no
7581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7582 LIBS=$ac_check_lib_save_LIBS
7584 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7585 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7586 if test $ac_cv_lib_dl_dlopen = yes; then
7587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7592 lt_cv_dlopen_self=yes
7599 echo "$as_me:$LINENO: checking for shl_load" >&5
7600 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7601 if test "${ac_cv_func_shl_load+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 cat >conftest.$ac_ext <<_ACEOF
7605 #line $LINENO "configure"
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 /* System header to define __stub macros and hopefully few prototypes,
7612 which can conflict with char shl_load (); below.
7613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7614 <limits.h> exists even on freestanding compilers. */
7616 # include <limits.h>
7618 # include <assert.h>
7620 /* Override any gcc2 internal prototype to avoid an error. */
7625 /* We use char because int might match the return type of a gcc2
7626 builtin and then its argument prototype would still apply. */
7628 /* The GNU C library defines this for functions which it implements
7629 to always fail with ENOSYS. Some functions are actually named
7630 something starting with __ and the normal name is an alias. */
7631 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7634 char (*f) () = shl_load;
7643 return f != shl_load;
7648 rm -f conftest.$ac_objext conftest$ac_exeext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -s conftest$ac_exeext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 ac_cv_func_shl_load=yes
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 ac_cv_func_shl_load=no
7667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7670 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7671 if test $ac_cv_func_shl_load = yes; then
7672 lt_cv_dlopen="shl_load"
7674 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7675 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7676 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 ac_check_lib_save_LIBS=$LIBS
7681 cat >conftest.$ac_ext <<_ACEOF
7682 #line $LINENO "configure"
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7689 /* Override any gcc2 internal prototype to avoid an error. */
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7704 rm -f conftest.$ac_objext conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -s conftest$ac_exeext'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 ac_cv_lib_dld_shl_load=yes
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 ac_cv_lib_dld_shl_load=no
7723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7724 LIBS=$ac_check_lib_save_LIBS
7726 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7727 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7728 if test $ac_cv_lib_dld_shl_load = yes; then
7729 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7731 echo "$as_me:$LINENO: checking for dlopen" >&5
7732 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7733 if test "${ac_cv_func_dlopen+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 cat >conftest.$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 /* System header to define __stub macros and hopefully few prototypes,
7744 which can conflict with char dlopen (); below.
7745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7746 <limits.h> exists even on freestanding compilers. */
7748 # include <limits.h>
7750 # include <assert.h>
7752 /* Override any gcc2 internal prototype to avoid an error. */
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7760 /* The GNU C library defines this for functions which it implements
7761 to always fail with ENOSYS. Some functions are actually named
7762 something starting with __ and the normal name is an alias. */
7763 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7766 char (*f) () = dlopen;
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -s conftest$ac_exeext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_cv_func_dlopen=yes
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 ac_cv_func_dlopen=no
7799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7801 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7802 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7803 if test $ac_cv_func_dlopen = yes; then
7804 lt_cv_dlopen="dlopen"
7806 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7807 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7808 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 ac_check_lib_save_LIBS=$LIBS
7813 cat >conftest.$ac_ext <<_ACEOF
7814 #line $LINENO "configure"
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7821 /* Override any gcc2 internal prototype to avoid an error. */
7825 /* We use char because int might match the return type of a gcc2
7826 builtin and then its argument prototype would still apply. */
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_dl_dlopen=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_lib_dl_dlopen=no
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856 LIBS=$ac_check_lib_save_LIBS
7858 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7859 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7860 if test $ac_cv_lib_dl_dlopen = yes; then
7861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7863 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7864 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7865 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 ac_check_lib_save_LIBS=$LIBS
7870 cat >conftest.$ac_ext <<_ACEOF
7871 #line $LINENO "configure"
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7878 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895 (eval $ac_link) 2>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_lib_svld_dlopen=yes
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 ac_cv_lib_svld_dlopen=no
7912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7913 LIBS=$ac_check_lib_save_LIBS
7915 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7916 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7917 if test $ac_cv_lib_svld_dlopen = yes; then
7918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7920 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7921 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7922 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 ac_check_lib_save_LIBS=$LIBS
7927 cat >conftest.$ac_ext <<_ACEOF
7928 #line $LINENO "configure"
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7935 /* Override any gcc2 internal prototype to avoid an error. */
7939 /* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7950 rm -f conftest.$ac_objext conftest$ac_exeext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7952 (eval $ac_link) 2>&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -s conftest$ac_exeext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_lib_dld_dld_link=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_lib_dld_dld_link=no
7969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7972 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7973 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7974 if test $ac_cv_lib_dld_dld_link = yes; then
7975 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7996 if test "x$lt_cv_dlopen" != xno; then
8002 case $lt_cv_dlopen in
8004 save_CPPFLAGS="$CPPFLAGS"
8005 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8007 save_LDFLAGS="$LDFLAGS"
8008 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8011 LIBS="$lt_cv_dlopen_libs $LIBS"
8013 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8014 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8015 if test "${lt_cv_dlopen_self+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 if test "$cross_compiling" = yes; then :
8019 lt_cv_dlopen_self=cross
8021 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8022 lt_status=$lt_dlunknown
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8024 "configure"
8025 #include "confdefs.h"
8034 # define LT_DLGLOBAL RTLD_GLOBAL
8037 # define LT_DLGLOBAL DL_GLOBAL
8039 # define LT_DLGLOBAL 0
8043 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8044 find out it does not work in some platform. */
8045 #ifndef LT_DLLAZY_OR_NOW
8047 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8050 # define LT_DLLAZY_OR_NOW DL_LAZY
8053 # define LT_DLLAZY_OR_NOW RTLD_NOW
8056 # define LT_DLLAZY_OR_NOW DL_NOW
8058 # define LT_DLLAZY_OR_NOW 0
8066 extern "C" void exit (int);
8069 void fnord() { int i=42;}
8072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8073 int status = $lt_dlunknown;
8077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8078 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8079 /* dlclose (self); */
8085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8086 (eval $ac_link) 2>&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8090 (./conftest; exit; ) 2>/dev/null
8093 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8094 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8095 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8098 # compilation failed
8099 lt_cv_dlopen_self=no
8106 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8107 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8109 if test "x$lt_cv_dlopen_self" = xyes; then
8110 LDFLAGS="$LDFLAGS $link_static_flag"
8111 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8112 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8113 if test "${lt_cv_dlopen_self_static+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 if test "$cross_compiling" = yes; then :
8117 lt_cv_dlopen_self_static=cross
8119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8120 lt_status=$lt_dlunknown
8121 cat > conftest.$ac_ext <<EOF
8122 #line 8122 "configure"
8123 #include "confdefs.h"
8132 # define LT_DLGLOBAL RTLD_GLOBAL
8135 # define LT_DLGLOBAL DL_GLOBAL
8137 # define LT_DLGLOBAL 0
8141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8142 find out it does not work in some platform. */
8143 #ifndef LT_DLLAZY_OR_NOW
8145 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8148 # define LT_DLLAZY_OR_NOW DL_LAZY
8151 # define LT_DLLAZY_OR_NOW RTLD_NOW
8154 # define LT_DLLAZY_OR_NOW DL_NOW
8156 # define LT_DLLAZY_OR_NOW 0
8164 extern "C" void exit (int);
8167 void fnord() { int i=42;}
8170 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8171 int status = $lt_dlunknown;
8175 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8176 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8177 /* dlclose (self); */
8183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184 (eval $ac_link) 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8188 (./conftest; exit; ) 2>/dev/null
8191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8193 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8196 # compilation failed
8197 lt_cv_dlopen_self_static=no
8204 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8205 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8208 CPPFLAGS="$save_CPPFLAGS"
8209 LDFLAGS="$save_LDFLAGS"
8214 case $lt_cv_dlopen_self in
8215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8216 *) enable_dlopen_self=unknown ;;
8219 case $lt_cv_dlopen_self_static in
8220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8221 *) enable_dlopen_self_static=unknown ;;
8226 # Report which librarie types wil actually be built
8227 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8228 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8229 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8230 echo "${ECHO_T}$can_build_shared" >&6
8232 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8233 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8234 test "$can_build_shared" = "no" && enable_shared=no
8236 # On AIX, shared libraries and static libraries use the same namespace, and
8237 # are all built from PIC.
8240 test "$enable_shared" = yes && enable_static=no
8241 if test -n "$RANLIB"; then
8242 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8243 postinstall_cmds='$RANLIB $lib'
8248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8249 test "$enable_shared" = yes && enable_static=no
8252 darwin* | rhapsody*)
8253 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8254 archive_cmds_need_lc=no
8256 rhapsody* | darwin1.[012])
8257 allow_undefined_flag='-undefined suppress'
8260 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8263 # FIXME: Relying on posixy $() will cause problems for
8264 # cross-compilation, but unfortunately the echo tests do not
8265 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8266 # `"' quotes if we put them in here... so don't!
8267 output_verbose_link_cmd='echo'
8268 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8269 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8270 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8271 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}'
8272 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}'
8274 hardcode_automatic=yes
8275 hardcode_shlibpath_var=unsupported
8276 whole_archive_flag_spec='-all_load $convenience'
8277 link_all_deplibs=yes
8281 echo "$as_me:$LINENO: result: $enable_shared" >&5
8282 echo "${ECHO_T}$enable_shared" >&6
8284 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8285 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8286 # Make sure either enable_shared or enable_static is yes.
8287 test "$enable_shared" = yes || enable_static=yes
8288 echo "$as_me:$LINENO: result: $enable_static" >&5
8289 echo "${ECHO_T}$enable_static" >&6
8291 # The else clause should only fire when bootstrapping the
8292 # libtool distribution, otherwise you forgot to ship ltmain.sh
8293 # with your package, and you will get complaints that there are
8294 # no rules to generate ltmain.sh.
8295 if test -f "$ltmain"; then
8296 # See if we are running on zsh, and set the options which allow our commands through
8297 # without removal of \ escapes.
8298 if test -n "${ZSH_VERSION+set}" ; then
8299 setopt NO_GLOB_SUBST
8301 # Now quote all the things that may contain metacharacters while being
8302 # careful not to overquote the AC_SUBSTed values. We take copies of the
8303 # variables and quote the copies for generation of the libtool script.
8304 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8307 deplibs_check_method reload_flag reload_cmds need_locks \
8308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8309 lt_cv_sys_global_symbol_to_c_name_address \
8310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8311 old_postinstall_cmds old_postuninstall_cmds \
8315 lt_prog_compiler_wl \
8316 lt_prog_compiler_pic \
8317 lt_prog_compiler_static \
8318 lt_prog_compiler_no_builtin_flag \
8319 export_dynamic_flag_spec \
8320 thread_safe_flag_spec \
8321 whole_archive_flag_spec \
8322 enable_shared_with_static_runtimes \
8324 old_archive_from_new_cmds \
8329 compiler_lib_search_path \
8331 archive_expsym_cmds \
8333 postuninstall_cmds \
8334 old_archive_from_expsyms_cmds \
8335 allow_undefined_flag \
8337 export_symbols_cmds \
8338 hardcode_libdir_flag_spec \
8339 hardcode_libdir_flag_spec_ld \
8340 hardcode_libdir_separator \
8341 hardcode_automatic \
8343 module_expsym_cmds \
8344 lt_cv_prog_compiler_c_o \
8349 old_archive_cmds | \
8350 old_archive_from_new_cmds | \
8352 archive_expsym_cmds | \
8354 module_expsym_cmds | \
8355 old_archive_from_expsyms_cmds | \
8356 export_symbols_cmds | \
8357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8358 postinstall_cmds | postuninstall_cmds | \
8359 old_postinstall_cmds | old_postuninstall_cmds | \
8360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8361 # Double-quote double-evaled strings.
8362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8371 *'\$0 --fallback-echo"')
8372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8377 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8379 { echo "$as_me:$LINENO: creating $ofile" >&5
8380 echo "$as_me: creating $ofile" >&6;}
8382 cat <<__EOF__ >> "$cfgfile"
8385 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8386 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8387 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8389 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8390 # Free Software Foundation, Inc.
8392 # This file is part of GNU Libtool:
8393 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8395 # This program is free software; you can redistribute it and/or modify
8396 # it under the terms of the GNU General Public License as published by
8397 # the Free Software Foundation; either version 2 of the License, or
8398 # (at your option) any later version.
8400 # This program is distributed in the hope that it will be useful, but
8401 # WITHOUT ANY WARRANTY; without even the implied warranty of
8402 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8403 # General Public License for more details.
8405 # You should have received a copy of the GNU General Public License
8406 # along with this program; if not, write to the Free Software
8407 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8409 # As a special exception to the GNU General Public License, if you
8410 # distribute this file as part of a program that contains a
8411 # configuration script generated by Autoconf, you may include it under
8412 # the same distribution terms that you use for the rest of that program.
8414 # A sed program that does not truncate output.
8417 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8418 Xsed="$SED -e s/^X//"
8420 # The HP-UX ksh and POSIX shell print the target directory to stdout
8422 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8424 # The names of the tagged configurations supported by this script.
8427 # ### BEGIN LIBTOOL CONFIG
8429 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8431 # Shell to use when invoking shell scripts.
8434 # Whether or not to build shared libraries.
8435 build_libtool_libs=$enable_shared
8437 # Whether or not to build static libraries.
8438 build_old_libs=$enable_static
8440 # Whether or not to add -lc for building shared libraries.
8441 build_libtool_need_lc=$archive_cmds_need_lc
8443 # Whether or not to disallow shared libs when runtime libs are static
8444 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8446 # Whether or not to optimize for fast installation.
8447 fast_install=$enable_fast_install
8450 host_alias=$host_alias
8453 # An echo program that does not interpret backslashes.
8458 AR_FLAGS=$lt_AR_FLAGS
8463 # A language-specific compiler.
8466 # Is the compiler the GNU C compiler?
8472 # The linker used to build libraries.
8475 # Whether we need hard or soft links.
8478 # A BSD-compatible nm program.
8481 # A symbol stripping program
8484 # Used to examine libraries when file_magic_cmd begins "file"
8485 MAGIC_CMD=$MAGIC_CMD
8487 # Used on cygwin: DLL creation program.
8490 # Used on cygwin: object dumper.
8493 # Used on cygwin: assembler.
8496 # The name of the directory that contains temporary libtool files.
8499 # How to create reloadable object files.
8500 reload_flag=$lt_reload_flag
8501 reload_cmds=$lt_reload_cmds
8503 # How to pass a linker flag through the compiler.
8504 wl=$lt_lt_prog_compiler_wl
8506 # Object file suffix (normally "o").
8509 # Old archive suffix (normally "a").
8512 # Shared library suffix (normally ".so").
8515 # Executable file suffix (normally "").
8518 # Additional compiler flags for building library objects.
8519 pic_flag=$lt_lt_prog_compiler_pic
8522 # What is the maximum length of a command?
8523 max_cmd_len=$lt_cv_sys_max_cmd_len
8525 # Does compiler simultaneously support -c and -o options?
8526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8528 # Must we lock files when doing compilation ?
8529 need_locks=$lt_need_locks
8531 # Do we need the lib prefix for modules?
8532 need_lib_prefix=$need_lib_prefix
8534 # Do we need a version for libraries?
8535 need_version=$need_version
8537 # Whether dlopen is supported.
8538 dlopen_support=$enable_dlopen
8540 # Whether dlopen of programs is supported.
8541 dlopen_self=$enable_dlopen_self
8543 # Whether dlopen of statically linked programs is supported.
8544 dlopen_self_static=$enable_dlopen_self_static
8546 # Compiler flag to prevent dynamic linking.
8547 link_static_flag=$lt_lt_prog_compiler_static
8549 # Compiler flag to turn off builtin functions.
8550 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8552 # Compiler flag to allow reflexive dlopens.
8553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8555 # Compiler flag to generate shared objects directly from archives.
8556 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8558 # Compiler flag to generate thread-safe objects.
8559 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8561 # Library versioning type.
8562 version_type=$version_type
8564 # Format of library name prefix.
8565 libname_spec=$lt_libname_spec
8567 # List of archive names. First name is the real one, the rest are links.
8568 # The last name is the one that the linker finds with -lNAME.
8569 library_names_spec=$lt_library_names_spec
8571 # The coded name of the library, if different from the real name.
8572 soname_spec=$lt_soname_spec
8574 # Commands used to build and install an old-style archive.
8576 old_archive_cmds=$lt_old_archive_cmds
8577 old_postinstall_cmds=$lt_old_postinstall_cmds
8578 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8580 # Create an old-style archive from a shared archive.
8581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8583 # Create a temporary old-style archive to link instead of a shared archive.
8584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8586 # Commands used to build and install a shared archive.
8587 archive_cmds=$lt_archive_cmds
8588 archive_expsym_cmds=$lt_archive_expsym_cmds
8589 postinstall_cmds=$lt_postinstall_cmds
8590 postuninstall_cmds=$lt_postuninstall_cmds
8592 # Commands used to build a loadable module (assumed same as above if empty)
8593 module_cmds=$lt_module_cmds
8594 module_expsym_cmds=$lt_module_expsym_cmds
8596 # Commands to strip libraries.
8597 old_striplib=$lt_old_striplib
8598 striplib=$lt_striplib
8600 # Dependencies to place before the objects being linked to create a
8602 predep_objects=$lt_predep_objects
8604 # Dependencies to place after the objects being linked to create a
8606 postdep_objects=$lt_postdep_objects
8608 # Dependencies to place before the objects being linked to create a
8612 # Dependencies to place after the objects being linked to create a
8614 postdeps=$lt_postdeps
8616 # The library search path used internally by the compiler when linking
8618 compiler_lib_search_path=$lt_compiler_lib_search_path
8620 # Method to check whether dependent libraries are shared objects.
8621 deplibs_check_method=$lt_deplibs_check_method
8623 # Command to use when deplibs_check_method == file_magic.
8624 file_magic_cmd=$lt_file_magic_cmd
8626 # Flag that allows shared libraries with undefined symbols to be built.
8627 allow_undefined_flag=$lt_allow_undefined_flag
8629 # Flag that forces no undefined symbols.
8630 no_undefined_flag=$lt_no_undefined_flag
8632 # Commands used to finish a libtool library installation in a directory.
8633 finish_cmds=$lt_finish_cmds
8635 # Same as above, but a single script fragment to be evaled but not shown.
8636 finish_eval=$lt_finish_eval
8638 # Take the output of nm and produce a listing of raw symbols and C names.
8639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8641 # Transform the output of nm in a proper C declaration
8642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8644 # Transform the output of nm in a C name address pair
8645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8647 # This is the shared library runtime path variable.
8648 runpath_var=$runpath_var
8650 # This is the shared library path variable.
8651 shlibpath_var=$shlibpath_var
8653 # Is shlibpath searched before the hard-coded library search path?
8654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8656 # How to hardcode a shared library path into an executable.
8657 hardcode_action=$hardcode_action
8659 # Whether we should hardcode library paths into libraries.
8660 hardcode_into_libs=$hardcode_into_libs
8662 # Flag to hardcode \$libdir into a binary during linking.
8663 # This must work even if \$libdir does not exist.
8664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8666 # If ld is used when linking, flag to hardcode \$libdir into
8667 # a binary during linking. This must work even if \$libdir does
8669 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8671 # Whether we need a single -rpath flag with a separated argument.
8672 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8674 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8676 hardcode_direct=$hardcode_direct
8678 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8680 hardcode_minus_L=$hardcode_minus_L
8682 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8683 # the resulting binary.
8684 hardcode_shlibpath_var=$hardcode_shlibpath_var
8686 # Set to yes if building a shared library automatically hardcodes DIR into the library
8687 # and all subsequent libraries and executables linked against it.
8688 hardcode_automatic=$hardcode_automatic
8690 # Variables whose values should be saved in libtool wrapper scripts and
8691 # restored at relink time.
8692 variables_saved_for_relink="$variables_saved_for_relink"
8694 # Whether libtool must link a program against all its dependency libraries.
8695 link_all_deplibs=$link_all_deplibs
8697 # Compile-time system search path for libraries
8698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8700 # Run-time system search path for libraries
8701 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8703 # Fix the shell variable \$srcfile for the compiler.
8704 fix_srcfile_path="$fix_srcfile_path"
8706 # Set to yes if exported symbols are required.
8707 always_export_symbols=$always_export_symbols
8709 # The commands to list exported symbols.
8710 export_symbols_cmds=$lt_export_symbols_cmds
8712 # The commands to extract the exported symbol list from a shared archive.
8713 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8715 # Symbols that should not be listed in the preloaded symbols.
8716 exclude_expsyms=$lt_exclude_expsyms
8718 # Symbols that must always be exported.
8719 include_expsyms=$lt_include_expsyms
8721 # ### END LIBTOOL CONFIG
8728 cat <<\EOF >> "$cfgfile"
8730 # AIX sometimes has problems with the GCC collect2 program. For some
8731 # reason, if we set the COLLECT_NAMES environment variable, the problems
8732 # vanish in a puff of smoke.
8733 if test "X${COLLECT_NAMES+set}" != Xset; then
8735 export COLLECT_NAMES
8741 # We use sed instead of cat because bash on DJGPP gets confused if
8742 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8743 # text mode, it properly converts lines to CR/LF. This bash problem
8744 # is reportedly fixed, but why not run on old versions too?
8745 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8747 mv -f "$cfgfile" "$ofile" || \
8748 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8752 # If there is no Makefile yet, we rely on a make rule to execute
8753 # `config.status --recheck' to rerun these tests and create the
8754 # libtool script then.
8755 test -f Makefile && make "$ltmain"
8760 ac_cpp='$CPP $CPPFLAGS'
8761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8768 # Check whether --with-tags or --without-tags was given.
8769 if test "${with_tags+set}" = set; then
8770 withval="$with_tags"
8774 if test -f "$ltmain" && test -n "$tagnames"; then
8775 if test ! -f "${ofile}"; then
8776 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8777 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8780 if test -z "$LTCC"; then
8781 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8782 if test -z "$LTCC"; then
8783 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8784 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8786 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8787 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8791 # Extract list of available tagged configurations in $ofile.
8792 # Note that this assumes the entire list is on one line.
8793 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8795 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8796 for tagname in $tagnames; do
8798 # Check whether tagname contains only valid characters
8799 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8801 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8802 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8803 { (exit 1); exit 1; }; }
8807 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8809 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8810 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8811 { (exit 1); exit 1; }; }
8814 # Update the list of available tags.
8815 if test -n "$tagname"; then
8816 echo appending configuration tag \"$tagname\" to $ofile
8820 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8822 ac_cpp='$CXXCPP $CPPFLAGS'
8823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8830 archive_cmds_need_lc_CXX=no
8831 allow_undefined_flag_CXX=
8832 always_export_symbols_CXX=no
8833 archive_expsym_cmds_CXX=
8834 export_dynamic_flag_spec_CXX=
8835 hardcode_direct_CXX=no
8836 hardcode_libdir_flag_spec_CXX=
8837 hardcode_libdir_flag_spec_ld_CXX=
8838 hardcode_libdir_separator_CXX=
8839 hardcode_minus_L_CXX=no
8840 hardcode_automatic_CXX=no
8842 module_expsym_cmds_CXX=
8843 link_all_deplibs_CXX=unknown
8844 old_archive_cmds_CXX=$old_archive_cmds
8845 no_undefined_flag_CXX=
8846 whole_archive_flag_spec_CXX=
8847 enable_shared_with_static_runtimes_CXX=no
8849 # Dependencies to place before and after the object being linked:
8851 postdep_objects_CXX=
8854 compiler_lib_search_path_CXX=
8856 # Source file extension for C++ test sources.
8859 # Object file extension for compiled C++ test sources.
8863 # Code to be used in simple compile tests
8864 lt_simple_compile_test_code="int some_variable = 0;\n"
8866 # Code to be used in simple link tests
8867 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8871 # If no C compiler was specified, use CC.
8874 # Allow CC to be a program name with arguments.
8878 # Allow CC to be a program name with arguments.
8883 lt_save_with_gnu_ld=$with_gnu_ld
8884 lt_save_path_LD=$lt_cv_path_LD
8885 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8886 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8888 unset lt_cv_prog_gnu_ld
8890 if test -n "${lt_cv_path_LDCXX+set}"; then
8891 lt_cv_path_LD=$lt_cv_path_LDCXX
8895 test -z "${LDCXX+set}" || LD=$LDCXX
8899 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8901 # We don't want -fno-exception wen compiling C++ code, so set the
8902 # no_builtin_flag separately
8903 if test "$GXX" = yes; then
8904 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8906 lt_prog_compiler_no_builtin_flag_CXX=
8909 if test "$GXX" = yes; then
8910 # Set up default GNU C++ configuration
8913 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8914 if test "${with_gnu_ld+set}" = set; then
8915 withval="$with_gnu_ld"
8916 test "$withval" = no || with_gnu_ld=yes
8921 if test "$GCC" = yes; then
8922 # Check if gcc -print-prog-name=ld gives a path.
8923 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8924 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8927 # gcc leaves a trailing carriage return which upsets mingw
8928 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8930 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8933 # Accept absolute paths.
8935 re_direlt='/[^/][^/]*/\.\./'
8936 # Canonicalize the path of ld
8937 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8938 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8939 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8941 test -z "$LD" && LD="$ac_prog"
8944 # If it fails, then pretend we aren't using GCC.
8948 # If it is relative, then search for the first ld in PATH.
8952 elif test "$with_gnu_ld" = yes; then
8953 echo "$as_me:$LINENO: checking for GNU ld" >&5
8954 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8956 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8957 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8959 if test "${lt_cv_path_LD+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 if test -z "$LD"; then
8963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8964 for ac_dir in $PATH; do
8966 test -z "$ac_dir" && ac_dir=.
8967 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8968 lt_cv_path_LD="$ac_dir/$ac_prog"
8969 # Check to see if the program is GNU ld. I'd rather use --version,
8970 # but apparently some GNU ld's only accept -v.
8971 # Break only if it was the GNU/non-GNU ld that we prefer.
8972 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8973 *GNU* | *'with BFD'*)
8974 test "$with_gnu_ld" != no && break
8977 test "$with_gnu_ld" != yes && break
8984 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8989 if test -n "$LD"; then
8990 echo "$as_me:$LINENO: result: $LD" >&5
8991 echo "${ECHO_T}$LD" >&6
8993 echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6
8996 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8997 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8998 { (exit 1); exit 1; }; }
8999 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9000 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9001 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9005 case `"$LD" -v 2>&1 </dev/null` in
9006 *GNU* | *'with BFD'*)
9007 lt_cv_prog_gnu_ld=yes
9010 lt_cv_prog_gnu_ld=no
9014 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9015 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9016 with_gnu_ld=$lt_cv_prog_gnu_ld
9020 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9021 # archiving commands below assume that GNU ld is being used.
9022 if test "$with_gnu_ld" = yes; then
9023 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024 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'
9026 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9029 # If archive_cmds runs LD, not CC, wlarc should be empty
9030 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9031 # investigate it a little bit more. (MM)
9034 # ancient GNU ld didn't support --whole-archive et. al.
9035 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9036 grep 'no-whole-archive' > /dev/null; then
9037 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9039 whole_archive_flag_spec_CXX=
9045 # A generic and very simple default shared library creation
9046 # command for GNU C++ for the case where it uses the native
9047 # linker, instead of GNU ld. If possible, this setting should
9048 # overridden to take advantage of the native linker features on
9049 # the platform it is being used on.
9050 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9053 # Commands to make compiler produce verbose output that lists
9054 # what "hidden" libraries, object files and flags are used when
9055 # linking a shared library.
9056 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9064 # PORTME: fill in a description of your system's C++ link characteristics
9065 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9066 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9070 # FIXME: insert proper C++ library support
9074 if test "$host_cpu" = ia64; then
9075 # On IA64, the linker does run time linking by default, so we don't
9076 # have to do anything special.
9077 aix_use_runtimelinking=no
9078 exp_sym_flag='-Bexport'
9081 aix_use_runtimelinking=no
9083 # Test if we are trying to use run time linking or normal
9084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9085 # need to do runtime linking.
9086 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9087 for ld_flag in $LDFLAGS; do
9090 aix_use_runtimelinking=yes
9097 exp_sym_flag='-bexport'
9098 no_entry_flag='-bnoentry'
9101 # When large executables or shared objects are built, AIX ld can
9102 # have problems creating the table of contents. If linking a library
9103 # or program results in "error TOC overflow" add -mminimal-toc to
9104 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9105 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9108 hardcode_direct_CXX=yes
9109 hardcode_libdir_separator_CXX=':'
9110 link_all_deplibs_CXX=yes
9112 if test "$GXX" = yes; then
9113 case $host_os in aix4.012|aix4.012.*)
9114 # We only want to do this on AIX 4.2 and lower, the check
9115 # below for broken collect2 doesn't work under 4.3+
9116 collect2name=`${CC} -print-prog-name=collect2`
9117 if test -f "$collect2name" && \
9118 strings "$collect2name" | grep resolve_lib_name >/dev/null
9120 # We have reworked collect2
9121 hardcode_direct_CXX=yes
9123 # We have old collect2
9124 hardcode_direct_CXX=unsupported
9125 # It fails to find uninstalled libraries when the uninstalled
9126 # path is not listed in the libpath. Setting hardcode_minus_L
9127 # to unsupported forces relinking
9128 hardcode_minus_L_CXX=yes
9129 hardcode_libdir_flag_spec_CXX='-L$libdir'
9130 hardcode_libdir_separator_CXX=
9133 shared_flag='-shared'
9136 if test "$host_cpu" = ia64; then
9137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9138 # chokes on -Wl,-G. The following line is correct:
9141 if test "$aix_use_runtimelinking" = yes; then
9142 shared_flag='${wl}-G'
9144 shared_flag='${wl}-bM:SRE'
9149 # It seems that -bexpall does not export symbols beginning with
9150 # underscore (_), so it is better to generate a list of symbols to export.
9151 always_export_symbols_CXX=yes
9152 if test "$aix_use_runtimelinking" = yes; then
9153 # Warning - without using the other runtime loading flags (-brtl),
9154 # -berok will link without error, but may produce a broken library.
9155 allow_undefined_flag_CXX='-berok'
9156 # Determine the default libpath from the value encoded in an empty executable.
9157 cat >conftest.$ac_ext <<_ACEOF
9158 #line $LINENO "configure"
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9188 # Check for a 64-bit object if we didn't find anything.
9189 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; }
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9199 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9201 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"
9203 if test "$host_cpu" = ia64; then
9204 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9205 allow_undefined_flag_CXX="-z nodefs"
9206 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"
9208 # Determine the default libpath from the value encoded in an empty executable.
9209 cat >conftest.$ac_ext <<_ACEOF
9210 #line $LINENO "configure"
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227 (eval $ac_link) 2>&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -s conftest$ac_exeext'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9240 # Check for a 64-bit object if we didn't find anything.
9241 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; }
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9249 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9251 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9252 # Warning - without using the other run time loading flags,
9253 # -berok will link without error, but may produce a broken library.
9254 no_undefined_flag_CXX=' ${wl}-bernotok'
9255 allow_undefined_flag_CXX=' ${wl}-berok'
9256 # -bexpall does not export symbols beginning with underscore (_)
9257 always_export_symbols_CXX=yes
9258 # Exported symbols can be pulled into shared objects from archives
9259 whole_archive_flag_spec_CXX=' '
9260 archive_cmds_need_lc_CXX=yes
9261 # This is similar to how AIX traditionally builds it's shared libraries.
9262 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'
9267 case $cc_basename in
9269 # FIXME: insert proper C++ library support
9275 cygwin* | mingw* | pw32*)
9276 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9277 # as there is no search path for DLLs.
9278 hardcode_libdir_flag_spec_CXX='-L$libdir'
9279 allow_undefined_flag_CXX=unsupported
9280 always_export_symbols_CXX=no
9281 enable_shared_with_static_runtimes_CXX=yes
9283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9284 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'
9285 # If the export-symbols file already is a .def file (1st line
9286 # is EXPORTS), use it as is; otherwise, prepend...
9287 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9288 cp $export_symbols $output_objdir/$soname.def;
9290 echo EXPORTS > $output_objdir/$soname.def;
9291 cat $export_symbols >> $output_objdir/$soname.def;
9293 $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'
9299 darwin* | rhapsody*)
9300 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9301 archive_cmds_need_lc_CXX=no
9303 rhapsody* | darwin1.[012])
9304 allow_undefined_flag_CXX='-undefined suppress'
9307 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9310 lt_int_apple_cc_single_mod=no
9311 output_verbose_link_cmd='echo'
9312 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9313 lt_int_apple_cc_single_mod=yes
9315 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9316 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9318 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'
9320 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9322 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9323 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9324 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}'
9326 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}'
9328 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}'
9329 hardcode_direct_CXX=no
9330 hardcode_automatic_CXX=yes
9331 hardcode_shlibpath_var_CXX=unsupported
9332 whole_archive_flag_spec_CXX='-all_load $convenience'
9333 link_all_deplibs_CXX=yes
9338 case $cc_basename in
9340 # FIXME: insert proper C++ library support
9344 # Green Hills C++ Compiler
9345 # FIXME: insert proper C++ library support
9349 # FIXME: insert proper C++ library support
9355 # C++ shared libraries reported to be fairly broken before switch to ELF
9359 archive_cmds_need_lc_CXX=no
9362 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9369 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9370 hardcode_libdir_separator_CXX=:
9371 export_dynamic_flag_spec_CXX='${wl}-E'
9372 hardcode_direct_CXX=yes
9373 hardcode_minus_L_CXX=yes # Not in the search PATH,
9374 # but as the default
9375 # location of the library.
9377 case $cc_basename in
9379 # FIXME: insert proper C++ library support
9383 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'
9384 # Commands to make compiler produce verbose output that lists
9385 # what "hidden" libraries, object files and flags are used when
9386 # linking a shared library.
9388 # There doesn't appear to be a way to prevent this compiler from
9389 # explicitly linking system object files so we need to strip them
9390 # from the output so that they don't get included in the library
9392 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'
9395 if test "$GXX" = yes; then
9396 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'
9398 # FIXME: insert proper C++ library support
9405 if test $with_gnu_ld = no; then
9408 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9410 hardcode_libdir_separator_CXX=:
9413 hardcode_libdir_flag_spec_CXX='-L$libdir'
9416 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9417 hardcode_libdir_separator_CXX=:
9418 export_dynamic_flag_spec_CXX='${wl}-E'
9424 hardcode_direct_CXX=no
9425 hardcode_shlibpath_var_CXX=no
9428 hardcode_direct_CXX=no
9429 hardcode_shlibpath_var_CXX=no
9430 hardcode_minus_L_CXX=yes # Not in the search PATH,
9431 # but as the default
9432 # location of the library.
9435 hardcode_direct_CXX=yes
9436 hardcode_minus_L_CXX=yes # Not in the search PATH,
9437 # but as the default
9438 # location of the library.
9442 case $cc_basename in
9444 # FIXME: insert proper C++ library support
9450 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9453 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9456 # Commands to make compiler produce verbose output that lists
9457 # what "hidden" libraries, object files and flags are used when
9458 # linking a shared library.
9460 # There doesn't appear to be a way to prevent this compiler from
9461 # explicitly linking system object files so we need to strip them
9462 # from the output so that they don't get included in the library
9464 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'
9467 if test "$GXX" = yes; then
9468 if test $with_gnu_ld = no; then
9471 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9474 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'
9479 # FIXME: insert proper C++ library support
9486 case $cc_basename in
9489 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'
9491 # Archives containing C++ object files must be created using
9492 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9493 # necessary to make sure instantiated templates are included
9495 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9498 if test "$GXX" = yes; then
9499 if test "$with_gnu_ld" = no; then
9500 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'
9502 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'
9505 link_all_deplibs_CXX=yes
9508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9509 hardcode_libdir_separator_CXX=:
9512 case $cc_basename in
9514 # Kuck and Associates, Inc. (KAI) C++ Compiler
9516 # KCC will only create a shared library if the output file
9517 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9518 # to its proper name (with version) after linking.
9519 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'
9520 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'
9521 # Commands to make compiler produce verbose output that lists
9522 # what "hidden" libraries, object files and flags are used when
9523 # linking a shared library.
9525 # There doesn't appear to be a way to prevent this compiler from
9526 # explicitly linking system object files so we need to strip them
9527 # from the output so that they don't get included in the library
9529 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'
9531 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9532 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9534 # Archives containing C++ object files must be created using
9535 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9536 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9541 archive_cmds_need_lc_CXX=no
9542 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543 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'
9544 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9546 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9550 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551 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'
9553 runpath_var=LD_RUN_PATH
9554 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9555 hardcode_libdir_separator_CXX=:
9557 # Commands to make compiler produce verbose output that lists
9558 # what "hidden" libraries, object files and flags are used when
9559 # linking a shared library.
9561 # There doesn't appear to be a way to prevent this compiler from
9562 # explicitly linking system object files so we need to strip them
9563 # from the output so that they don't get included in the library
9565 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'
9570 # FIXME: insert proper C++ library support
9574 # FIXME: insert proper C++ library support
9578 case $cc_basename in
9580 # FIXME: insert proper C++ library support
9584 # FIXME: insert proper C++ library support
9590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9593 hardcode_libdir_flag_spec_CXX='-R$libdir'
9594 hardcode_direct_CXX=yes
9595 hardcode_shlibpath_var_CXX=no
9597 # Workaround some broken pre-1.5 toolchains
9598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9601 case $cc_basename in
9603 # Kuck and Associates, Inc. (KAI) C++ Compiler
9605 # KCC will only create a shared library if the output file
9606 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9607 # to its proper name (with version) after linking.
9608 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'
9610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9611 hardcode_libdir_separator_CXX=:
9613 # Archives containing C++ object files must be created using
9614 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9615 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9619 # Rational C++ 2.4.1
9620 # FIXME: insert proper C++ library support
9624 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9625 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'
9627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9628 hardcode_libdir_separator_CXX=:
9630 # Commands to make compiler produce verbose output that lists
9631 # what "hidden" libraries, object files and flags are used when
9632 # linking a shared library.
9634 # There doesn't appear to be a way to prevent this compiler from
9635 # explicitly linking system object files so we need to strip them
9636 # from the output so that they don't get included in the library
9638 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'
9641 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9642 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9643 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'
9645 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9646 hardcode_libdir_separator_CXX=:
9648 # Commands to make compiler produce verbose output that lists
9649 # what "hidden" libraries, object files and flags are used when
9650 # linking a shared library.
9651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9654 # FIXME: insert proper C++ library support
9661 case $cc_basename in
9663 # Kuck and Associates, Inc. (KAI) C++ Compiler
9665 # KCC will only create a shared library if the output file
9666 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9667 # to its proper name (with version) after linking.
9668 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'
9670 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9671 hardcode_libdir_separator_CXX=:
9673 # Archives containing C++ object files must be created using
9674 # the KAI C++ compiler.
9675 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9678 # Rational C++ 2.4.1
9679 # FIXME: insert proper C++ library support
9683 allow_undefined_flag_CXX=' -expect_unresolved \*'
9684 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'
9685 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9686 echo "-hidden">> $lib.exp~
9687 $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~
9690 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9691 hardcode_libdir_separator_CXX=:
9693 # Commands to make compiler produce verbose output that lists
9694 # what "hidden" libraries, object files and flags are used when
9695 # linking a shared library.
9697 # There doesn't appear to be a way to prevent this compiler from
9698 # explicitly linking system object files so we need to strip them
9699 # from the output so that they don't get included in the library
9701 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'
9704 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9705 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9706 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'
9708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9709 hardcode_libdir_separator_CXX=:
9711 # Commands to make compiler produce verbose output that lists
9712 # what "hidden" libraries, object files and flags are used when
9713 # linking a shared library.
9714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9717 # FIXME: insert proper C++ library support
9724 # FIXME: insert proper C++ library support
9728 archive_cmds_need_lc_CXX=no
9729 case $cc_basename in
9731 # FIXME: insert proper C++ library support
9735 # FIXME: insert proper C++ library support
9741 case $cc_basename in
9744 # FIXME: insert proper C++ library support
9749 # FIXME: insert proper C++ library support
9753 # FIXME: insert proper C++ library support
9759 case $cc_basename in
9761 # Sun C++ 4.2, 5.x and Centerline C++
9762 no_undefined_flag_CXX=' -zdefs'
9763 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9764 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9765 $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'
9767 hardcode_libdir_flag_spec_CXX='-R$libdir'
9768 hardcode_shlibpath_var_CXX=no
9770 solaris2.0-5 | solaris2.0-5.*) ;;
9772 # The C++ compiler is used as linker so we must use $wl
9773 # flag to pass the commands to the underlying system
9775 # Supported since Solaris 2.6 (maybe 2.5.1?)
9776 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9779 link_all_deplibs_CXX=yes
9781 # Commands to make compiler produce verbose output that lists
9782 # what "hidden" libraries, object files and flags are used when
9783 # linking a shared library.
9785 # There doesn't appear to be a way to prevent this compiler from
9786 # explicitly linking system object files so we need to strip them
9787 # from the output so that they don't get included in the library
9789 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'
9791 # Archives containing C++ object files must be created using
9792 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9793 # necessary to make sure instantiated templates are included
9795 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9798 # Green Hills C++ Compiler
9799 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9801 # The C++ compiler must be used to create the archive.
9802 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9805 # GNU C++ compiler with Solaris linker
9806 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9807 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9808 if $CC --version | grep -v '^2\.7' > /dev/null; then
9809 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9810 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9811 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9813 # Commands to make compiler produce verbose output that lists
9814 # what "hidden" libraries, object files and flags are used when
9815 # linking a shared library.
9816 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9818 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9820 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9821 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9822 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9824 # Commands to make compiler produce verbose output that lists
9825 # what "hidden" libraries, object files and flags are used when
9826 # linking a shared library.
9827 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9830 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9835 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9836 archive_cmds_need_lc_CXX=no
9839 case $cc_basename in
9841 # NonStop-UX NCC 3.20
9842 # FIXME: insert proper C++ library support
9846 # FIXME: insert proper C++ library support
9852 # FIXME: insert proper C++ library support
9856 # FIXME: insert proper C++ library support
9860 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9861 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9862 test "$ld_shlibs_CXX" = no && can_build_shared=no
9868 ## There is no encapsulation within the following macros, do not change
9869 ## the running order or otherwise move them around unless you know exactly
9870 ## what you are doing...
9872 cat > conftest.$ac_ext <<EOF
9876 Foo (void) { a = 0; }
9882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883 (eval $ac_compile) 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; then
9887 # Parse the compiler output and extract the necessary
9888 # objects, libraries and library flags.
9890 # Sentinel used to keep track of whether or not we are before
9891 # the conftest object file.
9892 pre_test_object_deps_done=no
9894 # The `*' in the case matches for architectures that use `case' in
9895 # $output_verbose_cmd can trigger glob expansion during the loop
9896 # eval without this substitution.
9897 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9899 for p in `eval $output_verbose_link_cmd`; do
9903 # Some compilers place space between "-{L,R}" and the path.
9906 || test $p = "-R"; then
9913 if test "$pre_test_object_deps_done" = no; then
9916 # Internal compiler library paths should come after those
9917 # provided the user. The postdeps already come after the
9918 # user supplied libs so there is no need to process them.
9919 if test -z "$compiler_lib_search_path_CXX"; then
9920 compiler_lib_search_path_CXX="${prev}${p}"
9922 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9925 # The "-l" case would never come before the object being
9926 # linked, so don't bother handling this case.
9929 if test -z "$postdeps_CXX"; then
9930 postdeps_CXX="${prev}${p}"
9932 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9938 # This assumes that the test object file only shows up
9939 # once in the compiler output.
9940 if test "$p" = "conftest.$objext"; then
9941 pre_test_object_deps_done=yes
9945 if test "$pre_test_object_deps_done" = no; then
9946 if test -z "$predep_objects_CXX"; then
9947 predep_objects_CXX="$p"
9949 predep_objects_CXX="$predep_objects_CXX $p"
9952 if test -z "$postdep_objects_CXX"; then
9953 postdep_objects_CXX="$p"
9955 postdep_objects_CXX="$postdep_objects_CXX $p"
9960 *) ;; # Ignore the rest.
9968 echo "libtool.m4: error: problem compiling CXX test program"
9971 $rm -f confest.$objext
9973 case " $postdeps_CXX " in
9974 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9977 lt_prog_compiler_wl_CXX=
9978 lt_prog_compiler_pic_CXX=
9979 lt_prog_compiler_static_CXX=
9981 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9982 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9984 # C++ specific cases for pic, static, wl, etc.
9985 if test "$GXX" = yes; then
9986 lt_prog_compiler_wl_CXX='-Wl,'
9987 lt_prog_compiler_static_CXX='-static'
9991 # All AIX code is PIC.
9992 if test "$host_cpu" = ia64; then
9993 # AIX 5 now supports IA64 processor
9994 lt_prog_compiler_static_CXX='-Bstatic'
9998 # FIXME: we need at least 68020 code to build shared libraries, but
9999 # adding the `-m68020' flag to GCC prevents building anything better,
10001 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10003 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10004 # PIC is the default for these OSes.
10006 mingw* | os2* | pw32*)
10007 # This hack is so that the source file can tell whether it is being
10008 # built for inclusion in a dll (and should export symbols for example).
10009 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10011 darwin* | rhapsody*)
10012 # PIC is the default on this platform
10013 # Common symbols not allowed in MH_DYLIB files
10014 lt_prog_compiler_pic_CXX='-fno-common'
10017 # DJGPP does not support shared libraries at all
10018 lt_prog_compiler_pic_CXX=
10021 if test -d /usr/nec; then
10022 lt_prog_compiler_pic_CXX=-Kconform_pic
10026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10027 # not for PA HP-UX.
10028 case "$host_cpu" in
10032 lt_prog_compiler_pic_CXX='-fPIC'
10037 lt_prog_compiler_pic_CXX='-fPIC'
10043 # All AIX code is PIC.
10044 if test "$host_cpu" = ia64; then
10045 # AIX 5 now supports IA64 processor
10046 lt_prog_compiler_static_CXX='-Bstatic'
10048 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10052 case $cc_basename in
10054 # Green Hills C++ Compiler
10055 # _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"
10060 case $cc_basename in
10062 lt_prog_compiler_pic_CXX='-KPIC'
10065 # Green Hills C++ Compiler
10066 lt_prog_compiler_pic_CXX='-pic'
10073 # FreeBSD uses GNU C++
10075 hpux9* | hpux10* | hpux11*)
10076 case $cc_basename in
10078 lt_prog_compiler_wl_CXX='-Wl,'
10079 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10080 if test "$host_cpu" != ia64; then
10081 lt_prog_compiler_pic_CXX='+Z'
10085 lt_prog_compiler_wl_CXX='-Wl,'
10086 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10087 case "$host_cpu" in
10092 lt_prog_compiler_pic_CXX='+Z'
10100 irix5* | irix6* | nonstopux*)
10101 case $cc_basename in
10103 lt_prog_compiler_wl_CXX='-Wl,'
10104 lt_prog_compiler_static_CXX='-non_shared'
10105 # CC pic flag -KPIC is the default.
10112 case $cc_basename in
10115 lt_prog_compiler_wl_CXX='--backend -Wl,'
10116 lt_prog_compiler_pic_CXX='-fPIC'
10120 lt_prog_compiler_wl_CXX='-Wl,'
10121 lt_prog_compiler_pic_CXX='-KPIC'
10122 lt_prog_compiler_static_CXX='-static'
10126 # Make sure the PIC flag is empty. It appears that all Alpha
10127 # Linux and Compaq Tru64 Unix objects are PIC.
10128 lt_prog_compiler_pic_CXX=
10129 lt_prog_compiler_static_CXX='-non_shared'
10140 case $cc_basename in
10142 lt_prog_compiler_pic_CXX='-W c,exportall'
10150 osf3* | osf4* | osf5*)
10151 case $cc_basename in
10153 lt_prog_compiler_wl_CXX='--backend -Wl,'
10156 # Rational C++ 2.4.1
10157 lt_prog_compiler_pic_CXX='-pic'
10160 # Digital/Compaq C++
10161 lt_prog_compiler_wl_CXX='-Wl,'
10162 # Make sure the PIC flag is empty. It appears that all Alpha
10163 # Linux and Compaq Tru64 Unix objects are PIC.
10164 lt_prog_compiler_pic_CXX=
10165 lt_prog_compiler_static_CXX='-non_shared'
10174 case $cc_basename in
10176 lt_prog_compiler_pic_CXX='-fPIC'
10183 case $cc_basename in
10185 # Sun C++ 4.2, 5.x and Centerline C++
10186 lt_prog_compiler_pic_CXX='-KPIC'
10187 lt_prog_compiler_static_CXX='-Bstatic'
10188 lt_prog_compiler_wl_CXX='-Qoption ld '
10191 # Green Hills C++ Compiler
10192 lt_prog_compiler_pic_CXX='-PIC'
10199 case $cc_basename in
10202 lt_prog_compiler_pic_CXX='-pic'
10203 lt_prog_compiler_static_CXX='-Bstatic'
10207 lt_prog_compiler_pic_CXX='-pic'
10214 case $cc_basename in
10216 # NonStop-UX NCC 3.20
10217 lt_prog_compiler_pic_CXX='-KPIC'
10228 lt_prog_compiler_can_build_shared_CXX=no
10233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10234 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10237 # Check to make sure the PIC flag actually works.
10239 if test -n "$lt_prog_compiler_pic_CXX"; then
10240 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10241 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10242 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 lt_prog_compiler_pic_works_CXX=no
10246 ac_outfile=conftest.$ac_objext
10247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10248 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10249 # Insert the option either (1) after the last *FLAGS variable, or
10250 # (2) before a word containing "conftest.", or (3) at the end.
10251 # Note that $ac_compile itself does not contain backslashes and begins
10252 # with a dollar sign (not a hyphen), so the echo should work correctly.
10253 # The option is referenced via a variable to avoid confusing sed.
10254 lt_compile=`echo "$ac_compile" | $SED \
10255 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10257 -e 's:$: $lt_compiler_flag:'`
10258 (eval echo "\"\$as_me:10258: $lt_compile\"" >&5)
10259 (eval "$lt_compile" 2>conftest.err)
10261 cat conftest.err >&5
10262 echo "$as_me:10262: \$? = $ac_status" >&5
10263 if (exit $ac_status) && test -s "$ac_outfile"; then
10264 # The compiler can only warn and ignore the option if not recognized
10265 # So say no if there are warnings
10266 if test ! -s conftest.err; then
10267 lt_prog_compiler_pic_works_CXX=yes
10273 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10274 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10276 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10277 case $lt_prog_compiler_pic_CXX in
10279 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10282 lt_prog_compiler_pic_CXX=
10283 lt_prog_compiler_can_build_shared_CXX=no
10288 # For platforms which do not support PIC, -DPIC is meaningless:
10290 lt_prog_compiler_pic_CXX=
10293 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10297 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10298 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10299 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 lt_cv_prog_compiler_c_o_CXX=no
10303 $rm -r conftest 2>/dev/null
10307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10309 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10310 # that will create temporary files in the current directory regardless of
10311 # the output directory. Thus, making CWD read-only will cause this test
10312 # to fail, enabling locking or at least warning the user not to do parallel
10316 lt_compiler_flag="-o out/conftest2.$ac_objext"
10317 # Insert the option either (1) after the last *FLAGS variable, or
10318 # (2) before a word containing "conftest.", or (3) at the end.
10319 # Note that $ac_compile itself does not contain backslashes and begins
10320 # with a dollar sign (not a hyphen), so the echo should work correctly.
10321 lt_compile=`echo "$ac_compile" | $SED \
10322 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10324 -e 's:$: $lt_compiler_flag:'`
10325 (eval echo "\"\$as_me:10325: $lt_compile\"" >&5)
10326 (eval "$lt_compile" 2>out/conftest.err)
10328 cat out/conftest.err >&5
10329 echo "$as_me:10329: \$? = $ac_status" >&5
10330 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10332 # The compiler can only warn and ignore the option if not recognized
10333 # So say no if there are warnings
10334 if test ! -s out/conftest.err; then
10335 lt_cv_prog_compiler_c_o_CXX=yes
10339 $rm conftest* out/*
10346 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10350 hard_links="nottested"
10351 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10352 # do not overwrite the value of need_locks provided by the user
10353 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10359 ln conftest.a conftest.b 2>&5 || hard_links=no
10360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10361 echo "$as_me:$LINENO: result: $hard_links" >&5
10362 echo "${ECHO_T}$hard_links" >&6
10363 if test "$hard_links" = no; then
10364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10372 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10375 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10378 # If we're using GNU nm, then we don't want the "-C" option.
10379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10380 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10381 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'
10383 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'
10387 export_symbols_cmds_CXX="$ltdll_cmds"
10390 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10393 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10397 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10398 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10399 test "$ld_shlibs_CXX" = no && can_build_shared=no
10401 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10402 if test "$GCC" = yes; then
10403 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10407 # Do we need to explicitly link libc?
10409 case "x$archive_cmds_need_lc_CXX" in
10411 # Assume -lc should be added
10412 archive_cmds_need_lc_CXX=yes
10414 if test "$enable_shared" = yes && test "$GCC" = yes; then
10415 case $archive_cmds_CXX in
10417 # FIXME: we may have to deal with multi-command sequences.
10420 # Test whether the compiler implicitly links with -lc since on some
10421 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10422 # to ld, don't add -lc before -lgcc.
10423 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10424 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429 (eval $ac_compile) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } 2>conftest.err; then
10435 libobjs=conftest.$ac_objext
10437 wl=$lt_prog_compiler_wl_CXX
10443 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10444 allow_undefined_flag_CXX=
10445 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10446 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }
10451 archive_cmds_need_lc_CXX=no
10453 archive_cmds_need_lc_CXX=yes
10455 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10457 cat conftest.err 1>&5
10460 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10461 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10468 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10469 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10470 hardcode_action_CXX=
10471 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10472 test -n "$runpath_var CXX" || \
10473 test "X$hardcode_automatic_CXX"="Xyes" ; then
10475 # We can hardcode non-existant directories.
10476 if test "$hardcode_direct_CXX" != no &&
10477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10478 # have to relink, otherwise we might link with an installed library
10479 # when we should be linking with a yet-to-be-installed one
10480 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10481 test "$hardcode_minus_L_CXX" != no; then
10482 # Linking always hardcodes the temporary library directory.
10483 hardcode_action_CXX=relink
10485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10486 hardcode_action_CXX=immediate
10489 # We cannot hardcode anything, or else we can only hardcode existing
10491 hardcode_action_CXX=unsupported
10493 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10494 echo "${ECHO_T}$hardcode_action_CXX" >&6
10496 if test "$hardcode_action_CXX" = relink; then
10497 # Fast installation is not supported
10498 enable_fast_install=no
10499 elif test "$shlibpath_overrides_runpath" = yes ||
10500 test "$enable_shared" = no; then
10501 # Fast installation is not necessary
10502 enable_fast_install=needless
10507 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10508 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10509 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10510 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10511 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10512 echo "$as_me:$LINENO: result: yes" >&5
10513 echo "${ECHO_T}yes" >&6
10515 # FIXME - insert some real tests, host_os isn't really good enough
10518 if test -n "$STRIP" ; then
10519 striplib="$STRIP -x"
10520 echo "$as_me:$LINENO: result: yes" >&5
10521 echo "${ECHO_T}yes" >&6
10523 echo "$as_me:$LINENO: result: no" >&5
10524 echo "${ECHO_T}no" >&6
10528 echo "$as_me:$LINENO: result: no" >&5
10529 echo "${ECHO_T}no" >&6
10534 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10536 library_names_spec=
10537 libname_spec='lib$name'
10541 postuninstall_cmds=
10545 shlibpath_overrides_runpath=unknown
10547 dynamic_linker="$host_os ld.so"
10548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10549 if test "$GCC" = yes; then
10550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10552 # if the path contains ";" then we assume it to be the separator
10553 # otherwise default to the standard path separator (i.e. ":") - it is
10554 # assumed that no part of a normal pathname contains ";" but that should
10555 # okay in the real world where ";" in dirpaths is itself problematic.
10556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10563 need_lib_prefix=unknown
10564 hardcode_into_libs=no
10566 # when you set need_version to no, make sure it does not cause -set_version
10567 # flags to be left without arguments
10568 need_version=unknown
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10574 shlibpath_var=LIBPATH
10576 # AIX 3 has no versioning support, so we append a major version to the name.
10577 soname_spec='${libname}${release}${shared_ext}$major'
10584 hardcode_into_libs=yes
10585 if test "$host_cpu" = ia64; then
10586 # AIX 5 supports IA64
10587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10588 shlibpath_var=LD_LIBRARY_PATH
10590 # With GCC up to 2.95.x, collect2 would create an import file
10591 # for dependence libraries. The import file would start with
10592 # the line `#! .'. This would cause the generated library to
10593 # depend on `.', always an invalid library. This was fixed in
10594 # development snapshots of GCC prior to 3.0.
10596 aix4 | aix4.[01] | aix4.[01].*)
10597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10602 can_build_shared=no
10606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10607 # soname into executable. Probably we can add versioning support to
10608 # collect2, so additional links can be useful in future.
10609 if test "$aix_use_runtimelinking" = yes; then
10610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10611 # instead of lib<name>.a to let people know that these are not
10612 # typical AIX shared libraries.
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 # We preserve .a as extension for shared libraries through AIX4.2
10616 # and later when we are not doing run time linking.
10617 library_names_spec='${libname}${release}.a $libname.a'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10620 shlibpath_var=LIBPATH
10625 library_names_spec='$libname.ixlibrary $libname.a'
10626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10627 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'
10631 library_names_spec='${libname}${shared_ext}'
10632 dynamic_linker="$host_os ld.so"
10633 shlibpath_var=LIBRARY_PATH
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10645 # the default ld.so.conf also contains /usr/contrib/lib and
10646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10647 # libtool to hard-code these into programs
10650 cygwin* | mingw* | pw32*)
10651 version_type=windows
10656 case $GCC,$host_os in
10657 yes,cygwin* | yes,mingw* | yes,pw32*)
10658 library_names_spec='$libname.dll.a'
10659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10660 postinstall_cmds='base_file=`basename \${file}`~
10661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10662 dldir=$destdir/`dirname \$dlpath`~
10663 test -d \$dldir || mkdir -p \$dldir~
10664 $install_prog $dir/$dlname \$dldir/$dlname'
10665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10666 dlpath=$dir/\$dldll~
10668 shlibpath_overrides_runpath=yes
10672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10673 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10674 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10677 # MinGW DLLs use traditional 'lib' prefix
10678 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10679 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10680 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10681 # It is most probably a Windows format PATH printed by
10682 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10683 # path with ; separators, and with drive letters. We can handle the
10684 # drive letters (cygwin fileutils understands them), so leave them,
10685 # especially as we might pass files found there to a mingw objdump,
10686 # which wouldn't understand a cygwinified path. Ahh.
10687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10693 # pw32 DLLs use 'pw' prefix rather than 'lib'
10694 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10703 dynamic_linker='Win32 ld.exe'
10704 # FIXME: first we should search . and the directory the executable is in
10708 darwin* | rhapsody*)
10709 dynamic_linker="$host_os dyld"
10710 version_type=darwin
10713 # FIXME: Relying on posixy $() will cause problems for
10714 # cross-compilation, but unfortunately the echo tests do not
10715 # yet detect zsh echo's removal of \ escapes.
10716 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10717 soname_spec='${libname}${release}${major}$shared_ext'
10718 shlibpath_overrides_runpath=yes
10719 shlibpath_var=DYLD_LIBRARY_PATH
10720 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10721 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10722 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10723 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"`
10725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 shlibpath_var=LD_LIBRARY_PATH
10742 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10743 version_type=freebsd-$objformat
10744 case $version_type in
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10755 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=yes
10760 freebsd3.01* | freebsdelf3.01*)
10761 shlibpath_overrides_runpath=yes
10762 hardcode_into_libs=yes
10765 shlibpath_overrides_runpath=no
10766 hardcode_into_libs=yes
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 hardcode_into_libs=yes
10781 hpux9* | hpux10* | hpux11*)
10782 # Give a soname corresponding to the major version so that dld.sl refuses to
10783 # link against other versions.
10787 case "$host_cpu" in
10790 hardcode_into_libs=yes
10791 dynamic_linker="$host_os dld.so"
10792 shlibpath_var=LD_LIBRARY_PATH
10793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795 soname_spec='${libname}${release}${shared_ext}$major'
10796 if test "X$HPUX_IA64_MODE" = X32; then
10797 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10805 hardcode_into_libs=yes
10806 dynamic_linker="$host_os dld.sl"
10807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10816 dynamic_linker="$host_os dld.sl"
10817 shlibpath_var=SHLIB_PATH
10818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10823 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10824 postinstall_cmds='chmod 555 $lib'
10827 irix5* | irix6* | nonstopux*)
10829 nonstopux*) version_type=nonstopux ;;
10831 if test "$lt_cv_prog_gnu_ld" = yes; then
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10842 irix5* | nonstopux*)
10843 libsuff= shlibsuff=
10846 case $LD in # libtool.m4 will add one of these switches to LD
10847 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10848 libsuff= shlibsuff= libmagic=32-bit;;
10849 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10850 libsuff=32 shlibsuff=N32 libmagic=N32;;
10851 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10852 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10853 *) libsuff= shlibsuff= libmagic=never-match;;
10857 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10858 shlibpath_overrides_runpath=no
10859 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10860 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10861 hardcode_into_libs=yes
10864 # No shared lib support for Linux oldld, aout, or coff.
10865 linux*oldld* | linux*aout* | linux*coff*)
10869 # This must be Linux ELF.
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10877 shlibpath_var=LD_LIBRARY_PATH
10878 shlibpath_overrides_runpath=no
10879 # This implies no fast_install, which is unacceptable.
10880 # Some rework will be needed to allow for fast_install
10881 # before this can be enabled.
10882 hardcode_into_libs=yes
10884 # We used to test for /lib/ld.so.1 and disable shared libraries on
10885 # powerpc, because MkLinux only supported shared libraries with the
10886 # GNU dynamic linker. Since this was broken with cross compilers,
10887 # most powerpc-linux boxes support dynamic linking these days and
10888 # people can always --disable-shared, the test was removed, and we
10889 # assume the GNU/Linux dynamic linker is in use.
10890 dynamic_linker='GNU/Linux ld.so'
10897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10900 dynamic_linker='NetBSD (a.out) ld.so'
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 dynamic_linker='NetBSD ld.elf_so'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=yes
10908 hardcode_into_libs=yes
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=yes
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 shlibpath_overrides_runpath=yes
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10937 openbsd2.[89] | openbsd2.[89].*)
10938 shlibpath_overrides_runpath=no
10941 shlibpath_overrides_runpath=yes
10945 shlibpath_overrides_runpath=yes
10950 libname_spec='$name'
10953 library_names_spec='$libname${shared_ext} $libname.a'
10954 dynamic_linker='OS/2 ld.exe'
10955 shlibpath_var=LIBPATH
10958 osf3* | osf4* | osf5*)
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 shlibpath_var=LD_LIBRARY_PATH
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=yes
10984 hardcode_into_libs=yes
10985 # ldd complains unless libraries are executable
10986 postinstall_cmds='chmod +x $lib'
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10992 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 shlibpath_overrides_runpath=yes
10995 if test "$with_gnu_ld" = yes; then
11001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 case $host_vendor in
11008 shlibpath_overrides_runpath=no
11010 export_dynamic_flag_spec='${wl}-Blargedynsym'
11011 runpath_var=LD_RUN_PATH
11019 shlibpath_overrides_runpath=no
11020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11026 if test -d /usr/nec ;then
11028 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11029 soname_spec='$libname${shared_ext}.$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 shlibpath_var=LD_LIBRARY_PATH
11045 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11046 echo "${ECHO_T}$dynamic_linker" >&6
11047 test "$dynamic_linker" = no && can_build_shared=no
11049 if test "x$enable_dlopen" != xyes; then
11050 enable_dlopen=unknown
11051 enable_dlopen_self=unknown
11052 enable_dlopen_self_static=unknown
11059 lt_cv_dlopen="load_add_on"
11061 lt_cv_dlopen_self=yes
11065 lt_cv_dlopen="LoadLibrary"
11070 lt_cv_dlopen="dlopen"
11075 # if libdl is installed we need to link against it
11076 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 ac_check_lib_save_LIBS=$LIBS
11083 cat >conftest.$ac_ext <<_ACEOF
11084 #line $LINENO "configure"
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11091 /* Override any gcc2 internal prototype to avoid an error. */
11095 /* We use char because int might match the return type of a gcc2
11096 builtin and then its argument prototype would still apply. */
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108 (eval $ac_link) 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } &&
11112 { ac_try='test -s conftest$ac_exeext'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 ac_cv_lib_dl_dlopen=yes
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ac_cv_lib_dl_dlopen=no
11125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11128 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11129 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11130 if test $ac_cv_lib_dl_dlopen = yes; then
11131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11134 lt_cv_dlopen="dyld"
11136 lt_cv_dlopen_self=yes
11143 echo "$as_me:$LINENO: checking for shl_load" >&5
11144 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11145 if test "${ac_cv_func_shl_load+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 cat >conftest.$ac_ext <<_ACEOF
11149 #line $LINENO "configure"
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 /* System header to define __stub macros and hopefully few prototypes,
11156 which can conflict with char shl_load (); below.
11157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11158 <limits.h> exists even on freestanding compilers. */
11160 # include <limits.h>
11162 # include <assert.h>
11164 /* Override any gcc2 internal prototype to avoid an error. */
11169 /* We use char because int might match the return type of a gcc2
11170 builtin and then its argument prototype would still apply. */
11172 /* The GNU C library defines this for functions which it implements
11173 to always fail with ENOSYS. Some functions are actually named
11174 something starting with __ and the normal name is an alias. */
11175 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11178 char (*f) () = shl_load;
11187 return f != shl_load;
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -s conftest$ac_exeext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 ac_cv_func_shl_load=yes
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11209 ac_cv_func_shl_load=no
11211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11213 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11214 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11215 if test $ac_cv_func_shl_load = yes; then
11216 lt_cv_dlopen="shl_load"
11218 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11219 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11220 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 ac_check_lib_save_LIBS=$LIBS
11225 cat >conftest.$ac_ext <<_ACEOF
11226 #line $LINENO "configure"
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11233 /* Override any gcc2 internal prototype to avoid an error. */
11237 /* We use char because int might match the return type of a gcc2
11238 builtin and then its argument prototype would still apply. */
11248 rm -f conftest.$ac_objext conftest$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -s conftest$ac_exeext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_cv_lib_dld_shl_load=yes
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ac_cv_lib_dld_shl_load=no
11267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11268 LIBS=$ac_check_lib_save_LIBS
11270 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11271 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11272 if test $ac_cv_lib_dld_shl_load = yes; then
11273 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11275 echo "$as_me:$LINENO: checking for dlopen" >&5
11276 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11277 if test "${ac_cv_func_dlopen+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 cat >conftest.$ac_ext <<_ACEOF
11281 #line $LINENO "configure"
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 /* System header to define __stub macros and hopefully few prototypes,
11288 which can conflict with char dlopen (); below.
11289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11290 <limits.h> exists even on freestanding compilers. */
11292 # include <limits.h>
11294 # include <assert.h>
11296 /* Override any gcc2 internal prototype to avoid an error. */
11301 /* We use char because int might match the return type of a gcc2
11302 builtin and then its argument prototype would still apply. */
11304 /* The GNU C library defines this for functions which it implements
11305 to always fail with ENOSYS. Some functions are actually named
11306 something starting with __ and the normal name is an alias. */
11307 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11310 char (*f) () = dlopen;
11319 return f != dlopen;
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326 (eval $ac_link) 2>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
11330 { ac_try='test -s conftest$ac_exeext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_cv_func_dlopen=yes
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11341 ac_cv_func_dlopen=no
11343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11345 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11346 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11347 if test $ac_cv_func_dlopen = yes; then
11348 lt_cv_dlopen="dlopen"
11350 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11351 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11352 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 ac_check_lib_save_LIBS=$LIBS
11357 cat >conftest.$ac_ext <<_ACEOF
11358 #line $LINENO "configure"
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11365 /* Override any gcc2 internal prototype to avoid an error. */
11369 /* We use char because int might match the return type of a gcc2
11370 builtin and then its argument prototype would still apply. */
11380 rm -f conftest.$ac_objext conftest$ac_exeext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382 (eval $ac_link) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -s conftest$ac_exeext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_lib_dl_dlopen=yes
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 ac_cv_lib_dl_dlopen=no
11399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_check_lib_save_LIBS
11402 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11403 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11404 if test $ac_cv_lib_dl_dlopen = yes; then
11405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11407 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11408 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11409 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 ac_check_lib_save_LIBS=$LIBS
11413 LIBS="-lsvld $LIBS"
11414 cat >conftest.$ac_ext <<_ACEOF
11415 #line $LINENO "configure"
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11422 /* Override any gcc2 internal prototype to avoid an error. */
11426 /* We use char because int might match the return type of a gcc2
11427 builtin and then its argument prototype would still apply. */
11437 rm -f conftest.$ac_objext conftest$ac_exeext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11439 (eval $ac_link) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -s conftest$ac_exeext'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 ac_cv_lib_svld_dlopen=yes
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_cv_lib_svld_dlopen=no
11456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11457 LIBS=$ac_check_lib_save_LIBS
11459 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11460 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11461 if test $ac_cv_lib_svld_dlopen = yes; then
11462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11464 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11465 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11466 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 ac_check_lib_save_LIBS=$LIBS
11471 cat >conftest.$ac_ext <<_ACEOF
11472 #line $LINENO "configure"
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11479 /* Override any gcc2 internal prototype to avoid an error. */
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -s conftest$ac_exeext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 ac_cv_lib_dld_dld_link=yes
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 ac_cv_lib_dld_dld_link=no
11513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11514 LIBS=$ac_check_lib_save_LIBS
11516 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11517 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11518 if test $ac_cv_lib_dld_dld_link = yes; then
11519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11540 if test "x$lt_cv_dlopen" != xno; then
11546 case $lt_cv_dlopen in
11548 save_CPPFLAGS="$CPPFLAGS"
11549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11551 save_LDFLAGS="$LDFLAGS"
11552 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11555 LIBS="$lt_cv_dlopen_libs $LIBS"
11557 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11558 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11559 if test "${lt_cv_dlopen_self+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 if test "$cross_compiling" = yes; then :
11563 lt_cv_dlopen_self=cross
11565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11566 lt_status=$lt_dlunknown
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11568 "configure"
11569 #include "confdefs.h"
11578 # define LT_DLGLOBAL RTLD_GLOBAL
11581 # define LT_DLGLOBAL DL_GLOBAL
11583 # define LT_DLGLOBAL 0
11587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11588 find out it does not work in some platform. */
11589 #ifndef LT_DLLAZY_OR_NOW
11591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11594 # define LT_DLLAZY_OR_NOW DL_LAZY
11597 # define LT_DLLAZY_OR_NOW RTLD_NOW
11600 # define LT_DLLAZY_OR_NOW DL_NOW
11602 # define LT_DLLAZY_OR_NOW 0
11610 extern "C" void exit (int);
11613 void fnord() { int i=42;}
11616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11617 int status = $lt_dlunknown;
11621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11623 /* dlclose (self); */
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630 (eval $ac_link) 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11634 (./conftest; exit; ) 2>/dev/null
11636 case x$lt_status in
11637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11639 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11642 # compilation failed
11643 lt_cv_dlopen_self=no
11650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11651 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11653 if test "x$lt_cv_dlopen_self" = xyes; then
11654 LDFLAGS="$LDFLAGS $link_static_flag"
11655 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11656 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11657 if test "${lt_cv_dlopen_self_static+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 if test "$cross_compiling" = yes; then :
11661 lt_cv_dlopen_self_static=cross
11663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11664 lt_status=$lt_dlunknown
11665 cat > conftest.$ac_ext <<EOF
11666 #line 11666 "configure"
11667 #include "confdefs.h"
11676 # define LT_DLGLOBAL RTLD_GLOBAL
11679 # define LT_DLGLOBAL DL_GLOBAL
11681 # define LT_DLGLOBAL 0
11685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11686 find out it does not work in some platform. */
11687 #ifndef LT_DLLAZY_OR_NOW
11689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11692 # define LT_DLLAZY_OR_NOW DL_LAZY
11695 # define LT_DLLAZY_OR_NOW RTLD_NOW
11698 # define LT_DLLAZY_OR_NOW DL_NOW
11700 # define LT_DLLAZY_OR_NOW 0
11708 extern "C" void exit (int);
11711 void fnord() { int i=42;}
11714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11715 int status = $lt_dlunknown;
11719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11721 /* dlclose (self); */
11727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728 (eval $ac_link) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11732 (./conftest; exit; ) 2>/dev/null
11734 case x$lt_status in
11735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11737 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11740 # compilation failed
11741 lt_cv_dlopen_self_static=no
11748 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11749 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11752 CPPFLAGS="$save_CPPFLAGS"
11753 LDFLAGS="$save_LDFLAGS"
11758 case $lt_cv_dlopen_self in
11759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11760 *) enable_dlopen_self=unknown ;;
11763 case $lt_cv_dlopen_self_static in
11764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11765 *) enable_dlopen_self_static=unknown ;;
11770 # The else clause should only fire when bootstrapping the
11771 # libtool distribution, otherwise you forgot to ship ltmain.sh
11772 # with your package, and you will get complaints that there are
11773 # no rules to generate ltmain.sh.
11774 if test -f "$ltmain"; then
11775 # See if we are running on zsh, and set the options which allow our commands through
11776 # without removal of \ escapes.
11777 if test -n "${ZSH_VERSION+set}" ; then
11778 setopt NO_GLOB_SUBST
11780 # Now quote all the things that may contain metacharacters while being
11781 # careful not to overquote the AC_SUBSTed values. We take copies of the
11782 # variables and quote the copies for generation of the libtool script.
11783 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11784 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11785 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11786 deplibs_check_method reload_flag reload_cmds need_locks \
11787 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11788 lt_cv_sys_global_symbol_to_c_name_address \
11789 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11790 old_postinstall_cmds old_postuninstall_cmds \
11794 lt_prog_compiler_wl_CXX \
11795 lt_prog_compiler_pic_CXX \
11796 lt_prog_compiler_static_CXX \
11797 lt_prog_compiler_no_builtin_flag_CXX \
11798 export_dynamic_flag_spec_CXX \
11799 thread_safe_flag_spec_CXX \
11800 whole_archive_flag_spec_CXX \
11801 enable_shared_with_static_runtimes_CXX \
11802 old_archive_cmds_CXX \
11803 old_archive_from_new_cmds_CXX \
11804 predep_objects_CXX \
11805 postdep_objects_CXX \
11808 compiler_lib_search_path_CXX \
11810 archive_expsym_cmds_CXX \
11811 postinstall_cmds_CXX \
11812 postuninstall_cmds_CXX \
11813 old_archive_from_expsyms_cmds_CXX \
11814 allow_undefined_flag_CXX \
11815 no_undefined_flag_CXX \
11816 export_symbols_cmds_CXX \
11817 hardcode_libdir_flag_spec_CXX \
11818 hardcode_libdir_flag_spec_ld_CXX \
11819 hardcode_libdir_separator_CXX \
11820 hardcode_automatic_CXX \
11822 module_expsym_cmds_CXX \
11823 lt_cv_prog_compiler_c_o_CXX \
11824 exclude_expsyms_CXX \
11825 include_expsyms_CXX; do
11828 old_archive_cmds_CXX | \
11829 old_archive_from_new_cmds_CXX | \
11830 archive_cmds_CXX | \
11831 archive_expsym_cmds_CXX | \
11832 module_cmds_CXX | \
11833 module_expsym_cmds_CXX | \
11834 old_archive_from_expsyms_cmds_CXX | \
11835 export_symbols_cmds_CXX | \
11836 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11837 postinstall_cmds | postuninstall_cmds | \
11838 old_postinstall_cmds | old_postuninstall_cmds | \
11839 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11840 # Double-quote double-evaled strings.
11841 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11844 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11850 *'\$0 --fallback-echo"')
11851 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11857 cat <<__EOF__ >> "$cfgfile"
11858 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11860 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11862 # Shell to use when invoking shell scripts.
11865 # Whether or not to build shared libraries.
11866 build_libtool_libs=$enable_shared
11868 # Whether or not to build static libraries.
11869 build_old_libs=$enable_static
11871 # Whether or not to add -lc for building shared libraries.
11872 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11874 # Whether or not to disallow shared libs when runtime libs are static
11875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11877 # Whether or not to optimize for fast installation.
11878 fast_install=$enable_fast_install
11881 host_alias=$host_alias
11884 # An echo program that does not interpret backslashes.
11889 AR_FLAGS=$lt_AR_FLAGS
11894 # A language-specific compiler.
11895 CC=$lt_compiler_CXX
11897 # Is the compiler the GNU C compiler?
11903 # The linker used to build libraries.
11906 # Whether we need hard or soft links.
11909 # A BSD-compatible nm program.
11912 # A symbol stripping program
11915 # Used to examine libraries when file_magic_cmd begins "file"
11916 MAGIC_CMD=$MAGIC_CMD
11918 # Used on cygwin: DLL creation program.
11921 # Used on cygwin: object dumper.
11924 # Used on cygwin: assembler.
11927 # The name of the directory that contains temporary libtool files.
11930 # How to create reloadable object files.
11931 reload_flag=$lt_reload_flag
11932 reload_cmds=$lt_reload_cmds
11934 # How to pass a linker flag through the compiler.
11935 wl=$lt_lt_prog_compiler_wl_CXX
11937 # Object file suffix (normally "o").
11938 objext="$ac_objext"
11940 # Old archive suffix (normally "a").
11943 # Shared library suffix (normally ".so").
11946 # Executable file suffix (normally "").
11949 # Additional compiler flags for building library objects.
11950 pic_flag=$lt_lt_prog_compiler_pic_CXX
11953 # What is the maximum length of a command?
11954 max_cmd_len=$lt_cv_sys_max_cmd_len
11956 # Does compiler simultaneously support -c and -o options?
11957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11959 # Must we lock files when doing compilation ?
11960 need_locks=$lt_need_locks
11962 # Do we need the lib prefix for modules?
11963 need_lib_prefix=$need_lib_prefix
11965 # Do we need a version for libraries?
11966 need_version=$need_version
11968 # Whether dlopen is supported.
11969 dlopen_support=$enable_dlopen
11971 # Whether dlopen of programs is supported.
11972 dlopen_self=$enable_dlopen_self
11974 # Whether dlopen of statically linked programs is supported.
11975 dlopen_self_static=$enable_dlopen_self_static
11977 # Compiler flag to prevent dynamic linking.
11978 link_static_flag=$lt_lt_prog_compiler_static_CXX
11980 # Compiler flag to turn off builtin functions.
11981 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11983 # Compiler flag to allow reflexive dlopens.
11984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11986 # Compiler flag to generate shared objects directly from archives.
11987 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11989 # Compiler flag to generate thread-safe objects.
11990 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11992 # Library versioning type.
11993 version_type=$version_type
11995 # Format of library name prefix.
11996 libname_spec=$lt_libname_spec
11998 # List of archive names. First name is the real one, the rest are links.
11999 # The last name is the one that the linker finds with -lNAME.
12000 library_names_spec=$lt_library_names_spec
12002 # The coded name of the library, if different from the real name.
12003 soname_spec=$lt_soname_spec
12005 # Commands used to build and install an old-style archive.
12007 old_archive_cmds=$lt_old_archive_cmds_CXX
12008 old_postinstall_cmds=$lt_old_postinstall_cmds
12009 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12011 # Create an old-style archive from a shared archive.
12012 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12014 # Create a temporary old-style archive to link instead of a shared archive.
12015 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12017 # Commands used to build and install a shared archive.
12018 archive_cmds=$lt_archive_cmds_CXX
12019 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12020 postinstall_cmds=$lt_postinstall_cmds
12021 postuninstall_cmds=$lt_postuninstall_cmds
12023 # Commands used to build a loadable module (assumed same as above if empty)
12024 module_cmds=$lt_module_cmds_CXX
12025 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12027 # Commands to strip libraries.
12028 old_striplib=$lt_old_striplib
12029 striplib=$lt_striplib
12031 # Dependencies to place before the objects being linked to create a
12033 predep_objects=$lt_predep_objects_CXX
12035 # Dependencies to place after the objects being linked to create a
12037 postdep_objects=$lt_postdep_objects_CXX
12039 # Dependencies to place before the objects being linked to create a
12041 predeps=$lt_predeps_CXX
12043 # Dependencies to place after the objects being linked to create a
12045 postdeps=$lt_postdeps_CXX
12047 # The library search path used internally by the compiler when linking
12048 # a shared library.
12049 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12051 # Method to check whether dependent libraries are shared objects.
12052 deplibs_check_method=$lt_deplibs_check_method
12054 # Command to use when deplibs_check_method == file_magic.
12055 file_magic_cmd=$lt_file_magic_cmd
12057 # Flag that allows shared libraries with undefined symbols to be built.
12058 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12060 # Flag that forces no undefined symbols.
12061 no_undefined_flag=$lt_no_undefined_flag_CXX
12063 # Commands used to finish a libtool library installation in a directory.
12064 finish_cmds=$lt_finish_cmds
12066 # Same as above, but a single script fragment to be evaled but not shown.
12067 finish_eval=$lt_finish_eval
12069 # Take the output of nm and produce a listing of raw symbols and C names.
12070 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12072 # Transform the output of nm in a proper C declaration
12073 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12075 # Transform the output of nm in a C name address pair
12076 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12078 # This is the shared library runtime path variable.
12079 runpath_var=$runpath_var
12081 # This is the shared library path variable.
12082 shlibpath_var=$shlibpath_var
12084 # Is shlibpath searched before the hard-coded library search path?
12085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12087 # How to hardcode a shared library path into an executable.
12088 hardcode_action=$hardcode_action_CXX
12090 # Whether we should hardcode library paths into libraries.
12091 hardcode_into_libs=$hardcode_into_libs
12093 # Flag to hardcode \$libdir into a binary during linking.
12094 # This must work even if \$libdir does not exist.
12095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12097 # If ld is used when linking, flag to hardcode \$libdir into
12098 # a binary during linking. This must work even if \$libdir does
12100 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12102 # Whether we need a single -rpath flag with a separated argument.
12103 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12105 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12106 # resulting binary.
12107 hardcode_direct=$hardcode_direct_CXX
12109 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12110 # resulting binary.
12111 hardcode_minus_L=$hardcode_minus_L_CXX
12113 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12114 # the resulting binary.
12115 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12117 # Set to yes if building a shared library automatically hardcodes DIR into the library
12118 # and all subsequent libraries and executables linked against it.
12119 hardcode_automatic=$hardcode_automatic_CXX
12121 # Variables whose values should be saved in libtool wrapper scripts and
12122 # restored at relink time.
12123 variables_saved_for_relink="$variables_saved_for_relink"
12125 # Whether libtool must link a program against all its dependency libraries.
12126 link_all_deplibs=$link_all_deplibs_CXX
12128 # Compile-time system search path for libraries
12129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12131 # Run-time system search path for libraries
12132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12134 # Fix the shell variable \$srcfile for the compiler.
12135 fix_srcfile_path="$fix_srcfile_path_CXX"
12137 # Set to yes if exported symbols are required.
12138 always_export_symbols=$always_export_symbols_CXX
12140 # The commands to list exported symbols.
12141 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12143 # The commands to extract the exported symbol list from a shared archive.
12144 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12146 # Symbols that should not be listed in the preloaded symbols.
12147 exclude_expsyms=$lt_exclude_expsyms_CXX
12149 # Symbols that must always be exported.
12150 include_expsyms=$lt_include_expsyms_CXX
12152 # ### END LIBTOOL TAG CONFIG: $tagname
12158 # If there is no Makefile yet, we rely on a make rule to execute
12159 # `config.status --recheck' to rerun these tests and create the
12160 # libtool script then.
12161 test -f Makefile && make "$ltmain"
12166 ac_cpp='$CPP $CPPFLAGS'
12167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12175 with_gnu_ldcxx=$with_gnu_ld
12176 with_gnu_ld=$lt_save_with_gnu_ld
12177 lt_cv_path_LDCXX=$lt_cv_path_LD
12178 lt_cv_path_LD=$lt_save_path_LD
12179 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12180 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12188 if test -n "$F77" && test "X$F77" != "Xno"; then
12191 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12192 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12196 archive_cmds_need_lc_F77=no
12197 allow_undefined_flag_F77=
12198 always_export_symbols_F77=no
12199 archive_expsym_cmds_F77=
12200 export_dynamic_flag_spec_F77=
12201 hardcode_direct_F77=no
12202 hardcode_libdir_flag_spec_F77=
12203 hardcode_libdir_flag_spec_ld_F77=
12204 hardcode_libdir_separator_F77=
12205 hardcode_minus_L_F77=no
12206 hardcode_automatic_F77=no
12208 module_expsym_cmds_F77=
12209 link_all_deplibs_F77=unknown
12210 old_archive_cmds_F77=$old_archive_cmds
12211 no_undefined_flag_F77=
12212 whole_archive_flag_spec_F77=
12213 enable_shared_with_static_runtimes_F77=no
12215 # Source file extension for f77 test sources.
12218 # Object file extension for compiled f77 test sources.
12222 # Code to be used in simple compile tests
12223 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12225 # Code to be used in simple link tests
12226 lt_simple_link_test_code=" program t\n end\n"
12228 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12230 # If no C compiler was specified, use CC.
12233 # Allow CC to be a program name with arguments.
12237 # Allow CC to be a program name with arguments.
12242 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12244 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12245 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12246 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12247 echo "${ECHO_T}$can_build_shared" >&6
12249 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12250 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12251 test "$can_build_shared" = "no" && enable_shared=no
12253 # On AIX, shared libraries and static libraries use the same namespace, and
12254 # are all built from PIC.
12257 test "$enable_shared" = yes && enable_static=no
12258 if test -n "$RANLIB"; then
12259 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12260 postinstall_cmds='$RANLIB $lib'
12264 test "$enable_shared" = yes && enable_static=no
12267 echo "$as_me:$LINENO: result: $enable_shared" >&5
12268 echo "${ECHO_T}$enable_shared" >&6
12270 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12271 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12272 # Make sure either enable_shared or enable_static is yes.
12273 test "$enable_shared" = yes || enable_static=yes
12274 echo "$as_me:$LINENO: result: $enable_static" >&5
12275 echo "${ECHO_T}$enable_static" >&6
12277 test "$ld_shlibs_F77" = no && can_build_shared=no
12282 lt_prog_compiler_wl_F77=
12283 lt_prog_compiler_pic_F77=
12284 lt_prog_compiler_static_F77=
12286 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12287 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12289 if test "$GCC" = yes; then
12290 lt_prog_compiler_wl_F77='-Wl,'
12291 lt_prog_compiler_static_F77='-static'
12295 # All AIX code is PIC.
12296 if test "$host_cpu" = ia64; then
12297 # AIX 5 now supports IA64 processor
12298 lt_prog_compiler_static_F77='-Bstatic'
12303 # FIXME: we need at least 68020 code to build shared libraries, but
12304 # adding the `-m68020' flag to GCC prevents building anything better,
12306 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12309 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12310 # PIC is the default for these OSes.
12313 mingw* | pw32* | os2*)
12314 # This hack is so that the source file can tell whether it is being
12315 # built for inclusion in a dll (and should export symbols for example).
12316 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12319 darwin* | rhapsody*)
12320 # PIC is the default on this platform
12321 # Common symbols not allowed in MH_DYLIB files
12322 lt_prog_compiler_pic_F77='-fno-common'
12326 # Just because we use GCC doesn't mean we suddenly get shared libraries
12327 # on systems that don't support them.
12328 lt_prog_compiler_can_build_shared_F77=no
12333 if test -d /usr/nec; then
12334 lt_prog_compiler_pic_F77=-Kconform_pic
12339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12340 # not for PA HP-UX.
12341 case "$host_cpu" in
12346 lt_prog_compiler_pic_F77='-fPIC'
12352 lt_prog_compiler_pic_F77='-fPIC'
12356 # PORTME Check for flag to pass linker flags through the system compiler.
12359 lt_prog_compiler_wl_F77='-Wl,'
12360 if test "$host_cpu" = ia64; then
12361 # AIX 5 now supports IA64 processor
12362 lt_prog_compiler_static_F77='-Bstatic'
12364 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12368 mingw* | pw32* | os2*)
12369 # This hack is so that the source file can tell whether it is being
12370 # built for inclusion in a dll (and should export symbols for example).
12371 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12374 hpux9* | hpux10* | hpux11*)
12375 lt_prog_compiler_wl_F77='-Wl,'
12376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12377 # not for PA HP-UX.
12378 case "$host_cpu" in
12383 lt_prog_compiler_pic_F77='+Z'
12386 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12387 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12390 irix5* | irix6* | nonstopux*)
12391 lt_prog_compiler_wl_F77='-Wl,'
12392 # PIC (with -KPIC) is the default.
12393 lt_prog_compiler_static_F77='-non_shared'
12397 lt_prog_compiler_pic_F77='-KPIC'
12398 lt_prog_compiler_static_F77='-Bstatic'
12404 lt_prog_compiler_wl_F77='-Wl,'
12405 lt_prog_compiler_pic_F77='-KPIC'
12406 lt_prog_compiler_static_F77='-static'
12409 lt_prog_compiler_wl_F77='-Wl,'
12410 # All Alpha code is PIC.
12411 lt_prog_compiler_static_F77='-non_shared'
12416 osf3* | osf4* | osf5*)
12417 lt_prog_compiler_wl_F77='-Wl,'
12418 # All OSF/1 code is PIC.
12419 lt_prog_compiler_static_F77='-non_shared'
12423 lt_prog_compiler_pic_F77='-Kpic'
12424 lt_prog_compiler_static_F77='-dn'
12428 lt_prog_compiler_wl_F77='-Wl,'
12429 lt_prog_compiler_pic_F77='-KPIC'
12430 lt_prog_compiler_static_F77='-Bstatic'
12434 lt_prog_compiler_wl_F77='-Qoption ld '
12435 lt_prog_compiler_pic_F77='-PIC'
12436 lt_prog_compiler_static_F77='-Bstatic'
12439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12440 lt_prog_compiler_wl_F77='-Wl,'
12441 lt_prog_compiler_pic_F77='-KPIC'
12442 lt_prog_compiler_static_F77='-Bstatic'
12446 if test -d /usr/nec ;then
12447 lt_prog_compiler_pic_F77='-Kconform_pic'
12448 lt_prog_compiler_static_F77='-Bstatic'
12453 lt_prog_compiler_pic_F77='-pic'
12454 lt_prog_compiler_static_F77='-Bstatic'
12458 lt_prog_compiler_can_build_shared_F77=no
12463 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12464 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12467 # Check to make sure the PIC flag actually works.
12469 if test -n "$lt_prog_compiler_pic_F77"; then
12470 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12472 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 lt_prog_compiler_pic_works_F77=no
12476 ac_outfile=conftest.$ac_objext
12477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12478 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12479 # Insert the option either (1) after the last *FLAGS variable, or
12480 # (2) before a word containing "conftest.", or (3) at the end.
12481 # Note that $ac_compile itself does not contain backslashes and begins
12482 # with a dollar sign (not a hyphen), so the echo should work correctly.
12483 # The option is referenced via a variable to avoid confusing sed.
12484 lt_compile=`echo "$ac_compile" | $SED \
12485 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12487 -e 's:$: $lt_compiler_flag:'`
12488 (eval echo "\"\$as_me:12488: $lt_compile\"" >&5)
12489 (eval "$lt_compile" 2>conftest.err)
12491 cat conftest.err >&5
12492 echo "$as_me:12492: \$? = $ac_status" >&5
12493 if (exit $ac_status) && test -s "$ac_outfile"; then
12494 # The compiler can only warn and ignore the option if not recognized
12495 # So say no if there are warnings
12496 if test ! -s conftest.err; then
12497 lt_prog_compiler_pic_works_F77=yes
12503 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12504 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12506 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12507 case $lt_prog_compiler_pic_F77 in
12509 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12512 lt_prog_compiler_pic_F77=
12513 lt_prog_compiler_can_build_shared_F77=no
12518 # For platforms which do not support PIC, -DPIC is meaningless:
12520 lt_prog_compiler_pic_F77=
12523 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12527 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12529 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 lt_cv_prog_compiler_c_o_F77=no
12533 $rm -r conftest 2>/dev/null
12537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12539 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12540 # that will create temporary files in the current directory regardless of
12541 # the output directory. Thus, making CWD read-only will cause this test
12542 # to fail, enabling locking or at least warning the user not to do parallel
12546 lt_compiler_flag="-o out/conftest2.$ac_objext"
12547 # Insert the option either (1) after the last *FLAGS variable, or
12548 # (2) before a word containing "conftest.", or (3) at the end.
12549 # Note that $ac_compile itself does not contain backslashes and begins
12550 # with a dollar sign (not a hyphen), so the echo should work correctly.
12551 lt_compile=`echo "$ac_compile" | $SED \
12552 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12554 -e 's:$: $lt_compiler_flag:'`
12555 (eval echo "\"\$as_me:12555: $lt_compile\"" >&5)
12556 (eval "$lt_compile" 2>out/conftest.err)
12558 cat out/conftest.err >&5
12559 echo "$as_me:12559: \$? = $ac_status" >&5
12560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12562 # The compiler can only warn and ignore the option if not recognized
12563 # So say no if there are warnings
12564 if test ! -s out/conftest.err; then
12565 lt_cv_prog_compiler_c_o_F77=yes
12569 $rm conftest* out/*
12576 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12577 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12580 hard_links="nottested"
12581 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12582 # do not overwrite the value of need_locks provided by the user
12583 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12584 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12589 ln conftest.a conftest.b 2>&5 || hard_links=no
12590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12591 echo "$as_me:$LINENO: result: $hard_links" >&5
12592 echo "${ECHO_T}$hard_links" >&6
12593 if test "$hard_links" = no; then
12594 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12595 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12602 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12603 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12606 allow_undefined_flag_F77=
12607 enable_shared_with_static_runtimes_F77=no
12609 archive_expsym_cmds_F77=
12610 old_archive_From_new_cmds_F77=
12611 old_archive_from_expsyms_cmds_F77=
12612 export_dynamic_flag_spec_F77=
12613 whole_archive_flag_spec_F77=
12614 thread_safe_flag_spec_F77=
12615 hardcode_libdir_flag_spec_F77=
12616 hardcode_libdir_flag_spec_ld_F77=
12617 hardcode_libdir_separator_F77=
12618 hardcode_direct_F77=no
12619 hardcode_minus_L_F77=no
12620 hardcode_shlibpath_var_F77=unsupported
12621 link_all_deplibs_F77=unknown
12622 hardcode_automatic_F77=no
12624 module_expsym_cmds_F77=
12625 always_export_symbols_F77=no
12626 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12627 # include_expsyms should be a list of space-separated symbols to be *always*
12628 # included in the symbol list
12629 include_expsyms_F77=
12630 # exclude_expsyms can be an extended regexp of symbols to exclude
12631 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12632 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12633 # as well as any symbol that contains `d'.
12634 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12635 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12636 # platforms (ab)use it in PIC code, but their linkers get confused if
12637 # the symbol is explicitly referenced. Since portable code cannot
12638 # rely on this symbol name, it's probably fine to never include it in
12639 # preloaded symbol tables.
12640 extract_expsyms_cmds=
12643 cygwin* | mingw* | pw32*)
12644 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12645 # When not using gcc, we currently assume that we are using
12646 # Microsoft Visual C++.
12647 if test "$GCC" != yes; then
12657 if test "$with_gnu_ld" = yes; then
12658 # If archive_cmds runs LD, not CC, wlarc should be empty
12661 # See if GNU ld supports shared libraries.
12663 aix3* | aix4* | aix5*)
12664 # On AIX/PPC, the GNU linker is very broken
12665 if test "$host_cpu" != ia64; then
12669 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12670 *** to be unable to reliably create shared libraries on AIX.
12671 *** Therefore, libtool is disabling shared libraries support. If you
12672 *** really care for shared libraries, you may want to modify your PATH
12673 *** so that a non-GNU linker is found, and then restart.
12680 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)'
12681 hardcode_libdir_flag_spec_F77='-L$libdir'
12682 hardcode_minus_L_F77=yes
12684 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12685 # that the semantics of dynamic libraries on AmigaOS, at least up
12686 # to version 4, is to share data among multiple programs linked
12687 # with the same dynamic library. Since this doesn't match the
12688 # behavior of shared libraries on other platforms, we can't use
12694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12695 allow_undefined_flag_F77=unsupported
12696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12697 # support --undefined. This deserves some investigation. FIXME
12698 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12704 cygwin* | mingw* | pw32*)
12705 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12706 # as there is no search path for DLLs.
12707 hardcode_libdir_flag_spec_F77='-L$libdir'
12708 allow_undefined_flag_F77=unsupported
12709 always_export_symbols_F77=no
12710 enable_shared_with_static_runtimes_F77=yes
12711 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12713 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12714 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12715 # If the export-symbols file already is a .def file (1st line
12716 # is EXPORTS), use it as is; otherwise, prepend...
12717 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12718 cp $export_symbols $output_objdir/$soname.def;
12720 echo EXPORTS > $output_objdir/$soname.def;
12721 cat $export_symbols >> $output_objdir/$soname.def;
12723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12731 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12734 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12735 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12740 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12744 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12745 *** create shared libraries on Solaris systems. Therefore, libtool
12746 *** is disabling shared libraries support. We urge you to upgrade GNU
12747 *** binutils to release 2.9.1 or newer. Another option is to modify
12748 *** your PATH or compiler configuration so that the native linker is
12749 *** used, and then restart.
12752 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12753 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12754 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12761 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12763 hardcode_direct_F77=yes
12764 hardcode_shlibpath_var_F77=no
12768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12769 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12770 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12777 if test "$ld_shlibs_F77" = yes; then
12778 runpath_var=LD_RUN_PATH
12779 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12780 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12781 # ancient GNU ld didn't support --whole-archive et. al.
12782 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12783 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12785 whole_archive_flag_spec_F77=
12789 # PORTME fill in a description of your system's linker (not GNU ld)
12792 allow_undefined_flag_F77=unsupported
12793 always_export_symbols_F77=yes
12794 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'
12795 # Note: this linker hardcodes the directories in LIBPATH if there
12796 # are no directories specified by -L.
12797 hardcode_minus_L_F77=yes
12798 if test "$GCC" = yes && test -z "$link_static_flag"; then
12799 # Neither direct hardcoding nor static linking is supported with a
12801 hardcode_direct_F77=unsupported
12806 if test "$host_cpu" = ia64; then
12807 # On IA64, the linker does run time linking by default, so we don't
12808 # have to do anything special.
12809 aix_use_runtimelinking=no
12810 exp_sym_flag='-Bexport'
12813 # If we're using GNU nm, then we don't want the "-C" option.
12814 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12815 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12816 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'
12818 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'
12820 aix_use_runtimelinking=no
12822 # Test if we are trying to use run time linking or normal
12823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12824 # need to do runtime linking.
12825 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12826 for ld_flag in $LDFLAGS; do
12827 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12828 aix_use_runtimelinking=yes
12834 exp_sym_flag='-bexport'
12835 no_entry_flag='-bnoentry'
12838 # When large executables or shared objects are built, AIX ld can
12839 # have problems creating the table of contents. If linking a library
12840 # or program results in "error TOC overflow" add -mminimal-toc to
12841 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12842 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12844 archive_cmds_F77=''
12845 hardcode_direct_F77=yes
12846 hardcode_libdir_separator_F77=':'
12847 link_all_deplibs_F77=yes
12849 if test "$GCC" = yes; then
12850 case $host_os in aix4.012|aix4.012.*)
12851 # We only want to do this on AIX 4.2 and lower, the check
12852 # below for broken collect2 doesn't work under 4.3+
12853 collect2name=`${CC} -print-prog-name=collect2`
12854 if test -f "$collect2name" && \
12855 strings "$collect2name" | grep resolve_lib_name >/dev/null
12857 # We have reworked collect2
12858 hardcode_direct_F77=yes
12860 # We have old collect2
12861 hardcode_direct_F77=unsupported
12862 # It fails to find uninstalled libraries when the uninstalled
12863 # path is not listed in the libpath. Setting hardcode_minus_L
12864 # to unsupported forces relinking
12865 hardcode_minus_L_F77=yes
12866 hardcode_libdir_flag_spec_F77='-L$libdir'
12867 hardcode_libdir_separator_F77=
12870 shared_flag='-shared'
12873 if test "$host_cpu" = ia64; then
12874 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12875 # chokes on -Wl,-G. The following line is correct:
12878 if test "$aix_use_runtimelinking" = yes; then
12879 shared_flag='${wl}-G'
12881 shared_flag='${wl}-bM:SRE'
12886 # It seems that -bexpall does not export symbols beginning with
12887 # underscore (_), so it is better to generate a list of symbols to export.
12888 always_export_symbols_F77=yes
12889 if test "$aix_use_runtimelinking" = yes; then
12890 # Warning - without using the other runtime loading flags (-brtl),
12891 # -berok will link without error, but may produce a broken library.
12892 allow_undefined_flag_F77='-berok'
12893 # Determine the default libpath from the value encoded in an empty executable.
12894 cat >conftest.$ac_ext <<_ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901 (eval $ac_link) 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -s conftest$ac_exeext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12914 # Check for a 64-bit object if we didn't find anything.
12915 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; }
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12925 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12926 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"
12928 if test "$host_cpu" = ia64; then
12929 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12930 allow_undefined_flag_F77="-z nodefs"
12931 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"
12933 # Determine the default libpath from the value encoded in an empty executable.
12934 cat >conftest.$ac_ext <<_ACEOF
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } &&
12945 { ac_try='test -s conftest$ac_exeext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12954 # Check for a 64-bit object if we didn't find anything.
12955 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; }
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12963 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12965 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12966 # Warning - without using the other run time loading flags,
12967 # -berok will link without error, but may produce a broken library.
12968 no_undefined_flag_F77=' ${wl}-bernotok'
12969 allow_undefined_flag_F77=' ${wl}-berok'
12970 # -bexpall does not export symbols beginning with underscore (_)
12971 always_export_symbols_F77=yes
12972 # Exported symbols can be pulled into shared objects from archives
12973 whole_archive_flag_spec_F77=' '
12974 archive_cmds_need_lc_F77=yes
12975 # This is similar to how AIX traditionally builds it's shared libraries.
12976 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'
12982 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)'
12983 hardcode_libdir_flag_spec_F77='-L$libdir'
12984 hardcode_minus_L_F77=yes
12985 # see comment about different semantics on the GNU ld section
12990 export_dynamic_flag_spec_F77=-rdynamic
12993 cygwin* | mingw* | pw32*)
12994 # When not using gcc, we currently assume that we are using
12995 # Microsoft Visual C++.
12996 # hardcode_libdir_flag_spec is actually meaningless, as there is
12997 # no search path for DLLs.
12998 hardcode_libdir_flag_spec_F77=' '
12999 allow_undefined_flag_F77=unsupported
13000 # Tell ltmain to make .lib files, not .a files.
13002 # Tell ltmain to make .dll files, not .so files.
13004 # FIXME: Setting linknames here is a bad hack.
13005 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13006 # The linker will automatically build a .lib file if we build a DLL.
13007 old_archive_From_new_cmds_F77='true'
13008 # FIXME: Should let the user specify the lib program.
13009 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13010 fix_srcfile_path='`cygpath -w "$srcfile"`'
13011 enable_shared_with_static_runtimes_F77=yes
13014 darwin* | rhapsody*)
13015 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13016 archive_cmds_need_lc_F77=no
13018 rhapsody* | darwin1.[012])
13019 allow_undefined_flag_F77='-undefined suppress'
13022 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13025 # FIXME: Relying on posixy $() will cause problems for
13026 # cross-compilation, but unfortunately the echo tests do not
13027 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13028 # `"' quotes if we put them in here... so don't!
13029 lt_int_apple_cc_single_mod=no
13030 output_verbose_link_cmd='echo'
13031 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13032 lt_int_apple_cc_single_mod=yes
13034 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13035 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13037 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'
13039 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13040 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13041 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13042 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}'
13044 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}'
13046 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}'
13047 hardcode_direct_F77=no
13048 hardcode_automatic_F77=yes
13049 hardcode_shlibpath_var_F77=unsupported
13050 whole_archive_flag_spec_F77='-all_load $convenience'
13051 link_all_deplibs_F77=yes
13056 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057 hardcode_libdir_flag_spec_F77='-L$libdir'
13058 hardcode_shlibpath_var_F77=no
13065 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13066 # support. Future versions do this automatically, but an explicit c++rt0.o
13067 # does not break anything, and helps significantly (at the cost of a little
13070 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13071 hardcode_libdir_flag_spec_F77='-R$libdir'
13072 hardcode_direct_F77=yes
13073 hardcode_shlibpath_var_F77=no
13076 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13078 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13079 hardcode_direct_F77=yes
13080 hardcode_minus_L_F77=yes
13081 hardcode_shlibpath_var_F77=no
13084 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13086 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13087 hardcode_libdir_flag_spec_F77='-R$libdir'
13088 hardcode_direct_F77=yes
13089 hardcode_shlibpath_var_F77=no
13093 if test "$GCC" = yes; then
13094 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'
13096 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'
13098 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13099 hardcode_libdir_separator_F77=:
13100 hardcode_direct_F77=yes
13102 # hardcode_minus_L: Not really in the search PATH,
13103 # but as the default location of the library.
13104 hardcode_minus_L_F77=yes
13105 export_dynamic_flag_spec_F77='${wl}-E'
13109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13110 case "$host_cpu" in
13112 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13115 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13119 case "$host_cpu" in
13121 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13124 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13128 if test "$with_gnu_ld" = no; then
13129 case "$host_cpu" in
13131 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13132 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13133 hardcode_libdir_separator_F77=:
13134 hardcode_direct_F77=no
13135 hardcode_shlibpath_var_F77=no
13138 hardcode_libdir_flag_spec_F77='-L$libdir'
13139 hardcode_direct_F77=no
13140 hardcode_shlibpath_var_F77=no
13142 # hardcode_minus_L: Not really in the search PATH,
13143 # but as the default location of the library.
13144 hardcode_minus_L_F77=yes
13147 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13148 hardcode_libdir_separator_F77=:
13149 hardcode_direct_F77=yes
13150 export_dynamic_flag_spec_F77='${wl}-E'
13152 # hardcode_minus_L: Not really in the search PATH,
13153 # but as the default location of the library.
13154 hardcode_minus_L_F77=yes
13160 irix5* | irix6* | nonstopux*)
13161 if test "$GCC" = yes; then
13162 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'
13164 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'
13165 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13167 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13168 hardcode_libdir_separator_F77=:
13169 link_all_deplibs_F77=yes
13173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13174 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13176 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13178 hardcode_libdir_flag_spec_F77='-R$libdir'
13179 hardcode_direct_F77=yes
13180 hardcode_shlibpath_var_F77=no
13184 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13185 hardcode_direct_F77=yes
13186 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13187 hardcode_libdir_separator_F77=:
13188 hardcode_shlibpath_var_F77=no
13192 hardcode_direct_F77=yes
13193 hardcode_shlibpath_var_F77=no
13194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13195 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13196 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13197 export_dynamic_flag_spec_F77='${wl}-E'
13200 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13201 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13202 hardcode_libdir_flag_spec_F77='-R$libdir'
13205 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13206 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13213 hardcode_libdir_flag_spec_F77='-L$libdir'
13214 hardcode_minus_L_F77=yes
13215 allow_undefined_flag_F77=unsupported
13216 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'
13217 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13221 if test "$GCC" = yes; then
13222 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13223 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'
13225 allow_undefined_flag_F77=' -expect_unresolved \*'
13226 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'
13228 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13229 hardcode_libdir_separator_F77=:
13232 osf4* | osf5*) # as osf3* with the addition of -msym flag
13233 if test "$GCC" = yes; then
13234 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13235 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'
13236 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13238 allow_undefined_flag_F77=' -expect_unresolved \*'
13239 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'
13240 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~
13241 $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'
13243 # Both c and cxx compiler support -rpath directly
13244 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13246 hardcode_libdir_separator_F77=:
13250 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_shlibpath_var_F77=no
13252 export_dynamic_flag_spec_F77='${wl}-Bexport'
13253 runpath_var=LD_RUN_PATH
13254 hardcode_runpath_var=yes
13258 no_undefined_flag_F77=' -z text'
13259 if test "$GCC" = yes; then
13260 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13261 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13262 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13264 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13265 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13266 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13268 hardcode_libdir_flag_spec_F77='-R$libdir'
13269 hardcode_shlibpath_var_F77=no
13271 solaris2.[0-5] | solaris2.[0-5].*) ;;
13272 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13273 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13275 link_all_deplibs_F77=yes
13279 if test "x$host_vendor" = xsequent; then
13280 # Use $CC to link under sequent, because it throws in some extra .o
13281 # files that make .init and .fini sections work.
13282 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13284 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13286 hardcode_libdir_flag_spec_F77='-L$libdir'
13287 hardcode_direct_F77=yes
13288 hardcode_minus_L_F77=yes
13289 hardcode_shlibpath_var_F77=no
13293 case $host_vendor in
13295 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13296 hardcode_direct_F77=yes # is this really true???
13299 ## LD is ld it makes a PLAMLIB
13300 ## CC just makes a GrossModule.
13301 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13302 reload_cmds_F77='$CC -r -o $output$reload_objs'
13303 hardcode_direct_F77=no
13306 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13307 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13310 runpath_var='LD_RUN_PATH'
13311 hardcode_shlibpath_var_F77=no
13315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13316 hardcode_shlibpath_var_F77=no
13317 export_dynamic_flag_spec_F77='-Bexport'
13321 if test -d /usr/nec; then
13322 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13323 hardcode_shlibpath_var_F77=no
13324 runpath_var=LD_RUN_PATH
13325 hardcode_runpath_var=yes
13331 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13332 hardcode_direct_F77=yes
13333 hardcode_minus_L_F77=no
13334 hardcode_shlibpath_var_F77=no
13335 hardcode_runpath_var=yes
13336 runpath_var=LD_RUN_PATH
13339 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13340 no_undefined_flag_F77='${wl}-z ${wl}text'
13341 if test "$GCC" = yes; then
13342 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13344 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13346 runpath_var='LD_RUN_PATH'
13347 hardcode_shlibpath_var_F77=no
13351 no_undefined_flag_F77=' -z text'
13352 # $CC -shared without GNU ld will not create a library from C++
13353 # object files and a static libstdc++, better avoid it by now
13354 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13355 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13356 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13357 hardcode_libdir_flag_spec_F77=
13358 hardcode_shlibpath_var_F77=no
13359 runpath_var='LD_RUN_PATH'
13363 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13364 hardcode_libdir_flag_spec_F77='-L$libdir'
13365 hardcode_shlibpath_var_F77=no
13374 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13375 echo "${ECHO_T}$ld_shlibs_F77" >&6
13376 test "$ld_shlibs_F77" = no && can_build_shared=no
13378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13379 if test "$GCC" = yes; then
13380 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13384 # Do we need to explicitly link libc?
13386 case "x$archive_cmds_need_lc_F77" in
13388 # Assume -lc should be added
13389 archive_cmds_need_lc_F77=yes
13391 if test "$enable_shared" = yes && test "$GCC" = yes; then
13392 case $archive_cmds_F77 in
13394 # FIXME: we may have to deal with multi-command sequences.
13397 # Test whether the compiler implicitly links with -lc since on some
13398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13399 # to ld, don't add -lc before -lgcc.
13400 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13401 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13406 (eval $ac_compile) 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } 2>conftest.err; then
13412 libobjs=conftest.$ac_objext
13414 wl=$lt_prog_compiler_wl_F77
13420 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13421 allow_undefined_flag_F77=
13422 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13423 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }
13428 archive_cmds_need_lc_F77=no
13430 archive_cmds_need_lc_F77=yes
13432 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13434 cat conftest.err 1>&5
13437 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13438 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13445 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13447 hardcode_action_F77=
13448 if test -n "$hardcode_libdir_flag_spec_F77" || \
13449 test -n "$runpath_var F77" || \
13450 test "X$hardcode_automatic_F77"="Xyes" ; then
13452 # We can hardcode non-existant directories.
13453 if test "$hardcode_direct_F77" != no &&
13454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13455 # have to relink, otherwise we might link with an installed library
13456 # when we should be linking with a yet-to-be-installed one
13457 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13458 test "$hardcode_minus_L_F77" != no; then
13459 # Linking always hardcodes the temporary library directory.
13460 hardcode_action_F77=relink
13462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13463 hardcode_action_F77=immediate
13466 # We cannot hardcode anything, or else we can only hardcode existing
13468 hardcode_action_F77=unsupported
13470 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13471 echo "${ECHO_T}$hardcode_action_F77" >&6
13473 if test "$hardcode_action_F77" = relink; then
13474 # Fast installation is not supported
13475 enable_fast_install=no
13476 elif test "$shlibpath_overrides_runpath" = yes ||
13477 test "$enable_shared" = no; then
13478 # Fast installation is not necessary
13479 enable_fast_install=needless
13484 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13485 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13486 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13487 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13488 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13489 echo "$as_me:$LINENO: result: yes" >&5
13490 echo "${ECHO_T}yes" >&6
13492 # FIXME - insert some real tests, host_os isn't really good enough
13495 if test -n "$STRIP" ; then
13496 striplib="$STRIP -x"
13497 echo "$as_me:$LINENO: result: yes" >&5
13498 echo "${ECHO_T}yes" >&6
13500 echo "$as_me:$LINENO: result: no" >&5
13501 echo "${ECHO_T}no" >&6
13505 echo "$as_me:$LINENO: result: no" >&5
13506 echo "${ECHO_T}no" >&6
13511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13513 library_names_spec=
13514 libname_spec='lib$name'
13518 postuninstall_cmds=
13522 shlibpath_overrides_runpath=unknown
13524 dynamic_linker="$host_os ld.so"
13525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13526 if test "$GCC" = yes; then
13527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13528 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13529 # if the path contains ";" then we assume it to be the separator
13530 # otherwise default to the standard path separator (i.e. ":") - it is
13531 # assumed that no part of a normal pathname contains ";" but that should
13532 # okay in the real world where ";" in dirpaths is itself problematic.
13533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13540 need_lib_prefix=unknown
13541 hardcode_into_libs=no
13543 # when you set need_version to no, make sure it does not cause -set_version
13544 # flags to be left without arguments
13545 need_version=unknown
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13551 shlibpath_var=LIBPATH
13553 # AIX 3 has no versioning support, so we append a major version to the name.
13554 soname_spec='${libname}${release}${shared_ext}$major'
13561 hardcode_into_libs=yes
13562 if test "$host_cpu" = ia64; then
13563 # AIX 5 supports IA64
13564 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13565 shlibpath_var=LD_LIBRARY_PATH
13567 # With GCC up to 2.95.x, collect2 would create an import file
13568 # for dependence libraries. The import file would start with
13569 # the line `#! .'. This would cause the generated library to
13570 # depend on `.', always an invalid library. This was fixed in
13571 # development snapshots of GCC prior to 3.0.
13573 aix4 | aix4.[01] | aix4.[01].*)
13574 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13576 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13579 can_build_shared=no
13583 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13584 # soname into executable. Probably we can add versioning support to
13585 # collect2, so additional links can be useful in future.
13586 if test "$aix_use_runtimelinking" = yes; then
13587 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13588 # instead of lib<name>.a to let people know that these are not
13589 # typical AIX shared libraries.
13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13592 # We preserve .a as extension for shared libraries through AIX4.2
13593 # and later when we are not doing run time linking.
13594 library_names_spec='${libname}${release}.a $libname.a'
13595 soname_spec='${libname}${release}${shared_ext}$major'
13597 shlibpath_var=LIBPATH
13602 library_names_spec='$libname.ixlibrary $libname.a'
13603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13604 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'
13608 library_names_spec='${libname}${shared_ext}'
13609 dynamic_linker="$host_os ld.so"
13610 shlibpath_var=LIBRARY_PATH
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13622 # the default ld.so.conf also contains /usr/contrib/lib and
13623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13624 # libtool to hard-code these into programs
13627 cygwin* | mingw* | pw32*)
13628 version_type=windows
13633 case $GCC,$host_os in
13634 yes,cygwin* | yes,mingw* | yes,pw32*)
13635 library_names_spec='$libname.dll.a'
13636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13637 postinstall_cmds='base_file=`basename \${file}`~
13638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13639 dldir=$destdir/`dirname \$dlpath`~
13640 test -d \$dldir || mkdir -p \$dldir~
13641 $install_prog $dir/$dlname \$dldir/$dlname'
13642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13643 dlpath=$dir/\$dldll~
13645 shlibpath_overrides_runpath=yes
13649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13651 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13654 # MinGW DLLs use traditional 'lib' prefix
13655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13657 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13658 # It is most probably a Windows format PATH printed by
13659 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13660 # path with ; separators, and with drive letters. We can handle the
13661 # drive letters (cygwin fileutils understands them), so leave them,
13662 # especially as we might pass files found there to a mingw objdump,
13663 # which wouldn't understand a cygwinified path. Ahh.
13664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13670 # pw32 DLLs use 'pw' prefix rather than 'lib'
13671 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13680 dynamic_linker='Win32 ld.exe'
13681 # FIXME: first we should search . and the directory the executable is in
13685 darwin* | rhapsody*)
13686 dynamic_linker="$host_os dyld"
13687 version_type=darwin
13690 # FIXME: Relying on posixy $() will cause problems for
13691 # cross-compilation, but unfortunately the echo tests do not
13692 # yet detect zsh echo's removal of \ escapes.
13693 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13694 soname_spec='${libname}${release}${major}$shared_ext'
13695 shlibpath_overrides_runpath=yes
13696 shlibpath_var=DYLD_LIBRARY_PATH
13697 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13698 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13699 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13700 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"`
13702 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13710 soname_spec='${libname}${release}${shared_ext}$major'
13711 shlibpath_var=LD_LIBRARY_PATH
13719 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13720 version_type=freebsd-$objformat
13721 case $version_type in
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13732 shlibpath_var=LD_LIBRARY_PATH
13735 shlibpath_overrides_runpath=yes
13737 freebsd3.01* | freebsdelf3.01*)
13738 shlibpath_overrides_runpath=yes
13739 hardcode_into_libs=yes
13742 shlibpath_overrides_runpath=no
13743 hardcode_into_libs=yes
13752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13753 soname_spec='${libname}${release}${shared_ext}$major'
13754 shlibpath_var=LD_LIBRARY_PATH
13755 hardcode_into_libs=yes
13758 hpux9* | hpux10* | hpux11*)
13759 # Give a soname corresponding to the major version so that dld.sl refuses to
13760 # link against other versions.
13764 case "$host_cpu" in
13767 hardcode_into_libs=yes
13768 dynamic_linker="$host_os dld.so"
13769 shlibpath_var=LD_LIBRARY_PATH
13770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13772 soname_spec='${libname}${release}${shared_ext}$major'
13773 if test "X$HPUX_IA64_MODE" = X32; then
13774 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13776 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13782 hardcode_into_libs=yes
13783 dynamic_linker="$host_os dld.sl"
13784 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13787 soname_spec='${libname}${release}${shared_ext}$major'
13788 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13793 dynamic_linker="$host_os dld.sl"
13794 shlibpath_var=SHLIB_PATH
13795 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797 soname_spec='${libname}${release}${shared_ext}$major'
13800 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13801 postinstall_cmds='chmod 555 $lib'
13804 irix5* | irix6* | nonstopux*)
13806 nonstopux*) version_type=nonstopux ;;
13808 if test "$lt_cv_prog_gnu_ld" = yes; then
13816 soname_spec='${libname}${release}${shared_ext}$major'
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13819 irix5* | nonstopux*)
13820 libsuff= shlibsuff=
13823 case $LD in # libtool.m4 will add one of these switches to LD
13824 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13825 libsuff= shlibsuff= libmagic=32-bit;;
13826 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13827 libsuff=32 shlibsuff=N32 libmagic=N32;;
13828 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13829 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13830 *) libsuff= shlibsuff= libmagic=never-match;;
13834 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13835 shlibpath_overrides_runpath=no
13836 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13837 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13838 hardcode_into_libs=yes
13841 # No shared lib support for Linux oldld, aout, or coff.
13842 linux*oldld* | linux*aout* | linux*coff*)
13846 # This must be Linux ELF.
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13854 shlibpath_var=LD_LIBRARY_PATH
13855 shlibpath_overrides_runpath=no
13856 # This implies no fast_install, which is unacceptable.
13857 # Some rework will be needed to allow for fast_install
13858 # before this can be enabled.
13859 hardcode_into_libs=yes
13861 # We used to test for /lib/ld.so.1 and disable shared libraries on
13862 # powerpc, because MkLinux only supported shared libraries with the
13863 # GNU dynamic linker. Since this was broken with cross compilers,
13864 # most powerpc-linux boxes support dynamic linking these days and
13865 # people can always --disable-shared, the test was removed, and we
13866 # assume the GNU/Linux dynamic linker is in use.
13867 dynamic_linker='GNU/Linux ld.so'
13874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13877 dynamic_linker='NetBSD (a.out) ld.so'
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13880 soname_spec='${libname}${release}${shared_ext}$major'
13881 dynamic_linker='NetBSD ld.elf_so'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 shlibpath_overrides_runpath=yes
13885 hardcode_into_libs=yes
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891 shlibpath_var=LD_LIBRARY_PATH
13892 shlibpath_overrides_runpath=yes
13899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13900 soname_spec='${libname}${release}${shared_ext}$major'
13901 shlibpath_var=LD_LIBRARY_PATH
13902 shlibpath_overrides_runpath=yes
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13911 shlibpath_var=LD_LIBRARY_PATH
13912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13914 openbsd2.[89] | openbsd2.[89].*)
13915 shlibpath_overrides_runpath=no
13918 shlibpath_overrides_runpath=yes
13922 shlibpath_overrides_runpath=yes
13927 libname_spec='$name'
13930 library_names_spec='$libname${shared_ext} $libname.a'
13931 dynamic_linker='OS/2 ld.exe'
13932 shlibpath_var=LIBPATH
13935 osf3* | osf4* | osf5*)
13939 soname_spec='${libname}${release}${shared_ext}$major'
13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13941 shlibpath_var=LD_LIBRARY_PATH
13942 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13943 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13950 shlibpath_var=LD_LIBRARY_PATH
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13958 soname_spec='${libname}${release}${shared_ext}$major'
13959 shlibpath_var=LD_LIBRARY_PATH
13960 shlibpath_overrides_runpath=yes
13961 hardcode_into_libs=yes
13962 # ldd complains unless libraries are executable
13963 postinstall_cmds='chmod +x $lib'
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13970 shlibpath_var=LD_LIBRARY_PATH
13971 shlibpath_overrides_runpath=yes
13972 if test "$with_gnu_ld" = yes; then
13978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13983 case $host_vendor in
13985 shlibpath_overrides_runpath=no
13987 export_dynamic_flag_spec='${wl}-Blargedynsym'
13988 runpath_var=LD_RUN_PATH
13996 shlibpath_overrides_runpath=no
13997 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14003 if test -d /usr/nec ;then
14005 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14006 soname_spec='$libname${shared_ext}.$major'
14007 shlibpath_var=LD_LIBRARY_PATH
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014 soname_spec='${libname}${release}${shared_ext}$major'
14015 shlibpath_var=LD_LIBRARY_PATH
14022 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14023 echo "${ECHO_T}$dynamic_linker" >&6
14024 test "$dynamic_linker" = no && can_build_shared=no
14027 # The else clause should only fire when bootstrapping the
14028 # libtool distribution, otherwise you forgot to ship ltmain.sh
14029 # with your package, and you will get complaints that there are
14030 # no rules to generate ltmain.sh.
14031 if test -f "$ltmain"; then
14032 # See if we are running on zsh, and set the options which allow our commands through
14033 # without removal of \ escapes.
14034 if test -n "${ZSH_VERSION+set}" ; then
14035 setopt NO_GLOB_SUBST
14037 # Now quote all the things that may contain metacharacters while being
14038 # careful not to overquote the AC_SUBSTed values. We take copies of the
14039 # variables and quote the copies for generation of the libtool script.
14040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14041 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14042 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14043 deplibs_check_method reload_flag reload_cmds need_locks \
14044 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14045 lt_cv_sys_global_symbol_to_c_name_address \
14046 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14047 old_postinstall_cmds old_postuninstall_cmds \
14051 lt_prog_compiler_wl_F77 \
14052 lt_prog_compiler_pic_F77 \
14053 lt_prog_compiler_static_F77 \
14054 lt_prog_compiler_no_builtin_flag_F77 \
14055 export_dynamic_flag_spec_F77 \
14056 thread_safe_flag_spec_F77 \
14057 whole_archive_flag_spec_F77 \
14058 enable_shared_with_static_runtimes_F77 \
14059 old_archive_cmds_F77 \
14060 old_archive_from_new_cmds_F77 \
14061 predep_objects_F77 \
14062 postdep_objects_F77 \
14065 compiler_lib_search_path_F77 \
14067 archive_expsym_cmds_F77 \
14068 postinstall_cmds_F77 \
14069 postuninstall_cmds_F77 \
14070 old_archive_from_expsyms_cmds_F77 \
14071 allow_undefined_flag_F77 \
14072 no_undefined_flag_F77 \
14073 export_symbols_cmds_F77 \
14074 hardcode_libdir_flag_spec_F77 \
14075 hardcode_libdir_flag_spec_ld_F77 \
14076 hardcode_libdir_separator_F77 \
14077 hardcode_automatic_F77 \
14079 module_expsym_cmds_F77 \
14080 lt_cv_prog_compiler_c_o_F77 \
14081 exclude_expsyms_F77 \
14082 include_expsyms_F77; do
14085 old_archive_cmds_F77 | \
14086 old_archive_from_new_cmds_F77 | \
14087 archive_cmds_F77 | \
14088 archive_expsym_cmds_F77 | \
14089 module_cmds_F77 | \
14090 module_expsym_cmds_F77 | \
14091 old_archive_from_expsyms_cmds_F77 | \
14092 export_symbols_cmds_F77 | \
14093 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14094 postinstall_cmds | postuninstall_cmds | \
14095 old_postinstall_cmds | old_postuninstall_cmds | \
14096 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14097 # Double-quote double-evaled strings.
14098 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14107 *'\$0 --fallback-echo"')
14108 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14114 cat <<__EOF__ >> "$cfgfile"
14115 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14117 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14119 # Shell to use when invoking shell scripts.
14122 # Whether or not to build shared libraries.
14123 build_libtool_libs=$enable_shared
14125 # Whether or not to build static libraries.
14126 build_old_libs=$enable_static
14128 # Whether or not to add -lc for building shared libraries.
14129 build_libtool_need_lc=$archive_cmds_need_lc_F77
14131 # Whether or not to disallow shared libs when runtime libs are static
14132 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14134 # Whether or not to optimize for fast installation.
14135 fast_install=$enable_fast_install
14138 host_alias=$host_alias
14141 # An echo program that does not interpret backslashes.
14146 AR_FLAGS=$lt_AR_FLAGS
14151 # A language-specific compiler.
14152 CC=$lt_compiler_F77
14154 # Is the compiler the GNU C compiler?
14160 # The linker used to build libraries.
14163 # Whether we need hard or soft links.
14166 # A BSD-compatible nm program.
14169 # A symbol stripping program
14172 # Used to examine libraries when file_magic_cmd begins "file"
14173 MAGIC_CMD=$MAGIC_CMD
14175 # Used on cygwin: DLL creation program.
14178 # Used on cygwin: object dumper.
14181 # Used on cygwin: assembler.
14184 # The name of the directory that contains temporary libtool files.
14187 # How to create reloadable object files.
14188 reload_flag=$lt_reload_flag
14189 reload_cmds=$lt_reload_cmds
14191 # How to pass a linker flag through the compiler.
14192 wl=$lt_lt_prog_compiler_wl_F77
14194 # Object file suffix (normally "o").
14195 objext="$ac_objext"
14197 # Old archive suffix (normally "a").
14200 # Shared library suffix (normally ".so").
14203 # Executable file suffix (normally "").
14206 # Additional compiler flags for building library objects.
14207 pic_flag=$lt_lt_prog_compiler_pic_F77
14210 # What is the maximum length of a command?
14211 max_cmd_len=$lt_cv_sys_max_cmd_len
14213 # Does compiler simultaneously support -c and -o options?
14214 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14216 # Must we lock files when doing compilation ?
14217 need_locks=$lt_need_locks
14219 # Do we need the lib prefix for modules?
14220 need_lib_prefix=$need_lib_prefix
14222 # Do we need a version for libraries?
14223 need_version=$need_version
14225 # Whether dlopen is supported.
14226 dlopen_support=$enable_dlopen
14228 # Whether dlopen of programs is supported.
14229 dlopen_self=$enable_dlopen_self
14231 # Whether dlopen of statically linked programs is supported.
14232 dlopen_self_static=$enable_dlopen_self_static
14234 # Compiler flag to prevent dynamic linking.
14235 link_static_flag=$lt_lt_prog_compiler_static_F77
14237 # Compiler flag to turn off builtin functions.
14238 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14240 # Compiler flag to allow reflexive dlopens.
14241 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14243 # Compiler flag to generate shared objects directly from archives.
14244 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14246 # Compiler flag to generate thread-safe objects.
14247 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14249 # Library versioning type.
14250 version_type=$version_type
14252 # Format of library name prefix.
14253 libname_spec=$lt_libname_spec
14255 # List of archive names. First name is the real one, the rest are links.
14256 # The last name is the one that the linker finds with -lNAME.
14257 library_names_spec=$lt_library_names_spec
14259 # The coded name of the library, if different from the real name.
14260 soname_spec=$lt_soname_spec
14262 # Commands used to build and install an old-style archive.
14264 old_archive_cmds=$lt_old_archive_cmds_F77
14265 old_postinstall_cmds=$lt_old_postinstall_cmds
14266 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14268 # Create an old-style archive from a shared archive.
14269 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14271 # Create a temporary old-style archive to link instead of a shared archive.
14272 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14274 # Commands used to build and install a shared archive.
14275 archive_cmds=$lt_archive_cmds_F77
14276 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14277 postinstall_cmds=$lt_postinstall_cmds
14278 postuninstall_cmds=$lt_postuninstall_cmds
14280 # Commands used to build a loadable module (assumed same as above if empty)
14281 module_cmds=$lt_module_cmds_F77
14282 module_expsym_cmds=$lt_module_expsym_cmds_F77
14284 # Commands to strip libraries.
14285 old_striplib=$lt_old_striplib
14286 striplib=$lt_striplib
14288 # Dependencies to place before the objects being linked to create a
14290 predep_objects=$lt_predep_objects_F77
14292 # Dependencies to place after the objects being linked to create a
14294 postdep_objects=$lt_postdep_objects_F77
14296 # Dependencies to place before the objects being linked to create a
14298 predeps=$lt_predeps_F77
14300 # Dependencies to place after the objects being linked to create a
14302 postdeps=$lt_postdeps_F77
14304 # The library search path used internally by the compiler when linking
14305 # a shared library.
14306 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14308 # Method to check whether dependent libraries are shared objects.
14309 deplibs_check_method=$lt_deplibs_check_method
14311 # Command to use when deplibs_check_method == file_magic.
14312 file_magic_cmd=$lt_file_magic_cmd
14314 # Flag that allows shared libraries with undefined symbols to be built.
14315 allow_undefined_flag=$lt_allow_undefined_flag_F77
14317 # Flag that forces no undefined symbols.
14318 no_undefined_flag=$lt_no_undefined_flag_F77
14320 # Commands used to finish a libtool library installation in a directory.
14321 finish_cmds=$lt_finish_cmds
14323 # Same as above, but a single script fragment to be evaled but not shown.
14324 finish_eval=$lt_finish_eval
14326 # Take the output of nm and produce a listing of raw symbols and C names.
14327 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14329 # Transform the output of nm in a proper C declaration
14330 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14332 # Transform the output of nm in a C name address pair
14333 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14335 # This is the shared library runtime path variable.
14336 runpath_var=$runpath_var
14338 # This is the shared library path variable.
14339 shlibpath_var=$shlibpath_var
14341 # Is shlibpath searched before the hard-coded library search path?
14342 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14344 # How to hardcode a shared library path into an executable.
14345 hardcode_action=$hardcode_action_F77
14347 # Whether we should hardcode library paths into libraries.
14348 hardcode_into_libs=$hardcode_into_libs
14350 # Flag to hardcode \$libdir into a binary during linking.
14351 # This must work even if \$libdir does not exist.
14352 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14354 # If ld is used when linking, flag to hardcode \$libdir into
14355 # a binary during linking. This must work even if \$libdir does
14357 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14359 # Whether we need a single -rpath flag with a separated argument.
14360 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14362 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14363 # resulting binary.
14364 hardcode_direct=$hardcode_direct_F77
14366 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14367 # resulting binary.
14368 hardcode_minus_L=$hardcode_minus_L_F77
14370 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14371 # the resulting binary.
14372 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14374 # Set to yes if building a shared library automatically hardcodes DIR into the library
14375 # and all subsequent libraries and executables linked against it.
14376 hardcode_automatic=$hardcode_automatic_F77
14378 # Variables whose values should be saved in libtool wrapper scripts and
14379 # restored at relink time.
14380 variables_saved_for_relink="$variables_saved_for_relink"
14382 # Whether libtool must link a program against all its dependency libraries.
14383 link_all_deplibs=$link_all_deplibs_F77
14385 # Compile-time system search path for libraries
14386 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14388 # Run-time system search path for libraries
14389 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14391 # Fix the shell variable \$srcfile for the compiler.
14392 fix_srcfile_path="$fix_srcfile_path_F77"
14394 # Set to yes if exported symbols are required.
14395 always_export_symbols=$always_export_symbols_F77
14397 # The commands to list exported symbols.
14398 export_symbols_cmds=$lt_export_symbols_cmds_F77
14400 # The commands to extract the exported symbol list from a shared archive.
14401 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14403 # Symbols that should not be listed in the preloaded symbols.
14404 exclude_expsyms=$lt_exclude_expsyms_F77
14406 # Symbols that must always be exported.
14407 include_expsyms=$lt_include_expsyms_F77
14409 # ### END LIBTOOL TAG CONFIG: $tagname
14415 # If there is no Makefile yet, we rely on a make rule to execute
14416 # `config.status --recheck' to rerun these tests and create the
14417 # libtool script then.
14418 test -f Makefile && make "$ltmain"
14423 ac_cpp='$CPP $CPPFLAGS'
14424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14436 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14440 # Source file extension for Java test sources.
14443 # Object file extension for compiled Java test sources.
14447 # Code to be used in simple compile tests
14448 lt_simple_compile_test_code="class foo {}\n"
14450 # Code to be used in simple link tests
14451 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14453 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14455 # If no C compiler was specified, use CC.
14458 # Allow CC to be a program name with arguments.
14462 # Allow CC to be a program name with arguments.
14468 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14469 archive_cmds_need_lc_GCJ=no
14472 ## There is no encapsulation within the following macros, do not change
14473 ## the running order or otherwise move them around unless you know exactly
14474 ## what you are doing...
14476 lt_prog_compiler_no_builtin_flag_GCJ=
14478 if test "$GCC" = yes; then
14479 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14481 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14482 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14483 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 lt_cv_prog_compiler_rtti_exceptions=no
14487 ac_outfile=conftest.$ac_objext
14488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14489 lt_compiler_flag="-fno-rtti -fno-exceptions"
14490 # Insert the option either (1) after the last *FLAGS variable, or
14491 # (2) before a word containing "conftest.", or (3) at the end.
14492 # Note that $ac_compile itself does not contain backslashes and begins
14493 # with a dollar sign (not a hyphen), so the echo should work correctly.
14494 # The option is referenced via a variable to avoid confusing sed.
14495 lt_compile=`echo "$ac_compile" | $SED \
14496 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14498 -e 's:$: $lt_compiler_flag:'`
14499 (eval echo "\"\$as_me:14499: $lt_compile\"" >&5)
14500 (eval "$lt_compile" 2>conftest.err)
14502 cat conftest.err >&5
14503 echo "$as_me:14503: \$? = $ac_status" >&5
14504 if (exit $ac_status) && test -s "$ac_outfile"; then
14505 # The compiler can only warn and ignore the option if not recognized
14506 # So say no if there are warnings
14507 if test ! -s conftest.err; then
14508 lt_cv_prog_compiler_rtti_exceptions=yes
14514 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14515 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14517 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14518 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14525 lt_prog_compiler_wl_GCJ=
14526 lt_prog_compiler_pic_GCJ=
14527 lt_prog_compiler_static_GCJ=
14529 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14530 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14532 if test "$GCC" = yes; then
14533 lt_prog_compiler_wl_GCJ='-Wl,'
14534 lt_prog_compiler_static_GCJ='-static'
14538 # All AIX code is PIC.
14539 if test "$host_cpu" = ia64; then
14540 # AIX 5 now supports IA64 processor
14541 lt_prog_compiler_static_GCJ='-Bstatic'
14546 # FIXME: we need at least 68020 code to build shared libraries, but
14547 # adding the `-m68020' flag to GCC prevents building anything better,
14549 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14552 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14553 # PIC is the default for these OSes.
14556 mingw* | pw32* | os2*)
14557 # This hack is so that the source file can tell whether it is being
14558 # built for inclusion in a dll (and should export symbols for example).
14559 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14562 darwin* | rhapsody*)
14563 # PIC is the default on this platform
14564 # Common symbols not allowed in MH_DYLIB files
14565 lt_prog_compiler_pic_GCJ='-fno-common'
14569 # Just because we use GCC doesn't mean we suddenly get shared libraries
14570 # on systems that don't support them.
14571 lt_prog_compiler_can_build_shared_GCJ=no
14576 if test -d /usr/nec; then
14577 lt_prog_compiler_pic_GCJ=-Kconform_pic
14582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14583 # not for PA HP-UX.
14584 case "$host_cpu" in
14589 lt_prog_compiler_pic_GCJ='-fPIC'
14595 lt_prog_compiler_pic_GCJ='-fPIC'
14599 # PORTME Check for flag to pass linker flags through the system compiler.
14602 lt_prog_compiler_wl_GCJ='-Wl,'
14603 if test "$host_cpu" = ia64; then
14604 # AIX 5 now supports IA64 processor
14605 lt_prog_compiler_static_GCJ='-Bstatic'
14607 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14611 mingw* | pw32* | os2*)
14612 # This hack is so that the source file can tell whether it is being
14613 # built for inclusion in a dll (and should export symbols for example).
14614 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14617 hpux9* | hpux10* | hpux11*)
14618 lt_prog_compiler_wl_GCJ='-Wl,'
14619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14620 # not for PA HP-UX.
14621 case "$host_cpu" in
14626 lt_prog_compiler_pic_GCJ='+Z'
14629 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14630 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14633 irix5* | irix6* | nonstopux*)
14634 lt_prog_compiler_wl_GCJ='-Wl,'
14635 # PIC (with -KPIC) is the default.
14636 lt_prog_compiler_static_GCJ='-non_shared'
14640 lt_prog_compiler_pic_GCJ='-KPIC'
14641 lt_prog_compiler_static_GCJ='-Bstatic'
14647 lt_prog_compiler_wl_GCJ='-Wl,'
14648 lt_prog_compiler_pic_GCJ='-KPIC'
14649 lt_prog_compiler_static_GCJ='-static'
14652 lt_prog_compiler_wl_GCJ='-Wl,'
14653 # All Alpha code is PIC.
14654 lt_prog_compiler_static_GCJ='-non_shared'
14659 osf3* | osf4* | osf5*)
14660 lt_prog_compiler_wl_GCJ='-Wl,'
14661 # All OSF/1 code is PIC.
14662 lt_prog_compiler_static_GCJ='-non_shared'
14666 lt_prog_compiler_pic_GCJ='-Kpic'
14667 lt_prog_compiler_static_GCJ='-dn'
14671 lt_prog_compiler_wl_GCJ='-Wl,'
14672 lt_prog_compiler_pic_GCJ='-KPIC'
14673 lt_prog_compiler_static_GCJ='-Bstatic'
14677 lt_prog_compiler_wl_GCJ='-Qoption ld '
14678 lt_prog_compiler_pic_GCJ='-PIC'
14679 lt_prog_compiler_static_GCJ='-Bstatic'
14682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14683 lt_prog_compiler_wl_GCJ='-Wl,'
14684 lt_prog_compiler_pic_GCJ='-KPIC'
14685 lt_prog_compiler_static_GCJ='-Bstatic'
14689 if test -d /usr/nec ;then
14690 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14691 lt_prog_compiler_static_GCJ='-Bstatic'
14696 lt_prog_compiler_pic_GCJ='-pic'
14697 lt_prog_compiler_static_GCJ='-Bstatic'
14701 lt_prog_compiler_can_build_shared_GCJ=no
14706 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14707 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14710 # Check to make sure the PIC flag actually works.
14712 if test -n "$lt_prog_compiler_pic_GCJ"; then
14713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14715 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 lt_prog_compiler_pic_works_GCJ=no
14719 ac_outfile=conftest.$ac_objext
14720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14721 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14722 # Insert the option either (1) after the last *FLAGS variable, or
14723 # (2) before a word containing "conftest.", or (3) at the end.
14724 # Note that $ac_compile itself does not contain backslashes and begins
14725 # with a dollar sign (not a hyphen), so the echo should work correctly.
14726 # The option is referenced via a variable to avoid confusing sed.
14727 lt_compile=`echo "$ac_compile" | $SED \
14728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14730 -e 's:$: $lt_compiler_flag:'`
14731 (eval echo "\"\$as_me:14731: $lt_compile\"" >&5)
14732 (eval "$lt_compile" 2>conftest.err)
14734 cat conftest.err >&5
14735 echo "$as_me:14735: \$? = $ac_status" >&5
14736 if (exit $ac_status) && test -s "$ac_outfile"; then
14737 # The compiler can only warn and ignore the option if not recognized
14738 # So say no if there are warnings
14739 if test ! -s conftest.err; then
14740 lt_prog_compiler_pic_works_GCJ=yes
14746 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14747 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14749 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14750 case $lt_prog_compiler_pic_GCJ in
14752 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14755 lt_prog_compiler_pic_GCJ=
14756 lt_prog_compiler_can_build_shared_GCJ=no
14761 # For platforms which do not support PIC, -DPIC is meaningless:
14763 lt_prog_compiler_pic_GCJ=
14766 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14770 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14772 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 lt_cv_prog_compiler_c_o_GCJ=no
14776 $rm -r conftest 2>/dev/null
14780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14782 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14783 # that will create temporary files in the current directory regardless of
14784 # the output directory. Thus, making CWD read-only will cause this test
14785 # to fail, enabling locking or at least warning the user not to do parallel
14789 lt_compiler_flag="-o out/conftest2.$ac_objext"
14790 # Insert the option either (1) after the last *FLAGS variable, or
14791 # (2) before a word containing "conftest.", or (3) at the end.
14792 # Note that $ac_compile itself does not contain backslashes and begins
14793 # with a dollar sign (not a hyphen), so the echo should work correctly.
14794 lt_compile=`echo "$ac_compile" | $SED \
14795 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14797 -e 's:$: $lt_compiler_flag:'`
14798 (eval echo "\"\$as_me:14798: $lt_compile\"" >&5)
14799 (eval "$lt_compile" 2>out/conftest.err)
14801 cat out/conftest.err >&5
14802 echo "$as_me:14802: \$? = $ac_status" >&5
14803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14805 # The compiler can only warn and ignore the option if not recognized
14806 # So say no if there are warnings
14807 if test ! -s out/conftest.err; then
14808 lt_cv_prog_compiler_c_o_GCJ=yes
14812 $rm conftest* out/*
14819 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14820 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14823 hard_links="nottested"
14824 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14825 # do not overwrite the value of need_locks provided by the user
14826 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14827 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14832 ln conftest.a conftest.b 2>&5 || hard_links=no
14833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14834 echo "$as_me:$LINENO: result: $hard_links" >&5
14835 echo "${ECHO_T}$hard_links" >&6
14836 if test "$hard_links" = no; then
14837 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14838 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14845 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14846 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14849 allow_undefined_flag_GCJ=
14850 enable_shared_with_static_runtimes_GCJ=no
14852 archive_expsym_cmds_GCJ=
14853 old_archive_From_new_cmds_GCJ=
14854 old_archive_from_expsyms_cmds_GCJ=
14855 export_dynamic_flag_spec_GCJ=
14856 whole_archive_flag_spec_GCJ=
14857 thread_safe_flag_spec_GCJ=
14858 hardcode_libdir_flag_spec_GCJ=
14859 hardcode_libdir_flag_spec_ld_GCJ=
14860 hardcode_libdir_separator_GCJ=
14861 hardcode_direct_GCJ=no
14862 hardcode_minus_L_GCJ=no
14863 hardcode_shlibpath_var_GCJ=unsupported
14864 link_all_deplibs_GCJ=unknown
14865 hardcode_automatic_GCJ=no
14867 module_expsym_cmds_GCJ=
14868 always_export_symbols_GCJ=no
14869 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14870 # include_expsyms should be a list of space-separated symbols to be *always*
14871 # included in the symbol list
14872 include_expsyms_GCJ=
14873 # exclude_expsyms can be an extended regexp of symbols to exclude
14874 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14875 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14876 # as well as any symbol that contains `d'.
14877 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14878 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14879 # platforms (ab)use it in PIC code, but their linkers get confused if
14880 # the symbol is explicitly referenced. Since portable code cannot
14881 # rely on this symbol name, it's probably fine to never include it in
14882 # preloaded symbol tables.
14883 extract_expsyms_cmds=
14886 cygwin* | mingw* | pw32*)
14887 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14888 # When not using gcc, we currently assume that we are using
14889 # Microsoft Visual C++.
14890 if test "$GCC" != yes; then
14900 if test "$with_gnu_ld" = yes; then
14901 # If archive_cmds runs LD, not CC, wlarc should be empty
14904 # See if GNU ld supports shared libraries.
14906 aix3* | aix4* | aix5*)
14907 # On AIX/PPC, the GNU linker is very broken
14908 if test "$host_cpu" != ia64; then
14912 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14913 *** to be unable to reliably create shared libraries on AIX.
14914 *** Therefore, libtool is disabling shared libraries support. If you
14915 *** really care for shared libraries, you may want to modify your PATH
14916 *** so that a non-GNU linker is found, and then restart.
14923 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)'
14924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14925 hardcode_minus_L_GCJ=yes
14927 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14928 # that the semantics of dynamic libraries on AmigaOS, at least up
14929 # to version 4, is to share data among multiple programs linked
14930 # with the same dynamic library. Since this doesn't match the
14931 # behavior of shared libraries on other platforms, we can't use
14937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938 allow_undefined_flag_GCJ=unsupported
14939 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14940 # support --undefined. This deserves some investigation. FIXME
14941 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14947 cygwin* | mingw* | pw32*)
14948 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14949 # as there is no search path for DLLs.
14950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14951 allow_undefined_flag_GCJ=unsupported
14952 always_export_symbols_GCJ=no
14953 enable_shared_with_static_runtimes_GCJ=yes
14954 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14956 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14957 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14958 # If the export-symbols file already is a .def file (1st line
14959 # is EXPORTS), use it as is; otherwise, prepend...
14960 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14961 cp $export_symbols $output_objdir/$soname.def;
14963 echo EXPORTS > $output_objdir/$soname.def;
14964 cat $export_symbols >> $output_objdir/$soname.def;
14966 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14974 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14977 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14978 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14983 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14988 *** create shared libraries on Solaris systems. Therefore, libtool
14989 *** is disabling shared libraries support. We urge you to upgrade GNU
14990 *** binutils to release 2.9.1 or newer. Another option is to modify
14991 *** your PATH or compiler configuration so that the native linker is
14992 *** used, and then restart.
14995 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14996 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14997 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15004 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15006 hardcode_direct_GCJ=yes
15007 hardcode_shlibpath_var_GCJ=no
15011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15020 if test "$ld_shlibs_GCJ" = yes; then
15021 runpath_var=LD_RUN_PATH
15022 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15023 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15024 # ancient GNU ld didn't support --whole-archive et. al.
15025 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15026 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15028 whole_archive_flag_spec_GCJ=
15032 # PORTME fill in a description of your system's linker (not GNU ld)
15035 allow_undefined_flag_GCJ=unsupported
15036 always_export_symbols_GCJ=yes
15037 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'
15038 # Note: this linker hardcodes the directories in LIBPATH if there
15039 # are no directories specified by -L.
15040 hardcode_minus_L_GCJ=yes
15041 if test "$GCC" = yes && test -z "$link_static_flag"; then
15042 # Neither direct hardcoding nor static linking is supported with a
15044 hardcode_direct_GCJ=unsupported
15049 if test "$host_cpu" = ia64; then
15050 # On IA64, the linker does run time linking by default, so we don't
15051 # have to do anything special.
15052 aix_use_runtimelinking=no
15053 exp_sym_flag='-Bexport'
15056 # If we're using GNU nm, then we don't want the "-C" option.
15057 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15058 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15059 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'
15061 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'
15063 aix_use_runtimelinking=no
15065 # Test if we are trying to use run time linking or normal
15066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15067 # need to do runtime linking.
15068 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15069 for ld_flag in $LDFLAGS; do
15070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15071 aix_use_runtimelinking=yes
15077 exp_sym_flag='-bexport'
15078 no_entry_flag='-bnoentry'
15081 # When large executables or shared objects are built, AIX ld can
15082 # have problems creating the table of contents. If linking a library
15083 # or program results in "error TOC overflow" add -mminimal-toc to
15084 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15085 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15087 archive_cmds_GCJ=''
15088 hardcode_direct_GCJ=yes
15089 hardcode_libdir_separator_GCJ=':'
15090 link_all_deplibs_GCJ=yes
15092 if test "$GCC" = yes; then
15093 case $host_os in aix4.012|aix4.012.*)
15094 # We only want to do this on AIX 4.2 and lower, the check
15095 # below for broken collect2 doesn't work under 4.3+
15096 collect2name=`${CC} -print-prog-name=collect2`
15097 if test -f "$collect2name" && \
15098 strings "$collect2name" | grep resolve_lib_name >/dev/null
15100 # We have reworked collect2
15101 hardcode_direct_GCJ=yes
15103 # We have old collect2
15104 hardcode_direct_GCJ=unsupported
15105 # It fails to find uninstalled libraries when the uninstalled
15106 # path is not listed in the libpath. Setting hardcode_minus_L
15107 # to unsupported forces relinking
15108 hardcode_minus_L_GCJ=yes
15109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15110 hardcode_libdir_separator_GCJ=
15113 shared_flag='-shared'
15116 if test "$host_cpu" = ia64; then
15117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15118 # chokes on -Wl,-G. The following line is correct:
15121 if test "$aix_use_runtimelinking" = yes; then
15122 shared_flag='${wl}-G'
15124 shared_flag='${wl}-bM:SRE'
15129 # It seems that -bexpall does not export symbols beginning with
15130 # underscore (_), so it is better to generate a list of symbols to export.
15131 always_export_symbols_GCJ=yes
15132 if test "$aix_use_runtimelinking" = yes; then
15133 # Warning - without using the other runtime loading flags (-brtl),
15134 # -berok will link without error, but may produce a broken library.
15135 allow_undefined_flag_GCJ='-berok'
15136 # Determine the default libpath from the value encoded in an empty executable.
15137 cat >conftest.$ac_ext <<_ACEOF
15138 #line $LINENO "configure"
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h. */
15153 rm -f conftest.$ac_objext conftest$ac_exeext
15154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15155 (eval $ac_link) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -s conftest$ac_exeext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15168 # Check for a 64-bit object if we didn't find anything.
15169 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; }
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15179 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15180 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"
15182 if test "$host_cpu" = ia64; then
15183 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15184 allow_undefined_flag_GCJ="-z nodefs"
15185 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"
15187 # Determine the default libpath from the value encoded in an empty executable.
15188 cat >conftest.$ac_ext <<_ACEOF
15189 #line $LINENO "configure"
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15204 rm -f conftest.$ac_objext conftest$ac_exeext
15205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15206 (eval $ac_link) 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } &&
15210 { ac_try='test -s conftest$ac_exeext'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
15217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15219 # Check for a 64-bit object if we didn't find anything.
15220 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; }
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15230 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15231 # Warning - without using the other run time loading flags,
15232 # -berok will link without error, but may produce a broken library.
15233 no_undefined_flag_GCJ=' ${wl}-bernotok'
15234 allow_undefined_flag_GCJ=' ${wl}-berok'
15235 # -bexpall does not export symbols beginning with underscore (_)
15236 always_export_symbols_GCJ=yes
15237 # Exported symbols can be pulled into shared objects from archives
15238 whole_archive_flag_spec_GCJ=' '
15239 archive_cmds_need_lc_GCJ=yes
15240 # This is similar to how AIX traditionally builds it's shared libraries.
15241 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'
15247 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)'
15248 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15249 hardcode_minus_L_GCJ=yes
15250 # see comment about different semantics on the GNU ld section
15255 export_dynamic_flag_spec_GCJ=-rdynamic
15258 cygwin* | mingw* | pw32*)
15259 # When not using gcc, we currently assume that we are using
15260 # Microsoft Visual C++.
15261 # hardcode_libdir_flag_spec is actually meaningless, as there is
15262 # no search path for DLLs.
15263 hardcode_libdir_flag_spec_GCJ=' '
15264 allow_undefined_flag_GCJ=unsupported
15265 # Tell ltmain to make .lib files, not .a files.
15267 # Tell ltmain to make .dll files, not .so files.
15269 # FIXME: Setting linknames here is a bad hack.
15270 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15271 # The linker will automatically build a .lib file if we build a DLL.
15272 old_archive_From_new_cmds_GCJ='true'
15273 # FIXME: Should let the user specify the lib program.
15274 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15275 fix_srcfile_path='`cygpath -w "$srcfile"`'
15276 enable_shared_with_static_runtimes_GCJ=yes
15279 darwin* | rhapsody*)
15280 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15281 archive_cmds_need_lc_GCJ=no
15283 rhapsody* | darwin1.[012])
15284 allow_undefined_flag_GCJ='-undefined suppress'
15287 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15290 # FIXME: Relying on posixy $() will cause problems for
15291 # cross-compilation, but unfortunately the echo tests do not
15292 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15293 # `"' quotes if we put them in here... so don't!
15294 lt_int_apple_cc_single_mod=no
15295 output_verbose_link_cmd='echo'
15296 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15297 lt_int_apple_cc_single_mod=yes
15299 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15300 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15302 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'
15304 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15305 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15306 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15307 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}'
15309 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}'
15311 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}'
15312 hardcode_direct_GCJ=no
15313 hardcode_automatic_GCJ=yes
15314 hardcode_shlibpath_var_GCJ=unsupported
15315 whole_archive_flag_spec_GCJ='-all_load $convenience'
15316 link_all_deplibs_GCJ=yes
15321 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15323 hardcode_shlibpath_var_GCJ=no
15330 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15331 # support. Future versions do this automatically, but an explicit c++rt0.o
15332 # does not break anything, and helps significantly (at the cost of a little
15335 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15336 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15337 hardcode_direct_GCJ=yes
15338 hardcode_shlibpath_var_GCJ=no
15341 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15343 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15344 hardcode_direct_GCJ=yes
15345 hardcode_minus_L_GCJ=yes
15346 hardcode_shlibpath_var_GCJ=no
15349 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15351 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15352 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15353 hardcode_direct_GCJ=yes
15354 hardcode_shlibpath_var_GCJ=no
15358 if test "$GCC" = yes; then
15359 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'
15361 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'
15363 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15364 hardcode_libdir_separator_GCJ=:
15365 hardcode_direct_GCJ=yes
15367 # hardcode_minus_L: Not really in the search PATH,
15368 # but as the default location of the library.
15369 hardcode_minus_L_GCJ=yes
15370 export_dynamic_flag_spec_GCJ='${wl}-E'
15374 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15375 case "$host_cpu" in
15377 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15380 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15384 case "$host_cpu" in
15386 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15389 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15393 if test "$with_gnu_ld" = no; then
15394 case "$host_cpu" in
15396 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15397 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15398 hardcode_libdir_separator_GCJ=:
15399 hardcode_direct_GCJ=no
15400 hardcode_shlibpath_var_GCJ=no
15403 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15404 hardcode_direct_GCJ=no
15405 hardcode_shlibpath_var_GCJ=no
15407 # hardcode_minus_L: Not really in the search PATH,
15408 # but as the default location of the library.
15409 hardcode_minus_L_GCJ=yes
15412 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15413 hardcode_libdir_separator_GCJ=:
15414 hardcode_direct_GCJ=yes
15415 export_dynamic_flag_spec_GCJ='${wl}-E'
15417 # hardcode_minus_L: Not really in the search PATH,
15418 # but as the default location of the library.
15419 hardcode_minus_L_GCJ=yes
15425 irix5* | irix6* | nonstopux*)
15426 if test "$GCC" = yes; then
15427 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'
15429 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'
15430 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15433 hardcode_libdir_separator_GCJ=:
15434 link_all_deplibs_GCJ=yes
15438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15439 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15441 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15443 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15444 hardcode_direct_GCJ=yes
15445 hardcode_shlibpath_var_GCJ=no
15449 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15450 hardcode_direct_GCJ=yes
15451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15452 hardcode_libdir_separator_GCJ=:
15453 hardcode_shlibpath_var_GCJ=no
15457 hardcode_direct_GCJ=yes
15458 hardcode_shlibpath_var_GCJ=no
15459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15460 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15461 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15462 export_dynamic_flag_spec_GCJ='${wl}-E'
15465 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15466 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15467 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15470 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15471 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15479 hardcode_minus_L_GCJ=yes
15480 allow_undefined_flag_GCJ=unsupported
15481 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'
15482 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15486 if test "$GCC" = yes; then
15487 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15488 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'
15490 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15491 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'
15493 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15494 hardcode_libdir_separator_GCJ=:
15497 osf4* | osf5*) # as osf3* with the addition of -msym flag
15498 if test "$GCC" = yes; then
15499 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15500 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'
15501 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15503 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15504 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'
15505 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~
15506 $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'
15508 # Both c and cxx compiler support -rpath directly
15509 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15511 hardcode_libdir_separator_GCJ=:
15515 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15516 hardcode_shlibpath_var_GCJ=no
15517 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15518 runpath_var=LD_RUN_PATH
15519 hardcode_runpath_var=yes
15523 no_undefined_flag_GCJ=' -z text'
15524 if test "$GCC" = yes; then
15525 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15526 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15527 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15529 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15531 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15533 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15534 hardcode_shlibpath_var_GCJ=no
15536 solaris2.[0-5] | solaris2.[0-5].*) ;;
15537 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15538 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15540 link_all_deplibs_GCJ=yes
15544 if test "x$host_vendor" = xsequent; then
15545 # Use $CC to link under sequent, because it throws in some extra .o
15546 # files that make .init and .fini sections work.
15547 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15549 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15552 hardcode_direct_GCJ=yes
15553 hardcode_minus_L_GCJ=yes
15554 hardcode_shlibpath_var_GCJ=no
15558 case $host_vendor in
15560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15561 hardcode_direct_GCJ=yes # is this really true???
15564 ## LD is ld it makes a PLAMLIB
15565 ## CC just makes a GrossModule.
15566 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15567 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15568 hardcode_direct_GCJ=no
15571 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15575 runpath_var='LD_RUN_PATH'
15576 hardcode_shlibpath_var_GCJ=no
15580 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_shlibpath_var_GCJ=no
15582 export_dynamic_flag_spec_GCJ='-Bexport'
15586 if test -d /usr/nec; then
15587 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15588 hardcode_shlibpath_var_GCJ=no
15589 runpath_var=LD_RUN_PATH
15590 hardcode_runpath_var=yes
15596 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15597 hardcode_direct_GCJ=yes
15598 hardcode_minus_L_GCJ=no
15599 hardcode_shlibpath_var_GCJ=no
15600 hardcode_runpath_var=yes
15601 runpath_var=LD_RUN_PATH
15604 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15605 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15606 if test "$GCC" = yes; then
15607 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15609 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15611 runpath_var='LD_RUN_PATH'
15612 hardcode_shlibpath_var_GCJ=no
15616 no_undefined_flag_GCJ=' -z text'
15617 # $CC -shared without GNU ld will not create a library from C++
15618 # object files and a static libstdc++, better avoid it by now
15619 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15622 hardcode_libdir_flag_spec_GCJ=
15623 hardcode_shlibpath_var_GCJ=no
15624 runpath_var='LD_RUN_PATH'
15628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15629 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15630 hardcode_shlibpath_var_GCJ=no
15639 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15640 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15641 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15644 if test "$GCC" = yes; then
15645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15649 # Do we need to explicitly link libc?
15651 case "x$archive_cmds_need_lc_GCJ" in
15653 # Assume -lc should be added
15654 archive_cmds_need_lc_GCJ=yes
15656 if test "$enable_shared" = yes && test "$GCC" = yes; then
15657 case $archive_cmds_GCJ in
15659 # FIXME: we may have to deal with multi-command sequences.
15662 # Test whether the compiler implicitly links with -lc since on some
15663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15664 # to ld, don't add -lc before -lgcc.
15665 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15666 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15671 (eval $ac_compile) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } 2>conftest.err; then
15677 libobjs=conftest.$ac_objext
15679 wl=$lt_prog_compiler_wl_GCJ
15685 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15686 allow_undefined_flag_GCJ=
15687 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15688 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }
15693 archive_cmds_need_lc_GCJ=no
15695 archive_cmds_need_lc_GCJ=yes
15697 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15699 cat conftest.err 1>&5
15702 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15703 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15710 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15711 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15712 hardcode_action_GCJ=
15713 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15714 test -n "$runpath_var GCJ" || \
15715 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15717 # We can hardcode non-existant directories.
15718 if test "$hardcode_direct_GCJ" != no &&
15719 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15720 # have to relink, otherwise we might link with an installed library
15721 # when we should be linking with a yet-to-be-installed one
15722 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15723 test "$hardcode_minus_L_GCJ" != no; then
15724 # Linking always hardcodes the temporary library directory.
15725 hardcode_action_GCJ=relink
15727 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15728 hardcode_action_GCJ=immediate
15731 # We cannot hardcode anything, or else we can only hardcode existing
15733 hardcode_action_GCJ=unsupported
15735 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15736 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15738 if test "$hardcode_action_GCJ" = relink; then
15739 # Fast installation is not supported
15740 enable_fast_install=no
15741 elif test "$shlibpath_overrides_runpath" = yes ||
15742 test "$enable_shared" = no; then
15743 # Fast installation is not necessary
15744 enable_fast_install=needless
15749 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15750 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15751 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15752 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15753 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15754 echo "$as_me:$LINENO: result: yes" >&5
15755 echo "${ECHO_T}yes" >&6
15757 # FIXME - insert some real tests, host_os isn't really good enough
15760 if test -n "$STRIP" ; then
15761 striplib="$STRIP -x"
15762 echo "$as_me:$LINENO: result: yes" >&5
15763 echo "${ECHO_T}yes" >&6
15765 echo "$as_me:$LINENO: result: no" >&5
15766 echo "${ECHO_T}no" >&6
15770 echo "$as_me:$LINENO: result: no" >&5
15771 echo "${ECHO_T}no" >&6
15776 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15777 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15778 library_names_spec=
15779 libname_spec='lib$name'
15783 postuninstall_cmds=
15787 shlibpath_overrides_runpath=unknown
15789 dynamic_linker="$host_os ld.so"
15790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15791 if test "$GCC" = yes; then
15792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15793 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15794 # if the path contains ";" then we assume it to be the separator
15795 # otherwise default to the standard path separator (i.e. ":") - it is
15796 # assumed that no part of a normal pathname contains ";" but that should
15797 # okay in the real world where ";" in dirpaths is itself problematic.
15798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15803 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15805 need_lib_prefix=unknown
15806 hardcode_into_libs=no
15808 # when you set need_version to no, make sure it does not cause -set_version
15809 # flags to be left without arguments
15810 need_version=unknown
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15816 shlibpath_var=LIBPATH
15818 # AIX 3 has no versioning support, so we append a major version to the name.
15819 soname_spec='${libname}${release}${shared_ext}$major'
15826 hardcode_into_libs=yes
15827 if test "$host_cpu" = ia64; then
15828 # AIX 5 supports IA64
15829 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15830 shlibpath_var=LD_LIBRARY_PATH
15832 # With GCC up to 2.95.x, collect2 would create an import file
15833 # for dependence libraries. The import file would start with
15834 # the line `#! .'. This would cause the generated library to
15835 # depend on `.', always an invalid library. This was fixed in
15836 # development snapshots of GCC prior to 3.0.
15838 aix4 | aix4.[01] | aix4.[01].*)
15839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15841 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15844 can_build_shared=no
15848 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15849 # soname into executable. Probably we can add versioning support to
15850 # collect2, so additional links can be useful in future.
15851 if test "$aix_use_runtimelinking" = yes; then
15852 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15853 # instead of lib<name>.a to let people know that these are not
15854 # typical AIX shared libraries.
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 # We preserve .a as extension for shared libraries through AIX4.2
15858 # and later when we are not doing run time linking.
15859 library_names_spec='${libname}${release}.a $libname.a'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15862 shlibpath_var=LIBPATH
15867 library_names_spec='$libname.ixlibrary $libname.a'
15868 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15869 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'
15873 library_names_spec='${libname}${shared_ext}'
15874 dynamic_linker="$host_os ld.so"
15875 shlibpath_var=LIBRARY_PATH
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15886 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15887 # the default ld.so.conf also contains /usr/contrib/lib and
15888 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15889 # libtool to hard-code these into programs
15892 cygwin* | mingw* | pw32*)
15893 version_type=windows
15898 case $GCC,$host_os in
15899 yes,cygwin* | yes,mingw* | yes,pw32*)
15900 library_names_spec='$libname.dll.a'
15901 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15902 postinstall_cmds='base_file=`basename \${file}`~
15903 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15904 dldir=$destdir/`dirname \$dlpath`~
15905 test -d \$dldir || mkdir -p \$dldir~
15906 $install_prog $dir/$dlname \$dldir/$dlname'
15907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15908 dlpath=$dir/\$dldll~
15910 shlibpath_overrides_runpath=yes
15914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15916 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15919 # MinGW DLLs use traditional 'lib' prefix
15920 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15921 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15922 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15923 # It is most probably a Windows format PATH printed by
15924 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15925 # path with ; separators, and with drive letters. We can handle the
15926 # drive letters (cygwin fileutils understands them), so leave them,
15927 # especially as we might pass files found there to a mingw objdump,
15928 # which wouldn't understand a cygwinified path. Ahh.
15929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15935 # pw32 DLLs use 'pw' prefix rather than 'lib'
15936 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15942 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15945 dynamic_linker='Win32 ld.exe'
15946 # FIXME: first we should search . and the directory the executable is in
15950 darwin* | rhapsody*)
15951 dynamic_linker="$host_os dyld"
15952 version_type=darwin
15955 # FIXME: Relying on posixy $() will cause problems for
15956 # cross-compilation, but unfortunately the echo tests do not
15957 # yet detect zsh echo's removal of \ escapes.
15958 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15959 soname_spec='${libname}${release}${major}$shared_ext'
15960 shlibpath_overrides_runpath=yes
15961 shlibpath_var=DYLD_LIBRARY_PATH
15962 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15963 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15964 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15965 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"`
15967 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 shlibpath_var=LD_LIBRARY_PATH
15984 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15985 version_type=freebsd-$objformat
15986 case $version_type in
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15997 shlibpath_var=LD_LIBRARY_PATH
16000 shlibpath_overrides_runpath=yes
16002 freebsd3.01* | freebsdelf3.01*)
16003 shlibpath_overrides_runpath=yes
16004 hardcode_into_libs=yes
16007 shlibpath_overrides_runpath=no
16008 hardcode_into_libs=yes
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 hardcode_into_libs=yes
16023 hpux9* | hpux10* | hpux11*)
16024 # Give a soname corresponding to the major version so that dld.sl refuses to
16025 # link against other versions.
16029 case "$host_cpu" in
16032 hardcode_into_libs=yes
16033 dynamic_linker="$host_os dld.so"
16034 shlibpath_var=LD_LIBRARY_PATH
16035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037 soname_spec='${libname}${release}${shared_ext}$major'
16038 if test "X$HPUX_IA64_MODE" = X32; then
16039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16047 hardcode_into_libs=yes
16048 dynamic_linker="$host_os dld.sl"
16049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052 soname_spec='${libname}${release}${shared_ext}$major'
16053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16058 dynamic_linker="$host_os dld.sl"
16059 shlibpath_var=SHLIB_PATH
16060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16065 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16066 postinstall_cmds='chmod 555 $lib'
16069 irix5* | irix6* | nonstopux*)
16071 nonstopux*) version_type=nonstopux ;;
16073 if test "$lt_cv_prog_gnu_ld" = yes; then
16081 soname_spec='${libname}${release}${shared_ext}$major'
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16084 irix5* | nonstopux*)
16085 libsuff= shlibsuff=
16088 case $LD in # libtool.m4 will add one of these switches to LD
16089 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16090 libsuff= shlibsuff= libmagic=32-bit;;
16091 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16092 libsuff=32 shlibsuff=N32 libmagic=N32;;
16093 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16094 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16095 *) libsuff= shlibsuff= libmagic=never-match;;
16099 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16100 shlibpath_overrides_runpath=no
16101 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16102 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16103 hardcode_into_libs=yes
16106 # No shared lib support for Linux oldld, aout, or coff.
16107 linux*oldld* | linux*aout* | linux*coff*)
16111 # This must be Linux ELF.
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=no
16121 # This implies no fast_install, which is unacceptable.
16122 # Some rework will be needed to allow for fast_install
16123 # before this can be enabled.
16124 hardcode_into_libs=yes
16126 # We used to test for /lib/ld.so.1 and disable shared libraries on
16127 # powerpc, because MkLinux only supported shared libraries with the
16128 # GNU dynamic linker. Since this was broken with cross compilers,
16129 # most powerpc-linux boxes support dynamic linking these days and
16130 # people can always --disable-shared, the test was removed, and we
16131 # assume the GNU/Linux dynamic linker is in use.
16132 dynamic_linker='GNU/Linux ld.so'
16139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16142 dynamic_linker='NetBSD (a.out) ld.so'
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 dynamic_linker='NetBSD ld.elf_so'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=yes
16150 hardcode_into_libs=yes
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 shlibpath_overrides_runpath=yes
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165 soname_spec='${libname}${release}${shared_ext}$major'
16166 shlibpath_var=LD_LIBRARY_PATH
16167 shlibpath_overrides_runpath=yes
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16179 openbsd2.[89] | openbsd2.[89].*)
16180 shlibpath_overrides_runpath=no
16183 shlibpath_overrides_runpath=yes
16187 shlibpath_overrides_runpath=yes
16192 libname_spec='$name'
16195 library_names_spec='$libname${shared_ext} $libname.a'
16196 dynamic_linker='OS/2 ld.exe'
16197 shlibpath_var=LIBPATH
16200 osf3* | osf4* | osf5*)
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 shlibpath_var=LD_LIBRARY_PATH
16207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16208 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215 shlibpath_var=LD_LIBRARY_PATH
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 shlibpath_var=LD_LIBRARY_PATH
16225 shlibpath_overrides_runpath=yes
16226 hardcode_into_libs=yes
16227 # ldd complains unless libraries are executable
16228 postinstall_cmds='chmod +x $lib'
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16235 shlibpath_var=LD_LIBRARY_PATH
16236 shlibpath_overrides_runpath=yes
16237 if test "$with_gnu_ld" = yes; then
16243 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16247 shlibpath_var=LD_LIBRARY_PATH
16248 case $host_vendor in
16250 shlibpath_overrides_runpath=no
16252 export_dynamic_flag_spec='${wl}-Blargedynsym'
16253 runpath_var=LD_RUN_PATH
16261 shlibpath_overrides_runpath=no
16262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16268 if test -d /usr/nec ;then
16270 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16271 soname_spec='$libname${shared_ext}.$major'
16272 shlibpath_var=LD_LIBRARY_PATH
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 shlibpath_var=LD_LIBRARY_PATH
16287 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16288 echo "${ECHO_T}$dynamic_linker" >&6
16289 test "$dynamic_linker" = no && can_build_shared=no
16291 if test "x$enable_dlopen" != xyes; then
16292 enable_dlopen=unknown
16293 enable_dlopen_self=unknown
16294 enable_dlopen_self_static=unknown
16301 lt_cv_dlopen="load_add_on"
16303 lt_cv_dlopen_self=yes
16307 lt_cv_dlopen="LoadLibrary"
16312 lt_cv_dlopen="dlopen"
16317 # if libdl is installed we need to link against it
16318 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16319 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16321 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 ac_check_lib_save_LIBS=$LIBS
16325 cat >conftest.$ac_ext <<_ACEOF
16326 #line $LINENO "configure"
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16333 /* Override any gcc2 internal prototype to avoid an error. */
16337 /* We use char because int might match the return type of a gcc2
16338 builtin and then its argument prototype would still apply. */
16348 rm -f conftest.$ac_objext conftest$ac_exeext
16349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16350 (eval $ac_link) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -s conftest$ac_exeext'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_cv_lib_dl_dlopen=yes
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16365 ac_cv_lib_dl_dlopen=no
16367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16368 LIBS=$ac_check_lib_save_LIBS
16370 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16371 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16372 if test $ac_cv_lib_dl_dlopen = yes; then
16373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16376 lt_cv_dlopen="dyld"
16378 lt_cv_dlopen_self=yes
16385 echo "$as_me:$LINENO: checking for shl_load" >&5
16386 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16387 if test "${ac_cv_func_shl_load+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 cat >conftest.$ac_ext <<_ACEOF
16391 #line $LINENO "configure"
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 /* System header to define __stub macros and hopefully few prototypes,
16398 which can conflict with char shl_load (); below.
16399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16400 <limits.h> exists even on freestanding compilers. */
16402 # include <limits.h>
16404 # include <assert.h>
16406 /* Override any gcc2 internal prototype to avoid an error. */
16411 /* We use char because int might match the return type of a gcc2
16412 builtin and then its argument prototype would still apply. */
16414 /* The GNU C library defines this for functions which it implements
16415 to always fail with ENOSYS. Some functions are actually named
16416 something starting with __ and the normal name is an alias. */
16417 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16420 char (*f) () = shl_load;
16429 return f != shl_load;
16434 rm -f conftest.$ac_objext conftest$ac_exeext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16436 (eval $ac_link) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -s conftest$ac_exeext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_func_shl_load=yes
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_func_shl_load=no
16453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16455 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16456 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16457 if test $ac_cv_func_shl_load = yes; then
16458 lt_cv_dlopen="shl_load"
16460 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16461 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16462 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 ac_check_lib_save_LIBS=$LIBS
16467 cat >conftest.$ac_ext <<_ACEOF
16468 #line $LINENO "configure"
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16475 /* Override any gcc2 internal prototype to avoid an error. */
16479 /* We use char because int might match the return type of a gcc2
16480 builtin and then its argument prototype would still apply. */
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16492 (eval $ac_link) 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -s conftest$ac_exeext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_lib_dld_shl_load=yes
16504 echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16507 ac_cv_lib_dld_shl_load=no
16509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16510 LIBS=$ac_check_lib_save_LIBS
16512 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16513 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16514 if test $ac_cv_lib_dld_shl_load = yes; then
16515 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16517 echo "$as_me:$LINENO: checking for dlopen" >&5
16518 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16519 if test "${ac_cv_func_dlopen+set}" = set; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 cat >conftest.$ac_ext <<_ACEOF
16523 #line $LINENO "configure"
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16529 /* System header to define __stub macros and hopefully few prototypes,
16530 which can conflict with char dlopen (); below.
16531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16532 <limits.h> exists even on freestanding compilers. */
16534 # include <limits.h>
16536 # include <assert.h>
16538 /* Override any gcc2 internal prototype to avoid an error. */
16543 /* We use char because int might match the return type of a gcc2
16544 builtin and then its argument prototype would still apply. */
16546 /* The GNU C library defines this for functions which it implements
16547 to always fail with ENOSYS. Some functions are actually named
16548 something starting with __ and the normal name is an alias. */
16549 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16552 char (*f) () = dlopen;
16561 return f != dlopen;
16566 rm -f conftest.$ac_objext conftest$ac_exeext
16567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16568 (eval $ac_link) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } &&
16572 { ac_try='test -s conftest$ac_exeext'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_cv_func_dlopen=yes
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_cv_func_dlopen=no
16585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16587 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16588 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16589 if test $ac_cv_func_dlopen = yes; then
16590 lt_cv_dlopen="dlopen"
16592 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16593 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16594 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 ac_check_lib_save_LIBS=$LIBS
16599 cat >conftest.$ac_ext <<_ACEOF
16600 #line $LINENO "configure"
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16607 /* Override any gcc2 internal prototype to avoid an error. */
16611 /* We use char because int might match the return type of a gcc2
16612 builtin and then its argument prototype would still apply. */
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624 (eval $ac_link) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_lib_dl_dlopen=yes
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16639 ac_cv_lib_dl_dlopen=no
16641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16642 LIBS=$ac_check_lib_save_LIBS
16644 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16645 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16646 if test $ac_cv_lib_dl_dlopen = yes; then
16647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16649 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16650 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16651 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 ac_check_lib_save_LIBS=$LIBS
16655 LIBS="-lsvld $LIBS"
16656 cat >conftest.$ac_ext <<_ACEOF
16657 #line $LINENO "configure"
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16664 /* Override any gcc2 internal prototype to avoid an error. */
16668 /* We use char because int might match the return type of a gcc2
16669 builtin and then its argument prototype would still apply. */
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16681 (eval $ac_link) 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try='test -s conftest$ac_exeext'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 ac_cv_lib_svld_dlopen=yes
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16696 ac_cv_lib_svld_dlopen=no
16698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16699 LIBS=$ac_check_lib_save_LIBS
16701 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16702 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16703 if test $ac_cv_lib_svld_dlopen = yes; then
16704 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16706 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16707 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16708 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 ac_check_lib_save_LIBS=$LIBS
16713 cat >conftest.$ac_ext <<_ACEOF
16714 #line $LINENO "configure"
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16721 /* Override any gcc2 internal prototype to avoid an error. */
16725 /* We use char because int might match the return type of a gcc2
16726 builtin and then its argument prototype would still apply. */
16736 rm -f conftest.$ac_objext conftest$ac_exeext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16738 (eval $ac_link) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try='test -s conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_cv_lib_dld_dld_link=yes
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 ac_cv_lib_dld_dld_link=no
16755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16756 LIBS=$ac_check_lib_save_LIBS
16758 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16759 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16760 if test $ac_cv_lib_dld_dld_link = yes; then
16761 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16782 if test "x$lt_cv_dlopen" != xno; then
16788 case $lt_cv_dlopen in
16790 save_CPPFLAGS="$CPPFLAGS"
16791 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16793 save_LDFLAGS="$LDFLAGS"
16794 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16797 LIBS="$lt_cv_dlopen_libs $LIBS"
16799 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16800 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16801 if test "${lt_cv_dlopen_self+set}" = set; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 if test "$cross_compiling" = yes; then :
16805 lt_cv_dlopen_self=cross
16807 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16808 lt_status=$lt_dlunknown
16809 cat > conftest.$ac_ext <<EOF
16810 #line 16810 "configure"
16811 #include "confdefs.h"
16820 # define LT_DLGLOBAL RTLD_GLOBAL
16823 # define LT_DLGLOBAL DL_GLOBAL
16825 # define LT_DLGLOBAL 0
16829 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16830 find out it does not work in some platform. */
16831 #ifndef LT_DLLAZY_OR_NOW
16833 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16836 # define LT_DLLAZY_OR_NOW DL_LAZY
16839 # define LT_DLLAZY_OR_NOW RTLD_NOW
16842 # define LT_DLLAZY_OR_NOW DL_NOW
16844 # define LT_DLLAZY_OR_NOW 0
16852 extern "C" void exit (int);
16855 void fnord() { int i=42;}
16858 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16859 int status = $lt_dlunknown;
16863 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16864 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16865 /* dlclose (self); */
16871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872 (eval $ac_link) 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16876 (./conftest; exit; ) 2>/dev/null
16878 case x$lt_status in
16879 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16880 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16881 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16884 # compilation failed
16885 lt_cv_dlopen_self=no
16892 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16893 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16895 if test "x$lt_cv_dlopen_self" = xyes; then
16896 LDFLAGS="$LDFLAGS $link_static_flag"
16897 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16898 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16899 if test "${lt_cv_dlopen_self_static+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 if test "$cross_compiling" = yes; then :
16903 lt_cv_dlopen_self_static=cross
16905 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16906 lt_status=$lt_dlunknown
16907 cat > conftest.$ac_ext <<EOF
16908 #line 16908 "configure"
16909 #include "confdefs.h"
16918 # define LT_DLGLOBAL RTLD_GLOBAL
16921 # define LT_DLGLOBAL DL_GLOBAL
16923 # define LT_DLGLOBAL 0
16927 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16928 find out it does not work in some platform. */
16929 #ifndef LT_DLLAZY_OR_NOW
16931 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16934 # define LT_DLLAZY_OR_NOW DL_LAZY
16937 # define LT_DLLAZY_OR_NOW RTLD_NOW
16940 # define LT_DLLAZY_OR_NOW DL_NOW
16942 # define LT_DLLAZY_OR_NOW 0
16950 extern "C" void exit (int);
16953 void fnord() { int i=42;}
16956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16957 int status = $lt_dlunknown;
16961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16962 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16963 /* dlclose (self); */
16969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16970 (eval $ac_link) 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16974 (./conftest; exit; ) 2>/dev/null
16976 case x$lt_status in
16977 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16978 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16979 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16982 # compilation failed
16983 lt_cv_dlopen_self_static=no
16990 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16991 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16994 CPPFLAGS="$save_CPPFLAGS"
16995 LDFLAGS="$save_LDFLAGS"
17000 case $lt_cv_dlopen_self in
17001 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17002 *) enable_dlopen_self=unknown ;;
17005 case $lt_cv_dlopen_self_static in
17006 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17007 *) enable_dlopen_self_static=unknown ;;
17012 # The else clause should only fire when bootstrapping the
17013 # libtool distribution, otherwise you forgot to ship ltmain.sh
17014 # with your package, and you will get complaints that there are
17015 # no rules to generate ltmain.sh.
17016 if test -f "$ltmain"; then
17017 # See if we are running on zsh, and set the options which allow our commands through
17018 # without removal of \ escapes.
17019 if test -n "${ZSH_VERSION+set}" ; then
17020 setopt NO_GLOB_SUBST
17022 # Now quote all the things that may contain metacharacters while being
17023 # careful not to overquote the AC_SUBSTed values. We take copies of the
17024 # variables and quote the copies for generation of the libtool script.
17025 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17026 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17027 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17028 deplibs_check_method reload_flag reload_cmds need_locks \
17029 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17030 lt_cv_sys_global_symbol_to_c_name_address \
17031 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17032 old_postinstall_cmds old_postuninstall_cmds \
17036 lt_prog_compiler_wl_GCJ \
17037 lt_prog_compiler_pic_GCJ \
17038 lt_prog_compiler_static_GCJ \
17039 lt_prog_compiler_no_builtin_flag_GCJ \
17040 export_dynamic_flag_spec_GCJ \
17041 thread_safe_flag_spec_GCJ \
17042 whole_archive_flag_spec_GCJ \
17043 enable_shared_with_static_runtimes_GCJ \
17044 old_archive_cmds_GCJ \
17045 old_archive_from_new_cmds_GCJ \
17046 predep_objects_GCJ \
17047 postdep_objects_GCJ \
17050 compiler_lib_search_path_GCJ \
17052 archive_expsym_cmds_GCJ \
17053 postinstall_cmds_GCJ \
17054 postuninstall_cmds_GCJ \
17055 old_archive_from_expsyms_cmds_GCJ \
17056 allow_undefined_flag_GCJ \
17057 no_undefined_flag_GCJ \
17058 export_symbols_cmds_GCJ \
17059 hardcode_libdir_flag_spec_GCJ \
17060 hardcode_libdir_flag_spec_ld_GCJ \
17061 hardcode_libdir_separator_GCJ \
17062 hardcode_automatic_GCJ \
17064 module_expsym_cmds_GCJ \
17065 lt_cv_prog_compiler_c_o_GCJ \
17066 exclude_expsyms_GCJ \
17067 include_expsyms_GCJ; do
17070 old_archive_cmds_GCJ | \
17071 old_archive_from_new_cmds_GCJ | \
17072 archive_cmds_GCJ | \
17073 archive_expsym_cmds_GCJ | \
17074 module_cmds_GCJ | \
17075 module_expsym_cmds_GCJ | \
17076 old_archive_from_expsyms_cmds_GCJ | \
17077 export_symbols_cmds_GCJ | \
17078 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17079 postinstall_cmds | postuninstall_cmds | \
17080 old_postinstall_cmds | old_postuninstall_cmds | \
17081 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17082 # Double-quote double-evaled strings.
17083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17086 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17092 *'\$0 --fallback-echo"')
17093 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17099 cat <<__EOF__ >> "$cfgfile"
17100 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17102 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17104 # Shell to use when invoking shell scripts.
17107 # Whether or not to build shared libraries.
17108 build_libtool_libs=$enable_shared
17110 # Whether or not to build static libraries.
17111 build_old_libs=$enable_static
17113 # Whether or not to add -lc for building shared libraries.
17114 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17116 # Whether or not to disallow shared libs when runtime libs are static
17117 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17119 # Whether or not to optimize for fast installation.
17120 fast_install=$enable_fast_install
17123 host_alias=$host_alias
17126 # An echo program that does not interpret backslashes.
17131 AR_FLAGS=$lt_AR_FLAGS
17136 # A language-specific compiler.
17137 CC=$lt_compiler_GCJ
17139 # Is the compiler the GNU C compiler?
17145 # The linker used to build libraries.
17148 # Whether we need hard or soft links.
17151 # A BSD-compatible nm program.
17154 # A symbol stripping program
17157 # Used to examine libraries when file_magic_cmd begins "file"
17158 MAGIC_CMD=$MAGIC_CMD
17160 # Used on cygwin: DLL creation program.
17163 # Used on cygwin: object dumper.
17166 # Used on cygwin: assembler.
17169 # The name of the directory that contains temporary libtool files.
17172 # How to create reloadable object files.
17173 reload_flag=$lt_reload_flag
17174 reload_cmds=$lt_reload_cmds
17176 # How to pass a linker flag through the compiler.
17177 wl=$lt_lt_prog_compiler_wl_GCJ
17179 # Object file suffix (normally "o").
17180 objext="$ac_objext"
17182 # Old archive suffix (normally "a").
17185 # Shared library suffix (normally ".so").
17188 # Executable file suffix (normally "").
17191 # Additional compiler flags for building library objects.
17192 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17195 # What is the maximum length of a command?
17196 max_cmd_len=$lt_cv_sys_max_cmd_len
17198 # Does compiler simultaneously support -c and -o options?
17199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17201 # Must we lock files when doing compilation ?
17202 need_locks=$lt_need_locks
17204 # Do we need the lib prefix for modules?
17205 need_lib_prefix=$need_lib_prefix
17207 # Do we need a version for libraries?
17208 need_version=$need_version
17210 # Whether dlopen is supported.
17211 dlopen_support=$enable_dlopen
17213 # Whether dlopen of programs is supported.
17214 dlopen_self=$enable_dlopen_self
17216 # Whether dlopen of statically linked programs is supported.
17217 dlopen_self_static=$enable_dlopen_self_static
17219 # Compiler flag to prevent dynamic linking.
17220 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17222 # Compiler flag to turn off builtin functions.
17223 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17225 # Compiler flag to allow reflexive dlopens.
17226 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17228 # Compiler flag to generate shared objects directly from archives.
17229 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17231 # Compiler flag to generate thread-safe objects.
17232 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17234 # Library versioning type.
17235 version_type=$version_type
17237 # Format of library name prefix.
17238 libname_spec=$lt_libname_spec
17240 # List of archive names. First name is the real one, the rest are links.
17241 # The last name is the one that the linker finds with -lNAME.
17242 library_names_spec=$lt_library_names_spec
17244 # The coded name of the library, if different from the real name.
17245 soname_spec=$lt_soname_spec
17247 # Commands used to build and install an old-style archive.
17249 old_archive_cmds=$lt_old_archive_cmds_GCJ
17250 old_postinstall_cmds=$lt_old_postinstall_cmds
17251 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17253 # Create an old-style archive from a shared archive.
17254 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17256 # Create a temporary old-style archive to link instead of a shared archive.
17257 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17259 # Commands used to build and install a shared archive.
17260 archive_cmds=$lt_archive_cmds_GCJ
17261 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17262 postinstall_cmds=$lt_postinstall_cmds
17263 postuninstall_cmds=$lt_postuninstall_cmds
17265 # Commands used to build a loadable module (assumed same as above if empty)
17266 module_cmds=$lt_module_cmds_GCJ
17267 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17269 # Commands to strip libraries.
17270 old_striplib=$lt_old_striplib
17271 striplib=$lt_striplib
17273 # Dependencies to place before the objects being linked to create a
17275 predep_objects=$lt_predep_objects_GCJ
17277 # Dependencies to place after the objects being linked to create a
17279 postdep_objects=$lt_postdep_objects_GCJ
17281 # Dependencies to place before the objects being linked to create a
17283 predeps=$lt_predeps_GCJ
17285 # Dependencies to place after the objects being linked to create a
17287 postdeps=$lt_postdeps_GCJ
17289 # The library search path used internally by the compiler when linking
17290 # a shared library.
17291 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17293 # Method to check whether dependent libraries are shared objects.
17294 deplibs_check_method=$lt_deplibs_check_method
17296 # Command to use when deplibs_check_method == file_magic.
17297 file_magic_cmd=$lt_file_magic_cmd
17299 # Flag that allows shared libraries with undefined symbols to be built.
17300 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17302 # Flag that forces no undefined symbols.
17303 no_undefined_flag=$lt_no_undefined_flag_GCJ
17305 # Commands used to finish a libtool library installation in a directory.
17306 finish_cmds=$lt_finish_cmds
17308 # Same as above, but a single script fragment to be evaled but not shown.
17309 finish_eval=$lt_finish_eval
17311 # Take the output of nm and produce a listing of raw symbols and C names.
17312 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17314 # Transform the output of nm in a proper C declaration
17315 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17317 # Transform the output of nm in a C name address pair
17318 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17320 # This is the shared library runtime path variable.
17321 runpath_var=$runpath_var
17323 # This is the shared library path variable.
17324 shlibpath_var=$shlibpath_var
17326 # Is shlibpath searched before the hard-coded library search path?
17327 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17329 # How to hardcode a shared library path into an executable.
17330 hardcode_action=$hardcode_action_GCJ
17332 # Whether we should hardcode library paths into libraries.
17333 hardcode_into_libs=$hardcode_into_libs
17335 # Flag to hardcode \$libdir into a binary during linking.
17336 # This must work even if \$libdir does not exist.
17337 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17339 # If ld is used when linking, flag to hardcode \$libdir into
17340 # a binary during linking. This must work even if \$libdir does
17342 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17344 # Whether we need a single -rpath flag with a separated argument.
17345 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17347 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17348 # resulting binary.
17349 hardcode_direct=$hardcode_direct_GCJ
17351 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17352 # resulting binary.
17353 hardcode_minus_L=$hardcode_minus_L_GCJ
17355 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17356 # the resulting binary.
17357 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17359 # Set to yes if building a shared library automatically hardcodes DIR into the library
17360 # and all subsequent libraries and executables linked against it.
17361 hardcode_automatic=$hardcode_automatic_GCJ
17363 # Variables whose values should be saved in libtool wrapper scripts and
17364 # restored at relink time.
17365 variables_saved_for_relink="$variables_saved_for_relink"
17367 # Whether libtool must link a program against all its dependency libraries.
17368 link_all_deplibs=$link_all_deplibs_GCJ
17370 # Compile-time system search path for libraries
17371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17373 # Run-time system search path for libraries
17374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17376 # Fix the shell variable \$srcfile for the compiler.
17377 fix_srcfile_path="$fix_srcfile_path_GCJ"
17379 # Set to yes if exported symbols are required.
17380 always_export_symbols=$always_export_symbols_GCJ
17382 # The commands to list exported symbols.
17383 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17385 # The commands to extract the exported symbol list from a shared archive.
17386 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17388 # Symbols that should not be listed in the preloaded symbols.
17389 exclude_expsyms=$lt_exclude_expsyms_GCJ
17391 # Symbols that must always be exported.
17392 include_expsyms=$lt_include_expsyms_GCJ
17394 # ### END LIBTOOL TAG CONFIG: $tagname
17400 # If there is no Makefile yet, we rely on a make rule to execute
17401 # `config.status --recheck' to rerun these tests and create the
17402 # libtool script then.
17403 test -f Makefile && make "$ltmain"
17408 ac_cpp='$CPP $CPPFLAGS'
17409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17424 # Source file extension for RC test sources.
17427 # Object file extension for compiled RC test sources.
17431 # Code to be used in simple compile tests
17432 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17434 # Code to be used in simple link tests
17435 lt_simple_link_test_code="$lt_simple_compile_test_code"
17437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17439 # If no C compiler was specified, use CC.
17442 # Allow CC to be a program name with arguments.
17446 # Allow CC to be a program name with arguments.
17451 lt_cv_prog_compiler_c_o_RC=yes
17453 # The else clause should only fire when bootstrapping the
17454 # libtool distribution, otherwise you forgot to ship ltmain.sh
17455 # with your package, and you will get complaints that there are
17456 # no rules to generate ltmain.sh.
17457 if test -f "$ltmain"; then
17458 # See if we are running on zsh, and set the options which allow our commands through
17459 # without removal of \ escapes.
17460 if test -n "${ZSH_VERSION+set}" ; then
17461 setopt NO_GLOB_SUBST
17463 # Now quote all the things that may contain metacharacters while being
17464 # careful not to overquote the AC_SUBSTed values. We take copies of the
17465 # variables and quote the copies for generation of the libtool script.
17466 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17467 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17468 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17469 deplibs_check_method reload_flag reload_cmds need_locks \
17470 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17471 lt_cv_sys_global_symbol_to_c_name_address \
17472 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17473 old_postinstall_cmds old_postuninstall_cmds \
17477 lt_prog_compiler_wl_RC \
17478 lt_prog_compiler_pic_RC \
17479 lt_prog_compiler_static_RC \
17480 lt_prog_compiler_no_builtin_flag_RC \
17481 export_dynamic_flag_spec_RC \
17482 thread_safe_flag_spec_RC \
17483 whole_archive_flag_spec_RC \
17484 enable_shared_with_static_runtimes_RC \
17485 old_archive_cmds_RC \
17486 old_archive_from_new_cmds_RC \
17487 predep_objects_RC \
17488 postdep_objects_RC \
17491 compiler_lib_search_path_RC \
17493 archive_expsym_cmds_RC \
17494 postinstall_cmds_RC \
17495 postuninstall_cmds_RC \
17496 old_archive_from_expsyms_cmds_RC \
17497 allow_undefined_flag_RC \
17498 no_undefined_flag_RC \
17499 export_symbols_cmds_RC \
17500 hardcode_libdir_flag_spec_RC \
17501 hardcode_libdir_flag_spec_ld_RC \
17502 hardcode_libdir_separator_RC \
17503 hardcode_automatic_RC \
17505 module_expsym_cmds_RC \
17506 lt_cv_prog_compiler_c_o_RC \
17507 exclude_expsyms_RC \
17508 include_expsyms_RC; do
17511 old_archive_cmds_RC | \
17512 old_archive_from_new_cmds_RC | \
17513 archive_cmds_RC | \
17514 archive_expsym_cmds_RC | \
17516 module_expsym_cmds_RC | \
17517 old_archive_from_expsyms_cmds_RC | \
17518 export_symbols_cmds_RC | \
17519 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17520 postinstall_cmds | postuninstall_cmds | \
17521 old_postinstall_cmds | old_postuninstall_cmds | \
17522 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17523 # Double-quote double-evaled strings.
17524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17533 *'\$0 --fallback-echo"')
17534 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17540 cat <<__EOF__ >> "$cfgfile"
17541 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17543 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17545 # Shell to use when invoking shell scripts.
17548 # Whether or not to build shared libraries.
17549 build_libtool_libs=$enable_shared
17551 # Whether or not to build static libraries.
17552 build_old_libs=$enable_static
17554 # Whether or not to add -lc for building shared libraries.
17555 build_libtool_need_lc=$archive_cmds_need_lc_RC
17557 # Whether or not to disallow shared libs when runtime libs are static
17558 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17560 # Whether or not to optimize for fast installation.
17561 fast_install=$enable_fast_install
17564 host_alias=$host_alias
17567 # An echo program that does not interpret backslashes.
17572 AR_FLAGS=$lt_AR_FLAGS
17577 # A language-specific compiler.
17580 # Is the compiler the GNU C compiler?
17586 # The linker used to build libraries.
17589 # Whether we need hard or soft links.
17592 # A BSD-compatible nm program.
17595 # A symbol stripping program
17598 # Used to examine libraries when file_magic_cmd begins "file"
17599 MAGIC_CMD=$MAGIC_CMD
17601 # Used on cygwin: DLL creation program.
17604 # Used on cygwin: object dumper.
17607 # Used on cygwin: assembler.
17610 # The name of the directory that contains temporary libtool files.
17613 # How to create reloadable object files.
17614 reload_flag=$lt_reload_flag
17615 reload_cmds=$lt_reload_cmds
17617 # How to pass a linker flag through the compiler.
17618 wl=$lt_lt_prog_compiler_wl_RC
17620 # Object file suffix (normally "o").
17621 objext="$ac_objext"
17623 # Old archive suffix (normally "a").
17626 # Shared library suffix (normally ".so").
17629 # Executable file suffix (normally "").
17632 # Additional compiler flags for building library objects.
17633 pic_flag=$lt_lt_prog_compiler_pic_RC
17636 # What is the maximum length of a command?
17637 max_cmd_len=$lt_cv_sys_max_cmd_len
17639 # Does compiler simultaneously support -c and -o options?
17640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17642 # Must we lock files when doing compilation ?
17643 need_locks=$lt_need_locks
17645 # Do we need the lib prefix for modules?
17646 need_lib_prefix=$need_lib_prefix
17648 # Do we need a version for libraries?
17649 need_version=$need_version
17651 # Whether dlopen is supported.
17652 dlopen_support=$enable_dlopen
17654 # Whether dlopen of programs is supported.
17655 dlopen_self=$enable_dlopen_self
17657 # Whether dlopen of statically linked programs is supported.
17658 dlopen_self_static=$enable_dlopen_self_static
17660 # Compiler flag to prevent dynamic linking.
17661 link_static_flag=$lt_lt_prog_compiler_static_RC
17663 # Compiler flag to turn off builtin functions.
17664 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17666 # Compiler flag to allow reflexive dlopens.
17667 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17669 # Compiler flag to generate shared objects directly from archives.
17670 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17672 # Compiler flag to generate thread-safe objects.
17673 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17675 # Library versioning type.
17676 version_type=$version_type
17678 # Format of library name prefix.
17679 libname_spec=$lt_libname_spec
17681 # List of archive names. First name is the real one, the rest are links.
17682 # The last name is the one that the linker finds with -lNAME.
17683 library_names_spec=$lt_library_names_spec
17685 # The coded name of the library, if different from the real name.
17686 soname_spec=$lt_soname_spec
17688 # Commands used to build and install an old-style archive.
17690 old_archive_cmds=$lt_old_archive_cmds_RC
17691 old_postinstall_cmds=$lt_old_postinstall_cmds
17692 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17694 # Create an old-style archive from a shared archive.
17695 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17697 # Create a temporary old-style archive to link instead of a shared archive.
17698 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17700 # Commands used to build and install a shared archive.
17701 archive_cmds=$lt_archive_cmds_RC
17702 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17703 postinstall_cmds=$lt_postinstall_cmds
17704 postuninstall_cmds=$lt_postuninstall_cmds
17706 # Commands used to build a loadable module (assumed same as above if empty)
17707 module_cmds=$lt_module_cmds_RC
17708 module_expsym_cmds=$lt_module_expsym_cmds_RC
17710 # Commands to strip libraries.
17711 old_striplib=$lt_old_striplib
17712 striplib=$lt_striplib
17714 # Dependencies to place before the objects being linked to create a
17716 predep_objects=$lt_predep_objects_RC
17718 # Dependencies to place after the objects being linked to create a
17720 postdep_objects=$lt_postdep_objects_RC
17722 # Dependencies to place before the objects being linked to create a
17724 predeps=$lt_predeps_RC
17726 # Dependencies to place after the objects being linked to create a
17728 postdeps=$lt_postdeps_RC
17730 # The library search path used internally by the compiler when linking
17731 # a shared library.
17732 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17734 # Method to check whether dependent libraries are shared objects.
17735 deplibs_check_method=$lt_deplibs_check_method
17737 # Command to use when deplibs_check_method == file_magic.
17738 file_magic_cmd=$lt_file_magic_cmd
17740 # Flag that allows shared libraries with undefined symbols to be built.
17741 allow_undefined_flag=$lt_allow_undefined_flag_RC
17743 # Flag that forces no undefined symbols.
17744 no_undefined_flag=$lt_no_undefined_flag_RC
17746 # Commands used to finish a libtool library installation in a directory.
17747 finish_cmds=$lt_finish_cmds
17749 # Same as above, but a single script fragment to be evaled but not shown.
17750 finish_eval=$lt_finish_eval
17752 # Take the output of nm and produce a listing of raw symbols and C names.
17753 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17755 # Transform the output of nm in a proper C declaration
17756 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17758 # Transform the output of nm in a C name address pair
17759 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17761 # This is the shared library runtime path variable.
17762 runpath_var=$runpath_var
17764 # This is the shared library path variable.
17765 shlibpath_var=$shlibpath_var
17767 # Is shlibpath searched before the hard-coded library search path?
17768 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17770 # How to hardcode a shared library path into an executable.
17771 hardcode_action=$hardcode_action_RC
17773 # Whether we should hardcode library paths into libraries.
17774 hardcode_into_libs=$hardcode_into_libs
17776 # Flag to hardcode \$libdir into a binary during linking.
17777 # This must work even if \$libdir does not exist.
17778 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17780 # If ld is used when linking, flag to hardcode \$libdir into
17781 # a binary during linking. This must work even if \$libdir does
17783 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17785 # Whether we need a single -rpath flag with a separated argument.
17786 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17788 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17789 # resulting binary.
17790 hardcode_direct=$hardcode_direct_RC
17792 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17793 # resulting binary.
17794 hardcode_minus_L=$hardcode_minus_L_RC
17796 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17797 # the resulting binary.
17798 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17800 # Set to yes if building a shared library automatically hardcodes DIR into the library
17801 # and all subsequent libraries and executables linked against it.
17802 hardcode_automatic=$hardcode_automatic_RC
17804 # Variables whose values should be saved in libtool wrapper scripts and
17805 # restored at relink time.
17806 variables_saved_for_relink="$variables_saved_for_relink"
17808 # Whether libtool must link a program against all its dependency libraries.
17809 link_all_deplibs=$link_all_deplibs_RC
17811 # Compile-time system search path for libraries
17812 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17814 # Run-time system search path for libraries
17815 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17817 # Fix the shell variable \$srcfile for the compiler.
17818 fix_srcfile_path="$fix_srcfile_path_RC"
17820 # Set to yes if exported symbols are required.
17821 always_export_symbols=$always_export_symbols_RC
17823 # The commands to list exported symbols.
17824 export_symbols_cmds=$lt_export_symbols_cmds_RC
17826 # The commands to extract the exported symbol list from a shared archive.
17827 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17829 # Symbols that should not be listed in the preloaded symbols.
17830 exclude_expsyms=$lt_exclude_expsyms_RC
17832 # Symbols that must always be exported.
17833 include_expsyms=$lt_include_expsyms_RC
17835 # ### END LIBTOOL TAG CONFIG: $tagname
17841 # If there is no Makefile yet, we rely on a make rule to execute
17842 # `config.status --recheck' to rerun these tests and create the
17843 # libtool script then.
17844 test -f Makefile && make "$ltmain"
17849 ac_cpp='$CPP $CPPFLAGS'
17850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17859 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17860 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17861 { (exit 1); exit 1; }; }
17865 # Append the new tag name to the list of available tags.
17866 if test -n "$tagname" ; then
17867 available_tags="$available_tags $tagname"
17873 # Now substitute the updated list of available tags.
17874 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17875 mv "${ofile}T" "$ofile"
17879 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17880 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17881 { (exit 1); exit 1; }; }
17887 # This can be used to rebuild libtool when needed
17888 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17890 # Always use our own libtool.
17891 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
17893 # Prevent multiple expansion
17915 # Extract the first word of "pwd", so it can be a program name with args.
17916 set dummy pwd; ac_word=$2
17917 echo "$as_me:$LINENO: checking for $ac_word" >&5
17918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17919 if test "${ac_cv_path_RPWD+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
17927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17928 for as_dir in $PATH
17931 test -z "$as_dir" && as_dir=.
17932 for ac_exec_ext in '' $ac_executable_extensions; do
17933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17934 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
17935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17944 RPWD=$ac_cv_path_RPWD
17946 if test -n "$RPWD"; then
17947 echo "$as_me:$LINENO: result: $RPWD" >&5
17948 echo "${ECHO_T}$RPWD" >&6
17950 echo "$as_me:$LINENO: result: no" >&5
17951 echo "${ECHO_T}no" >&6
17954 # Extract the first word of "ar", so it can be a program name with args.
17955 set dummy ar; ac_word=$2
17956 echo "$as_me:$LINENO: checking for $ac_word" >&5
17957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17958 if test "${ac_cv_path_AR+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 ac_cv_path_AR="$AR" # Let the user override the test with a path.
17966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17967 for as_dir in $PATH
17970 test -z "$as_dir" && as_dir=.
17971 for ac_exec_ext in '' $ac_executable_extensions; do
17972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17973 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17985 if test -n "$AR"; then
17986 echo "$as_me:$LINENO: result: $AR" >&5
17987 echo "${ECHO_T}$AR" >&6
17989 echo "$as_me:$LINENO: result: no" >&5
17990 echo "${ECHO_T}no" >&6
17993 # Extract the first word of "sed", so it can be a program name with args.
17994 set dummy sed; ac_word=$2
17995 echo "$as_me:$LINENO: checking for $ac_word" >&5
17996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17997 if test "${ac_cv_path_SED+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18006 for as_dir in $PATH
18009 test -z "$as_dir" && as_dir=.
18010 for ac_exec_ext in '' $ac_executable_extensions; do
18011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18012 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18022 SED=$ac_cv_path_SED
18024 if test -n "$SED"; then
18025 echo "$as_me:$LINENO: result: $SED" >&5
18026 echo "${ECHO_T}$SED" >&6
18028 echo "$as_me:$LINENO: result: no" >&5
18029 echo "${ECHO_T}no" >&6
18032 # Extract the first word of "rm", so it can be a program name with args.
18033 set dummy rm; ac_word=$2
18034 echo "$as_me:$LINENO: checking for $ac_word" >&5
18035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18036 if test "${ac_cv_path_RM+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18045 for as_dir in $PATH
18048 test -z "$as_dir" && as_dir=.
18049 for ac_exec_ext in '' $ac_executable_extensions; do
18050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18051 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18063 if test -n "$RM"; then
18064 echo "$as_me:$LINENO: result: $RM" >&5
18065 echo "${ECHO_T}$RM" >&6
18067 echo "$as_me:$LINENO: result: no" >&5
18068 echo "${ECHO_T}no" >&6
18071 # Extract the first word of "echo", so it can be a program name with args.
18072 set dummy echo; ac_word=$2
18073 echo "$as_me:$LINENO: checking for $ac_word" >&5
18074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18075 if test "${ac_cv_path_ECHO+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18084 for as_dir in $PATH
18087 test -z "$as_dir" && as_dir=.
18088 for ac_exec_ext in '' $ac_executable_extensions; do
18089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18090 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18100 ECHO=$ac_cv_path_ECHO
18102 if test -n "$ECHO"; then
18103 echo "$as_me:$LINENO: result: $ECHO" >&5
18104 echo "${ECHO_T}$ECHO" >&6
18106 echo "$as_me:$LINENO: result: no" >&5
18107 echo "${ECHO_T}no" >&6
18110 # Extract the first word of "mkdir", so it can be a program name with args.
18111 set dummy mkdir; ac_word=$2
18112 echo "$as_me:$LINENO: checking for $ac_word" >&5
18113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18114 if test "${ac_cv_path_MKDIR+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18119 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18126 test -z "$as_dir" && as_dir=.
18127 for ac_exec_ext in '' $ac_executable_extensions; do
18128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18129 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18139 MKDIR=$ac_cv_path_MKDIR
18141 if test -n "$MKDIR"; then
18142 echo "$as_me:$LINENO: result: $MKDIR" >&5
18143 echo "${ECHO_T}$MKDIR" >&6
18145 echo "$as_me:$LINENO: result: no" >&5
18146 echo "${ECHO_T}no" >&6
18149 # Extract the first word of "date", so it can be a program name with args.
18150 set dummy date; ac_word=$2
18151 echo "$as_me:$LINENO: checking for $ac_word" >&5
18152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18153 if test "${ac_cv_path_DATE+set}" = set; then
18154 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18162 for as_dir in $PATH
18165 test -z "$as_dir" && as_dir=.
18166 for ac_exec_ext in '' $ac_executable_extensions; do
18167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18168 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18178 DATE=$ac_cv_path_DATE
18180 if test -n "$DATE"; then
18181 echo "$as_me:$LINENO: result: $DATE" >&5
18182 echo "${ECHO_T}$DATE" >&6
18184 echo "$as_me:$LINENO: result: no" >&5
18185 echo "${ECHO_T}no" >&6
18188 # Extract the first word of "mv", so it can be a program name with args.
18189 set dummy mv; ac_word=$2
18190 echo "$as_me:$LINENO: checking for $ac_word" >&5
18191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18192 if test "${ac_cv_path_MV+set}" = set; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18201 for as_dir in $PATH
18204 test -z "$as_dir" && as_dir=.
18205 for ac_exec_ext in '' $ac_executable_extensions; do
18206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18207 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18219 if test -n "$MV"; then
18220 echo "$as_me:$LINENO: result: $MV" >&5
18221 echo "${ECHO_T}$MV" >&6
18223 echo "$as_me:$LINENO: result: no" >&5
18224 echo "${ECHO_T}no" >&6
18227 # Extract the first word of "dot", so it can be a program name with args.
18228 set dummy dot; ac_word=$2
18229 echo "$as_me:$LINENO: checking for $ac_word" >&5
18230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18231 if test "${ac_cv_path_DOT+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18240 for as_dir in $PATH
18243 test -z "$as_dir" && as_dir=.
18244 for ac_exec_ext in '' $ac_executable_extensions; do
18245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18246 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18256 DOT=$ac_cv_path_DOT
18258 if test -n "$DOT"; then
18259 echo "$as_me:$LINENO: result: $DOT" >&5
18260 echo "${ECHO_T}$DOT" >&6
18262 echo "$as_me:$LINENO: result: no" >&5
18263 echo "${ECHO_T}no" >&6
18266 # Extract the first word of "etags", so it can be a program name with args.
18267 set dummy etags; ac_word=$2
18268 echo "$as_me:$LINENO: checking for $ac_word" >&5
18269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18270 if test "${ac_cv_path_ETAGS+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18279 for as_dir in $PATH
18282 test -z "$as_dir" && as_dir=.
18283 for ac_exec_ext in '' $ac_executable_extensions; do
18284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18285 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18295 ETAGS=$ac_cv_path_ETAGS
18297 if test -n "$ETAGS"; then
18298 echo "$as_me:$LINENO: result: $ETAGS" >&5
18299 echo "${ECHO_T}$ETAGS" >&6
18301 echo "$as_me:$LINENO: result: no" >&5
18302 echo "${ECHO_T}no" >&6
18305 # Extract the first word of "purify", so it can be a program name with args.
18306 set dummy purify; ac_word=$2
18307 echo "$as_me:$LINENO: checking for $ac_word" >&5
18308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18309 if test "${ac_cv_path_PURIFY+set}" = set; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
18314 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18318 for as_dir in $PATH
18321 test -z "$as_dir" && as_dir=.
18322 for ac_exec_ext in '' $ac_executable_extensions; do
18323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18324 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18334 PURIFY=$ac_cv_path_PURIFY
18336 if test -n "$PURIFY"; then
18337 echo "$as_me:$LINENO: result: $PURIFY" >&5
18338 echo "${ECHO_T}$PURIFY" >&6
18340 echo "$as_me:$LINENO: result: no" >&5
18341 echo "${ECHO_T}no" >&6
18344 # Extract the first word of "python", so it can be a program name with args.
18345 set dummy python; ac_word=$2
18346 echo "$as_me:$LINENO: checking for $ac_word" >&5
18347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18348 if test "${ac_cv_path_PYTHON+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18357 for as_dir in $PATH
18360 test -z "$as_dir" && as_dir=.
18361 for ac_exec_ext in '' $ac_executable_extensions; do
18362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18363 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18373 PYTHON=$ac_cv_path_PYTHON
18375 if test -n "$PYTHON"; then
18376 echo "$as_me:$LINENO: result: $PYTHON" >&5
18377 echo "${ECHO_T}$PYTHON" >&6
18379 echo "$as_me:$LINENO: result: no" >&5
18380 echo "${ECHO_T}no" >&6
18383 # Extract the first word of "qmtest", so it can be a program name with args.
18384 set dummy qmtest; ac_word=$2
18385 echo "$as_me:$LINENO: checking for $ac_word" >&5
18386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18387 if test "${ac_cv_path_QMTEST+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18396 for as_dir in $PATH
18399 test -z "$as_dir" && as_dir=.
18400 for ac_exec_ext in '' $ac_executable_extensions; do
18401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18402 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18412 QMTEST=$ac_cv_path_QMTEST
18414 if test -n "$QMTEST"; then
18415 echo "$as_me:$LINENO: result: $QMTEST" >&5
18416 echo "${ECHO_T}$QMTEST" >&6
18418 echo "$as_me:$LINENO: result: no" >&5
18419 echo "${ECHO_T}no" >&6
18423 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18424 pymajor=`echo $pyversion | cut -d. -f1`
18425 pyminor=`echo $pyversion | cut -d. -f2`
18427 if test "$pymajor" -ge "2"
18429 if test "$pymajor" -eq "2"
18431 if test "$pyminor" -lt "2"
18433 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18434 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18435 { (exit 1); exit 1; }; }
18439 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18440 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18441 { (exit 1); exit 1; }; }
18448 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18449 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18450 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 ac_check_lib_save_LIBS=$LIBS
18455 cat >conftest.$ac_ext <<_ACEOF
18456 #line $LINENO "configure"
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18463 /* Override any gcc2 internal prototype to avoid an error. */
18467 /* We use char because int might match the return type of a gcc2
18468 builtin and then its argument prototype would still apply. */
18478 rm -f conftest.$ac_objext conftest$ac_exeext
18479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18480 (eval $ac_link) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } &&
18484 { ac_try='test -s conftest$ac_exeext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 ac_cv_lib_elf_elf_begin=yes
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18495 ac_cv_lib_elf_elf_begin=no
18497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18498 LIBS=$ac_check_lib_save_LIBS
18500 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18501 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18502 if test $ac_cv_lib_elf_elf_begin = yes; then
18503 cat >>confdefs.h <<_ACEOF
18504 #define HAVE_LIBELF 1
18512 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18513 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18514 if test "${ac_cv_search_dlopen+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 ac_func_search_save_LIBS=$LIBS
18518 ac_cv_search_dlopen=no
18519 cat >conftest.$ac_ext <<_ACEOF
18520 #line $LINENO "configure"
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 /* Override any gcc2 internal prototype to avoid an error. */
18531 /* We use char because int might match the return type of a gcc2
18532 builtin and then its argument prototype would still apply. */
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -s conftest$ac_exeext'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_search_dlopen="none required"
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18561 if test "$ac_cv_search_dlopen" = no; then
18562 for ac_lib in dl; do
18563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18564 cat >conftest.$ac_ext <<_ACEOF
18565 #line $LINENO "configure"
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18572 /* Override any gcc2 internal prototype to avoid an error. */
18576 /* We use char because int might match the return type of a gcc2
18577 builtin and then its argument prototype would still apply. */
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18589 (eval $ac_link) 2>&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
18593 { ac_try='test -s conftest$ac_exeext'
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 ac_cv_search_dlopen="-l$ac_lib"
18602 echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_func_search_save_LIBS
18611 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18612 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18613 if test "$ac_cv_search_dlopen" != no; then
18614 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18617 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18618 echo "$as_me: error: dlopen() required but not found" >&2;}
18619 { (exit 1); exit 1; }; }
18623 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18624 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18625 if test "${ac_cv_search_mallinfo+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 ac_func_search_save_LIBS=$LIBS
18629 ac_cv_search_mallinfo=no
18630 cat >conftest.$ac_ext <<_ACEOF
18631 #line $LINENO "configure"
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18638 /* Override any gcc2 internal prototype to avoid an error. */
18642 /* We use char because int might match the return type of a gcc2
18643 builtin and then its argument prototype would still apply. */
18653 rm -f conftest.$ac_objext conftest$ac_exeext
18654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18655 (eval $ac_link) 2>&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } &&
18659 { ac_try='test -s conftest$ac_exeext'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_search_mallinfo="none required"
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18672 if test "$ac_cv_search_mallinfo" = no; then
18673 for ac_lib in malloc; do
18674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18675 cat >conftest.$ac_ext <<_ACEOF
18676 #line $LINENO "configure"
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18683 /* Override any gcc2 internal prototype to avoid an error. */
18687 /* We use char because int might match the return type of a gcc2
18688 builtin and then its argument prototype would still apply. */
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18700 (eval $ac_link) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try='test -s conftest$ac_exeext'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 ac_cv_search_mallinfo="-l$ac_lib"
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_func_search_save_LIBS
18722 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18723 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18724 if test "$ac_cv_search_mallinfo" != no; then
18725 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18726 cat >>confdefs.h <<\_ACEOF
18727 #define HAVE_MALLINFO 1
18734 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18735 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18736 if test "${ac_cv_header_stdc+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 cat >conftest.$ac_ext <<_ACEOF
18740 #line $LINENO "configure"
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18746 #include <stdlib.h>
18747 #include <stdarg.h>
18748 #include <string.h>
18759 rm -f conftest.$ac_objext
18760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18761 (eval $ac_compile) 2>&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } &&
18765 { ac_try='test -s conftest.$ac_objext'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_header_stdc=yes
18773 echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18776 ac_cv_header_stdc=no
18778 rm -f conftest.$ac_objext conftest.$ac_ext
18780 if test $ac_cv_header_stdc = yes; then
18781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18782 cat >conftest.$ac_ext <<_ACEOF
18783 #line $LINENO "configure"
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18789 #include <string.h>
18792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18793 $EGREP "memchr" >/dev/null 2>&1; then
18796 ac_cv_header_stdc=no
18802 if test $ac_cv_header_stdc = yes; then
18803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18804 cat >conftest.$ac_ext <<_ACEOF
18805 #line $LINENO "configure"
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 #include <stdlib.h>
18814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18815 $EGREP "free" >/dev/null 2>&1; then
18818 ac_cv_header_stdc=no
18824 if test $ac_cv_header_stdc = yes; then
18825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18826 if test "$cross_compiling" = yes; then
18829 cat >conftest.$ac_ext <<_ACEOF
18830 #line $LINENO "configure"
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18837 #if ((' ' & 0x0FF) == 0x020)
18838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18841 # define ISLOWER(c) \
18842 (('a' <= (c) && (c) <= 'i') \
18843 || ('j' <= (c) && (c) <= 'r') \
18844 || ('s' <= (c) && (c) <= 'z'))
18845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18853 for (i = 0; i < 256; i++)
18854 if (XOR (islower (i), ISLOWER (i))
18855 || toupper (i) != TOUPPER (i))
18860 rm -f conftest$ac_exeext
18861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18862 (eval $ac_link) 2>&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18873 echo "$as_me: program exited with status $ac_status" >&5
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18877 ( exit $ac_status )
18878 ac_cv_header_stdc=no
18880 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18884 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18885 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18886 if test $ac_cv_header_stdc = yes; then
18888 cat >>confdefs.h <<\_ACEOF
18889 #define STDC_HEADERS 1
18894 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18895 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18896 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 cat >conftest.$ac_ext <<_ACEOF
18900 #line $LINENO "configure"
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18906 #include <sys/types.h>
18907 #include <sys/wait.h>
18908 #ifndef WEXITSTATUS
18909 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18912 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18920 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18925 rm -f conftest.$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927 (eval $ac_compile) 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -s conftest.$ac_objext'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 ac_cv_header_sys_wait_h=yes
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18942 ac_cv_header_sys_wait_h=no
18944 rm -f conftest.$ac_objext conftest.$ac_ext
18946 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18947 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18948 if test $ac_cv_header_sys_wait_h = yes; then
18950 cat >>confdefs.h <<\_ACEOF
18951 #define HAVE_SYS_WAIT_H 1
18965 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
18967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18969 echo "$as_me:$LINENO: checking for $ac_header" >&5
18970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18977 # Is the header compilable?
18978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18980 cat >conftest.$ac_ext <<_ACEOF
18981 #line $LINENO "configure"
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18987 $ac_includes_default
18988 #include <$ac_header>
18990 rm -f conftest.$ac_objext
18991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18992 (eval $ac_compile) 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_header_compiler=yes
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_header_compiler=no
19009 rm -f conftest.$ac_objext conftest.$ac_ext
19010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19011 echo "${ECHO_T}$ac_header_compiler" >&6
19013 # Is the header present?
19014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19016 cat >conftest.$ac_ext <<_ACEOF
19017 #line $LINENO "configure"
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <$ac_header>
19025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19028 grep -v '^ *+' conftest.er1 >conftest.err
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } >/dev/null; then
19033 if test -s conftest.err; then
19034 ac_cpp_err=$ac_c_preproc_warn_flag
19041 if test -z "$ac_cpp_err"; then
19042 ac_header_preproc=yes
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_header_preproc=no
19049 rm -f conftest.err conftest.$ac_ext
19050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19051 echo "${ECHO_T}$ac_header_preproc" >&6
19053 # So? What about this header?
19054 case $ac_header_compiler:$ac_header_preproc in
19056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19062 ## ------------------------------------ ##
19063 ## Report this to bug-autoconf@gnu.org. ##
19064 ## ------------------------------------ ##
19067 sed "s/^/$as_me: WARNING: /" >&2
19070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19078 ## ------------------------------------ ##
19079 ## Report this to bug-autoconf@gnu.org. ##
19080 ## ------------------------------------ ##
19083 sed "s/^/$as_me: WARNING: /" >&2
19086 echo "$as_me:$LINENO: checking for $ac_header" >&5
19087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 eval "$as_ac_Header=$ac_header_preproc"
19093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19098 cat >>confdefs.h <<_ACEOF
19099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19111 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19115 echo "$as_me:$LINENO: checking for $ac_header" >&5
19116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19123 # Is the header compilable?
19124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19126 cat >conftest.$ac_ext <<_ACEOF
19127 #line $LINENO "configure"
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 $ac_includes_default
19134 #include <$ac_header>
19136 rm -f conftest.$ac_objext
19137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19138 (eval $ac_compile) 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
19142 { ac_try='test -s conftest.$ac_objext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 ac_header_compiler=yes
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19153 ac_header_compiler=no
19155 rm -f conftest.$ac_objext conftest.$ac_ext
19156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19157 echo "${ECHO_T}$ac_header_compiler" >&6
19159 # Is the header present?
19160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19162 cat >conftest.$ac_ext <<_ACEOF
19163 #line $LINENO "configure"
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19169 #include <$ac_header>
19171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19174 grep -v '^ *+' conftest.er1 >conftest.err
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } >/dev/null; then
19179 if test -s conftest.err; then
19180 ac_cpp_err=$ac_c_preproc_warn_flag
19187 if test -z "$ac_cpp_err"; then
19188 ac_header_preproc=yes
19190 echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19193 ac_header_preproc=no
19195 rm -f conftest.err conftest.$ac_ext
19196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19197 echo "${ECHO_T}$ac_header_preproc" >&6
19199 # So? What about this header?
19200 case $ac_header_compiler:$ac_header_preproc in
19202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19208 ## ------------------------------------ ##
19209 ## Report this to bug-autoconf@gnu.org. ##
19210 ## ------------------------------------ ##
19213 sed "s/^/$as_me: WARNING: /" >&2
19216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19224 ## ------------------------------------ ##
19225 ## Report this to bug-autoconf@gnu.org. ##
19226 ## ------------------------------------ ##
19229 sed "s/^/$as_me: WARNING: /" >&2
19232 echo "$as_me:$LINENO: checking for $ac_header" >&5
19233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 eval "$as_ac_Header=$ac_header_preproc"
19239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19244 cat >>confdefs.h <<_ACEOF
19245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19255 for ac_header in dlfcn.h link.h
19257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19259 echo "$as_me:$LINENO: checking for $ac_header" >&5
19260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19267 # Is the header compilable?
19268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19270 cat >conftest.$ac_ext <<_ACEOF
19271 #line $LINENO "configure"
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 $ac_includes_default
19278 #include <$ac_header>
19280 rm -f conftest.$ac_objext
19281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19282 (eval $ac_compile) 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
19286 { ac_try='test -s conftest.$ac_objext'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19292 ac_header_compiler=yes
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19297 ac_header_compiler=no
19299 rm -f conftest.$ac_objext conftest.$ac_ext
19300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19301 echo "${ECHO_T}$ac_header_compiler" >&6
19303 # Is the header present?
19304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19306 cat >conftest.$ac_ext <<_ACEOF
19307 #line $LINENO "configure"
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 #include <$ac_header>
19315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19318 grep -v '^ *+' conftest.er1 >conftest.err
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } >/dev/null; then
19323 if test -s conftest.err; then
19324 ac_cpp_err=$ac_c_preproc_warn_flag
19331 if test -z "$ac_cpp_err"; then
19332 ac_header_preproc=yes
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_header_preproc=no
19339 rm -f conftest.err conftest.$ac_ext
19340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19341 echo "${ECHO_T}$ac_header_preproc" >&6
19343 # So? What about this header?
19344 case $ac_header_compiler:$ac_header_preproc in
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
19361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19368 ## ------------------------------------ ##
19369 ## Report this to bug-autoconf@gnu.org. ##
19370 ## ------------------------------------ ##
19373 sed "s/^/$as_me: WARNING: /" >&2
19376 echo "$as_me:$LINENO: checking for $ac_header" >&5
19377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19381 eval "$as_ac_Header=$ac_header_preproc"
19383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19388 cat >>confdefs.h <<_ACEOF
19389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19398 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19399 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19400 if test "${ac_cv_c_const+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19403 cat >conftest.$ac_ext <<_ACEOF
19404 #line $LINENO "configure"
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19414 /* FIXME: Include the comments suggested by Paul. */
19415 #ifndef __cplusplus
19416 /* Ultrix mips cc rejects this. */
19417 typedef int charset[2];
19419 /* SunOS 4.1.1 cc rejects this. */
19420 char const *const *ccp;
19422 /* NEC SVR4.0.2 mips cc rejects this. */
19423 struct point {int x, y;};
19424 static struct point const zero = {0,0};
19425 /* AIX XL C 1.02.0.0 rejects this.
19426 It does not let you subtract one const X* pointer from another in
19427 an arm of an if-expression whose if-part is not a constant
19429 const char *g = "string";
19430 ccp = &g + (g ? g-g : 0);
19431 /* HPUX 7.0 cc rejects these. */
19434 ccp = (char const *const *) p;
19435 { /* SCO 3.2v4 cc rejects this. */
19437 char const *s = 0 ? (char *) 0 : (char const *) 0;
19441 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19442 int x[] = {25, 17};
19443 const int *foo = &x[0];
19446 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19447 typedef const int *iptr;
19451 { /* AIX XL C 1.02.0.0 rejects this saying
19452 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19453 struct s { int j; const int *ap[3]; };
19454 struct s *b; b->j = 5;
19456 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19457 const int foo = 10;
19465 rm -f conftest.$ac_objext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19467 (eval $ac_compile) 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } &&
19471 { ac_try='test -s conftest.$ac_objext'
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19484 rm -f conftest.$ac_objext conftest.$ac_ext
19486 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19487 echo "${ECHO_T}$ac_cv_c_const" >&6
19488 if test $ac_cv_c_const = no; then
19490 cat >>confdefs.h <<\_ACEOF
19496 echo "$as_me:$LINENO: checking for inline" >&5
19497 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19498 if test "${ac_cv_c_inline+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19502 for ac_kw in inline __inline__ __inline; do
19503 cat >conftest.$ac_ext <<_ACEOF
19504 #line $LINENO "configure"
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 #ifndef __cplusplus
19512 static $ac_kw foo_t static_foo () {return 0; }
19513 $ac_kw foo_t foo () {return 0; }
19517 rm -f conftest.$ac_objext
19518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19519 (eval $ac_compile) 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529 ac_cv_c_inline=$ac_kw; break
19531 echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19535 rm -f conftest.$ac_objext conftest.$ac_ext
19539 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19540 echo "${ECHO_T}$ac_cv_c_inline" >&6
19541 case $ac_cv_c_inline in
19544 cat >>confdefs.h <<\_ACEOF
19548 *) cat >>confdefs.h <<_ACEOF
19549 #define inline $ac_cv_c_inline
19555 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19556 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19557 if test "${ac_cv_c_bigendian+set}" = set; then
19558 echo $ECHO_N "(cached) $ECHO_C" >&6
19560 # See if sys/param.h defines the BYTE_ORDER macro.
19561 cat >conftest.$ac_ext <<_ACEOF
19562 #line $LINENO "configure"
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 #include <sys/types.h>
19569 #include <sys/param.h>
19574 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19575 bogus endian macros
19582 rm -f conftest.$ac_objext
19583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19584 (eval $ac_compile) 2>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } &&
19588 { ac_try='test -s conftest.$ac_objext'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
19594 # It does; now see whether it defined to BIG_ENDIAN or not.
19595 cat >conftest.$ac_ext <<_ACEOF
19596 #line $LINENO "configure"
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 #include <sys/types.h>
19603 #include <sys/param.h>
19608 #if BYTE_ORDER != BIG_ENDIAN
19616 rm -f conftest.$ac_objext
19617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19618 (eval $ac_compile) 2>&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -s conftest.$ac_objext'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_cv_c_bigendian=yes
19630 echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19633 ac_cv_c_bigendian=no
19635 rm -f conftest.$ac_objext conftest.$ac_ext
19637 echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19640 # It does not; compile a test program.
19641 if test "$cross_compiling" = yes; then
19642 # try to guess the endianness by grepping values into an object file
19643 ac_cv_c_bigendian=unknown
19644 cat >conftest.$ac_ext <<_ACEOF
19645 #line $LINENO "configure"
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19652 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19653 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19654 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19655 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19656 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19660 _ascii (); _ebcdic ();
19665 rm -f conftest.$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667 (eval $ac_compile) 2>&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } &&
19671 { ac_try='test -s conftest.$ac_objext'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19678 ac_cv_c_bigendian=yes
19680 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19681 if test "$ac_cv_c_bigendian" = unknown; then
19682 ac_cv_c_bigendian=no
19684 # finding both strings is unlikely to happen, but who knows?
19685 ac_cv_c_bigendian=unknown
19689 echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19693 rm -f conftest.$ac_objext conftest.$ac_ext
19695 cat >conftest.$ac_ext <<_ACEOF
19696 #line $LINENO "configure"
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19705 /* Are we little or big endian? From Harbison&Steele. */
19709 char c[sizeof (long)];
19712 exit (u.c[sizeof (long) - 1] == 1);
19715 rm -f conftest$ac_exeext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717 (eval $ac_link) 2>&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_cv_c_bigendian=no
19728 echo "$as_me: program exited with status $ac_status" >&5
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ( exit $ac_status )
19733 ac_cv_c_bigendian=yes
19735 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19738 rm -f conftest.$ac_objext conftest.$ac_ext
19740 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19741 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19742 case $ac_cv_c_bigendian in
19744 cat >>confdefs.h <<\_ACEOF
19745 #define ENDIAN_BIG 1
19749 cat >>confdefs.h <<\_ACEOF
19750 #define ENDIAN_LITTLE 1
19754 { { echo "$as_me:$LINENO: error: unknown endianness
19755 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19756 echo "$as_me: error: unknown endianness
19757 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19758 { (exit 1); exit 1; }; } ;;
19762 echo "$as_me:$LINENO: checking for pid_t" >&5
19763 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19764 if test "${ac_cv_type_pid_t+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 cat >conftest.$ac_ext <<_ACEOF
19768 #line $LINENO "configure"
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 $ac_includes_default
19780 if (sizeof (pid_t))
19786 rm -f conftest.$ac_objext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788 (eval $ac_compile) 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
19792 { ac_try='test -s conftest.$ac_objext'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; }; then
19798 ac_cv_type_pid_t=yes
19800 echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19803 ac_cv_type_pid_t=no
19805 rm -f conftest.$ac_objext conftest.$ac_ext
19807 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19808 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19809 if test $ac_cv_type_pid_t = yes; then
19813 cat >>confdefs.h <<_ACEOF
19819 echo "$as_me:$LINENO: checking for size_t" >&5
19820 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19821 if test "${ac_cv_type_size_t+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 cat >conftest.$ac_ext <<_ACEOF
19825 #line $LINENO "configure"
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 $ac_includes_default
19837 if (sizeof (size_t))
19843 rm -f conftest.$ac_objext
19844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19845 (eval $ac_compile) 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
19849 { ac_try='test -s conftest.$ac_objext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_cv_type_size_t=yes
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_type_size_t=no
19862 rm -f conftest.$ac_objext conftest.$ac_ext
19864 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19865 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19866 if test $ac_cv_type_size_t = yes; then
19870 cat >>confdefs.h <<_ACEOF
19871 #define size_t unsigned
19876 echo "$as_me:$LINENO: checking for int64_t" >&5
19877 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19878 if test "${ac_cv_type_int64_t+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 cat >conftest.$ac_ext <<_ACEOF
19882 #line $LINENO "configure"
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19888 $ac_includes_default
19894 if (sizeof (int64_t))
19900 rm -f conftest.$ac_objext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19902 (eval $ac_compile) 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
19906 { ac_try='test -s conftest.$ac_objext'
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; }; then
19912 ac_cv_type_int64_t=yes
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_cv_type_int64_t=no
19919 rm -f conftest.$ac_objext conftest.$ac_ext
19921 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19922 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19923 if test $ac_cv_type_int64_t = yes; then
19925 cat >>confdefs.h <<_ACEOF
19926 #define HAVE_INT64_T 1
19931 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19932 echo "$as_me: error: Type int64_t required but not found" >&2;}
19933 { (exit 1); exit 1; }; }
19936 echo "$as_me:$LINENO: checking for uint64_t" >&5
19937 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19938 if test "${ac_cv_type_uint64_t+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19942 #line $LINENO "configure"
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19948 $ac_includes_default
19952 if ((uint64_t *) 0)
19954 if (sizeof (uint64_t))
19960 rm -f conftest.$ac_objext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19962 (eval $ac_compile) 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try='test -s conftest.$ac_objext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_cv_type_uint64_t=yes
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 ac_cv_type_uint64_t=no
19979 rm -f conftest.$ac_objext conftest.$ac_ext
19981 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19982 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19983 if test $ac_cv_type_uint64_t = yes; then
19985 cat >>confdefs.h <<_ACEOF
19986 #define HAVE_UINT64_T 1
19991 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19992 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19993 { (exit 1); exit 1; }; }
19996 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19997 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19998 if test "${ac_cv_header_time+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20001 cat >conftest.$ac_ext <<_ACEOF
20002 #line $LINENO "configure"
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 #include <sys/types.h>
20009 #include <sys/time.h>
20015 if ((struct tm *) 0)
20021 rm -f conftest.$ac_objext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023 (eval $ac_compile) 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -s conftest.$ac_objext'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; }; then
20033 ac_cv_header_time=yes
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 ac_cv_header_time=no
20040 rm -f conftest.$ac_objext conftest.$ac_ext
20042 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20043 echo "${ECHO_T}$ac_cv_header_time" >&6
20044 if test $ac_cv_header_time = yes; then
20046 cat >>confdefs.h <<\_ACEOF
20047 #define TIME_WITH_SYS_TIME 1
20052 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20053 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20054 if test "${ac_cv_struct_tm+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 cat >conftest.$ac_ext <<_ACEOF
20058 #line $LINENO "configure"
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 #include <sys/types.h>
20070 struct tm *tp; tp->tm_sec;
20075 rm -f conftest.$ac_objext
20076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20077 (eval $ac_compile) 2>&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } &&
20081 { ac_try='test -s conftest.$ac_objext'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; }; then
20087 ac_cv_struct_tm=time.h
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 ac_cv_struct_tm=sys/time.h
20094 rm -f conftest.$ac_objext conftest.$ac_ext
20096 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20097 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20098 if test $ac_cv_struct_tm = sys/time.h; then
20100 cat >>confdefs.h <<\_ACEOF
20101 #define TM_IN_SYS_TIME 1
20107 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20108 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20109 if test "${ac_cv_cxx_namespaces+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 ac_cpp='$CXXCPP $CPPFLAGS'
20116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20120 cat >conftest.$ac_ext <<_ACEOF
20121 #line $LINENO "configure"
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 namespace Outer { namespace Inner { int i = 0; }}
20131 using namespace Outer::Inner; return i;
20136 rm -f conftest.$ac_objext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138 (eval $ac_compile) 2>&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -s conftest.$ac_objext'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 ac_cv_cxx_namespaces=yes
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ac_cv_cxx_namespaces=no
20155 rm -f conftest.$ac_objext conftest.$ac_ext
20157 ac_cpp='$CPP $CPPFLAGS'
20158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20164 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20165 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20166 if test "$ac_cv_cxx_namespaces" = yes; then
20168 cat >>confdefs.h <<\_ACEOF
20169 #define HAVE_NAMESPACES
20174 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20175 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20176 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 ac_cpp='$CXXCPP $CPPFLAGS'
20184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20188 cat >conftest.$ac_ext <<_ACEOF
20189 #line $LINENO "configure"
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 #include <ext/hash_map>
20196 #ifdef HAVE_NAMESPACES
20197 using namespace std;
20202 hash_map<int, int> t; return 0;
20207 rm -f conftest.$ac_objext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209 (eval $ac_compile) 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
20213 { ac_try='test -s conftest.$ac_objext'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219 ac_cv_cxx_have_ext_hash_map=std
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_cv_cxx_have_ext_hash_map=no
20226 rm -f conftest.$ac_objext conftest.$ac_ext
20227 cat >conftest.$ac_ext <<_ACEOF
20228 #line $LINENO "configure"
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h. */
20234 #include <ext/hash_map>
20235 #ifdef HAVE_NAMESPACES
20236 using namespace __gnu_cxx;
20241 hash_map<int, int> t; return 0;
20246 rm -f conftest.$ac_objext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20248 (eval $ac_compile) 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } &&
20252 { ac_try='test -s conftest.$ac_objext'
20253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 ac_cv_cxx_have_ext_hash_map=gnu
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 ac_cv_cxx_have_ext_hash_map=no
20265 rm -f conftest.$ac_objext conftest.$ac_ext
20267 ac_cpp='$CPP $CPPFLAGS'
20268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20274 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20275 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20276 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20278 cat >>confdefs.h <<\_ACEOF
20279 #define HAVE_STD_EXT_HASH_MAP
20283 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20285 cat >>confdefs.h <<\_ACEOF
20286 #define HAVE_GNU_EXT_HASH_MAP
20291 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20292 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20293 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20300 ac_cpp='$CXXCPP $CPPFLAGS'
20301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20305 cat >conftest.$ac_ext <<_ACEOF
20306 #line $LINENO "configure"
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 #include <ext/hash_set>
20313 #ifdef HAVE_NAMESPACES
20314 using namespace std;
20319 hash_set<int> t; return 0;
20324 rm -f conftest.$ac_objext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20326 (eval $ac_compile) 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } &&
20330 { ac_try='test -s conftest.$ac_objext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 ac_cv_cxx_have_ext_hash_set=std
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_cv_cxx_have_ext_hash_set=no
20343 rm -f conftest.$ac_objext conftest.$ac_ext
20344 cat >conftest.$ac_ext <<_ACEOF
20345 #line $LINENO "configure"
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20351 #include <ext/hash_set>
20352 #ifdef HAVE_NAMESPACES
20353 using namespace __gnu_cxx;
20358 hash_set<int> t; return 0;
20363 rm -f conftest.$ac_objext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365 (eval $ac_compile) 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -s conftest.$ac_objext'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; }; then
20375 ac_cv_cxx_have_ext_hash_set=gnu
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ac_cv_cxx_have_ext_hash_set=no
20382 rm -f conftest.$ac_objext conftest.$ac_ext
20384 ac_cpp='$CPP $CPPFLAGS'
20385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20391 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20392 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20393 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20395 cat >>confdefs.h <<\_ACEOF
20396 #define HAVE_STD_EXT_HASH_SET
20400 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20402 cat >>confdefs.h <<\_ACEOF
20403 #define HAVE_GNU_EXT_HASH_SET
20408 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20409 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20410 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 ac_cpp='$CXXCPP $CPPFLAGS'
20418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20422 cat >conftest.$ac_ext <<_ACEOF
20423 #line $LINENO "configure"
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 #include <ext/slist>
20430 #ifdef HAVE_NAMESPACES
20431 using namespace std;
20436 slist<int> s; return 0;
20441 rm -f conftest.$ac_objext
20442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20443 (eval $ac_compile) 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
20447 { ac_try='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_cv_cxx_have_ext_slist=std
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20458 ac_cv_cxx_have_ext_slist=no
20460 rm -f conftest.$ac_objext conftest.$ac_ext
20461 cat >conftest.$ac_ext <<_ACEOF
20462 #line $LINENO "configure"
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20468 #include <ext/slist>
20469 #ifdef HAVE_NAMESPACES
20470 using namespace __gnu_cxx;
20475 slist<int> s; return 0;
20480 rm -f conftest.$ac_objext
20481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20482 (eval $ac_compile) 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } &&
20486 { ac_try='test -s conftest.$ac_objext'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 ac_cv_cxx_have_ext_slist=gnu
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_cv_cxx_have_ext_slist=no
20499 rm -f conftest.$ac_objext conftest.$ac_ext
20502 ac_cpp='$CPP $CPPFLAGS'
20503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20509 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20510 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20511 if test "$ac_cv_cxx_have_ext_slist" = std; then
20513 cat >>confdefs.h <<\_ACEOF
20514 #define HAVE_EXT_SLIST std
20518 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20520 cat >>confdefs.h <<\_ACEOF
20521 #define HAVE_EXT_SLIST gnu
20526 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20527 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20528 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 ac_cpp='$CXXCPP $CPPFLAGS'
20536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20540 cat >conftest.$ac_ext <<_ACEOF
20541 #line $LINENO "configure"
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20547 #include <iterator>
20548 #ifdef HAVE_NAMESPACES
20549 using namespace std;
20554 iterator<int,int,int> t; return 0;
20559 rm -f conftest.$ac_objext
20560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20561 (eval $ac_compile) 2>&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
20565 { ac_try='test -s conftest.$ac_objext'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571 ac_cv_cxx_have_std_iterator=yes
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 ac_cv_cxx_have_std_iterator=no
20578 rm -f conftest.$ac_objext conftest.$ac_ext
20580 ac_cpp='$CPP $CPPFLAGS'
20581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20587 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20588 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20589 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20591 cat >>confdefs.h <<\_ACEOF
20592 #define HAVE_STD_ITERATOR
20597 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20598 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20599 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 ac_cpp='$CXXCPP $CPPFLAGS'
20607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20611 cat >conftest.$ac_ext <<_ACEOF
20612 #line $LINENO "configure"
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h. */
20618 #include <iterator>
20619 #ifdef HAVE_NAMESPACES
20620 using namespace std;
20625 bidirectional_iterator<int,int> t; return 0;
20630 rm -f conftest.$ac_objext
20631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20632 (eval $ac_compile) 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
20636 { ac_try='test -s conftest.$ac_objext'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; }; then
20642 ac_cv_cxx_have_bi_iterator=yes
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 ac_cv_cxx_have_bi_iterator=no
20649 rm -f conftest.$ac_objext conftest.$ac_ext
20651 ac_cpp='$CPP $CPPFLAGS'
20652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20658 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20659 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20660 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20662 cat >>confdefs.h <<\_ACEOF
20663 #define HAVE_BI_ITERATOR
20668 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20669 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20670 if test "${ac_cv_cxx_have_fwd_iterator+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 <iterator>
20690 #ifdef HAVE_NAMESPACES
20691 using namespace std;
20696 forward_iterator<int,int> t; return 0;
20701 rm -f conftest.$ac_objext
20702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20703 (eval $ac_compile) 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -s conftest.$ac_objext'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 ac_cv_cxx_have_fwd_iterator=yes
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20718 ac_cv_cxx_have_fwd_iterator=no
20720 rm -f conftest.$ac_objext conftest.$ac_ext
20722 ac_cpp='$CPP $CPPFLAGS'
20723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20729 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20730 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20731 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20733 cat >>confdefs.h <<\_ACEOF
20734 #define HAVE_FWD_ITERATOR
20740 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20741 # for constant arguments. Useless!
20742 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20743 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20744 if test "${ac_cv_working_alloca_h+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 cat >conftest.$ac_ext <<_ACEOF
20748 #line $LINENO "configure"
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20754 #include <alloca.h>
20758 char *p = (char *) alloca (2 * sizeof (int));
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20765 (eval $ac_link) 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
20769 { ac_try='test -s conftest$ac_exeext'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; }; then
20775 ac_cv_working_alloca_h=yes
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 ac_cv_working_alloca_h=no
20782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20784 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20785 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20786 if test $ac_cv_working_alloca_h = yes; then
20788 cat >>confdefs.h <<\_ACEOF
20789 #define HAVE_ALLOCA_H 1
20794 echo "$as_me:$LINENO: checking for alloca" >&5
20795 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20796 if test "${ac_cv_func_alloca_works+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 cat >conftest.$ac_ext <<_ACEOF
20800 #line $LINENO "configure"
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20807 # define alloca __builtin_alloca
20810 # include <malloc.h>
20811 # define alloca _alloca
20814 # include <alloca.h>
20819 # ifndef alloca /* predefined by HP cc +Olibcalls */
20830 char *p = (char *) alloca (1);
20835 rm -f conftest.$ac_objext conftest$ac_exeext
20836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20837 (eval $ac_link) 2>&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } &&
20841 { ac_try='test -s conftest$ac_exeext'
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; }; then
20847 ac_cv_func_alloca_works=yes
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 ac_cv_func_alloca_works=no
20854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20856 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20857 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20859 if test $ac_cv_func_alloca_works = yes; then
20861 cat >>confdefs.h <<\_ACEOF
20862 #define HAVE_ALLOCA 1
20866 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20867 # that cause trouble. Some versions do not even contain alloca or
20868 # contain a buggy version. If you still want to use their alloca,
20869 # use ar to extract alloca.o from them instead of compiling alloca.c.
20871 ALLOCA=alloca.$ac_objext
20873 cat >>confdefs.h <<\_ACEOF
20878 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20879 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20880 if test "${ac_cv_os_cray+set}" = set; then
20881 echo $ECHO_N "(cached) $ECHO_C" >&6
20883 cat >conftest.$ac_ext <<_ACEOF
20884 #line $LINENO "configure"
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20890 #if defined(CRAY) && ! defined(CRAY2)
20897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20898 $EGREP "webecray" >/dev/null 2>&1; then
20906 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20907 echo "${ECHO_T}$ac_cv_os_cray" >&6
20908 if test $ac_cv_os_cray = yes; then
20909 for ac_func in _getb67 GETB67 getb67; do
20910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20911 echo "$as_me:$LINENO: checking for $ac_func" >&5
20912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20913 if eval "test \"\${$as_ac_var+set}\" = set"; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 cat >conftest.$ac_ext <<_ACEOF
20917 #line $LINENO "configure"
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20923 /* System header to define __stub macros and hopefully few prototypes,
20924 which can conflict with char $ac_func (); below.
20925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20926 <limits.h> exists even on freestanding compilers. */
20928 # include <limits.h>
20930 # include <assert.h>
20932 /* Override any gcc2 internal prototype to avoid an error. */
20937 /* We use char because int might match the return type of a gcc2
20938 builtin and then its argument prototype would still apply. */
20940 /* The GNU C library defines this for functions which it implements
20941 to always fail with ENOSYS. Some functions are actually named
20942 something starting with __ and the normal name is an alias. */
20943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20946 char (*f) () = $ac_func;
20955 return f != $ac_func;
20960 rm -f conftest.$ac_objext conftest$ac_exeext
20961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20962 (eval $ac_link) 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } &&
20966 { ac_try='test -s conftest$ac_exeext'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 eval "$as_ac_var=yes"
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 eval "$as_ac_var=no"
20979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20983 if test `eval echo '${'$as_ac_var'}'` = yes; then
20985 cat >>confdefs.h <<_ACEOF
20986 #define CRAY_STACKSEG_END $ac_func
20995 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20996 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20997 if test "${ac_cv_c_stack_direction+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
21000 if test "$cross_compiling" = yes; then
21001 ac_cv_c_stack_direction=0
21003 cat >conftest.$ac_ext <<_ACEOF
21004 #line $LINENO "configure"
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21011 find_stack_direction ()
21013 static char *addr = 0;
21018 return find_stack_direction ();
21021 return (&dummy > addr) ? 1 : -1;
21027 exit (find_stack_direction () < 0);
21030 rm -f conftest$ac_exeext
21031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21032 (eval $ac_link) 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; }; then
21041 ac_cv_c_stack_direction=1
21043 echo "$as_me: program exited with status $ac_status" >&5
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21047 ( exit $ac_status )
21048 ac_cv_c_stack_direction=-1
21050 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21053 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21054 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21056 cat >>confdefs.h <<_ACEOF
21057 #define STACK_DIRECTION $ac_cv_c_stack_direction
21063 if test $ac_cv_c_compiler_gnu = yes; then
21064 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21065 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21066 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 ac_pattern="Autoconf.*'x'"
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. */
21080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21081 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21082 ac_cv_prog_gcc_traditional=yes
21084 ac_cv_prog_gcc_traditional=no
21089 if test $ac_cv_prog_gcc_traditional = no; then
21090 cat >conftest.$ac_ext <<_ACEOF
21091 #line $LINENO "configure"
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 #include <termio.h>
21100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21101 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21102 ac_cv_prog_gcc_traditional=yes
21108 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21109 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21110 if test $ac_cv_prog_gcc_traditional = yes; then
21111 CC="$CC -traditional"
21115 echo "$as_me:$LINENO: checking for working memcmp" >&5
21116 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21117 if test "${ac_cv_func_memcmp_working+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 if test "$cross_compiling" = yes; then
21121 ac_cv_func_memcmp_working=no
21123 cat >conftest.$ac_ext <<_ACEOF
21124 #line $LINENO "configure"
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21135 /* Some versions of memcmp are not 8-bit clean. */
21136 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21137 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21140 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21141 or more and with at least one buffer not starting on a 4-byte boundary.
21142 William Lewis provided this test program. */
21147 for (i = 0; i < 4; i++)
21151 strcpy (a, "--------01111111");
21152 strcpy (b, "--------10000000");
21153 if (memcmp (a, b, 16) >= 0)
21163 rm -f conftest$ac_exeext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21165 (eval $ac_link) 2>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; }; then
21174 ac_cv_func_memcmp_working=yes
21176 echo "$as_me: program exited with status $ac_status" >&5
21177 echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21180 ( exit $ac_status )
21181 ac_cv_func_memcmp_working=no
21183 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21186 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21187 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21188 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21192 for ac_header in stdlib.h unistd.h
21194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21196 echo "$as_me:$LINENO: checking for $ac_header" >&5
21197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21204 # Is the header compilable?
21205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21207 cat >conftest.$ac_ext <<_ACEOF
21208 #line $LINENO "configure"
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 $ac_includes_default
21215 #include <$ac_header>
21217 rm -f conftest.$ac_objext
21218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21219 (eval $ac_compile) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } &&
21223 { ac_try='test -s conftest.$ac_objext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_header_compiler=yes
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 ac_header_compiler=no
21236 rm -f conftest.$ac_objext conftest.$ac_ext
21237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21238 echo "${ECHO_T}$ac_header_compiler" >&6
21240 # Is the header present?
21241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21243 cat >conftest.$ac_ext <<_ACEOF
21244 #line $LINENO "configure"
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21250 #include <$ac_header>
21252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21255 grep -v '^ *+' conftest.er1 >conftest.err
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } >/dev/null; then
21260 if test -s conftest.err; then
21261 ac_cpp_err=$ac_c_preproc_warn_flag
21268 if test -z "$ac_cpp_err"; then
21269 ac_header_preproc=yes
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274 ac_header_preproc=no
21276 rm -f conftest.err conftest.$ac_ext
21277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21278 echo "${ECHO_T}$ac_header_preproc" >&6
21280 # So? What about this header?
21281 case $ac_header_compiler:$ac_header_preproc in
21283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21289 ## ------------------------------------ ##
21290 ## Report this to bug-autoconf@gnu.org. ##
21291 ## ------------------------------------ ##
21294 sed "s/^/$as_me: WARNING: /" >&2
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21305 ## ------------------------------------ ##
21306 ## Report this to bug-autoconf@gnu.org. ##
21307 ## ------------------------------------ ##
21310 sed "s/^/$as_me: WARNING: /" >&2
21313 echo "$as_me:$LINENO: checking for $ac_header" >&5
21314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 eval "$as_ac_Header=$ac_header_preproc"
21320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21325 cat >>confdefs.h <<_ACEOF
21326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21334 for ac_func in getpagesize
21336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21337 echo "$as_me:$LINENO: checking for $ac_func" >&5
21338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21339 if eval "test \"\${$as_ac_var+set}\" = set"; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21342 cat >conftest.$ac_ext <<_ACEOF
21343 #line $LINENO "configure"
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21349 /* System header to define __stub macros and hopefully few prototypes,
21350 which can conflict with char $ac_func (); below.
21351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21352 <limits.h> exists even on freestanding compilers. */
21354 # include <limits.h>
21356 # include <assert.h>
21358 /* Override any gcc2 internal prototype to avoid an error. */
21363 /* We use char because int might match the return type of a gcc2
21364 builtin and then its argument prototype would still apply. */
21366 /* The GNU C library defines this for functions which it implements
21367 to always fail with ENOSYS. Some functions are actually named
21368 something starting with __ and the normal name is an alias. */
21369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21372 char (*f) () = $ac_func;
21381 return f != $ac_func;
21386 rm -f conftest.$ac_objext conftest$ac_exeext
21387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21388 (eval $ac_link) 2>&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); } &&
21392 { ac_try='test -s conftest$ac_exeext'
21393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; }; then
21398 eval "$as_ac_var=yes"
21400 echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21403 eval "$as_ac_var=no"
21405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21409 if test `eval echo '${'$as_ac_var'}'` = yes; then
21410 cat >>confdefs.h <<_ACEOF
21411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21417 echo "$as_me:$LINENO: checking for working mmap" >&5
21418 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21419 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21422 if test "$cross_compiling" = yes; then
21423 ac_cv_func_mmap_fixed_mapped=no
21425 cat >conftest.$ac_ext <<_ACEOF
21426 #line $LINENO "configure"
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 $ac_includes_default
21433 /* malloc might have been renamed as rpl_malloc. */
21436 /* Thanks to Mike Haertel and Jim Avera for this test.
21437 Here is a matrix of mmap possibilities:
21438 mmap private not fixed
21439 mmap private fixed at somewhere currently unmapped
21440 mmap private fixed at somewhere already mapped
21441 mmap shared not fixed
21442 mmap shared fixed at somewhere currently unmapped
21443 mmap shared fixed at somewhere already mapped
21444 For private mappings, we should verify that changes cannot be read()
21445 back from the file, nor mmap's back from the file at a different
21446 address. (There have been systems where private was not correctly
21447 implemented like the infamous i386 svr4.0, and systems where the
21448 VM page cache was not coherent with the file system buffer cache
21449 like early versions of FreeBSD and possibly contemporary NetBSD.)
21450 For shared mappings, we should conversely verify that changes get
21451 propagated back to all the places they're supposed to be.
21453 Grep wants private fixed already mapped.
21454 The main things grep needs to know about mmap are:
21455 * does it exist and is it safe to write into the mmap'd area
21456 * how to use it (BSD variants) */
21459 #include <sys/mman.h>
21461 #if !STDC_HEADERS && !HAVE_STDLIB_H
21465 /* This mess was copied from the GNU getpagesize.h. */
21466 #if !HAVE_GETPAGESIZE
21467 /* Assume that all systems that can run configure have sys/param.h. */
21468 # if !HAVE_SYS_PARAM_H
21469 # define HAVE_SYS_PARAM_H 1
21472 # ifdef _SC_PAGESIZE
21473 # define getpagesize() sysconf(_SC_PAGESIZE)
21474 # else /* no _SC_PAGESIZE */
21475 # if HAVE_SYS_PARAM_H
21476 # include <sys/param.h>
21477 # ifdef EXEC_PAGESIZE
21478 # define getpagesize() EXEC_PAGESIZE
21479 # else /* no EXEC_PAGESIZE */
21481 # define getpagesize() NBPG * CLSIZE
21484 # endif /* no CLSIZE */
21485 # else /* no NBPG */
21487 # define getpagesize() NBPC
21488 # else /* no NBPC */
21490 # define getpagesize() PAGESIZE
21491 # endif /* PAGESIZE */
21492 # endif /* no NBPC */
21493 # endif /* no NBPG */
21494 # endif /* no EXEC_PAGESIZE */
21495 # else /* no HAVE_SYS_PARAM_H */
21496 # define getpagesize() 8192 /* punt totally */
21497 # endif /* no HAVE_SYS_PARAM_H */
21498 # endif /* no _SC_PAGESIZE */
21500 #endif /* no HAVE_GETPAGESIZE */
21505 char *data, *data2, *data3;
21509 pagesize = getpagesize ();
21511 /* First, make a file with some known garbage in it. */
21512 data = (char *) malloc (pagesize);
21515 for (i = 0; i < pagesize; ++i)
21516 *(data + i) = rand ();
21518 fd = creat ("conftest.mmap", 0600);
21521 if (write (fd, data, pagesize) != pagesize)
21525 /* Next, try to mmap the file at a fixed address which already has
21526 something else allocated at it. If we can, also make sure that
21527 we see the same garbage. */
21528 fd = open ("conftest.mmap", O_RDWR);
21531 data2 = (char *) malloc (2 * pagesize);
21534 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21535 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21536 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21538 for (i = 0; i < pagesize; ++i)
21539 if (*(data + i) != *(data2 + i))
21542 /* Finally, make sure that changes to the mapped area do not
21543 percolate back to the file as seen by read(). (This is a bug on
21544 some variants of i386 svr4.0.) */
21545 for (i = 0; i < pagesize; ++i)
21546 *(data2 + i) = *(data2 + i) + 1;
21547 data3 = (char *) malloc (pagesize);
21550 if (read (fd, data3, pagesize) != pagesize)
21552 for (i = 0; i < pagesize; ++i)
21553 if (*(data + i) != *(data3 + i))
21559 rm -f conftest$ac_exeext
21560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21561 (eval $ac_link) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; }; then
21570 ac_cv_func_mmap_fixed_mapped=yes
21572 echo "$as_me: program exited with status $ac_status" >&5
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ( exit $ac_status )
21577 ac_cv_func_mmap_fixed_mapped=no
21579 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21582 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21583 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21584 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21586 cat >>confdefs.h <<\_ACEOF
21587 #define HAVE_MMAP 1
21591 rm -f conftest.mmap
21593 echo "$as_me:$LINENO: checking for mmap of files" >&5
21594 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21595 if test "${ac_cv_func_mmap_file+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21601 ac_cpp='$CPP $CPPFLAGS'
21602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21606 if test "$cross_compiling" = yes; then
21607 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21608 See \`config.log' for more details." >&5
21609 echo "$as_me: error: cannot run test program while cross compiling
21610 See \`config.log' for more details." >&2;}
21611 { (exit 1); exit 1; }; }
21613 cat >conftest.$ac_ext <<_ACEOF
21614 #line $LINENO "configure"
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21621 #ifdef HAVE_SYS_MMAN_H
21622 #include <sys/mman.h>
21625 #ifdef HAVE_SYS_TYPES_H
21626 #include <sys/types.h>
21629 #ifdef HAVE_FCNTL_H
21635 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21637 rm -f conftest$ac_exeext
21638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21639 (eval $ac_link) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_cv_func_mmap_file=yes
21650 echo "$as_me: program exited with status $ac_status" >&5
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21654 ( exit $ac_status )
21655 ac_cv_func_mmap_file=no
21657 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21660 ac_cpp='$CPP $CPPFLAGS'
21661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21667 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21668 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21669 if test "$ac_cv_func_mmap_file" = yes; then
21670 cat >>confdefs.h <<\_ACEOF
21671 #define HAVE_MMAP_FILE 1
21678 if test ${ac_cv_func_mmap_file} = "no"
21680 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21681 echo "$as_me: error: mmap() of files required but not found" >&2;}
21682 { (exit 1); exit 1; }; }
21684 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21685 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21686 if test "${ac_cv_header_mmap_anon+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 ac_cpp='$CPP $CPPFLAGS'
21693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21697 cat >conftest.$ac_ext <<_ACEOF
21698 #line $LINENO "configure"
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 #include <sys/mman.h>
21705 #include <unistd.h>
21710 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21715 rm -f conftest.$ac_objext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717 (eval $ac_compile) 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
21721 { ac_try='test -s conftest.$ac_objext'
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; }; then
21727 ac_cv_header_mmap_anon=yes
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21732 ac_cv_header_mmap_anon=no
21734 rm -f conftest.$ac_objext conftest.$ac_ext
21736 ac_cpp='$CPP $CPPFLAGS'
21737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21743 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21744 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21745 if test "$ac_cv_header_mmap_anon" = yes; then
21746 cat >>confdefs.h <<\_ACEOF
21747 #define HAVE_MMAP_ANONYMOUS 1
21752 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21753 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21754 if test "${ac_cv_type_signal+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21757 cat >conftest.$ac_ext <<_ACEOF
21758 #line $LINENO "configure"
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h. */
21764 #include <sys/types.h>
21765 #include <signal.h>
21770 extern "C" void (*signal (int, void (*)(int)))(int);
21772 void (*signal ()) ();
21783 rm -f conftest.$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785 (eval $ac_compile) 2>&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } &&
21789 { ac_try='test -s conftest.$ac_objext'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 ac_cv_type_signal=void
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 ac_cv_type_signal=int
21802 rm -f conftest.$ac_objext conftest.$ac_ext
21804 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21805 echo "${ECHO_T}$ac_cv_type_signal" >&6
21807 cat >>confdefs.h <<_ACEOF
21808 #define RETSIGTYPE $ac_cv_type_signal
21821 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21824 echo "$as_me:$LINENO: checking for $ac_func" >&5
21825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21826 if eval "test \"\${$as_ac_var+set}\" = set"; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 cat >conftest.$ac_ext <<_ACEOF
21830 #line $LINENO "configure"
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21836 /* System header to define __stub macros and hopefully few prototypes,
21837 which can conflict with char $ac_func (); below.
21838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21839 <limits.h> exists even on freestanding compilers. */
21841 # include <limits.h>
21843 # include <assert.h>
21845 /* Override any gcc2 internal prototype to avoid an error. */
21850 /* We use char because int might match the return type of a gcc2
21851 builtin and then its argument prototype would still apply. */
21853 /* The GNU C library defines this for functions which it implements
21854 to always fail with ENOSYS. Some functions are actually named
21855 something starting with __ and the normal name is an alias. */
21856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21859 char (*f) () = $ac_func;
21868 return f != $ac_func;
21873 rm -f conftest.$ac_objext conftest$ac_exeext
21874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21875 (eval $ac_link) 2>&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
21879 { ac_try='test -s conftest$ac_exeext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 eval "$as_ac_var=yes"
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 eval "$as_ac_var=no"
21892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21896 if test `eval echo '${'$as_ac_var'}'` = yes; then
21897 cat >>confdefs.h <<_ACEOF
21898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21906 echo "$as_me:$LINENO: checking for mmap" >&5
21907 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21908 if test "${ac_cv_func_mmap+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21911 cat >conftest.$ac_ext <<_ACEOF
21912 #line $LINENO "configure"
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 /* System header to define __stub macros and hopefully few prototypes,
21919 which can conflict with char mmap (); below.
21920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21921 <limits.h> exists even on freestanding compilers. */
21923 # include <limits.h>
21925 # include <assert.h>
21927 /* Override any gcc2 internal prototype to avoid an error. */
21932 /* We use char because int might match the return type of a gcc2
21933 builtin and then its argument prototype would still apply. */
21935 /* The GNU C library defines this for functions which it implements
21936 to always fail with ENOSYS. Some functions are actually named
21937 something starting with __ and the normal name is an alias. */
21938 #if defined (__stub_mmap) || defined (__stub___mmap)
21941 char (*f) () = mmap;
21955 rm -f conftest.$ac_objext conftest$ac_exeext
21956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21957 (eval $ac_link) 2>&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
21961 { ac_try='test -s conftest$ac_exeext'
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; }; then
21967 ac_cv_func_mmap=yes
21969 echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21976 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21977 echo "${ECHO_T}$ac_cv_func_mmap" >&6
21978 if test $ac_cv_func_mmap = yes; then
21981 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21982 echo "$as_me: error: Function mmap() required but not found" >&2;}
21983 { (exit 1); exit 1; }; }
21986 echo "$as_me:$LINENO: checking for mprotect" >&5
21987 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21988 if test "${ac_cv_func_mprotect+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21991 cat >conftest.$ac_ext <<_ACEOF
21992 #line $LINENO "configure"
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h. */
21998 /* System header to define __stub macros and hopefully few prototypes,
21999 which can conflict with char mprotect (); below.
22000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22001 <limits.h> exists even on freestanding compilers. */
22003 # include <limits.h>
22005 # include <assert.h>
22007 /* Override any gcc2 internal prototype to avoid an error. */
22012 /* We use char because int might match the return type of a gcc2
22013 builtin and then its argument prototype would still apply. */
22015 /* The GNU C library defines this for functions which it implements
22016 to always fail with ENOSYS. Some functions are actually named
22017 something starting with __ and the normal name is an alias. */
22018 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22021 char (*f) () = mprotect;
22030 return f != mprotect;
22035 rm -f conftest.$ac_objext conftest$ac_exeext
22036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22037 (eval $ac_link) 2>&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -s conftest$ac_exeext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 ac_cv_func_mprotect=yes
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ac_cv_func_mprotect=no
22054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22056 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22057 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22058 if test $ac_cv_func_mprotect = yes; then
22061 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22062 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22063 { (exit 1); exit 1; }; }
22068 # Check whether --enable-purify or --disable-purify was given.
22069 if test "${enable_purify+set}" = set; then
22070 enableval="$enable_purify"
22075 if test ${enableval} = "no"
22080 ENABLE_PURIFY=ENABLE_PURIFY=1
22084 # Check whether --enable-optimized or --disable-optimized was given.
22085 if test "${enable_optimized+set}" = set; then
22086 enableval="$enable_optimized"
22091 if test ${enableval} = "no"
22096 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22100 # Check whether --enable-spec or --disable-spec was given.
22101 if test "${enable_spec+set}" = set; then
22102 enableval="$enable_spec"
22107 if test ${enableval} = "no"
22112 USE_SPEC=USE_SPEC=1
22116 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22117 if test "${enable_precompiled_bytecode+set}" = set; then
22118 enableval="$enable_precompiled_bytecode"
22123 if test ${enableval} = "no"
22128 UPB=USE_PRECOMPILED_BYTECODE=1
22133 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22134 if test "${enable_llc_diffs+set}" = set; then
22135 enableval="$enable_llc_diffs"
22140 if test ${enableval} = "no"
22142 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22149 # Check whether --enable-jit or --disable-jit was given.
22150 if test "${enable_jit+set}" = set; then
22151 enableval="$enable_jit"
22157 if test ${enableval} = "no"
22164 JIT=TARGET_HAS_JIT=1
22168 JIT=TARGET_HAS_JIT=1
22180 # Check whether --with-spec or --without-spec was given.
22181 if test "${with_spec+set}" = set; then
22182 withval="$with_spec"
22186 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22191 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22192 if test "${with_llvmgccdir+set}" = set; then
22193 withval="$with_llvmgccdir"
22194 LLVMGCCDIR=$withval
22199 # Check whether --with-bcrepos or --without-bcrepos was given.
22200 if test "${with_bcrepos+set}" = set; then
22201 withval="$with_bcrepos"
22205 BCR=/home/vadve/lattner/LLVMPrograms
22210 # Check whether --with-papi or --without-papi was given.
22211 if test "${with_papi+set}" = set; then
22212 withval="$with_papi"
22216 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22221 # Check whether --with-purify or --without-purify was given.
22222 if test "${with_purify+set}" = set; then
22223 withval="$with_purify"
22230 if test -d /localhome/${USER}
22232 OBJROOT=/localhome/${USER}
22244 # Check whether --with-objroot or --without-objroot was given.
22245 if test "${with_objroot+set}" = set; then
22246 withval="$with_objroot"
22252 ac_config_files="$ac_config_files Makefile.config"
22253 cat >confcache <<\_ACEOF
22254 # This file is a shell script that caches the results of configure
22255 # tests run on this system so they can be shared between configure
22256 # scripts and configure runs, see configure's option --config-cache.
22257 # It is not useful on other systems. If it contains results you don't
22258 # want to keep, you may remove or edit it.
22260 # config.status only pays attention to the cache file if you give it
22261 # the --recheck option to rerun configure.
22263 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22264 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22265 # following values.
22269 # The following way of writing the cache mishandles newlines in values,
22270 # but we know of no workaround that is simple, portable, and efficient.
22271 # So, don't put newlines in cache variables' values.
22272 # Ultrix sh set writes to stderr and can't be redirected directly,
22273 # and sets the high bit in the cache file unless we assign to the vars.
22276 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22278 # `set' does not quote correctly, so add quotes (double-quote
22279 # substitution turns \\\\ into \\, and sed turns \\ into \).
22282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22285 # `set' quotes correctly as required by POSIX, so do not add quotes.
22287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22294 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22296 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22298 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22299 if test -w $cache_file; then
22300 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22301 cat confcache >$cache_file
22303 echo "not updating unwritable cache $cache_file"
22308 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22309 # Let make expand exec_prefix.
22310 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22312 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22313 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22314 # trailing colons and then remove the whole line if VPATH becomes empty
22315 # (actually we leave an empty line to preserve line numbers).
22316 if test "x$srcdir" = x.; then
22317 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22318 s/:*\$(srcdir):*/:/;
22319 s/:*\${srcdir}:*/:/;
22321 s/^\([^=]*=[ ]*\):*/\1/;
22327 DEFS=-DHAVE_CONFIG_H
22331 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22332 # 1. Remove the extension, and $U if already installed.
22333 ac_i=`echo "$ac_i" |
22334 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22336 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22337 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22339 LIBOBJS=$ac_libobjs
22341 LTLIBOBJS=$ac_ltlibobjs
22345 : ${CONFIG_STATUS=./config.status}
22346 ac_clean_files_save=$ac_clean_files
22347 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22348 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22349 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22350 cat >$CONFIG_STATUS <<_ACEOF
22352 # Generated by $as_me.
22353 # Run this file to recreate the current configuration.
22354 # Compiler output produced by configure, useful for debugging
22355 # configure, is in config.log if it exists.
22358 ac_cs_recheck=false
22360 SHELL=\${CONFIG_SHELL-$SHELL}
22363 cat >>$CONFIG_STATUS <<\_ACEOF
22364 ## --------------------- ##
22365 ## M4sh Initialization. ##
22366 ## --------------------- ##
22368 # Be Bourne compatible
22369 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22372 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22373 # is contrary to our usage. Disable this feature.
22374 alias -g '${1+"$@"}'='"$@"'
22375 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22379 # Support unset when possible.
22380 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22387 # Work around bugs in pre-3.0 UWIN ksh.
22388 $as_unset ENV MAIL MAILPATH
22395 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22396 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22397 LC_TELEPHONE LC_TIME
22399 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22400 eval $as_var=C; export $as_var
22406 # Required to use basename.
22407 if expr a : '\(a\)' >/dev/null 2>&1; then
22413 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22414 as_basename=basename
22420 # Name of the executable.
22421 as_me=`$as_basename "$0" ||
22422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22423 X"$0" : 'X\(//\)$' \| \
22424 X"$0" : 'X\(/\)$' \| \
22425 . : '\(.\)' 2>/dev/null ||
22427 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22428 /^X\/\(\/\/\)$/{ s//\1/; q; }
22429 /^X\/\(\/\).*/{ s//\1/; q; }
22433 # PATH needs CR, and LINENO needs CR and PATH.
22434 # Avoid depending upon Character Ranges.
22435 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22436 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22437 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22438 as_cr_digits='0123456789'
22439 as_cr_alnum=$as_cr_Letters$as_cr_digits
22441 # The user is always right.
22442 if test "${PATH_SEPARATOR+set}" != set; then
22443 echo "#! /bin/sh" >conf$$.sh
22444 echo "exit 0" >>conf$$.sh
22446 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22455 as_lineno_1=$LINENO
22456 as_lineno_2=$LINENO
22457 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22458 test "x$as_lineno_1" != "x$as_lineno_2" &&
22459 test "x$as_lineno_3" = "x$as_lineno_2" || {
22460 # Find who we are. Look in the path if we contain no path at all
22463 *[\\/]* ) as_myself=$0 ;;
22464 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22465 for as_dir in $PATH
22468 test -z "$as_dir" && as_dir=.
22469 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22474 # We did not find ourselves, most probably we were run as `sh COMMAND'
22475 # in which case we are not to be found in the path.
22476 if test "x$as_myself" = x; then
22479 if test ! -f "$as_myself"; then
22480 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22481 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22482 { (exit 1); exit 1; }; }
22484 case $CONFIG_SHELL in
22486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22487 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22490 test -z "$as_dir" && as_dir=.
22491 for as_base in sh bash ksh sh5; do
22494 if ("$as_dir/$as_base" -c '
22495 as_lineno_1=$LINENO
22496 as_lineno_2=$LINENO
22497 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22498 test "x$as_lineno_1" != "x$as_lineno_2" &&
22499 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22500 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22501 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22502 CONFIG_SHELL=$as_dir/$as_base
22503 export CONFIG_SHELL
22504 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22512 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22513 # uniformly replaced by the line number. The first 'sed' inserts a
22514 # line-number line before each line; the second 'sed' does the real
22515 # work. The second script uses 'N' to pair each line-number line
22516 # with the numbered line, and appends trailing '-' during
22517 # substitution so that $LINENO is not a special case at line end.
22518 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22519 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22520 sed '=' <$as_myself |
22525 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22528 s,^['$as_cr_digits']*\n,,
22529 ' >$as_me.lineno &&
22530 chmod +x $as_me.lineno ||
22531 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22532 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22533 { (exit 1); exit 1; }; }
22535 # Don't try to exec as it changes $[0], causing all sort of problems
22536 # (the dirname of $[0] is not the place where we might find the
22537 # original and so on. Autoconf is especially sensible to this).
22539 # Exit status is that of the last command.
22544 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22545 *c*,-n*) ECHO_N= ECHO_C='
22547 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22548 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22551 if expr a : '\(a\)' >/dev/null 2>&1; then
22557 rm -f conf$$ conf$$.exe conf$$.file
22559 if ln -s conf$$.file conf$$ 2>/dev/null; then
22560 # We could just check for DJGPP; but this test a) works b) is more generic
22561 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22562 if test -f conf$$.exe; then
22563 # Don't use ln at all; we don't have any links
22568 elif ln conf$$.file conf$$ 2>/dev/null; then
22573 rm -f conf$$ conf$$.exe conf$$.file
22575 if mkdir -p . 2>/dev/null; then
22581 as_executable_p="test -f"
22583 # Sed expression to map a string onto a valid CPP name.
22584 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22586 # Sed expression to map a string onto a valid variable name.
22587 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22591 # We need space, tab and new line, in precisely that order.
22601 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22602 # report actual input values of CONFIG_FILES etc. instead of their
22603 # values after options handling. Logging --version etc. is OK.
22607 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22608 ## Running $as_me. ##
22613 This file was extended by [LLVM] $as_me [1.0], which was
22614 generated by GNU Autoconf 2.57. Invocation command line was
22616 CONFIG_FILES = $CONFIG_FILES
22617 CONFIG_HEADERS = $CONFIG_HEADERS
22618 CONFIG_LINKS = $CONFIG_LINKS
22619 CONFIG_COMMANDS = $CONFIG_COMMANDS
22623 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22627 # Files that config.status was made for.
22628 if test -n "$ac_config_files"; then
22629 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22632 if test -n "$ac_config_headers"; then
22633 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22636 if test -n "$ac_config_links"; then
22637 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22640 if test -n "$ac_config_commands"; then
22641 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22644 cat >>$CONFIG_STATUS <<\_ACEOF
22647 \`$as_me' instantiates files from templates according to the
22648 current configuration.
22650 Usage: $0 [OPTIONS] [FILE]...
22652 -h, --help print this help, then exit
22653 -V, --version print version number, then exit
22654 -q, --quiet do not print progress messages
22655 -d, --debug don't remove temporary files
22656 --recheck update $as_me by reconfiguring in the same conditions
22657 --file=FILE[:TEMPLATE]
22658 instantiate the configuration file FILE
22659 --header=FILE[:TEMPLATE]
22660 instantiate the configuration header FILE
22662 Configuration files:
22665 Configuration headers:
22668 Report bugs to <bug-autoconf@gnu.org>."
22671 cat >>$CONFIG_STATUS <<_ACEOF
22673 [LLVM] config.status [1.0]
22674 configured by $0, generated by GNU Autoconf 2.57,
22675 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22677 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22678 Free Software Foundation, Inc.
22679 This config.status script is free software; the Free Software Foundation
22680 gives unlimited permission to copy, distribute and modify it."
22685 cat >>$CONFIG_STATUS <<\_ACEOF
22686 # If no file are specified by the user, then we need to provide default
22687 # value. By we need to know if files were specified by the user.
22693 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22694 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22702 *) # This is not an option, so the user has probably given explicit
22705 ac_need_defaults=false;;
22709 # Handling of the options.
22711 cat >>$CONFIG_STATUS <<\_ACEOF
22712 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22714 --version | --vers* | -V )
22715 echo "$ac_cs_version"; exit 0 ;;
22717 # Conflict between --help and --header
22718 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22719 Try \`$0 --help' for more information." >&5
22720 echo "$as_me: error: ambiguous option: $1
22721 Try \`$0 --help' for more information." >&2;}
22722 { (exit 1); exit 1; }; };;
22723 --help | --hel | -h )
22724 echo "$ac_cs_usage"; exit 0 ;;
22725 --debug | --d* | -d )
22727 --file | --fil | --fi | --f )
22729 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22730 ac_need_defaults=false;;
22731 --header | --heade | --head | --hea )
22733 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22734 ac_need_defaults=false;;
22735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22736 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22739 # This is an error.
22740 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22741 Try \`$0 --help' for more information." >&5
22742 echo "$as_me: error: unrecognized option: $1
22743 Try \`$0 --help' for more information." >&2;}
22744 { (exit 1); exit 1; }; } ;;
22746 *) ac_config_targets="$ac_config_targets $1" ;;
22752 ac_configure_extra_args=
22754 if $ac_cs_silent; then
22756 ac_configure_extra_args="$ac_configure_extra_args --silent"
22760 cat >>$CONFIG_STATUS <<_ACEOF
22761 if \$ac_cs_recheck; then
22762 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22763 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22772 cat >>$CONFIG_STATUS <<\_ACEOF
22773 for ac_config_target in $ac_config_targets
22775 case "$ac_config_target" in
22776 # Handling of arguments.
22777 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22778 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22779 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22780 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22781 { (exit 1); exit 1; }; };;
22785 # If the user did not use the arguments to specify the items to instantiate,
22786 # then the envvar interface is used. Set only those that are not.
22787 # We use the long form for the default assignment because of an extremely
22788 # bizarre bug on SunOS 4.1.3.
22789 if $ac_need_defaults; then
22790 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22791 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22794 # Have a temporary directory for convenience. Make it in the build tree
22795 # simply because there is no reason to put it here, and in addition,
22796 # creating and moving files from /tmp can sometimes cause problems.
22797 # Create a temporary directory, and hook for its removal unless debugging.
22800 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22801 trap '{ (exit 1); exit 1; }' 1 2 13 15
22804 # Create a (secure) tmp directory for tmp files.
22807 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22808 test -n "$tmp" && test -d "$tmp"
22811 tmp=./confstat$$-$RANDOM
22812 (umask 077 && mkdir $tmp)
22815 echo "$me: cannot create a temporary directory in ." >&2
22816 { (exit 1); exit 1; }
22821 cat >>$CONFIG_STATUS <<_ACEOF
22824 # CONFIG_FILES section.
22827 # No need to generate the scripts if there are no CONFIG_FILES.
22828 # This happens for instance when ./config.status config.h
22829 if test -n "\$CONFIG_FILES"; then
22830 # Protect against being on the right side of a sed subst in config.status.
22831 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22832 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22833 s,@SHELL@,$SHELL,;t t
22834 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22835 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22836 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22837 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22838 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22839 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22840 s,@exec_prefix@,$exec_prefix,;t t
22841 s,@prefix@,$prefix,;t t
22842 s,@program_transform_name@,$program_transform_name,;t t
22843 s,@bindir@,$bindir,;t t
22844 s,@sbindir@,$sbindir,;t t
22845 s,@libexecdir@,$libexecdir,;t t
22846 s,@datadir@,$datadir,;t t
22847 s,@sysconfdir@,$sysconfdir,;t t
22848 s,@sharedstatedir@,$sharedstatedir,;t t
22849 s,@localstatedir@,$localstatedir,;t t
22850 s,@libdir@,$libdir,;t t
22851 s,@includedir@,$includedir,;t t
22852 s,@oldincludedir@,$oldincludedir,;t t
22853 s,@infodir@,$infodir,;t t
22854 s,@mandir@,$mandir,;t t
22855 s,@build_alias@,$build_alias,;t t
22856 s,@host_alias@,$host_alias,;t t
22857 s,@target_alias@,$target_alias,;t t
22858 s,@DEFS@,$DEFS,;t t
22859 s,@ECHO_C@,$ECHO_C,;t t
22860 s,@ECHO_N@,$ECHO_N,;t t
22861 s,@ECHO_T@,$ECHO_T,;t t
22862 s,@LIBS@,$LIBS,;t t
22863 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22864 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22865 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22866 s,@build@,$build,;t t
22867 s,@build_cpu@,$build_cpu,;t t
22868 s,@build_vendor@,$build_vendor,;t t
22869 s,@build_os@,$build_os,;t t
22870 s,@host@,$host,;t t
22871 s,@host_cpu@,$host_cpu,;t t
22872 s,@host_vendor@,$host_vendor,;t t
22873 s,@host_os@,$host_os,;t t
22874 s,@target@,$target,;t t
22875 s,@target_cpu@,$target_cpu,;t t
22876 s,@target_vendor@,$target_vendor,;t t
22877 s,@target_os@,$target_os,;t t
22879 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22880 s,@ARCH@,$ARCH,;t t
22882 s,@CXXFLAGS@,$CXXFLAGS,;t t
22883 s,@LDFLAGS@,$LDFLAGS,;t t
22884 s,@CPPFLAGS@,$CPPFLAGS,;t t
22885 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22886 s,@EXEEXT@,$EXEEXT,;t t
22887 s,@OBJEXT@,$OBJEXT,;t t
22889 s,@CFLAGS@,$CFLAGS,;t t
22890 s,@ac_ct_CC@,$ac_ct_CC,;t t
22892 s,@ifGNUmake@,$ifGNUmake,;t t
22894 s,@LEXLIB@,$LEXLIB,;t t
22895 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22896 s,@YACC@,$YACC,;t t
22897 s,@EGREP@,$EGREP,;t t
22898 s,@LN_S@,$LN_S,;t t
22899 s,@ECHO@,$ECHO,;t t
22901 s,@ac_ct_AR@,$ac_ct_AR,;t t
22902 s,@RANLIB@,$RANLIB,;t t
22903 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22904 s,@STRIP@,$STRIP,;t t
22905 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22906 s,@CXXCPP@,$CXXCPP,;t t
22908 s,@FFLAGS@,$FFLAGS,;t t
22909 s,@ac_ct_F77@,$ac_ct_F77,;t t
22910 s,@LIBTOOL@,$LIBTOOL,;t t
22911 s,@RPWD@,$RPWD,;t t
22914 s,@MKDIR@,$MKDIR,;t t
22915 s,@DATE@,$DATE,;t t
22918 s,@ETAGS@,$ETAGS,;t t
22919 s,@PURIFY@,$PURIFY,;t t
22920 s,@PYTHON@,$PYTHON,;t t
22921 s,@QMTEST@,$QMTEST,;t t
22922 s,@ALLOCA@,$ALLOCA,;t t
22923 s,@LIBOBJS@,$LIBOBJS,;t t
22924 s,@MMAP_FILE@,$MMAP_FILE,;t t
22925 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
22926 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22927 s,@USE_SPEC@,$USE_SPEC,;t t
22929 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22931 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22933 s,@PAPIDIR@,$PAPIDIR,;t t
22934 s,@OBJROOT@,$OBJROOT,;t t
22935 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22940 cat >>$CONFIG_STATUS <<\_ACEOF
22941 # Split the substitutions into bite-sized pieces for seds with
22942 # small command number limits, like on Digital OSF/1 and HP-UX.
22943 ac_max_sed_lines=48
22944 ac_sed_frag=1 # Number of current file.
22945 ac_beg=1 # First line for current file.
22946 ac_end=$ac_max_sed_lines # Line after last line for current file.
22949 while $ac_more_lines; do
22950 if test $ac_beg -gt 1; then
22951 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22953 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22955 if test ! -s $tmp/subs.frag; then
22956 ac_more_lines=false
22958 # The purpose of the label and of the branching condition is to
22959 # speed up the sed processing (if there are no `@' at all, there
22960 # is no need to browse any of the substitutions).
22961 # These are the two extra sed commands mentioned above.
22963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22964 if test -z "$ac_sed_cmds"; then
22965 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22967 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22969 ac_sed_frag=`expr $ac_sed_frag + 1`
22971 ac_end=`expr $ac_end + $ac_max_sed_lines`
22974 if test -z "$ac_sed_cmds"; then
22977 fi # test -n "$CONFIG_FILES"
22980 cat >>$CONFIG_STATUS <<\_ACEOF
22981 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22984 - | *:- | *:-:* ) # input from stdin
22986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22990 * ) ac_file_in=$ac_file.in ;;
22993 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22994 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22996 X"$ac_file" : 'X\(//\)[^/]' \| \
22997 X"$ac_file" : 'X\(//\)$' \| \
22998 X"$ac_file" : 'X\(/\)' \| \
22999 . : '\(.\)' 2>/dev/null ||
23001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23003 /^X\(\/\/\)$/{ s//\1/; q; }
23004 /^X\(\/\).*/{ s//\1/; q; }
23006 { if $as_mkdir_p; then
23011 while test ! -d "$as_dir"; do
23012 as_dirs="$as_dir $as_dirs"
23013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23015 X"$as_dir" : 'X\(//\)[^/]' \| \
23016 X"$as_dir" : 'X\(//\)$' \| \
23017 X"$as_dir" : 'X\(/\)' \| \
23018 . : '\(.\)' 2>/dev/null ||
23020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23022 /^X\(\/\/\)$/{ s//\1/; q; }
23023 /^X\(\/\).*/{ s//\1/; q; }
23026 test ! -n "$as_dirs" || mkdir $as_dirs
23027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23029 { (exit 1); exit 1; }; }; }
23033 if test "$ac_dir" != .; then
23034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23035 # A "../" for each directory in $ac_dir_suffix.
23036 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23038 ac_dir_suffix= ac_top_builddir=
23042 .) # No --srcdir option. We are building in place.
23044 if test -z "$ac_top_builddir"; then
23047 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23049 [\\/]* | ?:[\\/]* ) # Absolute path.
23050 ac_srcdir=$srcdir$ac_dir_suffix;
23051 ac_top_srcdir=$srcdir ;;
23052 *) # Relative path.
23053 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23054 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23056 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23058 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23059 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23060 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23061 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23066 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23069 if test x"$ac_file" != x-; then
23070 { echo "$as_me:$LINENO: creating $ac_file" >&5
23071 echo "$as_me: creating $ac_file" >&6;}
23074 # Let's still pretend it is `configure' which instantiates (i.e., don't
23075 # use $as_me), people would be surprised to read:
23076 # /* config.h. Generated by config.status. */
23077 if test x"$ac_file" = x-; then
23080 configure_input="$ac_file. "
23082 configure_input=$configure_input"Generated from `echo $ac_file_in |
23083 sed 's,.*/,,'` by configure."
23085 # First look for the input files in the build tree, otherwise in the
23087 ac_file_inputs=`IFS=:
23088 for f in $ac_file_in; do
23090 -) echo $tmp/stdin ;;
23092 # Absolute (can't be DOS-style, as IFS=:)
23093 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23094 echo "$as_me: error: cannot find input file: $f" >&2;}
23095 { (exit 1); exit 1; }; }
23098 if test -f "$f"; then
23101 elif test -f "$srcdir/$f"; then
23106 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23107 echo "$as_me: error: cannot find input file: $f" >&2;}
23108 { (exit 1); exit 1; }; }
23111 done` || { (exit 1); exit 1; }
23113 cat >>$CONFIG_STATUS <<_ACEOF
23117 cat >>$CONFIG_STATUS <<\_ACEOF
23119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23120 s,@configure_input@,$configure_input,;t t
23121 s,@srcdir@,$ac_srcdir,;t t
23122 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23123 s,@top_srcdir@,$ac_top_srcdir,;t t
23124 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23125 s,@builddir@,$ac_builddir,;t t
23126 s,@abs_builddir@,$ac_abs_builddir,;t t
23127 s,@top_builddir@,$ac_top_builddir,;t t
23128 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23129 s,@INSTALL@,$ac_INSTALL,;t t
23130 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23132 if test x"$ac_file" != x-; then
23133 mv $tmp/out $ac_file
23141 cat >>$CONFIG_STATUS <<\_ACEOF
23144 # CONFIG_HEADER section.
23147 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23148 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23150 # ac_d sets the value in "#define NAME VALUE" lines.
23151 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23152 ac_dB='[ ].*$,\1#\2'
23155 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23156 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23157 ac_uB='$,\1#\2define\3'
23161 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23164 - | *:- | *:-:* ) # input from stdin
23166 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23168 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23169 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23170 * ) ac_file_in=$ac_file.in ;;
23173 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23174 echo "$as_me: creating $ac_file" >&6;}
23176 # First look for the input files in the build tree, otherwise in the
23178 ac_file_inputs=`IFS=:
23179 for f in $ac_file_in; do
23181 -) echo $tmp/stdin ;;
23183 # Absolute (can't be DOS-style, as IFS=:)
23184 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23185 echo "$as_me: error: cannot find input file: $f" >&2;}
23186 { (exit 1); exit 1; }; }
23189 if test -f "$f"; then
23192 elif test -f "$srcdir/$f"; then
23197 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23198 echo "$as_me: error: cannot find input file: $f" >&2;}
23199 { (exit 1); exit 1; }; }
23202 done` || { (exit 1); exit 1; }
23203 # Remove the trailing spaces.
23204 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23208 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23209 # `conftest.undefs', that substitutes the proper values into
23210 # config.h.in to produce config.h. The first handles `#define'
23211 # templates, and the second `#undef' templates.
23212 # And first: Protect against being on the right side of a sed subst in
23213 # config.status. Protect against being in an unquoted here document
23214 # in config.status.
23215 rm -f conftest.defines conftest.undefs
23216 # Using a here document instead of a string reduces the quoting nightmare.
23217 # Putting comments in sed scripts is not portable.
23219 # `end' is used to avoid that the second main sed command (meant for
23220 # 0-ary CPP macros) applies to n-ary macro definitions.
23221 # See the Autoconf documentation for `clear'.
23222 cat >confdef2sed.sed <<\_ACEOF
23227 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23229 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23232 # If some macros were called several times there might be several times
23233 # the same #defines, which is useless. Nevertheless, we may not want to
23234 # sort them, since we want the *last* AC-DEFINE to be honored.
23235 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23236 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23237 rm -f confdef2sed.sed
23239 # This sed command replaces #undef with comments. This is necessary, for
23240 # example, in the case of _POSIX_SOURCE, which is predefined and required
23241 # on some systems where configure will not decide to define it.
23242 cat >>conftest.undefs <<\_ACEOF
23243 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23246 # Break up conftest.defines because some shells have a limit on the size
23247 # of here documents, and old seds have small limits too (100 cmds).
23248 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23249 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23250 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23251 echo ' :' >>$CONFIG_STATUS
23252 rm -f conftest.tail
23253 while grep . conftest.defines >/dev/null
23255 # Write a limited-size here document to $tmp/defines.sed.
23256 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23257 # Speed up: don't consider the non `#define' lines.
23258 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23259 # Work around the forget-to-reset-the-flag bug.
23260 echo 't clr' >>$CONFIG_STATUS
23261 echo ': clr' >>$CONFIG_STATUS
23262 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23264 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23266 mv $tmp/out $tmp/in
23268 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23269 rm -f conftest.defines
23270 mv conftest.tail conftest.defines
23272 rm -f conftest.defines
23273 echo ' fi # grep' >>$CONFIG_STATUS
23274 echo >>$CONFIG_STATUS
23276 # Break up conftest.undefs because some shells have a limit on the size
23277 # of here documents, and old seds have small limits too (100 cmds).
23278 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23279 rm -f conftest.tail
23280 while grep . conftest.undefs >/dev/null
23282 # Write a limited-size here document to $tmp/undefs.sed.
23283 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23284 # Speed up: don't consider the non `#undef'
23285 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23286 # Work around the forget-to-reset-the-flag bug.
23287 echo 't clr' >>$CONFIG_STATUS
23288 echo ': clr' >>$CONFIG_STATUS
23289 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23291 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23293 mv $tmp/out $tmp/in
23295 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23296 rm -f conftest.undefs
23297 mv conftest.tail conftest.undefs
23299 rm -f conftest.undefs
23301 cat >>$CONFIG_STATUS <<\_ACEOF
23302 # Let's still pretend it is `configure' which instantiates (i.e., don't
23303 # use $as_me), people would be surprised to read:
23304 # /* config.h. Generated by config.status. */
23305 if test x"$ac_file" = x-; then
23306 echo "/* Generated by configure. */" >$tmp/config.h
23308 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23310 cat $tmp/in >>$tmp/config.h
23312 if test x"$ac_file" != x-; then
23313 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23315 echo "$as_me: $ac_file is unchanged" >&6;}
23317 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23319 X"$ac_file" : 'X\(//\)[^/]' \| \
23320 X"$ac_file" : 'X\(//\)$' \| \
23321 X"$ac_file" : 'X\(/\)' \| \
23322 . : '\(.\)' 2>/dev/null ||
23324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23326 /^X\(\/\/\)$/{ s//\1/; q; }
23327 /^X\(\/\).*/{ s//\1/; q; }
23329 { if $as_mkdir_p; then
23334 while test ! -d "$as_dir"; do
23335 as_dirs="$as_dir $as_dirs"
23336 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23338 X"$as_dir" : 'X\(//\)[^/]' \| \
23339 X"$as_dir" : 'X\(//\)$' \| \
23340 X"$as_dir" : 'X\(/\)' \| \
23341 . : '\(.\)' 2>/dev/null ||
23343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23345 /^X\(\/\/\)$/{ s//\1/; q; }
23346 /^X\(\/\).*/{ s//\1/; q; }
23349 test ! -n "$as_dirs" || mkdir $as_dirs
23350 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23351 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23352 { (exit 1); exit 1; }; }; }
23355 mv $tmp/config.h $ac_file
23359 rm -f $tmp/config.h
23364 cat >>$CONFIG_STATUS <<\_ACEOF
23366 { (exit 0); exit 0; }
23368 chmod +x $CONFIG_STATUS
23369 ac_clean_files=$ac_clean_files_save
23372 # configure is writing to config.log, and then calls config.status.
23373 # config.status does its own redirection, appending to config.log.
23374 # Unfortunately, on DOS this fails, as config.log is still kept open
23375 # by configure, so config.status won't be able to write to it; its
23376 # output is simply discarded. So we exec the FD to /dev/null,
23377 # effectively closing config.log, so it can be properly (re)opened and
23378 # appended to by config.status. When coming back to configure, we
23379 # need to make the FD available again.
23380 if test "$no_create" != yes; then
23382 ac_config_status_args=
23383 test "$silent" = yes &&
23384 ac_config_status_args="$ac_config_status_args --quiet"
23386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23389 # would make configure fail if this is the last instruction.
23390 $ac_cs_success || { (exit 1); exit 1; }