2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59 for barry 0.4.
5 @%:@ Report bugs to <barry-devel@lists.sourceforge.net>.
7 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
8 @%:@ This configure script is free software; the Free Software Foundation
9 @%:@ gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='barry'
426 PACKAGE_VERSION='0.4'
427 PACKAGE_STRING='barry 0.4'
428 PACKAGE_BUGREPORT='barry-devel@lists.sourceforge.net'
430 ac_unique_file="src/barry.h"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBUSB_LIB_PATH LIBUSB_INC_PATH BOOST_LIB_PATH BOOST_INC_PATH WITH_BOOST_TRUE WITH_BOOST_FALSE LIB@&t@OBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures barry 0.4 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of barry 0.4:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared@<:@=PKGS@:>@
1033 build shared libraries @<:@default=yes@:>@
1034 --enable-static@<:@=PKGS@:>@
1035 build static libraries @<:@default=yes@:>@
1036 --enable-fast-install@<:@=PKGS@:>@
1037 optimize for fast installation @<:@default=yes@:>@
1038 --disable-libtool-lock avoid locking (might break parallel builds)
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
1046 --with-tags@<:@=TAGS@:>@
1047 include additional configurations @<:@automatic@:>@
1048 --with-libusb=<path> root path of libusb installation
1049 --with-boost=<path> root path of boost installation (default=no boost)
1051 Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1068 Report bugs to <barry-devel@lists.sourceforge.net>.
1072 if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1079 if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 ac_dir_suffix= ac_top_builddir=
1088 .) # No --srcdir option. We are building in place.
1090 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 # Do not use `cd foo && pwd` to compute absolute paths, because
1104 # the directories may not exist.
1106 .) ac_abs_builddir="$ac_dir";;
1109 .) ac_abs_builddir=`pwd`;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 case ${ac_top_builddir}. in
1118 .) ac_abs_top_builddir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1127 .) ac_abs_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 case $ac_top_srcdir in
1136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 # Check for guested configure; otherwise get Cygnus style configure.
1144 if test -f $ac_srcdir/configure.gnu; then
1146 $SHELL $ac_srcdir/configure.gnu --help=recursive
1147 elif test -f $ac_srcdir/configure; then
1149 $SHELL $ac_srcdir/configure --help=recursive
1150 elif test -f $ac_srcdir/configure.ac ||
1151 test -f $ac_srcdir/configure.in; then
1153 $ac_configure --help
1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1165 generated by GNU Autoconf 2.59
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1168 This configure script is free software; the Free Software Foundation
1169 gives unlimited permission to copy, distribute and modify it.
1175 This file contains any messages produced by compilers while
1176 running configure, to aid debugging if configure makes a mistake.
1178 It was created by barry $as_me 0.4, which was
1179 generated by GNU Autoconf 2.59. Invocation command line was
1186 @%:@@%:@ --------- @%:@@%:@
1187 @%:@@%:@ Platform. @%:@@%:@
1188 @%:@@%:@ --------- @%:@@%:@
1190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1199 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1222 @%:@@%:@ ----------- @%:@@%:@
1223 @%:@@%:@ Core tests. @%:@@%:@
1224 @%:@@%:@ ----------- @%:@@%:@
1229 # Keep a trace of the command line.
1230 # Strip out --no-create and --no-recursion so they do not pile up.
1231 # Strip out --silent because we don't want to record it for future runs.
1232 # Also quote any args containing shell meta-characters.
1233 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_must_keep_next=false
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 -* ) ac_must_keep_next=true ;;
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1277 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280 # When interrupted or exit'd, cleanup temporary files, and complete
1281 # config.log. We remove comments because anyway the quotes in there
1282 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close' the trap.
1285 trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1291 @%:@@%:@ ---------------- @%:@@%:@
1292 @%:@@%:@ Cache variables. @%:@@%:@
1293 @%:@@%:@ ---------------- @%:@@%:@
1296 # The following way of writing the cache mishandles newlines in values,
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1314 @%:@@%:@ ----------------- @%:@@%:@
1315 @%:@@%:@ Output variables. @%:@@%:@
1316 @%:@@%:@ ----------------- @%:@@%:@
1319 for ac_var in $ac_subst_vars
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1326 if test -n "$ac_subst_files"; then
1328 @%:@@%:@ ------------- @%:@@%:@
1329 @%:@@%:@ Output files. @%:@@%:@
1330 @%:@@%:@ ------------- @%:@@%:@
1333 for ac_var in $ac_subst_files
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -s confdefs.h; then
1343 @%:@@%:@ ----------- @%:@@%:@
1344 @%:@@%:@ confdefs.h. @%:@@%:@
1345 @%:@@%:@ ----------- @%:@@%:@
1348 sed "/^$/d" confdefs.h | sort
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 # Predefined preprocessor variables.
1371 cat >>confdefs.h <<_ACEOF
1372 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1376 cat >>confdefs.h <<_ACEOF
1377 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 cat >>confdefs.h <<_ACEOF
1382 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 cat >>confdefs.h <<_ACEOF
1387 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1391 cat >>confdefs.h <<_ACEOF
1392 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1414 if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1431 # Check that the precious variables saved in the cache have kept the same
1433 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455 echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457 echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474 if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514 #AM_CONFIG_HEADER(config.h)
1516 ac_config_headers="$ac_config_headers config.h:config.h.in"
1518 am__api_version="1.9"
1520 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521 if test -f $ac_dir/install-sh; then
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 elif test -f $ac_dir/install.sh; then
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 elif test -f $ac_dir/shtool; then
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544 # Find a good install program. We prefer a C program (faster),
1545 # so one script is as good as another. But avoid the broken or
1546 # incompatible versions:
1547 # SysV /etc/install, /usr/sbin/install
1548 # SunOS /usr/etc/install
1549 # IRIX /sbin/install
1551 # AmigaOS /C/install, which installs bootblocks on floppy discs
1552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555 # OS/2's system install, which has a completely different semantic
1556 # ./install, which can be erroneously created by make from ./install.sh.
1557 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559 if test -z "$INSTALL"; then
1560 if test "${ac_cv_path_install+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 # Account for people who put trailing slashes in PATH elements.
1570 ./ | .// | /cC/* | \
1571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1575 # OSF1 and SCO ODT 3.0 have their own names for install.
1576 # Don't use installbsd from OSF since it installs stuff as root
1578 for ac_prog in ginstall scoinst install; do
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581 if test $ac_prog = install &&
1582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583 # AIX install. It has an incompatible calling convention.
1585 elif test $ac_prog = install &&
1586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587 # program-specific install script used by HP pwplus--don't use.
1590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1602 if test "${ac_cv_path_install+set}" = set; then
1603 INSTALL=$ac_cv_path_install
1605 # As a last resort, use the slow shell script. We don't cache a
1606 # path for INSTALL within a source directory, because that will
1607 # break other packages using the cache if that directory is
1608 # removed, or if the path is relative.
1609 INSTALL=$ac_install_sh
1612 echo "$as_me:$LINENO: result: $INSTALL" >&5
1613 echo "${ECHO_T}$INSTALL" >&6
1615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616 # It thinks the first close brace ends the variable substitution.
1617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1623 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627 echo timestamp > conftest.file
1628 # Do `set' in a subshell so we don't clobber the current shell's
1629 # arguments. Must try -L first in case configure is actually a
1630 # symlink; some systems play weird games with the mod time of symlinks
1631 # (eg FreeBSD returns the mod time of the symlink's containing
1634 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635 if test "$*" = "X"; then
1637 set X `ls -t $srcdir/configure conftest.file`
1640 if test "$*" != "X $srcdir/configure conftest.file" \
1641 && test "$*" != "X conftest.file $srcdir/configure"; then
1643 # If neither matched, then we have a broken ls. This can happen
1644 # if, for instance, CONFIG_SHELL is bash and it inherits a
1645 # broken ls alias from the environment. This has actually
1646 # happened. Such a system could not be considered "sane".
1647 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1648 alias in your environment" >&5
1649 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1650 alias in your environment" >&2;}
1651 { (exit 1); exit 1; }; }
1654 test "$2" = conftest.file
1660 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661 Check your system clock" >&5
1662 echo "$as_me: error: newly created file is older than distributed files!
1663 Check your system clock" >&2;}
1664 { (exit 1); exit 1; }; }
1666 echo "$as_me:$LINENO: result: yes" >&5
1667 echo "${ECHO_T}yes" >&6
1668 test "$program_prefix" != NONE &&
1669 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670 # Use a double $ so make ignores it.
1671 test "$program_suffix" != NONE &&
1672 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673 # Double any \ or $. echo might interpret backslashes.
1674 # By default was `s,x,x', remove it if useless.
1675 cat <<\_ACEOF >conftest.sed
1676 s/[\\$]/&&/g;s/;s,x,x,$//
1678 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681 # expand $ac_aux_dir to an absolute path
1682 am_aux_dir=`cd $ac_aux_dir && pwd`
1684 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685 # Use eval to expand $SHELL
1686 if eval "$MISSING --run true"; then
1687 am_missing_run="$MISSING --run "
1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695 # We used to keeping the `.' as first argument, in order to
1696 # allow $(mkdir_p) to be used without argument. As in
1697 # $(mkdir_p) $(somedir)
1698 # where $(somedir) is conditionally defined. However this is wrong
1700 # 1. if the package is installed by a user who cannot write `.'
1701 # make install will fail,
1702 # 2. the above comment should most certainly read
1703 # $(mkdir_p) $(DESTDIR)$(somedir)
1704 # so it does not work when $(somedir) is undefined and
1705 # $(DESTDIR) is not.
1706 # To support the latter case, we have to write
1707 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708 # so the `.' trick is pointless.
1709 mkdir_p='mkdir -p --'
1711 # On NextStep and OpenStep, the `mkdir' command does not
1712 # recognize any option. It will interpret all options as
1713 # directories to create, and then abort because `.' already
1715 for d in ./-p ./--version;
1717 test -d $d && rmdir $d
1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720 if test -f "$ac_aux_dir/mkinstalldirs"; then
1721 mkdir_p='$(mkinstalldirs)'
1723 mkdir_p='$(install_sh) -d'
1727 for ac_prog in gawk mawk nawk awk
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_AWK+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$AWK"; then
1737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_AWK="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 if test -n "$AWK"; then
1757 echo "$as_me:$LINENO: result: $AWK" >&5
1758 echo "${ECHO_T}$AWK" >&6
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 test -n "$AWK" && break
1767 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 cat >conftest.make <<\_ACEOF
1775 @echo 'ac_maketemp="$(MAKE)"'
1777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779 if test -n "$ac_maketemp"; then
1780 eval ac_cv_prog_make_${ac_make}_set=yes
1782 eval ac_cv_prog_make_${ac_make}_set=no
1786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787 echo "$as_me:$LINENO: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793 SET_MAKE="MAKE=${MAKE-make}"
1796 rm -rf .tst 2>/dev/null
1797 mkdir .tst 2>/dev/null
1798 if test -d .tst; then
1803 rmdir .tst 2>/dev/null
1805 # test to see if srcdir already configured
1806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807 test -f $srcdir/config.status; then
1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810 { (exit 1); exit 1; }; }
1813 # test whether we have cygpath
1814 if test -z "$CYGPATH_W"; then
1815 if (cygpath --version) >/dev/null 2>/dev/null; then
1816 CYGPATH_W='cygpath -w'
1823 # Define the identity of the package.
1828 cat >>confdefs.h <<_ACEOF
1829 @%:@define PACKAGE "$PACKAGE"
1833 cat >>confdefs.h <<_ACEOF
1834 @%:@define VERSION "$VERSION"
1837 # Some tools Automake needs.
1839 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1853 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855 # Installed binaries are usually stripped using `strip' when the user
1856 # run `make install-strip'. However `strip' might not be the right
1857 # tool to use in cross-compilation environments, therefore Automake
1858 # will honor the `STRIP' environment variable to overrule this program.
1859 if test "$cross_compiling" != no; then
1860 if test -n "$ac_tool_prefix"; then
1861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862 set dummy ${ac_tool_prefix}strip; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_STRIP+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 if test -n "$STRIP"; then
1869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 STRIP=$ac_cv_prog_STRIP
1888 if test -n "$STRIP"; then
1889 echo "$as_me:$LINENO: result: $STRIP" >&5
1890 echo "${ECHO_T}$STRIP" >&6
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1897 if test -z "$ac_cv_prog_STRIP"; then
1899 # Extract the first word of "strip", so it can be a program name with args.
1900 set dummy strip; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 if test -n "$ac_ct_STRIP"; then
1907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 test -z "$as_dir" && as_dir=.
1914 for ac_exec_ext in '' $ac_executable_extensions; do
1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916 ac_cv_prog_ac_ct_STRIP="strip"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927 if test -n "$ac_ct_STRIP"; then
1928 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929 echo "${ECHO_T}$ac_ct_STRIP" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1937 STRIP="$ac_cv_prog_STRIP"
1941 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943 # We need awk for the "check" target. The system "awk" is bad on
1945 # Always define AMTAR for backward compatibility.
1947 AMTAR=${AMTAR-"${am_missing_run}tar"}
1949 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1956 # Checks for programs.
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CC"; then
1991 echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$ac_cv_prog_CC"; then
2001 # Extract the first word of "gcc", so it can be a program name with args.
2002 set dummy gcc; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$ac_ct_CC"; then
2009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_ac_ct_CC="gcc"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2028 if test -n "$ac_ct_CC"; then
2029 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2030 echo "${ECHO_T}$ac_ct_CC" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2041 if test -z "$CC"; then
2042 if test -n "$ac_tool_prefix"; then
2043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2044 set dummy ${ac_tool_prefix}cc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 ac_cv_prog_CC="${ac_tool_prefix}cc"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2079 if test -z "$ac_cv_prog_CC"; then
2081 # Extract the first word of "cc", so it can be a program name with args.
2082 set dummy cc; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_ac_ct_CC="cc"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2122 if test -z "$CC"; then
2123 # Extract the first word of "cc", so it can be a program name with args.
2124 set dummy cc; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2142 ac_prog_rejected=yes
2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 if test $ac_prog_rejected = yes; then
2153 # We found a bogon in the path, so make sure we never use it.
2154 set dummy $ac_cv_prog_CC
2156 if test $@%:@ != 0; then
2157 # We chose a different compiler from the bogus one.
2158 # However, it has the same basename, so the bogon will be chosen
2159 # first if we set CC to just the basename; use the full file name.
2161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2167 if test -n "$CC"; then
2168 echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2176 if test -z "$CC"; then
2177 if test -n "$ac_tool_prefix"; then
2180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$CC"; then
2188 ac_cv_prog_CC="$CC" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 if test -n "$CC"; then
2208 echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6
2211 echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2215 test -n "$CC" && break
2218 if test -z "$CC"; then
2222 # Extract the first word of "$ac_prog", so it can be a program name with args.
2223 set dummy $ac_prog; ac_word=$2
2224 echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 if test -n "$ac_ct_CC"; then
2230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239 ac_cv_prog_ac_ct_CC="$ac_prog"
2240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2249 if test -n "$ac_ct_CC"; then
2250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2251 echo "${ECHO_T}$ac_ct_CC" >&6
2253 echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6
2257 test -n "$ac_ct_CC" && break
2266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2272 # Provide some information about the compiler.
2273 echo "$as_me:$LINENO:" \
2274 "checking for C compiler version" >&5
2275 ac_compiler=`set X $ac_compile; echo $2`
2276 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2277 (eval $ac_compiler --version </dev/null >&5) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }
2281 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2282 (eval $ac_compiler -v </dev/null >&5) 2>&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }
2286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2287 (eval $ac_compiler -V </dev/null >&5) 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 ac_clean_files_save=$ac_clean_files
2308 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2309 # Try to create an executable without -o first, disregard a.out.
2310 # It will help us diagnose broken compilers, and finding out an intuition
2312 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2313 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2314 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2315 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2316 (eval $ac_link_default) 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # Find the output, starting from the most likely. This scheme is
2321 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2324 # Be careful to initialize this variable, since it used to be cached.
2325 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2327 # b.out is created by i960 compilers.
2328 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2330 test -f "$ac_file" || continue
2332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2335 # This is the source file.
2338 # We found the default executable, but exeext='' is most
2342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2343 # FIXME: I believe we export ac_cv_exeext for Libtool,
2344 # but it would be cool to find out if it's true. Does anybody
2345 # maintain Libtool? --akim.
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2356 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: C compiler cannot create executables
2359 See \`config.log' for more details." >&2;}
2360 { (exit 77); exit 77; }; }
2363 ac_exeext=$ac_cv_exeext
2364 echo "$as_me:$LINENO: result: $ac_file" >&5
2365 echo "${ECHO_T}$ac_file" >&6
2367 # Check the compiler produces executables we can run. If not, either
2368 # the compiler is broken, or we cross compile.
2369 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2370 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2371 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2372 # If not cross compiling, check that we can run a simple program.
2373 if test "$cross_compiling" != yes; then
2374 if { ac_try='./$ac_file'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; }; then
2382 if test "$cross_compiling" = maybe; then
2385 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2386 If you meant to cross compile, use \`--host'.
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&2;}
2391 { (exit 1); exit 1; }; }
2395 echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6
2398 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2399 ac_clean_files=$ac_clean_files_save
2400 # Check the compiler produces executables we can run. If not, either
2401 # the compiler is broken, or we cross compile.
2402 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2403 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2404 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2405 echo "${ECHO_T}$cross_compiling" >&6
2407 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2408 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2410 (eval $ac_link) 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; then
2414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2415 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2416 # work properly (i.e., refer to `conftest.exe'), while it won't with
2418 for ac_file in conftest.exe conftest conftest.*; do
2419 test -f "$ac_file" || continue
2421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2432 See \`config.log' for more details." >&2;}
2433 { (exit 1); exit 1; }; }
2436 rm -f conftest$ac_cv_exeext
2437 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2438 echo "${ECHO_T}$ac_cv_exeext" >&6
2440 rm -f conftest.$ac_ext
2441 EXEEXT=$ac_cv_exeext
2443 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2444 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2445 if test "${ac_cv_objext+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 cat >conftest.$ac_ext <<_ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2463 rm -f conftest.o conftest.obj
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2480 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2481 See \`config.log' for more details." >&5
2482 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2483 See \`config.log' for more details." >&2;}
2484 { (exit 1); exit 1; }; }
2487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2489 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2490 echo "${ECHO_T}$ac_cv_objext" >&6
2491 OBJEXT=$ac_cv_objext
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2495 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>conftest.er1
2520 grep -v '^ *+' conftest.er1 >conftest.err
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2548 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2550 GCC=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS=${CFLAGS+set}
2552 ac_save_CFLAGS=$CFLAGS
2554 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2578 grep -v '^ *+' conftest.er1 >conftest.err
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2604 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2605 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2606 if test "$ac_test_CFLAGS" = set; then
2607 CFLAGS=$ac_save_CFLAGS
2608 elif test $ac_cv_prog_cc_g = yes; then
2609 if test "$GCC" = yes; then
2615 if test "$GCC" = yes; then
2621 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2622 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 ac_cv_prog_cc_stdc=no
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2636 #include <sys/types.h>
2637 #include <sys/stat.h>
2638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2639 struct buf { int x; };
2640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2641 static char *e (p, i)
2647 static char *f (char * (*g) (char **, int), char **p, ...)
2652 s = g (p, va_arg (v,int));
2657 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2658 function prototypes and stuff, but not '\xHH' hex character constants.
2659 These don't provoke an error unfortunately, instead are silently treated
2660 as 'x'. The following induces an error, until -std1 is added to get
2661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2662 array size at least. It's necessary to write '\x00'==0 to get something
2663 that's true only with -std1. */
2664 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2680 # Don't try gcc -ansi; that turns off useful extensions and
2681 # breaks some systems' header files.
2682 # AIX -qlanglvl=ansi
2683 # Ultrix and OSF/1 -std1
2684 # HP-UX 10.20 and later -Ae
2685 # HP-UX older versions -Aa -D_HPUX_SOURCE
2686 # SVR4 -Xc -D__EXTENSIONS__
2687 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2689 CC="$ac_save_CC $ac_arg"
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 ac_cv_prog_cc_stdc=$ac_arg
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f conftest.err conftest.$ac_objext
2720 rm -f conftest.$ac_ext conftest.$ac_objext
2725 case "x$ac_cv_prog_cc_stdc" in
2727 echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6 ;;
2730 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2732 CC="$CC $ac_cv_prog_cc_stdc" ;;
2735 # Some people use a C++ compiler to compile C. Since we use `exit',
2736 # in C++ we need to declare it. In case someone uses the same compiler
2737 # for both compiling C and C++ we need to have the C++ compiler decide
2738 # the declaration of exit, since it's the most demanding environment.
2739 cat >conftest.$ac_ext <<_ACEOF
2740 @%:@ifndef __cplusplus
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 for ac_declaration in \
2767 'extern "C" void std::exit (int) throw (); using std::exit;' \
2768 'extern "C" void std::exit (int); using std::exit;' \
2769 'extern "C" void exit (int) throw ();' \
2770 'extern "C" void exit (int);' \
2773 cat >conftest.$ac_ext <<_ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2780 @%:@include <stdlib.h>
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2793 grep -v '^ *+' conftest.er1 >conftest.err
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1 >conftest.err
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; } &&
2848 { ac_try='test -s conftest.$ac_objext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2863 if test -n "$ac_declaration"; then
2864 echo '#ifdef __cplusplus' >>confdefs.h
2865 echo $ac_declaration >>confdefs.h
2866 echo '#endif' >>confdefs.h
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 DEPDIR="${am__leading_dot}deps"
2882 ac_config_commands="$ac_config_commands depfiles"
2885 am_make=${MAKE-make}
2886 cat > confinc << 'END'
2891 # If we don't find an include directive, just comment out the code.
2892 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2893 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2897 # First try GNU make style include.
2898 echo "include confinc" > confmf
2899 # We grep out `Entering directory' and `Leaving directory'
2900 # messages which can occur if `w' ends up in MAKEFLAGS.
2901 # In particular we don't look at `^make:' because GNU make might
2902 # be invoked under some other name (usually "gmake"), in which
2903 # case it prints its new name instead of `make'.
2904 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2909 # Now try BSD make style include.
2910 if test "$am__include" = "#"; then
2911 echo '.include "confinc"' > confmf
2912 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2913 am__include=.include
2920 echo "$as_me:$LINENO: result: $_am_result" >&5
2921 echo "${ECHO_T}$_am_result" >&6
2922 rm -f confinc confmf
2924 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2925 if test "${enable_dependency_tracking+set}" = set; then
2926 enableval="$enable_dependency_tracking"
2929 if test "x$enable_dependency_tracking" != xno; then
2930 am_depcomp="$ac_aux_dir/depcomp"
2935 if test "x$enable_dependency_tracking" != xno; then
2946 depcc="$CC" am_compiler_list=
2948 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2949 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2954 # We make a subdir and do the tests there. Otherwise we can end up
2955 # making bogus files that we don't know about and never remove. For
2956 # instance it was reported that on HP-UX the gcc test will end up
2957 # making a dummy file named `D' -- because `-MD' means `put the output
2960 # Copy depcomp to subdir because otherwise we won't find it if we're
2961 # using a relative directory.
2962 cp "$am_depcomp" conftest.dir
2964 # We will build objects and dependencies in a subdirectory because
2965 # it helps to detect inapplicable dependency modes. For instance
2966 # both Tru64's cc and ICC support -MD to output dependencies as a
2967 # side effect of compilation, but ICC will put the dependencies in
2968 # the current directory while Tru64 will put them in the object
2972 am_cv_CC_dependencies_compiler_type=none
2973 if test "$am_compiler_list" = ""; then
2974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2976 for depmode in $am_compiler_list; do
2977 # Setup a source with many dependencies, because some compilers
2978 # like to wrap large dependency lists on column 80 (with \), and
2979 # we should not choose a depcomp mode which is confused by this.
2981 # We need to recreate these files for each test, as the compiler may
2982 # overwrite some of them when testing with obscure command lines.
2983 # This happens at least with the AIX C compiler.
2985 for i in 1 2 3 4 5 6; do
2986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2988 # Solaris 8's {/usr,}/bin/sh.
2989 touch sub/conftst$i.h
2991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2995 # after this tag, mechanisms are not by side-effect, so they'll
2996 # only be used when explicitly requested
2997 if test "x$enable_dependency_tracking" = xyes; then
3005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3006 # mode. It turns out that the SunPro C++ compiler does not properly
3007 # handle `-M -o', and we need to detect this.
3008 if depmode=$depmode \
3009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3012 >/dev/null 2>conftest.err &&
3013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3014 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3016 # icc doesn't choke on unknown options, it will just issue warnings
3017 # or remarks (even with -Werror). So we grep stderr for any message
3018 # that says an option was ignored or not supported.
3019 # When given -MP, icc 7.0 and 7.1 complain thusly:
3020 # icc: Command line warning: ignoring option '-M'; no argument required
3021 # The diagnosis changed in icc 8.0:
3022 # icc: Command line remark: option '-MP' not supported
3023 if (grep 'ignoring option' conftest.err ||
3024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3025 am_cv_CC_dependencies_compiler_type=$depmode
3034 am_cv_CC_dependencies_compiler_type=none
3038 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3039 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3045 test "x$enable_dependency_tracking" != xno \
3046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3048 am__fastdepCC_FALSE='#'
3050 am__fastdepCC_TRUE='#'
3051 am__fastdepCC_FALSE=
3056 ac_cpp='$CXXCPP $CPPFLAGS'
3057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3060 if test -n "$ac_tool_prefix"; then
3061 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_CXX+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 if test -n "$CXX"; then
3071 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 if test -n "$CXX"; then
3091 echo "$as_me:$LINENO: result: $CXX" >&5
3092 echo "${ECHO_T}$CXX" >&6
3094 echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3098 test -n "$CXX" && break
3101 if test -z "$CXX"; then
3103 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 if test -n "$ac_ct_CXX"; then
3113 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CXX="$ac_prog"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3132 if test -n "$ac_ct_CXX"; then
3133 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3134 echo "${ECHO_T}$ac_ct_CXX" >&6
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3140 test -n "$ac_ct_CXX" && break
3142 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3148 # Provide some information about the compiler.
3149 echo "$as_me:$LINENO:" \
3150 "checking for C++ compiler version" >&5
3151 ac_compiler=`set X $ac_compile; echo $2`
3152 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3153 (eval $ac_compiler --version </dev/null >&5) 2>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }
3157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3158 (eval $ac_compiler -v </dev/null >&5) 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }
3162 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3163 (eval $ac_compiler -V </dev/null >&5) 2>&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }
3168 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3169 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3170 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; } &&
3206 { ac_try='test -s conftest.$ac_objext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3223 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3224 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3225 GXX=`test $ac_compiler_gnu = yes && echo yes`
3226 ac_test_CXXFLAGS=${CXXFLAGS+set}
3227 ac_save_CXXFLAGS=$CXXFLAGS
3229 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3230 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3231 if test "${ac_cv_prog_cxx_g+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 cat >conftest.$ac_ext <<_ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251 (eval $ac_compile) 2>conftest.er1
3253 grep -v '^ *+' conftest.er1 >conftest.err
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } &&
3258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_prog_cxx_g=yes
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3281 if test "$ac_test_CXXFLAGS" = set; then
3282 CXXFLAGS=$ac_save_CXXFLAGS
3283 elif test $ac_cv_prog_cxx_g = yes; then
3284 if test "$GXX" = yes; then
3290 if test "$GXX" = yes; then
3296 for ac_declaration in \
3298 'extern "C" void std::exit (int) throw (); using std::exit;' \
3299 'extern "C" void std::exit (int); using std::exit;' \
3300 'extern "C" void exit (int) throw ();' \
3301 'extern "C" void exit (int);' \
3304 cat >conftest.$ac_ext <<_ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3311 @%:@include <stdlib.h>
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3349 cat >conftest.$ac_ext <<_ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394 if test -n "$ac_declaration"; then
3395 echo '#ifdef __cplusplus' >>confdefs.h
3396 echo $ac_declaration >>confdefs.h
3397 echo '#endif' >>confdefs.h
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 depcc="$CXX" am_compiler_list=
3408 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3410 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414 # We make a subdir and do the tests there. Otherwise we can end up
3415 # making bogus files that we don't know about and never remove. For
3416 # instance it was reported that on HP-UX the gcc test will end up
3417 # making a dummy file named `D' -- because `-MD' means `put the output
3420 # Copy depcomp to subdir because otherwise we won't find it if we're
3421 # using a relative directory.
3422 cp "$am_depcomp" conftest.dir
3424 # We will build objects and dependencies in a subdirectory because
3425 # it helps to detect inapplicable dependency modes. For instance
3426 # both Tru64's cc and ICC support -MD to output dependencies as a
3427 # side effect of compilation, but ICC will put the dependencies in
3428 # the current directory while Tru64 will put them in the object
3432 am_cv_CXX_dependencies_compiler_type=none
3433 if test "$am_compiler_list" = ""; then
3434 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3436 for depmode in $am_compiler_list; do
3437 # Setup a source with many dependencies, because some compilers
3438 # like to wrap large dependency lists on column 80 (with \), and
3439 # we should not choose a depcomp mode which is confused by this.
3441 # We need to recreate these files for each test, as the compiler may
3442 # overwrite some of them when testing with obscure command lines.
3443 # This happens at least with the AIX C compiler.
3445 for i in 1 2 3 4 5 6; do
3446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448 # Solaris 8's {/usr,}/bin/sh.
3449 touch sub/conftst$i.h
3451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3455 # after this tag, mechanisms are not by side-effect, so they'll
3456 # only be used when explicitly requested
3457 if test "x$enable_dependency_tracking" = xyes; then
3465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466 # mode. It turns out that the SunPro C++ compiler does not properly
3467 # handle `-M -o', and we need to detect this.
3468 if depmode=$depmode \
3469 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472 >/dev/null 2>conftest.err &&
3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485 am_cv_CXX_dependencies_compiler_type=$depmode
3494 am_cv_CXX_dependencies_compiler_type=none
3498 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3500 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3505 test "x$enable_dependency_tracking" != xno \
3506 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3507 am__fastdepCXX_TRUE=
3508 am__fastdepCXX_FALSE='#'
3510 am__fastdepCXX_TRUE='#'
3511 am__fastdepCXX_FALSE=
3515 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3516 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3517 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3518 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 cat >conftest.make <<\_ACEOF
3523 @echo 'ac_maketemp="$(MAKE)"'
3525 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3526 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3527 if test -n "$ac_maketemp"; then
3528 eval ac_cv_prog_make_${ac_make}_set=yes
3530 eval ac_cv_prog_make_${ac_make}_set=no
3534 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 SET_MAKE="MAKE=${MAKE-make}"
3544 # Check whether --enable-shared or --disable-shared was given.
3545 if test "${enable_shared+set}" = set; then
3546 enableval="$enable_shared"
3547 p=${PACKAGE-default}
3549 yes) enable_shared=yes ;;
3550 no) enable_shared=no ;;
3553 # Look at the argument we got. We use all the common list separators.
3554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3555 for pkg in $enableval; do
3557 if test "X$pkg" = "X$p"; then
3568 # Check whether --enable-static or --disable-static was given.
3569 if test "${enable_static+set}" = set; then
3570 enableval="$enable_static"
3571 p=${PACKAGE-default}
3573 yes) enable_static=yes ;;
3574 no) enable_static=no ;;
3577 # Look at the argument we got. We use all the common list separators.
3578 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3579 for pkg in $enableval; do
3581 if test "X$pkg" = "X$p"; then
3592 # Check whether --enable-fast-install or --disable-fast-install was given.
3593 if test "${enable_fast_install+set}" = set; then
3594 enableval="$enable_fast_install"
3595 p=${PACKAGE-default}
3597 yes) enable_fast_install=yes ;;
3598 no) enable_fast_install=no ;;
3600 enable_fast_install=no
3601 # Look at the argument we got. We use all the common list separators.
3602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3603 for pkg in $enableval; do
3605 if test "X$pkg" = "X$p"; then
3606 enable_fast_install=yes
3613 enable_fast_install=yes
3616 # Make sure we can run config.sub.
3617 $ac_config_sub sun4 >/dev/null 2>&1 ||
3618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3620 { (exit 1); exit 1; }; }
3622 echo "$as_me:$LINENO: checking build system type" >&5
3623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3624 if test "${ac_cv_build+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_cv_build_alias=$build_alias
3628 test -z "$ac_cv_build_alias" &&
3629 ac_cv_build_alias=`$ac_config_guess`
3630 test -z "$ac_cv_build_alias" &&
3631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3633 { (exit 1); exit 1; }; }
3634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3637 { (exit 1); exit 1; }; }
3640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3641 echo "${ECHO_T}$ac_cv_build" >&6
3643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3648 echo "$as_me:$LINENO: checking host system type" >&5
3649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3650 if test "${ac_cv_host+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 ac_cv_host_alias=$host_alias
3654 test -z "$ac_cv_host_alias" &&
3655 ac_cv_host_alias=$ac_cv_build_alias
3656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3659 { (exit 1); exit 1; }; }
3662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3663 echo "${ECHO_T}$ac_cv_host" >&6
3665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3670 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3671 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3672 if test "${lt_cv_path_SED+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 # Loop through the user's path and test for sed and gsed.
3676 # Then use that list of sed's as ones to test for truncation.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir=.
3682 for lt_ac_prog in sed gsed; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3685 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3692 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3693 # along with /bin/sed that truncates output.
3694 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3695 test ! -f $lt_ac_sed && break
3696 cat /dev/null > conftest.in
3698 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3699 # Check for GNU sed and select it if it is found.
3700 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3701 lt_cv_path_SED=$lt_ac_sed
3705 cat conftest.in conftest.in >conftest.tmp
3706 mv conftest.tmp conftest.in
3707 cp conftest.in conftest.nl
3709 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3710 cmp -s conftest.out conftest.nl || break
3711 # 10000 chars as input seems more than enough
3712 test $lt_ac_count -gt 10 && break
3713 lt_ac_count=`expr $lt_ac_count + 1`
3714 if test $lt_ac_count -gt $lt_ac_max; then
3715 lt_ac_max=$lt_ac_count
3716 lt_cv_path_SED=$lt_ac_sed
3724 echo "$as_me:$LINENO: result: $SED" >&5
3725 echo "${ECHO_T}$SED" >&6
3727 echo "$as_me:$LINENO: checking for egrep" >&5
3728 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3729 if test "${ac_cv_prog_egrep+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3733 then ac_cv_prog_egrep='grep -E'
3734 else ac_cv_prog_egrep='egrep'
3737 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3738 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3739 EGREP=$ac_cv_prog_egrep
3743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3744 if test "${with_gnu_ld+set}" = set; then
3745 withval="$with_gnu_ld"
3746 test "$withval" = no || with_gnu_ld=yes
3751 if test "$GCC" = yes; then
3752 # Check if gcc -print-prog-name=ld gives a path.
3753 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3754 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3757 # gcc leaves a trailing carriage return which upsets mingw
3758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3763 # Accept absolute paths.
3765 re_direlt='/[^/][^/]*/\.\./'
3766 # Canonicalize the pathname of ld
3767 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3768 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3769 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3771 test -z "$LD" && LD="$ac_prog"
3774 # If it fails, then pretend we aren't using GCC.
3778 # If it is relative, then search for the first ld in PATH.
3782 elif test "$with_gnu_ld" = yes; then
3783 echo "$as_me:$LINENO: checking for GNU ld" >&5
3784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3786 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3789 if test "${lt_cv_path_LD+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if test -z "$LD"; then
3793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3794 for ac_dir in $PATH; do
3796 test -z "$ac_dir" && ac_dir=.
3797 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3798 lt_cv_path_LD="$ac_dir/$ac_prog"
3799 # Check to see if the program is GNU ld. I'd rather use --version,
3800 # but apparently some GNU ld's only accept -v.
3801 # Break only if it was the GNU/non-GNU ld that we prefer.
3802 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3803 *GNU* | *'with BFD'*)
3804 test "$with_gnu_ld" != no && break
3807 test "$with_gnu_ld" != yes && break
3814 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3819 if test -n "$LD"; then
3820 echo "$as_me:$LINENO: result: $LD" >&5
3821 echo "${ECHO_T}$LD" >&6
3823 echo "$as_me:$LINENO: result: no" >&5
3824 echo "${ECHO_T}no" >&6
3826 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3827 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3828 { (exit 1); exit 1; }; }
3829 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3830 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3831 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3835 case `$LD -v 2>&1 </dev/null` in
3836 *GNU* | *'with BFD'*)
3837 lt_cv_prog_gnu_ld=yes
3840 lt_cv_prog_gnu_ld=no
3844 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3845 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3846 with_gnu_ld=$lt_cv_prog_gnu_ld
3849 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3850 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3851 if test "${lt_cv_ld_reload_flag+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 lt_cv_ld_reload_flag='-r'
3856 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3857 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3858 reload_flag=$lt_cv_ld_reload_flag
3859 case $reload_flag in
3861 *) reload_flag=" $reload_flag" ;;
3863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3865 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3866 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3867 if test "${lt_cv_path_NM+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 if test -n "$NM"; then
3871 # Let the user override the test.
3874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3875 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3877 test -z "$ac_dir" && ac_dir=.
3878 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3879 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3880 # Check to see if the nm accepts a BSD-compat flag.
3881 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3882 # nm: unknown option "B" ignored
3883 # Tru64's nm complains that /dev/null is an invalid object file
3884 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3885 */dev/null* | *'Invalid file or object type'*)
3886 lt_cv_path_NM="$tmp_nm -B"
3890 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3892 lt_cv_path_NM="$tmp_nm -p"
3896 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3897 continue # so that we can try to find one that supports BSD flags
3904 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3907 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3908 echo "${ECHO_T}$lt_cv_path_NM" >&6
3911 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3912 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3914 if test "$LN_S" = "ln -s"; then
3915 echo "$as_me:$LINENO: result: yes" >&5
3916 echo "${ECHO_T}yes" >&6
3918 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3919 echo "${ECHO_T}no, using $LN_S" >&6
3922 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3923 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3924 if test "${lt_cv_deplibs_check_method+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 lt_cv_file_magic_cmd='$MAGIC_CMD'
3928 lt_cv_file_magic_test_file=
3929 lt_cv_deplibs_check_method='unknown'
3930 # Need to set the preceding variable on all platforms that support
3931 # interlibrary dependencies.
3932 # 'none' -- dependencies not supported.
3933 # `unknown' -- same as none, but documents that we really don't know.
3934 # 'pass_all' -- all dependencies passed with no checks.
3935 # 'test_compile' -- check by making test program.
3936 # 'file_magic [[regex]]' -- check by looking for files in library path
3937 # which responds to the $file_magic_cmd with a given extended regex.
3938 # If you have `file' or equivalent on your system and you're not sure
3939 # whether `pass_all' will *always* work, you probably want this one.
3943 lt_cv_deplibs_check_method=pass_all
3947 lt_cv_deplibs_check_method=pass_all
3951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3952 lt_cv_file_magic_cmd='/usr/bin/file -L'
3953 lt_cv_file_magic_test_file=/shlib/libc.so
3957 # func_win32_libid is a shell function defined in ltmain.sh
3958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3959 lt_cv_file_magic_cmd='func_win32_libid'
3963 # Base MSYS/MinGW do not provide the 'file' command needed by
3964 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3965 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3966 lt_cv_file_magic_cmd='$OBJDUMP -f'
3969 darwin* | rhapsody*)
3970 lt_cv_deplibs_check_method=pass_all
3973 freebsd* | kfreebsd*-gnu)
3974 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3977 # Not sure whether the presence of OpenBSD here was a mistake.
3978 # Let's accept both of them until this is cleared up.
3979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3980 lt_cv_file_magic_cmd=/usr/bin/file
3981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3985 lt_cv_deplibs_check_method=pass_all
3990 lt_cv_deplibs_check_method=pass_all
3993 hpux10.20* | hpux11*)
3994 lt_cv_file_magic_cmd=/usr/bin/file
3997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4001 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]'
4002 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4006 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4011 irix5* | irix6* | nonstopux*)
4013 *-32|*"-32 ") libmagic=32-bit;;
4014 *-n32|*"-n32 ") libmagic=N32;;
4015 *-64|*"-64 ") libmagic=64-bit;;
4016 *) libmagic=never-match;;
4018 lt_cv_deplibs_check_method=pass_all
4021 # This must be Linux ELF.
4023 lt_cv_deplibs_check_method=pass_all
4026 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4036 lt_cv_file_magic_cmd=/usr/bin/file
4037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4041 lt_cv_deplibs_check_method=unknown
4045 lt_cv_file_magic_cmd=/usr/bin/file
4046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4050 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4054 osf3* | osf4* | osf5*)
4055 lt_cv_deplibs_check_method=pass_all
4059 lt_cv_deplibs_check_method=pass_all
4063 lt_cv_deplibs_check_method=pass_all
4066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4067 case $host_vendor in
4069 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]'
4070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4073 lt_cv_deplibs_check_method=pass_all
4076 lt_cv_file_magic_cmd='/bin/file'
4077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4080 lt_cv_file_magic_cmd='/bin/file'
4081 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4082 lt_cv_file_magic_test_file=/lib/libc.so
4085 lt_cv_deplibs_check_method=pass_all
4090 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4091 lt_cv_deplibs_check_method=pass_all
4096 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4097 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4098 file_magic_cmd=$lt_cv_file_magic_cmd
4099 deplibs_check_method=$lt_cv_deplibs_check_method
4100 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4105 # If no C compiler was specified, use CC.
4108 # Allow CC to be a program name with arguments.
4112 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4113 if test "${enable_libtool_lock+set}" = set; then
4114 enableval="$enable_libtool_lock"
4117 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4119 # Some flags need to be propagated to the compiler or linker for good
4123 # Find out which ABI we are using.
4124 echo 'int i;' > conftest.$ac_ext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; then
4130 case `/usr/bin/file conftest.$ac_objext` in
4142 # Find out which ABI we are using.
4143 echo '#line __oline__ "configure"' > conftest.$ac_ext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145 (eval $ac_compile) 2>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; then
4149 if test "$lt_cv_prog_gnu_ld" = yes; then
4150 case `/usr/bin/file conftest.$ac_objext` in
4152 LD="${LD-ld} -melf32bsmip"
4155 LD="${LD-ld} -melf32bmipn32"
4158 LD="${LD-ld} -melf64bmip"
4162 case `/usr/bin/file conftest.$ac_objext` in
4178 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4179 # Find out which ABI we are using.
4180 echo 'int i;' > conftest.$ac_ext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; then
4186 case "`/usr/bin/file conftest.o`" in
4190 LD="${LD-ld} -m elf_i386"
4192 ppc64-*linux*|powerpc64-*linux*)
4193 LD="${LD-ld} -m elf32ppclinux"
4196 LD="${LD-ld} -m elf_s390"
4199 LD="${LD-ld} -m elf32_sparc"
4206 LD="${LD-ld} -m elf_x86_64"
4208 ppc*-*linux*|powerpc*-*linux*)
4209 LD="${LD-ld} -m elf64ppc"
4212 LD="${LD-ld} -m elf64_s390"
4215 LD="${LD-ld} -m elf64_sparc"
4225 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4226 SAVE_CFLAGS="$CFLAGS"
4227 CFLAGS="$CFLAGS -belf"
4228 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4229 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4230 if test "${lt_cv_cc_needs_belf+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256 (eval $ac_link) 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 lt_cv_cc_needs_belf=yes
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 lt_cv_cc_needs_belf=no
4282 rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4292 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4293 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4294 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4295 CFLAGS="$SAVE_CFLAGS"
4301 need_locks="$enable_libtool_lock"
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4315 if test -z "$CPP"; then
4316 if test "${ac_cv_prog_CPP+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 # Double quotes because CPP needs to be expanded
4320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4323 for ac_c_preproc_warn_flag in '' yes
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4338 @%:@ include <limits.h>
4340 @%:@ include <assert.h>
4344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } >/dev/null; then
4352 if test -s conftest.err; then
4353 ac_cpp_err=$ac_c_preproc_warn_flag
4354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4361 if test -z "$ac_cpp_err"; then
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 # Broken: fails on valid input.
4370 rm -f conftest.err conftest.$ac_ext
4372 # OK, works on sane cases. Now check whether non-existent headers
4373 # can be detected and how.
4374 cat >conftest.$ac_ext <<_ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 @%:@include <ac_nonexistent.h>
4382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev/null; then
4390 if test -s conftest.err; then
4391 ac_cpp_err=$ac_c_preproc_warn_flag
4392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4399 if test -z "$ac_cpp_err"; then
4400 # Broken: success on invalid input.
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 # Passes both tests.
4410 rm -f conftest.err conftest.$ac_ext
4413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414 rm -f conftest.err conftest.$ac_ext
4415 if $ac_preproc_ok; then
4427 echo "$as_me:$LINENO: result: $CPP" >&5
4428 echo "${ECHO_T}$CPP" >&6
4430 for ac_c_preproc_warn_flag in '' yes
4432 # Use a header file that comes with gcc, so configuring glibc
4433 # with a fresh cross-compiler works.
4434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 # <limits.h> exists even on freestanding compilers.
4436 # On the NeXT, cc -E runs the code through the compiler's parser,
4437 # not just through cpp. "Syntax error" is here to catch this case.
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4445 @%:@ include <limits.h>
4447 @%:@ include <assert.h>
4451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev/null; then
4459 if test -s conftest.err; then
4460 ac_cpp_err=$ac_c_preproc_warn_flag
4461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4468 if test -z "$ac_cpp_err"; then
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 # Broken: fails on valid input.
4477 rm -f conftest.err conftest.$ac_ext
4479 # OK, works on sane cases. Now check whether non-existent headers
4480 # can be detected and how.
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 @%:@include <ac_nonexistent.h>
4489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null; then
4497 if test -s conftest.err; then
4498 ac_cpp_err=$ac_c_preproc_warn_flag
4499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4506 if test -z "$ac_cpp_err"; then
4507 # Broken: success on invalid input.
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 # Passes both tests.
4517 rm -f conftest.err conftest.$ac_ext
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.err conftest.$ac_ext
4522 if $ac_preproc_ok; then
4525 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details." >&5
4527 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4528 See \`config.log' for more details." >&2;}
4529 { (exit 1); exit 1; }; }
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541 if test "${ac_cv_header_stdc+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4567 grep -v '^ *+' conftest.er1 >conftest.err
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_header_stdc=yes
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ac_cv_header_stdc=no
4591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4593 if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "memchr" >/dev/null 2>&1; then
4608 ac_cv_header_stdc=no
4614 if test $ac_cv_header_stdc = yes; then
4615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616 cat >conftest.$ac_ext <<_ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "free" >/dev/null 2>&1; then
4629 ac_cv_header_stdc=no
4635 if test $ac_cv_header_stdc = yes; then
4636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637 if test "$cross_compiling" = yes; then
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4647 #if ((' ' & 0x0FF) == 0x020)
4648 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4649 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4651 # define ISLOWER(c) \
4652 (('a' <= (c) && (c) <= 'i') \
4653 || ('j' <= (c) && (c) <= 'r') \
4654 || ('s' <= (c) && (c) <= 'z'))
4655 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4658 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4663 for (i = 0; i < 256; i++)
4664 if (XOR (islower (i), ISLOWER (i))
4665 || toupper (i) != TOUPPER (i))
4670 rm -f conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4683 echo "$as_me: program exited with status $ac_status" >&5
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4688 ac_cv_header_stdc=no
4690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4694 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4695 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4696 if test $ac_cv_header_stdc = yes; then
4698 cat >>confdefs.h <<\_ACEOF
4699 @%:@define STDC_HEADERS 1
4704 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4714 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4715 inttypes.h stdint.h unistd.h
4717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718 echo "$as_me:$LINENO: checking for $ac_header" >&5
4719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4731 @%:@include <$ac_header>
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4737 grep -v '^ *+' conftest.er1 >conftest.err
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_Header=yes"
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 eval "$as_ac_Header=no"
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776 for ac_header in dlfcn.h
4778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4788 # Is the header compilable?
4789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4798 @%:@include <$ac_header>
4800 rm -f conftest.$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4804 grep -v '^ *+' conftest.er1 >conftest.err
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler=yes
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_header_compiler=no
4828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6
4832 # Is the header present?
4833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835 cat >conftest.$ac_ext <<_ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 @%:@include <$ac_header>
4843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846 grep -v '^ *+' conftest.er1 >conftest.err
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null; then
4851 if test -s conftest.err; then
4852 ac_cpp_err=$ac_c_preproc_warn_flag
4853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4860 if test -z "$ac_cpp_err"; then
4861 ac_header_preproc=yes
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 ac_header_preproc=no
4868 rm -f conftest.err conftest.$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4872 # So? What about this header?
4873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4879 ac_header_preproc=yes
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4896 @%:@@%:@ ------------------------------------------------ @%:@@%:@
4897 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
4898 @%:@@%:@ ------------------------------------------------ @%:@@%:@
4901 sed "s/^/$as_me: WARNING: /" >&2
4904 echo "$as_me:$LINENO: checking for $ac_header" >&5
4905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 eval "$as_ac_Header=\$ac_header_preproc"
4911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916 cat >>confdefs.h <<_ACEOF
4917 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4925 ac_cpp='$CXXCPP $CPPFLAGS'
4926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4929 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4930 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4931 if test -z "$CXXCPP"; then
4932 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 # Double quotes because CXXCPP needs to be expanded
4936 for CXXCPP in "$CXX -E" "/lib/cpp"
4939 for ac_cxx_preproc_warn_flag in '' yes
4941 # Use a header file that comes with gcc, so configuring glibc
4942 # with a fresh cross-compiler works.
4943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944 # <limits.h> exists even on freestanding compilers.
4945 # On the NeXT, cc -E runs the code through the compiler's parser,
4946 # not just through cpp. "Syntax error" is here to catch this case.
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4954 @%:@ include <limits.h>
4956 @%:@ include <assert.h>
4960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_cxx_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4977 if test -z "$ac_cpp_err"; then
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 # Broken: fails on valid input.
4986 rm -f conftest.err conftest.$ac_ext
4988 # OK, works on sane cases. Now check whether non-existent headers
4989 # can be detected and how.
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 @%:@include <ac_nonexistent.h>
4998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5001 grep -v '^ *+' conftest.er1 >conftest.err
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } >/dev/null; then
5006 if test -s conftest.err; then
5007 ac_cpp_err=$ac_cxx_preproc_warn_flag
5008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5015 if test -z "$ac_cpp_err"; then
5016 # Broken: success on invalid input.
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 # Passes both tests.
5026 rm -f conftest.err conftest.$ac_ext
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then
5036 ac_cv_prog_CXXCPP=$CXXCPP
5039 CXXCPP=$ac_cv_prog_CXXCPP
5041 ac_cv_prog_CXXCPP=$CXXCPP
5043 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5044 echo "${ECHO_T}$CXXCPP" >&6
5046 for ac_cxx_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5061 @%:@ include <limits.h>
5063 @%:@ include <assert.h>
5067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5070 grep -v '^ *+' conftest.er1 >conftest.err
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev/null; then
5075 if test -s conftest.err; then
5076 ac_cpp_err=$ac_cxx_preproc_warn_flag
5077 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5084 if test -z "$ac_cpp_err"; then
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 # Broken: fails on valid input.
5093 rm -f conftest.err conftest.$ac_ext
5095 # OK, works on sane cases. Now check whether non-existent headers
5096 # can be detected and how.
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 @%:@include <ac_nonexistent.h>
5105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_cxx_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5122 if test -z "$ac_cpp_err"; then
5123 # Broken: success on invalid input.
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 # Passes both tests.
5133 rm -f conftest.err conftest.$ac_ext
5136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137 rm -f conftest.err conftest.$ac_ext
5138 if $ac_preproc_ok; then
5141 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5149 ac_cpp='$CXXCPP $CPPFLAGS'
5150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5156 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5157 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5159 if test -n "$ac_tool_prefix"; then
5160 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5163 set dummy $ac_tool_prefix$ac_prog; 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_F77+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 if test -n "$F77"; then
5170 ac_cv_prog_F77="$F77" # 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_F77="$ac_tool_prefix$ac_prog"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 if test -n "$F77"; then
5190 echo "$as_me:$LINENO: result: $F77" >&5
5191 echo "${ECHO_T}$F77" >&6
5193 echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5197 test -n "$F77" && break
5200 if test -z "$F77"; then
5202 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5204 # Extract the first word of "$ac_prog", so it can be a program name with args.
5205 set dummy $ac_prog; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 if test -n "$ac_ct_F77"; then
5212 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_ac_ct_F77="$ac_prog"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5231 if test -n "$ac_ct_F77"; then
5232 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5233 echo "${ECHO_T}$ac_ct_F77" >&6
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5239 test -n "$ac_ct_F77" && break
5246 # Provide some information about the compiler.
5247 echo "$as_me:__oline__:" \
5248 "checking for Fortran 77 compiler version" >&5
5249 ac_compiler=`set X $ac_compile; echo $2`
5250 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5251 (eval $ac_compiler --version </dev/null >&5) 2>&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }
5255 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5256 (eval $ac_compiler -v </dev/null >&5) 2>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }
5260 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5261 (eval $ac_compiler -V </dev/null >&5) 2>&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }
5267 # If we don't use `.F' as extension, the preprocessor is not run on the
5268 # input file. (Note that this only needs to work for GNU compilers.)
5271 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5272 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5273 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 cat >conftest.$ac_ext <<_ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>conftest.er1
5288 grep -v '^ *+' conftest.er1 >conftest.err
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5313 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5316 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5317 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5319 ac_test_FFLAGS=${FFLAGS+set}
5320 ac_save_FFLAGS=$FFLAGS
5322 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5323 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5324 if test "${ac_cv_prog_f77_g+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 cat >conftest.$ac_ext <<_ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_prog_f77_g=yes
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5364 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5365 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5366 if test "$ac_test_FFLAGS" = set; then
5367 FFLAGS=$ac_save_FFLAGS
5368 elif test $ac_cv_prog_f77_g = yes; then
5369 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5375 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5382 G77=`test $ac_compiler_gnu = yes && echo yes`
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5393 # find the maximum length of command line arguments
5394 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5395 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5396 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 # On DJGPP, this test can blow up pretty badly due to problems in libc
5405 # (any single argument exceeding 2000 bytes causes a buffer overrun
5406 # during glob expansion). Even if it were fixed, the result of this
5407 # check would be larger than it should be.
5408 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5412 # Under GNU Hurd, this test is not required because there is
5413 # no limit to the length of command line arguments.
5414 # Libtool will interpret -1 as no limit whatsoever
5415 lt_cv_sys_max_cmd_len=-1;
5419 # On Win9x/ME, this test blows up -- it succeeds, but takes
5420 # about 5 minutes as the teststring grows exponentially.
5421 # Worse, since 9x/ME are not pre-emptively multitasking,
5422 # you end up with a "frozen" computer, even though with patience
5423 # the test eventually succeeds (with a max line length of 256k).
5424 # Instead, let's just punt: use the minimum linelength reported by
5425 # all of the supported platforms: 8192 (on NT/2K/XP).
5426 lt_cv_sys_max_cmd_len=8192;
5430 # On AmigaOS with pdksh, this test takes hours, literally.
5431 # So we just punt and use a minimum line length of 8192.
5432 lt_cv_sys_max_cmd_len=8192;
5436 # If test is not a shell built-in, we'll probably end up computing a
5437 # maximum length that is only half of the actual maximum length, but
5439 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5440 = "XX$teststring") >/dev/null 2>&1 &&
5441 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5442 lt_cv_sys_max_cmd_len=$new_result &&
5443 test $i != 17 # 1/2 MB should be enough
5446 teststring=$teststring$teststring
5449 # Add a significant safety factor because C++ compilers can tack on massive
5450 # amounts of additional arguments before passing them to the linker.
5451 # It appears as though 1/2 is a usable value.
5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5458 if test -n $lt_cv_sys_max_cmd_len ; then
5459 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5460 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5462 echo "$as_me:$LINENO: result: none" >&5
5463 echo "${ECHO_T}none" >&6
5469 # Check for command to grab the raw symbol name followed by C symbol from nm.
5470 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5471 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5472 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 # These are sane defaults that work on at least a few old systems.
5477 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5479 # Character class describing NM global symbol codes.
5480 symcode='[BCDEGRST]'
5482 # Regexp to match symbols that can be accessed directly from C.
5483 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5485 # Transform the above into a raw symbol and a C symbol.
5486 symxfrm='\1 \2\3 \3'
5488 # Transform an extracted symbol line into a proper C declaration
5489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5491 # Transform an extracted symbol line into symbol name and symbol address
5492 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'"
5494 # Define system-specific variables.
5499 cygwin* | mingw* | pw32*)
5500 symcode='[ABCDGISTW]'
5502 hpux*) # Its linker distinguishes data from code symbols
5503 if test "$host_cpu" = ia64; then
5504 symcode='[ABCDEGRST]'
5506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5507 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'"
5510 symcode='[BCDEGRST]'
5513 symcode='[BCDEGQRST]'
5523 # Handle CRLF in mingw tool chain
5527 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5531 # If we're using GNU nm, then use its standard symbol codes.
5532 case `$NM -V 2>&1` in
5533 *GNU* | *'with BFD'*)
5534 symcode='[ABCDGIRSTW]' ;;
5537 # Try without a prefix undercore, then with it.
5538 for ac_symprfx in "" "_"; do
5540 # Write the raw and C identifiers.
5541 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5543 # Check to see that the pipe works correctly.
5547 cat > conftest.$ac_ext <<EOF
5552 void nm_test_func(){}
5556 int main(){nm_test_var='a';nm_test_func();return(0);}
5559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560 (eval $ac_compile) 2>&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; then
5564 # Now try to grab the symbols.
5566 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5567 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && test -s "$nlist"; then
5571 # Try sorting and uniquifying the output.
5572 if sort "$nlist" | uniq > "$nlist"T; then
5573 mv -f "$nlist"T "$nlist"
5578 # Make sure that we snagged all the symbols we need.
5579 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5580 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5581 cat <<EOF > conftest.$ac_ext
5587 # Now generate the symbol file.
5588 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5590 cat <<EOF >> conftest.$ac_ext
5591 #if defined (__STDC__) && __STDC__
5592 # define lt_ptr_t void *
5594 # define lt_ptr_t char *
5598 /* The mapping between symbol names and symbols. */
5603 lt_preloaded_symbols[] =
5606 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5607 cat <<\EOF >> conftest.$ac_ext
5615 # Now try linking the two files.
5616 mv conftest.$ac_objext conftstm.$ac_objext
5617 lt_save_LIBS="$LIBS"
5618 lt_save_CFLAGS="$CFLAGS"
5619 LIBS="conftstm.$ac_objext"
5620 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5622 (eval $ac_link) 2>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5628 LIBS="$lt_save_LIBS"
5629 CFLAGS="$lt_save_CFLAGS"
5631 echo "cannot find nm_test_func in $nlist" >&5
5634 echo "cannot find nm_test_var in $nlist" >&5
5637 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5640 echo "$progname: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5643 rm -f conftest* conftst*
5645 # Do not use the global_symbol_pipe unless it works.
5646 if test "$pipe_works" = yes; then
5649 lt_cv_sys_global_symbol_pipe=
5655 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5656 lt_cv_sys_global_symbol_to_cdecl=
5658 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5659 echo "$as_me:$LINENO: result: failed" >&5
5660 echo "${ECHO_T}failed" >&6
5662 echo "$as_me:$LINENO: result: ok" >&5
5663 echo "${ECHO_T}ok" >&6
5666 echo "$as_me:$LINENO: checking for objdir" >&5
5667 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5668 if test "${lt_cv_objdir+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 rm -f .libs 2>/dev/null
5672 mkdir .libs 2>/dev/null
5673 if test -d .libs; then
5676 # MS-DOS does not allow filenames that begin with a dot.
5679 rmdir .libs 2>/dev/null
5681 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5682 echo "${ECHO_T}$lt_cv_objdir" >&6
5683 objdir=$lt_cv_objdir
5691 # AIX sometimes has problems with the GCC collect2 program. For some
5692 # reason, if we set the COLLECT_NAMES environment variable, the problems
5693 # vanish in a puff of smoke.
5694 if test "X${COLLECT_NAMES+set}" != Xset; then
5696 export COLLECT_NAMES
5701 # Sed substitution that helps us do robust quoting. It backslashifies
5702 # metacharacters that are still active within double-quoted strings.
5703 Xsed='sed -e s/^X//'
5704 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5706 # Same as above, but do not quote variable references.
5707 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5709 # Sed substitution to delay expansion of an escaped shell variable in a
5710 # double_quote_subst'ed string.
5711 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5713 # Sed substitution to avoid accidental globbing in evaled expressions
5714 no_glob_subst='s/\*/\\\*/g'
5720 default_ofile=libtool
5721 can_build_shared=yes
5723 # All known linkers require a `.a' archive for static linking (except M$VC,
5724 # which needs '.lib').
5726 ltmain="$ac_aux_dir/ltmain.sh"
5727 ofile="$default_ofile"
5728 with_gnu_ld="$lt_cv_prog_gnu_ld"
5730 if test -n "$ac_tool_prefix"; then
5731 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5732 set dummy ${ac_tool_prefix}ar; ac_word=$2
5733 echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735 if test "${ac_cv_prog_AR+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 if test -n "$AR"; then
5739 ac_cv_prog_AR="$AR" # Let the user override the test.
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_AR="${ac_tool_prefix}ar"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 if test -n "$AR"; then
5759 echo "$as_me:$LINENO: result: $AR" >&5
5760 echo "${ECHO_T}$AR" >&6
5762 echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6
5767 if test -z "$ac_cv_prog_AR"; then
5769 # Extract the first word of "ar", so it can be a program name with args.
5770 set dummy ar; ac_word=$2
5771 echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 if test -n "$ac_ct_AR"; then
5777 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_ac_ct_AR="ar"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5797 if test -n "$ac_ct_AR"; then
5798 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5799 echo "${ECHO_T}$ac_ct_AR" >&6
5801 echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813 echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815 if test "${ac_cv_prog_RANLIB+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 if test -n "$RANLIB"; then
5819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 RANLIB=$ac_cv_prog_RANLIB
5838 if test -n "$RANLIB"; then
5839 echo "$as_me:$LINENO: result: $RANLIB" >&5
5840 echo "${ECHO_T}$RANLIB" >&6
5842 echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5847 if test -z "$ac_cv_prog_RANLIB"; then
5848 ac_ct_RANLIB=$RANLIB
5849 # Extract the first word of "ranlib", so it can be a program name with args.
5850 set dummy ranlib; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test -n "$ac_ct_RANLIB"; then
5857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_ac_ct_RANLIB="ranlib"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5877 if test -n "$ac_ct_RANLIB"; then
5878 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5879 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5881 echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5885 RANLIB=$ac_ct_RANLIB
5887 RANLIB="$ac_cv_prog_RANLIB"
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}strip; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_STRIP+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 if test -n "$STRIP"; then
5899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 STRIP=$ac_cv_prog_STRIP
5918 if test -n "$STRIP"; then
5919 echo "$as_me:$LINENO: result: $STRIP" >&5
5920 echo "${ECHO_T}$STRIP" >&6
5922 echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5927 if test -z "$ac_cv_prog_STRIP"; then
5929 # Extract the first word of "strip", so it can be a program name with args.
5930 set dummy strip; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 if test -n "$ac_ct_STRIP"; then
5937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_ac_ct_STRIP="strip"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5957 if test -n "$ac_ct_STRIP"; then
5958 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5959 echo "${ECHO_T}$ac_ct_STRIP" >&6
5961 echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6
5967 STRIP="$ac_cv_prog_STRIP"
5972 old_CFLAGS="$CFLAGS"
5974 # Set sane defaults for various variables
5975 test -z "$AR" && AR=ar
5976 test -z "$AR_FLAGS" && AR_FLAGS=cru
5977 test -z "$AS" && AS=as
5978 test -z "$CC" && CC=cc
5979 test -z "$LTCC" && LTCC=$CC
5980 test -z "$DLLTOOL" && DLLTOOL=dlltool
5981 test -z "$LD" && LD=ld
5982 test -z "$LN_S" && LN_S="ln -s"
5983 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5984 test -z "$NM" && NM=nm
5985 test -z "$SED" && SED=sed
5986 test -z "$OBJDUMP" && OBJDUMP=objdump
5987 test -z "$RANLIB" && RANLIB=:
5988 test -z "$STRIP" && STRIP=:
5989 test -z "$ac_objext" && ac_objext=o
5991 # Determine commands to create old-style static archives.
5992 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5993 old_postinstall_cmds='chmod 644 $oldlib'
5994 old_postuninstall_cmds=
5996 if test -n "$RANLIB"; then
5999 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6002 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6005 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6008 # Only perform the check for file, if the check method requires it
6009 case $deplibs_check_method in
6011 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6012 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6013 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6014 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6022 lt_save_MAGIC_CMD="$MAGIC_CMD"
6023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6024 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6025 for ac_dir in $ac_dummy; do
6027 test -z "$ac_dir" && ac_dir=.
6028 if test -f $ac_dir/${ac_tool_prefix}file; then
6029 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6030 if test -n "$file_magic_test_file"; then
6031 case $deplibs_check_method in
6033 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6036 $EGREP "$file_magic_regex" > /dev/null; then
6041 *** Warning: the command libtool uses to detect shared libraries,
6042 *** $file_magic_cmd, produces output that libtool cannot recognize.
6043 *** The result is that libtool may fail to recognize shared libraries
6044 *** as such. This will affect the creation of libtool libraries that
6045 *** depend on shared libraries, but programs linked with such libtool
6046 *** libraries will work regardless of this problem. Nevertheless, you
6047 *** may want to report the problem to your system manager and/or to
6048 *** bug-libtool@gnu.org
6058 MAGIC_CMD="$lt_save_MAGIC_CMD"
6063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064 if test -n "$MAGIC_CMD"; then
6065 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6066 echo "${ECHO_T}$MAGIC_CMD" >&6
6068 echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6072 if test -z "$lt_cv_path_MAGIC_CMD"; then
6073 if test -n "$ac_tool_prefix"; then
6074 echo "$as_me:$LINENO: checking for file" >&5
6075 echo $ECHO_N "checking for file... $ECHO_C" >&6
6076 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6084 lt_save_MAGIC_CMD="$MAGIC_CMD"
6085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6087 for ac_dir in $ac_dummy; do
6089 test -z "$ac_dir" && ac_dir=.
6090 if test -f $ac_dir/file; then
6091 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6092 if test -n "$file_magic_test_file"; then
6093 case $deplibs_check_method in
6095 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6098 $EGREP "$file_magic_regex" > /dev/null; then
6103 *** Warning: the command libtool uses to detect shared libraries,
6104 *** $file_magic_cmd, produces output that libtool cannot recognize.
6105 *** The result is that libtool may fail to recognize shared libraries
6106 *** as such. This will affect the creation of libtool libraries that
6107 *** depend on shared libraries, but programs linked with such libtool
6108 *** libraries will work regardless of this problem. Nevertheless, you
6109 *** may want to report the problem to your system manager and/or to
6110 *** bug-libtool@gnu.org
6120 MAGIC_CMD="$lt_save_MAGIC_CMD"
6125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126 if test -n "$MAGIC_CMD"; then
6127 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6128 echo "${ECHO_T}$MAGIC_CMD" >&6
6130 echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6146 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6147 if test "${enable_libtool_lock+set}" = set; then
6148 enableval="$enable_libtool_lock"
6151 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6154 # Check whether --with-pic or --without-pic was given.
6155 if test "${with_pic+set}" = set; then
6161 test -z "$pic_mode" && pic_mode=default
6163 # Use C for the default configuration in the libtool script
6167 ac_cpp='$CPP $CPPFLAGS'
6168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173 # Source file extension for C test sources.
6176 # Object file extension for compiled C test sources.
6180 # Code to be used in simple compile tests
6181 lt_simple_compile_test_code="int some_variable = 0;\n"
6183 # Code to be used in simple link tests
6184 lt_simple_link_test_code='int main(){return(0);}\n'
6187 # If no C compiler was specified, use CC.
6190 # Allow CC to be a program name with arguments.
6195 # Check for any special shared library compilation flags.
6198 if test "$GCC" = no; then
6201 lt_prog_cc_shlib='-belf'
6205 if test -n "$lt_prog_cc_shlib"; then
6206 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6207 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6208 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6210 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6211 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6212 lt_cv_prog_cc_can_build_shared=no
6218 # Check to make sure the static flag actually works.
6220 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6221 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6222 if test "${lt_prog_compiler_static_works+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 lt_prog_compiler_static_works=no
6226 save_LDFLAGS="$LDFLAGS"
6227 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6228 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6230 # The compiler can only warn and ignore the option if not recognized
6231 # So say no if there are warnings
6232 if test -s conftest.err; then
6233 # Append any errors to the config.log.
6234 cat conftest.err 1>&5
6236 lt_prog_compiler_static_works=yes
6240 LDFLAGS="$save_LDFLAGS"
6243 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6244 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6246 if test x"$lt_prog_compiler_static_works" = xyes; then
6249 lt_prog_compiler_static=
6255 ## There is no encapsulation within the following macros, do not change
6256 ## the running order or otherwise move them around unless you know exactly
6257 ## what you are doing...
6259 lt_prog_compiler_no_builtin_flag=
6261 if test "$GCC" = yes; then
6262 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6265 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6266 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6267 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 lt_cv_prog_compiler_rtti_exceptions=no
6271 ac_outfile=conftest.$ac_objext
6272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6273 lt_compiler_flag="-fno-rtti -fno-exceptions"
6274 # Insert the option either (1) after the last *FLAGS variable, or
6275 # (2) before a word containing "conftest.", or (3) at the end.
6276 # Note that $ac_compile itself does not contain backslashes and begins
6277 # with a dollar sign (not a hyphen), so the echo should work correctly.
6278 # The option is referenced via a variable to avoid confusing sed.
6279 lt_compile=`echo "$ac_compile" | $SED \
6280 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6282 -e 's:$: $lt_compiler_flag:'`
6283 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6284 (eval "$lt_compile" 2>conftest.err)
6286 cat conftest.err >&5
6287 echo "$as_me:__oline__: \$? = $ac_status" >&5
6288 if (exit $ac_status) && test -s "$ac_outfile"; then
6289 # The compiler can only warn and ignore the option if not recognized
6290 # So say no if there are warnings
6291 if test ! -s conftest.err; then
6292 lt_cv_prog_compiler_rtti_exceptions=yes
6298 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6299 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6301 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6302 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6309 lt_prog_compiler_wl=
6310 lt_prog_compiler_pic=
6311 lt_prog_compiler_static=
6313 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6314 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6316 if test "$GCC" = yes; then
6317 lt_prog_compiler_wl='-Wl,'
6318 lt_prog_compiler_static='-static'
6322 # All AIX code is PIC.
6323 if test "$host_cpu" = ia64; then
6324 # AIX 5 now supports IA64 processor
6325 lt_prog_compiler_static='-Bstatic'
6330 # FIXME: we need at least 68020 code to build shared libraries, but
6331 # adding the `-m68020' flag to GCC prevents building anything better,
6333 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6336 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6337 # PIC is the default for these OSes.
6340 mingw* | pw32* | os2*)
6341 # This hack is so that the source file can tell whether it is being
6342 # built for inclusion in a dll (and should export symbols for example).
6343 lt_prog_compiler_pic='-DDLL_EXPORT'
6346 darwin* | rhapsody*)
6347 # PIC is the default on this platform
6348 # Common symbols not allowed in MH_DYLIB files
6349 lt_prog_compiler_pic='-fno-common'
6353 # Just because we use GCC doesn't mean we suddenly get shared libraries
6354 # on systems that don't support them.
6355 lt_prog_compiler_can_build_shared=no
6360 if test -d /usr/nec; then
6361 lt_prog_compiler_pic=-Kconform_pic
6366 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6373 lt_prog_compiler_pic='-fPIC'
6379 lt_prog_compiler_pic='-fPIC'
6383 # PORTME Check for flag to pass linker flags through the system compiler.
6386 lt_prog_compiler_wl='-Wl,'
6387 if test "$host_cpu" = ia64; then
6388 # AIX 5 now supports IA64 processor
6389 lt_prog_compiler_static='-Bstatic'
6391 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6395 mingw* | pw32* | os2*)
6396 # This hack is so that the source file can tell whether it is being
6397 # built for inclusion in a dll (and should export symbols for example).
6398 lt_prog_compiler_pic='-DDLL_EXPORT'
6401 hpux9* | hpux10* | hpux11*)
6402 lt_prog_compiler_wl='-Wl,'
6403 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6410 lt_prog_compiler_pic='+Z'
6413 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6414 lt_prog_compiler_static='${wl}-a ${wl}archive'
6417 irix5* | irix6* | nonstopux*)
6418 lt_prog_compiler_wl='-Wl,'
6419 # PIC (with -KPIC) is the default.
6420 lt_prog_compiler_static='-non_shared'
6424 lt_prog_compiler_pic='-KPIC'
6425 lt_prog_compiler_static='-Bstatic'
6431 lt_prog_compiler_wl='-Wl,'
6432 lt_prog_compiler_pic='-KPIC'
6433 lt_prog_compiler_static='-static'
6436 lt_prog_compiler_wl='-Wl,'
6437 # All Alpha code is PIC.
6438 lt_prog_compiler_static='-non_shared'
6443 osf3* | osf4* | osf5*)
6444 lt_prog_compiler_wl='-Wl,'
6445 # All OSF/1 code is PIC.
6446 lt_prog_compiler_static='-non_shared'
6450 lt_prog_compiler_pic='-Kpic'
6451 lt_prog_compiler_static='-dn'
6455 lt_prog_compiler_wl='-Wl,'
6456 lt_prog_compiler_pic='-KPIC'
6457 lt_prog_compiler_static='-Bstatic'
6461 lt_prog_compiler_wl='-Qoption ld '
6462 lt_prog_compiler_pic='-PIC'
6463 lt_prog_compiler_static='-Bstatic'
6466 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6467 lt_prog_compiler_wl='-Wl,'
6468 lt_prog_compiler_pic='-KPIC'
6469 lt_prog_compiler_static='-Bstatic'
6473 if test -d /usr/nec ;then
6474 lt_prog_compiler_pic='-Kconform_pic'
6475 lt_prog_compiler_static='-Bstatic'
6480 lt_prog_compiler_pic='-pic'
6481 lt_prog_compiler_static='-Bstatic'
6485 lt_prog_compiler_can_build_shared=no
6490 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6491 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6494 # Check to make sure the PIC flag actually works.
6496 if test -n "$lt_prog_compiler_pic"; then
6498 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6499 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6500 if test "${lt_prog_compiler_pic_works+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 lt_prog_compiler_pic_works=no
6504 ac_outfile=conftest.$ac_objext
6505 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6506 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6507 # Insert the option either (1) after the last *FLAGS variable, or
6508 # (2) before a word containing "conftest.", or (3) at the end.
6509 # Note that $ac_compile itself does not contain backslashes and begins
6510 # with a dollar sign (not a hyphen), so the echo should work correctly.
6511 # The option is referenced via a variable to avoid confusing sed.
6512 lt_compile=`echo "$ac_compile" | $SED \
6513 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6515 -e 's:$: $lt_compiler_flag:'`
6516 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6517 (eval "$lt_compile" 2>conftest.err)
6519 cat conftest.err >&5
6520 echo "$as_me:__oline__: \$? = $ac_status" >&5
6521 if (exit $ac_status) && test -s "$ac_outfile"; then
6522 # The compiler can only warn and ignore the option if not recognized
6523 # So say no if there are warnings
6524 if test ! -s conftest.err; then
6525 lt_prog_compiler_pic_works=yes
6531 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6532 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6534 if test x"$lt_prog_compiler_pic_works" = xyes; then
6535 case $lt_prog_compiler_pic in
6537 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6540 lt_prog_compiler_pic=
6541 lt_prog_compiler_can_build_shared=no
6546 # For platforms which do not support PIC, -DPIC is meaningless:
6548 lt_prog_compiler_pic=
6551 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6555 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6556 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6557 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 lt_cv_prog_compiler_c_o=no
6561 $rm -r conftest 2>/dev/null
6565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6567 lt_compiler_flag="-o out/conftest2.$ac_objext"
6568 # Insert the option either (1) after the last *FLAGS variable, or
6569 # (2) before a word containing "conftest.", or (3) at the end.
6570 # Note that $ac_compile itself does not contain backslashes and begins
6571 # with a dollar sign (not a hyphen), so the echo should work correctly.
6572 lt_compile=`echo "$ac_compile" | $SED \
6573 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6575 -e 's:$: $lt_compiler_flag:'`
6576 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6577 (eval "$lt_compile" 2>out/conftest.err)
6579 cat out/conftest.err >&5
6580 echo "$as_me:__oline__: \$? = $ac_status" >&5
6581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6583 # The compiler can only warn and ignore the option if not recognized
6584 # So say no if there are warnings
6585 if test ! -s out/conftest.err; then
6586 lt_cv_prog_compiler_c_o=yes
6591 # SGI C++ compiler will create directory out/ii_files/ for
6592 # template instantiation
6593 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6594 $rm out/* && rmdir out
6600 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6601 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6604 hard_links="nottested"
6605 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6606 # do not overwrite the value of need_locks provided by the user
6607 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6608 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6613 ln conftest.a conftest.b 2>&5 || hard_links=no
6614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6615 echo "$as_me:$LINENO: result: $hard_links" >&5
6616 echo "${ECHO_T}$hard_links" >&6
6617 if test "$hard_links" = no; then
6618 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6619 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6626 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6627 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6630 allow_undefined_flag=
6631 enable_shared_with_static_runtimes=no
6633 archive_expsym_cmds=
6634 old_archive_From_new_cmds=
6635 old_archive_from_expsyms_cmds=
6636 export_dynamic_flag_spec=
6637 whole_archive_flag_spec=
6638 thread_safe_flag_spec=
6639 hardcode_libdir_flag_spec=
6640 hardcode_libdir_flag_spec_ld=
6641 hardcode_libdir_separator=
6644 hardcode_shlibpath_var=unsupported
6645 link_all_deplibs=unknown
6646 hardcode_automatic=no
6649 always_export_symbols=no
6650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6651 # include_expsyms should be a list of space-separated symbols to be *always*
6652 # included in the symbol list
6654 # exclude_expsyms can be an extended regexp of symbols to exclude
6655 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6657 # as well as any symbol that contains `d'.
6658 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6660 # platforms (ab)use it in PIC code, but their linkers get confused if
6661 # the symbol is explicitly referenced. Since portable code cannot
6662 # rely on this symbol name, it's probably fine to never include it in
6663 # preloaded symbol tables.
6664 extract_expsyms_cmds=
6667 cygwin* | mingw* | pw32*)
6668 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6669 # When not using gcc, we currently assume that we are using
6670 # Microsoft Visual C++.
6671 if test "$GCC" != yes; then
6681 if test "$with_gnu_ld" = yes; then
6682 # If archive_cmds runs LD, not CC, wlarc should be empty
6685 # See if GNU ld supports shared libraries.
6687 aix3* | aix4* | aix5*)
6688 # On AIX/PPC, the GNU linker is very broken
6689 if test "$host_cpu" != ia64; then
6693 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6694 *** to be unable to reliably create shared libraries on AIX.
6695 *** Therefore, libtool is disabling shared libraries support. If you
6696 *** really care for shared libraries, you may want to modify your PATH
6697 *** so that a non-GNU linker is found, and then restart.
6704 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)'
6705 hardcode_libdir_flag_spec='-L$libdir'
6706 hardcode_minus_L=yes
6708 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6709 # that the semantics of dynamic libraries on AmigaOS, at least up
6710 # to version 4, is to share data among multiple programs linked
6711 # with the same dynamic library. Since this doesn't match the
6712 # behavior of shared libraries on other platforms, we can't use
6718 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6719 allow_undefined_flag=unsupported
6720 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6721 # support --undefined. This deserves some investigation. FIXME
6722 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6728 cygwin* | mingw* | pw32*)
6729 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6730 # as there is no search path for DLLs.
6731 hardcode_libdir_flag_spec='-L$libdir'
6732 allow_undefined_flag=unsupported
6733 always_export_symbols=no
6734 enable_shared_with_static_runtimes=yes
6735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6737 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6739 # If the export-symbols file already is a .def file (1st line
6740 # is EXPORTS), use it as is; otherwise, prepend...
6741 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6742 cp $export_symbols $output_objdir/$soname.def;
6744 echo EXPORTS > $output_objdir/$soname.def;
6745 cat $export_symbols >> $output_objdir/$soname.def;
6747 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6753 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6755 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6764 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6768 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6769 *** create shared libraries on Solaris systems. Therefore, libtool
6770 *** is disabling shared libraries support. We urge you to upgrade GNU
6771 *** binutils to release 2.9.1 or newer. Another option is to modify
6772 *** your PATH or compiler configuration so that the native linker is
6773 *** used, and then restart.
6776 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6785 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6788 hardcode_shlibpath_var=no
6792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6793 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6794 archive_cmds="$tmp_archive_cmds"
6795 supports_anon_versioning=no
6796 case `$LD -v 2>/dev/null` in
6797 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6798 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6799 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6800 *\ 2.11.*) ;; # other 2.11 versions
6801 *) supports_anon_versioning=yes ;;
6803 if test $supports_anon_versioning = yes; then
6804 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6806 $echo "local: *; };" >> $output_objdir/$libname.ver~
6807 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6809 archive_expsym_cmds="$tmp_archive_cmds"
6818 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6827 if test "$ld_shlibs" = yes; then
6828 runpath_var=LD_RUN_PATH
6829 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6830 export_dynamic_flag_spec='${wl}--export-dynamic'
6831 # ancient GNU ld didn't support --whole-archive et. al.
6832 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6833 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6835 whole_archive_flag_spec=
6839 # PORTME fill in a description of your system's linker (not GNU ld)
6842 allow_undefined_flag=unsupported
6843 always_export_symbols=yes
6844 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'
6845 # Note: this linker hardcodes the directories in LIBPATH if there
6846 # are no directories specified by -L.
6847 hardcode_minus_L=yes
6848 if test "$GCC" = yes && test -z "$link_static_flag"; then
6849 # Neither direct hardcoding nor static linking is supported with a
6851 hardcode_direct=unsupported
6856 if test "$host_cpu" = ia64; then
6857 # On IA64, the linker does run time linking by default, so we don't
6858 # have to do anything special.
6859 aix_use_runtimelinking=no
6860 exp_sym_flag='-Bexport'
6863 # If we're using GNU nm, then we don't want the "-C" option.
6864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6865 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6866 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'
6868 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'
6870 aix_use_runtimelinking=no
6872 # Test if we are trying to use run time linking or normal
6873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6874 # need to do runtime linking.
6875 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6876 for ld_flag in $LDFLAGS; do
6877 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6878 aix_use_runtimelinking=yes
6884 exp_sym_flag='-bexport'
6885 no_entry_flag='-bnoentry'
6888 # When large executables or shared objects are built, AIX ld can
6889 # have problems creating the table of contents. If linking a library
6890 # or program results in "error TOC overflow" add -mminimal-toc to
6891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6896 hardcode_libdir_separator=':'
6897 link_all_deplibs=yes
6899 if test "$GCC" = yes; then
6900 case $host_os in aix4.012|aix4.012.*)
6901 # We only want to do this on AIX 4.2 and lower, the check
6902 # below for broken collect2 doesn't work under 4.3+
6903 collect2name=`${CC} -print-prog-name=collect2`
6904 if test -f "$collect2name" && \
6905 strings "$collect2name" | grep resolve_lib_name >/dev/null
6907 # We have reworked collect2
6910 # We have old collect2
6911 hardcode_direct=unsupported
6912 # It fails to find uninstalled libraries when the uninstalled
6913 # path is not listed in the libpath. Setting hardcode_minus_L
6914 # to unsupported forces relinking
6915 hardcode_minus_L=yes
6916 hardcode_libdir_flag_spec='-L$libdir'
6917 hardcode_libdir_separator=
6920 shared_flag='-shared'
6923 if test "$host_cpu" = ia64; then
6924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6925 # chokes on -Wl,-G. The following line is correct:
6928 if test "$aix_use_runtimelinking" = yes; then
6929 shared_flag='${wl}-G'
6931 shared_flag='${wl}-bM:SRE'
6936 # It seems that -bexpall does not export symbols beginning with
6937 # underscore (_), so it is better to generate a list of symbols to export.
6938 always_export_symbols=yes
6939 if test "$aix_use_runtimelinking" = yes; then
6940 # Warning - without using the other runtime loading flags (-brtl),
6941 # -berok will link without error, but may produce a broken library.
6942 allow_undefined_flag='-berok'
6943 # Determine the default libpath from the value encoded in an empty executable.
6944 cat >conftest.$ac_ext <<_ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>conftest.er1
6963 grep -v '^ *+' conftest.er1 >conftest.err
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest$ac_exeext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6983 # Check for a 64-bit object if we didn't find anything.
6984 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; }
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6991 rm -f conftest.err conftest.$ac_objext \
6992 conftest$ac_exeext conftest.$ac_ext
6993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6995 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6996 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"
6998 if test "$host_cpu" = ia64; then
6999 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7000 allow_undefined_flag="-z nodefs"
7001 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"
7003 # Determine the default libpath from the value encoded in an empty executable.
7004 cat >conftest.$ac_ext <<_ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021 (eval $ac_link) 2>conftest.er1
7023 grep -v '^ *+' conftest.er1 >conftest.err
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } &&
7028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; } &&
7034 { ac_try='test -s conftest$ac_exeext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7043 # Check for a 64-bit object if we didn't find anything.
7044 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; }
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7051 rm -f conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7053 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7055 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7056 # Warning - without using the other run time loading flags,
7057 # -berok will link without error, but may produce a broken library.
7058 no_undefined_flag=' ${wl}-bernotok'
7059 allow_undefined_flag=' ${wl}-berok'
7060 # -bexpall does not export symbols beginning with underscore (_)
7061 always_export_symbols=yes
7062 # Exported symbols can be pulled into shared objects from archives
7063 whole_archive_flag_spec=' '
7064 archive_cmds_need_lc=yes
7065 # This is similar to how AIX traditionally builds it's shared libraries.
7066 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'
7072 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)'
7073 hardcode_libdir_flag_spec='-L$libdir'
7074 hardcode_minus_L=yes
7075 # see comment about different semantics on the GNU ld section
7080 export_dynamic_flag_spec=-rdynamic
7083 cygwin* | mingw* | pw32*)
7084 # When not using gcc, we currently assume that we are using
7085 # Microsoft Visual C++.
7086 # hardcode_libdir_flag_spec is actually meaningless, as there is
7087 # no search path for DLLs.
7088 hardcode_libdir_flag_spec=' '
7089 allow_undefined_flag=unsupported
7090 # Tell ltmain to make .lib files, not .a files.
7092 # Tell ltmain to make .dll files, not .so files.
7094 # FIXME: Setting linknames here is a bad hack.
7095 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7096 # The linker will automatically build a .lib file if we build a DLL.
7097 old_archive_From_new_cmds='true'
7098 # FIXME: Should let the user specify the lib program.
7099 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7100 fix_srcfile_path='`cygpath -w "$srcfile"`'
7101 enable_shared_with_static_runtimes=yes
7104 darwin* | rhapsody*)
7105 if test "$GXX" = yes ; then
7106 archive_cmds_need_lc=no
7108 rhapsody* | darwin1.[012])
7109 allow_undefined_flag='-undefined suppress'
7112 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7113 allow_undefined_flag='-flat_namespace -undefined suppress'
7115 case ${MACOSX_DEPLOYMENT_TARGET} in
7117 allow_undefined_flag='-flat_namespace -undefined suppress'
7120 allow_undefined_flag='-undefined dynamic_lookup'
7126 lt_int_apple_cc_single_mod=no
7127 output_verbose_link_cmd='echo'
7128 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7129 lt_int_apple_cc_single_mod=yes
7131 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7132 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7134 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'
7136 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7138 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7139 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}'
7141 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}'
7143 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7145 hardcode_automatic=yes
7146 hardcode_shlibpath_var=unsupported
7147 whole_archive_flag_spec='-all_load $convenience'
7148 link_all_deplibs=yes
7155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7156 hardcode_libdir_flag_spec='-L$libdir'
7157 hardcode_shlibpath_var=no
7164 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7165 # support. Future versions do this automatically, but an explicit c++rt0.o
7166 # does not break anything, and helps significantly (at the cost of a little
7169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7170 hardcode_libdir_flag_spec='-R$libdir'
7172 hardcode_shlibpath_var=no
7175 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7179 hardcode_minus_L=yes
7180 hardcode_shlibpath_var=no
7183 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7184 freebsd* | kfreebsd*-gnu)
7185 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7186 hardcode_libdir_flag_spec='-R$libdir'
7188 hardcode_shlibpath_var=no
7192 if test "$GCC" = yes; then
7193 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'
7195 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'
7197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7198 hardcode_libdir_separator=:
7201 # hardcode_minus_L: Not really in the search PATH,
7202 # but as the default location of the library.
7203 hardcode_minus_L=yes
7204 export_dynamic_flag_spec='${wl}-E'
7208 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7211 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7214 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7220 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7223 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7227 if test "$with_gnu_ld" = no; then
7230 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7231 hardcode_libdir_flag_spec_ld='+b $libdir'
7232 hardcode_libdir_separator=:
7234 hardcode_shlibpath_var=no
7237 hardcode_libdir_flag_spec='-L$libdir'
7239 hardcode_shlibpath_var=no
7241 # hardcode_minus_L: Not really in the search PATH,
7242 # but as the default location of the library.
7243 hardcode_minus_L=yes
7246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7247 hardcode_libdir_separator=:
7249 export_dynamic_flag_spec='${wl}-E'
7251 # hardcode_minus_L: Not really in the search PATH,
7252 # but as the default location of the library.
7253 hardcode_minus_L=yes
7259 irix5* | irix6* | nonstopux*)
7260 if test "$GCC" = yes; then
7261 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'
7263 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'
7264 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7267 hardcode_libdir_separator=:
7268 link_all_deplibs=yes
7271 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7275 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7277 hardcode_libdir_flag_spec='-R$libdir'
7279 hardcode_shlibpath_var=no
7283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7286 hardcode_libdir_separator=:
7287 hardcode_shlibpath_var=no
7292 hardcode_shlibpath_var=no
7293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7296 export_dynamic_flag_spec='${wl}-E'
7299 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7301 hardcode_libdir_flag_spec='-R$libdir'
7304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7305 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7312 hardcode_libdir_flag_spec='-L$libdir'
7313 hardcode_minus_L=yes
7314 allow_undefined_flag=unsupported
7315 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'
7316 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7320 if test "$GCC" = yes; then
7321 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7322 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'
7324 allow_undefined_flag=' -expect_unresolved \*'
7325 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'
7327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7328 hardcode_libdir_separator=:
7331 osf4* | osf5*) # as osf3* with the addition of -msym flag
7332 if test "$GCC" = yes; then
7333 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7334 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'
7335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7337 allow_undefined_flag=' -expect_unresolved \*'
7338 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'
7339 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7340 $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'
7342 # Both c and cxx compiler support -rpath directly
7343 hardcode_libdir_flag_spec='-rpath $libdir'
7345 hardcode_libdir_separator=:
7349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7350 hardcode_shlibpath_var=no
7351 export_dynamic_flag_spec='${wl}-Bexport'
7352 runpath_var=LD_RUN_PATH
7353 hardcode_runpath_var=yes
7357 no_undefined_flag=' -z text'
7358 if test "$GCC" = yes; then
7359 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7360 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7361 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7363 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7364 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7365 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7367 hardcode_libdir_flag_spec='-R$libdir'
7368 hardcode_shlibpath_var=no
7370 solaris2.[0-5] | solaris2.[0-5].*) ;;
7371 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7372 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7374 link_all_deplibs=yes
7378 if test "x$host_vendor" = xsequent; then
7379 # Use $CC to link under sequent, because it throws in some extra .o
7380 # files that make .init and .fini sections work.
7381 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7383 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7385 hardcode_libdir_flag_spec='-L$libdir'
7387 hardcode_minus_L=yes
7388 hardcode_shlibpath_var=no
7392 case $host_vendor in
7394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395 hardcode_direct=yes # is this really true???
7398 ## LD is ld it makes a PLAMLIB
7399 ## CC just makes a GrossModule.
7400 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7401 reload_cmds='$CC -r -o $output$reload_objs'
7405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7406 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7409 runpath_var='LD_RUN_PATH'
7410 hardcode_shlibpath_var=no
7414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7415 hardcode_shlibpath_var=no
7416 export_dynamic_flag_spec='-Bexport'
7420 if test -d /usr/nec; then
7421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7422 hardcode_shlibpath_var=no
7423 runpath_var=LD_RUN_PATH
7424 hardcode_runpath_var=yes
7430 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7433 hardcode_shlibpath_var=no
7434 hardcode_runpath_var=yes
7435 runpath_var=LD_RUN_PATH
7438 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7439 no_undefined_flag='${wl}-z ${wl}text'
7440 if test "$GCC" = yes; then
7441 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7443 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7445 runpath_var='LD_RUN_PATH'
7446 hardcode_shlibpath_var=no
7450 no_undefined_flag=' -z text'
7451 # $CC -shared without GNU ld will not create a library from C++
7452 # object files and a static libstdc++, better avoid it by now
7453 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7455 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7456 hardcode_libdir_flag_spec=
7457 hardcode_shlibpath_var=no
7458 runpath_var='LD_RUN_PATH'
7462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7463 hardcode_libdir_flag_spec='-L$libdir'
7464 hardcode_shlibpath_var=no
7473 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7474 echo "${ECHO_T}$ld_shlibs" >&6
7475 test "$ld_shlibs" = no && can_build_shared=no
7477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7478 if test "$GCC" = yes; then
7479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7483 # Do we need to explicitly link libc?
7485 case "x$archive_cmds_need_lc" in
7487 # Assume -lc should be added
7488 archive_cmds_need_lc=yes
7490 if test "$enable_shared" = yes && test "$GCC" = yes; then
7491 case $archive_cmds in
7493 # FIXME: we may have to deal with multi-command sequences.
7496 # Test whether the compiler implicitly links with -lc since on some
7497 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7498 # to ld, don't add -lc before -lgcc.
7499 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7500 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } 2>conftest.err; then
7511 libobjs=conftest.$ac_objext
7513 wl=$lt_prog_compiler_wl
7519 lt_save_allow_undefined_flag=$allow_undefined_flag
7520 allow_undefined_flag=
7521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7522 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }
7527 archive_cmds_need_lc=no
7529 archive_cmds_need_lc=yes
7531 allow_undefined_flag=$lt_save_allow_undefined_flag
7533 cat conftest.err 1>&5
7536 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7537 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7544 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7547 libname_spec='lib$name'
7555 shlibpath_overrides_runpath=unknown
7557 dynamic_linker="$host_os ld.so"
7558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7559 if test "$GCC" = yes; then
7560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7561 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7562 # if the path contains ";" then we assume it to be the separator
7563 # otherwise default to the standard path separator (i.e. ":") - it is
7564 # assumed that no part of a normal pathname contains ";" but that should
7565 # okay in the real world where ";" in dirpaths is itself problematic.
7566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7573 need_lib_prefix=unknown
7574 hardcode_into_libs=no
7576 # when you set need_version to no, make sure it does not cause -set_version
7577 # flags to be left without arguments
7578 need_version=unknown
7583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7584 shlibpath_var=LIBPATH
7586 # AIX 3 has no versioning support, so we append a major version to the name.
7587 soname_spec='${libname}${release}${shared_ext}$major'
7594 hardcode_into_libs=yes
7595 if test "$host_cpu" = ia64; then
7596 # AIX 5 supports IA64
7597 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7598 shlibpath_var=LD_LIBRARY_PATH
7600 # With GCC up to 2.95.x, collect2 would create an import file
7601 # for dependence libraries. The import file would start with
7602 # the line `#! .'. This would cause the generated library to
7603 # depend on `.', always an invalid library. This was fixed in
7604 # development snapshots of GCC prior to 3.0.
7606 aix4 | aix4.[01] | aix4.[01].*)
7607 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7609 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7616 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7617 # soname into executable. Probably we can add versioning support to
7618 # collect2, so additional links can be useful in future.
7619 if test "$aix_use_runtimelinking" = yes; then
7620 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7621 # instead of lib<name>.a to let people know that these are not
7622 # typical AIX shared libraries.
7623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7625 # We preserve .a as extension for shared libraries through AIX4.2
7626 # and later when we are not doing run time linking.
7627 library_names_spec='${libname}${release}.a $libname.a'
7628 soname_spec='${libname}${release}${shared_ext}$major'
7630 shlibpath_var=LIBPATH
7635 library_names_spec='$libname.ixlibrary $libname.a'
7636 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7637 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'
7641 library_names_spec='${libname}${shared_ext}'
7642 dynamic_linker="$host_os ld.so"
7643 shlibpath_var=LIBRARY_PATH
7649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7650 soname_spec='${libname}${release}${shared_ext}$major'
7651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7652 shlibpath_var=LD_LIBRARY_PATH
7653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7655 # the default ld.so.conf also contains /usr/contrib/lib and
7656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7657 # libtool to hard-code these into programs
7660 cygwin* | mingw* | pw32*)
7661 version_type=windows
7666 case $GCC,$host_os in
7667 yes,cygwin* | yes,mingw* | yes,pw32*)
7668 library_names_spec='$libname.dll.a'
7669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7670 postinstall_cmds='base_file=`basename \${file}`~
7671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7672 dldir=$destdir/`dirname \$dlpath`~
7673 test -d \$dldir || mkdir -p \$dldir~
7674 $install_prog $dir/$dlname \$dldir/$dlname'
7675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7676 dlpath=$dir/\$dldll~
7678 shlibpath_overrides_runpath=yes
7682 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7684 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7687 # MinGW DLLs use traditional 'lib' prefix
7688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7691 # It is most probably a Windows format PATH printed by
7692 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7693 # path with ; separators, and with drive letters. We can handle the
7694 # drive letters (cygwin fileutils understands them), so leave them,
7695 # especially as we might pass files found there to a mingw objdump,
7696 # which wouldn't understand a cygwinified path. Ahh.
7697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7703 # pw32 DLLs use 'pw' prefix rather than 'lib'
7704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7713 dynamic_linker='Win32 ld.exe'
7714 # FIXME: first we should search . and the directory the executable is in
7718 darwin* | rhapsody*)
7719 dynamic_linker="$host_os dyld"
7723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7724 soname_spec='${libname}${release}${major}$shared_ext'
7725 shlibpath_overrides_runpath=yes
7726 shlibpath_var=DYLD_LIBRARY_PATH
7727 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7729 if test "$GCC" = yes; then
7730 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"`
7732 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7742 soname_spec='${libname}${release}${shared_ext}$major'
7743 shlibpath_var=LD_LIBRARY_PATH
7754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7755 soname_spec='${libname}${release}${shared_ext}$major'
7756 shlibpath_var=LD_LIBRARY_PATH
7757 shlibpath_overrides_runpath=no
7758 hardcode_into_libs=yes
7759 dynamic_linker='GNU ld.so'
7763 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7764 version_type=freebsd-$objformat
7765 case $version_type in
7767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7776 shlibpath_var=LD_LIBRARY_PATH
7779 shlibpath_overrides_runpath=yes
7781 freebsd3.01* | freebsdelf3.01*)
7782 shlibpath_overrides_runpath=yes
7783 hardcode_into_libs=yes
7786 shlibpath_overrides_runpath=no
7787 hardcode_into_libs=yes
7796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7797 soname_spec='${libname}${release}${shared_ext}$major'
7798 shlibpath_var=LD_LIBRARY_PATH
7799 hardcode_into_libs=yes
7802 hpux9* | hpux10* | hpux11*)
7803 # Give a soname corresponding to the major version so that dld.sl refuses to
7804 # link against other versions.
7811 hardcode_into_libs=yes
7812 dynamic_linker="$host_os dld.so"
7813 shlibpath_var=LD_LIBRARY_PATH
7814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7816 soname_spec='${libname}${release}${shared_ext}$major'
7817 if test "X$HPUX_IA64_MODE" = X32; then
7818 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7820 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7826 hardcode_into_libs=yes
7827 dynamic_linker="$host_os dld.sl"
7828 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7831 soname_spec='${libname}${release}${shared_ext}$major'
7832 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7837 dynamic_linker="$host_os dld.sl"
7838 shlibpath_var=SHLIB_PATH
7839 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841 soname_spec='${libname}${release}${shared_ext}$major'
7844 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7845 postinstall_cmds='chmod 555 $lib'
7848 irix5* | irix6* | nonstopux*)
7850 nonstopux*) version_type=nonstopux ;;
7852 if test "$lt_cv_prog_gnu_ld" = yes; then
7860 soname_spec='${libname}${release}${shared_ext}$major'
7861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7863 irix5* | nonstopux*)
7867 case $LD in # libtool.m4 will add one of these switches to LD
7868 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7869 libsuff= shlibsuff= libmagic=32-bit;;
7870 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7871 libsuff=32 shlibsuff=N32 libmagic=N32;;
7872 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7873 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7874 *) libsuff= shlibsuff= libmagic=never-match;;
7878 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7879 shlibpath_overrides_runpath=no
7880 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7881 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7882 hardcode_into_libs=yes
7885 # No shared lib support for Linux oldld, aout, or coff.
7886 linux*oldld* | linux*aout* | linux*coff*)
7890 # This must be Linux ELF.
7895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896 soname_spec='${libname}${release}${shared_ext}$major'
7897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7898 shlibpath_var=LD_LIBRARY_PATH
7899 shlibpath_overrides_runpath=no
7900 # This implies no fast_install, which is unacceptable.
7901 # Some rework will be needed to allow for fast_install
7902 # before this can be enabled.
7903 hardcode_into_libs=yes
7905 # Append ld.so.conf contents to the search path
7906 if test -f /etc/ld.so.conf; then
7907 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7911 # We used to test for /lib/ld.so.1 and disable shared libraries on
7912 # powerpc, because MkLinux only supported shared libraries with the
7913 # GNU dynamic linker. Since this was broken with cross compilers,
7914 # most powerpc-linux boxes support dynamic linking these days and
7915 # people can always --disable-shared, the test was removed, and we
7916 # assume the GNU/Linux dynamic linker is in use.
7917 dynamic_linker='GNU/Linux ld.so'
7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7925 soname_spec='${libname}${release}${shared_ext}$major'
7926 shlibpath_var=LD_LIBRARY_PATH
7927 shlibpath_overrides_runpath=no
7928 hardcode_into_libs=yes
7929 dynamic_linker='NetBSD ld.elf_so'
7936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7937 soname_spec='${libname}${release}${shared_ext}$major'
7938 shlibpath_var=LD_LIBRARY_PATH
7939 shlibpath_overrides_runpath=no
7940 hardcode_into_libs=yes
7941 dynamic_linker='GNU ld.so'
7948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7951 dynamic_linker='NetBSD (a.out) ld.so'
7953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7954 soname_spec='${libname}${release}${shared_ext}$major'
7955 dynamic_linker='NetBSD ld.elf_so'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 shlibpath_overrides_runpath=yes
7959 hardcode_into_libs=yes
7964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7965 shlibpath_var=LD_LIBRARY_PATH
7966 shlibpath_overrides_runpath=yes
7973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7974 soname_spec='${libname}${release}${shared_ext}$major'
7975 shlibpath_var=LD_LIBRARY_PATH
7976 shlibpath_overrides_runpath=yes
7983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7985 shlibpath_var=LD_LIBRARY_PATH
7986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7988 openbsd2.[89] | openbsd2.[89].*)
7989 shlibpath_overrides_runpath=no
7992 shlibpath_overrides_runpath=yes
7996 shlibpath_overrides_runpath=yes
8001 libname_spec='$name'
8004 library_names_spec='$libname${shared_ext} $libname.a'
8005 dynamic_linker='OS/2 ld.exe'
8006 shlibpath_var=LIBPATH
8009 osf3* | osf4* | osf5*)
8013 soname_spec='${libname}${release}${shared_ext}$major'
8014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8015 shlibpath_var=LD_LIBRARY_PATH
8016 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8017 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8022 soname_spec='${libname}${release}${shared_ext}$major'
8023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024 shlibpath_var=LD_LIBRARY_PATH
8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032 soname_spec='${libname}${release}${shared_ext}$major'
8033 shlibpath_var=LD_LIBRARY_PATH
8034 shlibpath_overrides_runpath=yes
8035 hardcode_into_libs=yes
8036 # ldd complains unless libraries are executable
8037 postinstall_cmds='chmod +x $lib'
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8043 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8044 shlibpath_var=LD_LIBRARY_PATH
8045 shlibpath_overrides_runpath=yes
8046 if test "$with_gnu_ld" = yes; then
8052 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8055 soname_spec='${libname}${release}${shared_ext}$major'
8056 shlibpath_var=LD_LIBRARY_PATH
8057 case $host_vendor in
8059 shlibpath_overrides_runpath=no
8061 export_dynamic_flag_spec='${wl}-Blargedynsym'
8062 runpath_var=LD_RUN_PATH
8070 shlibpath_overrides_runpath=no
8071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8077 if test -d /usr/nec ;then
8079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8080 soname_spec='$libname${shared_ext}.$major'
8081 shlibpath_var=LD_LIBRARY_PATH
8087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8088 soname_spec='${libname}${release}${shared_ext}$major'
8089 shlibpath_var=LD_LIBRARY_PATH
8096 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8097 echo "${ECHO_T}$dynamic_linker" >&6
8098 test "$dynamic_linker" = no && can_build_shared=no
8100 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8101 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8103 if test -n "$hardcode_libdir_flag_spec" || \
8104 test -n "$runpath_var " || \
8105 test "X$hardcode_automatic"="Xyes" ; then
8107 # We can hardcode non-existant directories.
8108 if test "$hardcode_direct" != no &&
8109 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8110 # have to relink, otherwise we might link with an installed library
8111 # when we should be linking with a yet-to-be-installed one
8112 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8113 test "$hardcode_minus_L" != no; then
8114 # Linking always hardcodes the temporary library directory.
8115 hardcode_action=relink
8117 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8118 hardcode_action=immediate
8121 # We cannot hardcode anything, or else we can only hardcode existing
8123 hardcode_action=unsupported
8125 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8126 echo "${ECHO_T}$hardcode_action" >&6
8128 if test "$hardcode_action" = relink; then
8129 # Fast installation is not supported
8130 enable_fast_install=no
8131 elif test "$shlibpath_overrides_runpath" = yes ||
8132 test "$enable_shared" = no; then
8133 # Fast installation is not necessary
8134 enable_fast_install=needless
8139 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8140 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8141 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8142 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8143 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8144 echo "$as_me:$LINENO: result: yes" >&5
8145 echo "${ECHO_T}yes" >&6
8147 # FIXME - insert some real tests, host_os isn't really good enough
8150 if test -n "$STRIP" ; then
8151 striplib="$STRIP -x"
8152 echo "$as_me:$LINENO: result: yes" >&5
8153 echo "${ECHO_T}yes" >&6
8155 echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6
8160 echo "$as_me:$LINENO: result: no" >&5
8161 echo "${ECHO_T}no" >&6
8166 if test "x$enable_dlopen" != xyes; then
8167 enable_dlopen=unknown
8168 enable_dlopen_self=unknown
8169 enable_dlopen_self_static=unknown
8176 lt_cv_dlopen="load_add_on"
8178 lt_cv_dlopen_self=yes
8182 lt_cv_dlopen="LoadLibrary"
8187 lt_cv_dlopen="dlopen"
8192 # if libdl is installed we need to link against it
8193 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8194 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8195 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 ac_check_lib_save_LIBS=$LIBS
8200 cat >conftest.$ac_ext <<_ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8207 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>conftest.er1
8226 grep -v '^ *+' conftest.er1 >conftest.err
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest$ac_exeext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_lib_dl_dlopen=yes
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 ac_cv_lib_dl_dlopen=no
8250 rm -f conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8252 LIBS=$ac_check_lib_save_LIBS
8254 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8255 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8256 if test $ac_cv_lib_dl_dlopen = yes; then
8257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8262 lt_cv_dlopen_self=yes
8269 echo "$as_me:$LINENO: checking for shl_load" >&5
8270 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8271 if test "${ac_cv_func_shl_load+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8282 #define shl_load innocuous_shl_load
8284 /* System header to define __stub macros and hopefully few prototypes,
8285 which can conflict with char shl_load (); below.
8286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8287 <limits.h> exists even on freestanding compilers. */
8290 # include <limits.h>
8292 # include <assert.h>
8297 /* Override any gcc2 internal prototype to avoid an error. */
8302 /* We use char because int might match the return type of a gcc2
8303 builtin and then its argument prototype would still apply. */
8305 /* The GNU C library defines this for functions which it implements
8306 to always fail with ENOSYS. Some functions are actually named
8307 something starting with __ and the normal name is an alias. */
8308 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8311 char (*f) () = shl_load;
8320 return f != shl_load;
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327 (eval $ac_link) 2>conftest.er1
8329 grep -v '^ *+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest$ac_exeext'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 ac_cv_func_shl_load=yes
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_func_shl_load=no
8353 rm -f conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8356 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8357 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8358 if test $ac_cv_func_shl_load = yes; then
8359 lt_cv_dlopen="shl_load"
8361 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8362 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8363 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 ac_check_lib_save_LIBS=$LIBS
8368 cat >conftest.$ac_ext <<_ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8375 /* Override any gcc2 internal prototype to avoid an error. */
8379 /* We use char because int might match the return type of a gcc2
8380 builtin and then its argument prototype would still apply. */
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8392 (eval $ac_link) 2>conftest.er1
8394 grep -v '^ *+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_lib_dld_shl_load=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_lib_dld_shl_load=no
8418 rm -f conftest.err conftest.$ac_objext \
8419 conftest$ac_exeext conftest.$ac_ext
8420 LIBS=$ac_check_lib_save_LIBS
8422 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8423 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8424 if test $ac_cv_lib_dld_shl_load = yes; then
8425 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8427 echo "$as_me:$LINENO: checking for dlopen" >&5
8428 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8429 if test "${ac_cv_func_dlopen+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8440 #define dlopen innocuous_dlopen
8442 /* System header to define __stub macros and hopefully few prototypes,
8443 which can conflict with char dlopen (); below.
8444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8445 <limits.h> exists even on freestanding compilers. */
8448 # include <limits.h>
8450 # include <assert.h>
8455 /* Override any gcc2 internal prototype to avoid an error. */
8460 /* We use char because int might match the return type of a gcc2
8461 builtin and then its argument prototype would still apply. */
8463 /* The GNU C library defines this for functions which it implements
8464 to always fail with ENOSYS. Some functions are actually named
8465 something starting with __ and the normal name is an alias. */
8466 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8469 char (*f) () = dlopen;
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_cv_func_dlopen=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_cv_func_dlopen=no
8511 rm -f conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8515 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8516 if test $ac_cv_func_dlopen = yes; then
8517 lt_cv_dlopen="dlopen"
8519 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 ac_check_lib_save_LIBS=$LIBS
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8533 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>conftest.er1
8552 grep -v '^ *+' conftest.er1 >conftest.err
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest$ac_exeext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 ac_cv_lib_dl_dlopen=yes
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 ac_cv_lib_dl_dlopen=no
8576 rm -f conftest.err conftest.$ac_objext \
8577 conftest$ac_exeext conftest.$ac_ext
8578 LIBS=$ac_check_lib_save_LIBS
8580 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8581 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8582 if test $ac_cv_lib_dl_dlopen = yes; then
8583 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8585 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8586 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8587 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 ac_check_lib_save_LIBS=$LIBS
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8599 /* Override any gcc2 internal prototype to avoid an error. */
8603 /* We use char because int might match the return type of a gcc2
8604 builtin and then its argument prototype would still apply. */
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616 (eval $ac_link) 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_lib_svld_dlopen=yes
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_cv_lib_svld_dlopen=no
8642 rm -f conftest.err conftest.$ac_objext \
8643 conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_check_lib_save_LIBS
8646 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8647 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8648 if test $ac_cv_lib_svld_dlopen = yes; then
8649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8651 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8652 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8653 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 ac_check_lib_save_LIBS=$LIBS
8658 cat >conftest.$ac_ext <<_ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8665 /* Override any gcc2 internal prototype to avoid an error. */
8669 /* We use char because int might match the return type of a gcc2
8670 builtin and then its argument prototype would still apply. */
8680 rm -f conftest.$ac_objext conftest$ac_exeext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8682 (eval $ac_link) 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_cv_lib_dld_dld_link=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_cv_lib_dld_dld_link=no
8708 rm -f conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710 LIBS=$ac_check_lib_save_LIBS
8712 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8713 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8714 if test $ac_cv_lib_dld_dld_link = yes; then
8715 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8736 if test "x$lt_cv_dlopen" != xno; then
8742 case $lt_cv_dlopen in
8744 save_CPPFLAGS="$CPPFLAGS"
8745 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8747 save_LDFLAGS="$LDFLAGS"
8748 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8751 LIBS="$lt_cv_dlopen_libs $LIBS"
8753 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8754 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8755 if test "${lt_cv_dlopen_self+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 if test "$cross_compiling" = yes; then :
8759 lt_cv_dlopen_self=cross
8761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8762 lt_status=$lt_dlunknown
8763 cat > conftest.$ac_ext <<EOF
8764 #line __oline__ "configure"
8765 #include "confdefs.h"
8774 # define LT_DLGLOBAL RTLD_GLOBAL
8777 # define LT_DLGLOBAL DL_GLOBAL
8779 # define LT_DLGLOBAL 0
8783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8784 find out it does not work in some platform. */
8785 #ifndef LT_DLLAZY_OR_NOW
8787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8790 # define LT_DLLAZY_OR_NOW DL_LAZY
8793 # define LT_DLLAZY_OR_NOW RTLD_NOW
8796 # define LT_DLLAZY_OR_NOW DL_NOW
8798 # define LT_DLLAZY_OR_NOW 0
8806 extern "C" void exit (int);
8809 void fnord() { int i=42;}
8812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8813 int status = $lt_dlunknown;
8817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8819 /* dlclose (self); */
8825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8826 (eval $ac_link) 2>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8830 (./conftest; exit; ) 2>/dev/null
8833 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8834 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8835 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8838 # compilation failed
8839 lt_cv_dlopen_self=no
8846 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8847 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8849 if test "x$lt_cv_dlopen_self" = xyes; then
8850 LDFLAGS="$LDFLAGS $link_static_flag"
8851 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8852 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8853 if test "${lt_cv_dlopen_self_static+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 if test "$cross_compiling" = yes; then :
8857 lt_cv_dlopen_self_static=cross
8859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8860 lt_status=$lt_dlunknown
8861 cat > conftest.$ac_ext <<EOF
8862 #line __oline__ "configure"
8863 #include "confdefs.h"
8872 # define LT_DLGLOBAL RTLD_GLOBAL
8875 # define LT_DLGLOBAL DL_GLOBAL
8877 # define LT_DLGLOBAL 0
8881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8882 find out it does not work in some platform. */
8883 #ifndef LT_DLLAZY_OR_NOW
8885 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8888 # define LT_DLLAZY_OR_NOW DL_LAZY
8891 # define LT_DLLAZY_OR_NOW RTLD_NOW
8894 # define LT_DLLAZY_OR_NOW DL_NOW
8896 # define LT_DLLAZY_OR_NOW 0
8904 extern "C" void exit (int);
8907 void fnord() { int i=42;}
8910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8911 int status = $lt_dlunknown;
8915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8916 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8917 /* dlclose (self); */
8923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8928 (./conftest; exit; ) 2>/dev/null
8931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8933 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8936 # compilation failed
8937 lt_cv_dlopen_self_static=no
8944 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8945 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8948 CPPFLAGS="$save_CPPFLAGS"
8949 LDFLAGS="$save_LDFLAGS"
8954 case $lt_cv_dlopen_self in
8955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8956 *) enable_dlopen_self=unknown ;;
8959 case $lt_cv_dlopen_self_static in
8960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8961 *) enable_dlopen_self_static=unknown ;;
8966 # Report which librarie types wil actually be built
8967 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8968 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8969 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8970 echo "${ECHO_T}$can_build_shared" >&6
8972 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8973 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8974 test "$can_build_shared" = "no" && enable_shared=no
8976 # On AIX, shared libraries and static libraries use the same namespace, and
8977 # are all built from PIC.
8980 test "$enable_shared" = yes && enable_static=no
8981 if test -n "$RANLIB"; then
8982 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8983 postinstall_cmds='$RANLIB $lib'
8988 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8989 test "$enable_shared" = yes && enable_static=no
8992 darwin* | rhapsody*)
8993 if test "$GCC" = yes; then
8994 archive_cmds_need_lc=no
8996 rhapsody* | darwin1.[012])
8997 allow_undefined_flag='-undefined suppress'
9000 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9001 allow_undefined_flag='-flat_namespace -undefined suppress'
9003 case ${MACOSX_DEPLOYMENT_TARGET} in
9005 allow_undefined_flag='-flat_namespace -undefined suppress'
9008 allow_undefined_flag='-undefined dynamic_lookup'
9014 output_verbose_link_cmd='echo'
9015 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9016 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9018 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}'
9019 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9021 hardcode_automatic=yes
9022 hardcode_shlibpath_var=unsupported
9023 whole_archive_flag_spec='-all_load $convenience'
9024 link_all_deplibs=yes
9030 echo "$as_me:$LINENO: result: $enable_shared" >&5
9031 echo "${ECHO_T}$enable_shared" >&6
9033 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9034 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9035 # Make sure either enable_shared or enable_static is yes.
9036 test "$enable_shared" = yes || enable_static=yes
9037 echo "$as_me:$LINENO: result: $enable_static" >&5
9038 echo "${ECHO_T}$enable_static" >&6
9040 # The else clause should only fire when bootstrapping the
9041 # libtool distribution, otherwise you forgot to ship ltmain.sh
9042 # with your package, and you will get complaints that there are
9043 # no rules to generate ltmain.sh.
9044 if test -f "$ltmain"; then
9045 # See if we are running on zsh, and set the options which allow our commands through
9046 # without removal of \ escapes.
9047 if test -n "${ZSH_VERSION+set}" ; then
9048 setopt NO_GLOB_SUBST
9050 # Now quote all the things that may contain metacharacters while being
9051 # careful not to overquote the AC_SUBSTed values. We take copies of the
9052 # variables and quote the copies for generation of the libtool script.
9053 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9055 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9056 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9057 deplibs_check_method reload_flag reload_cmds need_locks \
9058 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9059 lt_cv_sys_global_symbol_to_c_name_address \
9060 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9061 old_postinstall_cmds old_postuninstall_cmds \
9065 lt_prog_compiler_wl \
9066 lt_prog_compiler_pic \
9067 lt_prog_compiler_static \
9068 lt_prog_compiler_no_builtin_flag \
9069 export_dynamic_flag_spec \
9070 thread_safe_flag_spec \
9071 whole_archive_flag_spec \
9072 enable_shared_with_static_runtimes \
9074 old_archive_from_new_cmds \
9079 compiler_lib_search_path \
9081 archive_expsym_cmds \
9083 postuninstall_cmds \
9084 old_archive_from_expsyms_cmds \
9085 allow_undefined_flag \
9087 export_symbols_cmds \
9088 hardcode_libdir_flag_spec \
9089 hardcode_libdir_flag_spec_ld \
9090 hardcode_libdir_separator \
9091 hardcode_automatic \
9093 module_expsym_cmds \
9094 lt_cv_prog_compiler_c_o \
9099 old_archive_cmds | \
9100 old_archive_from_new_cmds | \
9102 archive_expsym_cmds | \
9104 module_expsym_cmds | \
9105 old_archive_from_expsyms_cmds | \
9106 export_symbols_cmds | \
9107 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9108 postinstall_cmds | postuninstall_cmds | \
9109 old_postinstall_cmds | old_postuninstall_cmds | \
9110 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9111 # Double-quote double-evaled strings.
9112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9121 *'\$0 --fallback-echo"')
9122 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9127 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9129 { echo "$as_me:$LINENO: creating $ofile" >&5
9130 echo "$as_me: creating $ofile" >&6;}
9132 cat <<__EOF__ >> "$cfgfile"
9135 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9136 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9137 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9139 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9140 # Free Software Foundation, Inc.
9142 # This file is part of GNU Libtool:
9143 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9145 # This program is free software; you can redistribute it and/or modify
9146 # it under the terms of the GNU General Public License as published by
9147 # the Free Software Foundation; either version 2 of the License, or
9148 # (at your option) any later version.
9150 # This program is distributed in the hope that it will be useful, but
9151 # WITHOUT ANY WARRANTY; without even the implied warranty of
9152 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9153 # General Public License for more details.
9155 # You should have received a copy of the GNU General Public License
9156 # along with this program; if not, write to the Free Software
9157 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9159 # As a special exception to the GNU General Public License, if you
9160 # distribute this file as part of a program that contains a
9161 # configuration script generated by Autoconf, you may include it under
9162 # the same distribution terms that you use for the rest of that program.
9164 # A sed program that does not truncate output.
9167 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9168 Xsed="$SED -e s/^X//"
9170 # The HP-UX ksh and POSIX shell print the target directory to stdout
9172 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9174 # The names of the tagged configurations supported by this script.
9177 # ### BEGIN LIBTOOL CONFIG
9179 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9181 # Shell to use when invoking shell scripts.
9184 # Whether or not to build shared libraries.
9185 build_libtool_libs=$enable_shared
9187 # Whether or not to build static libraries.
9188 build_old_libs=$enable_static
9190 # Whether or not to add -lc for building shared libraries.
9191 build_libtool_need_lc=$archive_cmds_need_lc
9193 # Whether or not to disallow shared libs when runtime libs are static
9194 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9196 # Whether or not to optimize for fast installation.
9197 fast_install=$enable_fast_install
9200 host_alias=$host_alias
9203 # An echo program that does not interpret backslashes.
9208 AR_FLAGS=$lt_AR_FLAGS
9213 # A language-specific compiler.
9216 # Is the compiler the GNU C compiler?
9222 # The linker used to build libraries.
9225 # Whether we need hard or soft links.
9228 # A BSD-compatible nm program.
9231 # A symbol stripping program
9234 # Used to examine libraries when file_magic_cmd begins "file"
9235 MAGIC_CMD=$MAGIC_CMD
9237 # Used on cygwin: DLL creation program.
9240 # Used on cygwin: object dumper.
9243 # Used on cygwin: assembler.
9246 # The name of the directory that contains temporary libtool files.
9249 # How to create reloadable object files.
9250 reload_flag=$lt_reload_flag
9251 reload_cmds=$lt_reload_cmds
9253 # How to pass a linker flag through the compiler.
9254 wl=$lt_lt_prog_compiler_wl
9256 # Object file suffix (normally "o").
9259 # Old archive suffix (normally "a").
9262 # Shared library suffix (normally ".so").
9263 shrext_cmds='$shrext_cmds'
9265 # Executable file suffix (normally "").
9268 # Additional compiler flags for building library objects.
9269 pic_flag=$lt_lt_prog_compiler_pic
9272 # What is the maximum length of a command?
9273 max_cmd_len=$lt_cv_sys_max_cmd_len
9275 # Does compiler simultaneously support -c and -o options?
9276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9278 # Must we lock files when doing compilation ?
9279 need_locks=$lt_need_locks
9281 # Do we need the lib prefix for modules?
9282 need_lib_prefix=$need_lib_prefix
9284 # Do we need a version for libraries?
9285 need_version=$need_version
9287 # Whether dlopen is supported.
9288 dlopen_support=$enable_dlopen
9290 # Whether dlopen of programs is supported.
9291 dlopen_self=$enable_dlopen_self
9293 # Whether dlopen of statically linked programs is supported.
9294 dlopen_self_static=$enable_dlopen_self_static
9296 # Compiler flag to prevent dynamic linking.
9297 link_static_flag=$lt_lt_prog_compiler_static
9299 # Compiler flag to turn off builtin functions.
9300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9302 # Compiler flag to allow reflexive dlopens.
9303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9305 # Compiler flag to generate shared objects directly from archives.
9306 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9308 # Compiler flag to generate thread-safe objects.
9309 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9311 # Library versioning type.
9312 version_type=$version_type
9314 # Format of library name prefix.
9315 libname_spec=$lt_libname_spec
9317 # List of archive names. First name is the real one, the rest are links.
9318 # The last name is the one that the linker finds with -lNAME.
9319 library_names_spec=$lt_library_names_spec
9321 # The coded name of the library, if different from the real name.
9322 soname_spec=$lt_soname_spec
9324 # Commands used to build and install an old-style archive.
9326 old_archive_cmds=$lt_old_archive_cmds
9327 old_postinstall_cmds=$lt_old_postinstall_cmds
9328 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9330 # Create an old-style archive from a shared archive.
9331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9333 # Create a temporary old-style archive to link instead of a shared archive.
9334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9336 # Commands used to build and install a shared archive.
9337 archive_cmds=$lt_archive_cmds
9338 archive_expsym_cmds=$lt_archive_expsym_cmds
9339 postinstall_cmds=$lt_postinstall_cmds
9340 postuninstall_cmds=$lt_postuninstall_cmds
9342 # Commands used to build a loadable module (assumed same as above if empty)
9343 module_cmds=$lt_module_cmds
9344 module_expsym_cmds=$lt_module_expsym_cmds
9346 # Commands to strip libraries.
9347 old_striplib=$lt_old_striplib
9348 striplib=$lt_striplib
9350 # Dependencies to place before the objects being linked to create a
9352 predep_objects=$lt_predep_objects
9354 # Dependencies to place after the objects being linked to create a
9356 postdep_objects=$lt_postdep_objects
9358 # Dependencies to place before the objects being linked to create a
9362 # Dependencies to place after the objects being linked to create a
9364 postdeps=$lt_postdeps
9366 # The library search path used internally by the compiler when linking
9368 compiler_lib_search_path=$lt_compiler_lib_search_path
9370 # Method to check whether dependent libraries are shared objects.
9371 deplibs_check_method=$lt_deplibs_check_method
9373 # Command to use when deplibs_check_method == file_magic.
9374 file_magic_cmd=$lt_file_magic_cmd
9376 # Flag that allows shared libraries with undefined symbols to be built.
9377 allow_undefined_flag=$lt_allow_undefined_flag
9379 # Flag that forces no undefined symbols.
9380 no_undefined_flag=$lt_no_undefined_flag
9382 # Commands used to finish a libtool library installation in a directory.
9383 finish_cmds=$lt_finish_cmds
9385 # Same as above, but a single script fragment to be evaled but not shown.
9386 finish_eval=$lt_finish_eval
9388 # Take the output of nm and produce a listing of raw symbols and C names.
9389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9391 # Transform the output of nm in a proper C declaration
9392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9394 # Transform the output of nm in a C name address pair
9395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9397 # This is the shared library runtime path variable.
9398 runpath_var=$runpath_var
9400 # This is the shared library path variable.
9401 shlibpath_var=$shlibpath_var
9403 # Is shlibpath searched before the hard-coded library search path?
9404 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9406 # How to hardcode a shared library path into an executable.
9407 hardcode_action=$hardcode_action
9409 # Whether we should hardcode library paths into libraries.
9410 hardcode_into_libs=$hardcode_into_libs
9412 # Flag to hardcode \$libdir into a binary during linking.
9413 # This must work even if \$libdir does not exist.
9414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9416 # If ld is used when linking, flag to hardcode \$libdir into
9417 # a binary during linking. This must work even if \$libdir does
9419 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9421 # Whether we need a single -rpath flag with a separated argument.
9422 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9424 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9426 hardcode_direct=$hardcode_direct
9428 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9430 hardcode_minus_L=$hardcode_minus_L
9432 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9433 # the resulting binary.
9434 hardcode_shlibpath_var=$hardcode_shlibpath_var
9436 # Set to yes if building a shared library automatically hardcodes DIR into the library
9437 # and all subsequent libraries and executables linked against it.
9438 hardcode_automatic=$hardcode_automatic
9440 # Variables whose values should be saved in libtool wrapper scripts and
9441 # restored at relink time.
9442 variables_saved_for_relink="$variables_saved_for_relink"
9444 # Whether libtool must link a program against all its dependency libraries.
9445 link_all_deplibs=$link_all_deplibs
9447 # Compile-time system search path for libraries
9448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9450 # Run-time system search path for libraries
9451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9453 # Fix the shell variable \$srcfile for the compiler.
9454 fix_srcfile_path="$fix_srcfile_path"
9456 # Set to yes if exported symbols are required.
9457 always_export_symbols=$always_export_symbols
9459 # The commands to list exported symbols.
9460 export_symbols_cmds=$lt_export_symbols_cmds
9462 # The commands to extract the exported symbol list from a shared archive.
9463 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9465 # Symbols that should not be listed in the preloaded symbols.
9466 exclude_expsyms=$lt_exclude_expsyms
9468 # Symbols that must always be exported.
9469 include_expsyms=$lt_include_expsyms
9471 # ### END LIBTOOL CONFIG
9478 cat <<\EOF >> "$cfgfile"
9480 # AIX sometimes has problems with the GCC collect2 program. For some
9481 # reason, if we set the COLLECT_NAMES environment variable, the problems
9482 # vanish in a puff of smoke.
9483 if test "X${COLLECT_NAMES+set}" != Xset; then
9485 export COLLECT_NAMES
9491 # We use sed instead of cat because bash on DJGPP gets confused if
9492 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9493 # text mode, it properly converts lines to CR/LF. This bash problem
9494 # is reportedly fixed, but why not run on old versions too?
9495 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9497 mv -f "$cfgfile" "$ofile" || \
9498 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9502 # If there is no Makefile yet, we rely on a make rule to execute
9503 # `config.status --recheck' to rerun these tests and create the
9504 # libtool script then.
9505 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9506 if test -f "$ltmain_in"; then
9507 test -f Makefile && make "$ltmain"
9513 ac_cpp='$CPP $CPPFLAGS'
9514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9521 # Check whether --with-tags or --without-tags was given.
9522 if test "${with_tags+set}" = set; then
9523 withval="$with_tags"
9527 if test -f "$ltmain" && test -n "$tagnames"; then
9528 if test ! -f "${ofile}"; then
9529 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9530 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9533 if test -z "$LTCC"; then
9534 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9535 if test -z "$LTCC"; then
9536 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9537 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9539 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9540 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9544 # Extract list of available tagged configurations in $ofile.
9545 # Note that this assumes the entire list is on one line.
9546 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9549 for tagname in $tagnames; do
9551 # Check whether tagname contains only valid characters
9552 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9554 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9555 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9556 { (exit 1); exit 1; }; }
9560 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9562 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9563 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9564 { (exit 1); exit 1; }; }
9567 # Update the list of available tags.
9568 if test -n "$tagname"; then
9569 echo appending configuration tag \"$tagname\" to $ofile
9573 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9575 ac_cpp='$CXXCPP $CPPFLAGS'
9576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9583 archive_cmds_need_lc_CXX=no
9584 allow_undefined_flag_CXX=
9585 always_export_symbols_CXX=no
9586 archive_expsym_cmds_CXX=
9587 export_dynamic_flag_spec_CXX=
9588 hardcode_direct_CXX=no
9589 hardcode_libdir_flag_spec_CXX=
9590 hardcode_libdir_flag_spec_ld_CXX=
9591 hardcode_libdir_separator_CXX=
9592 hardcode_minus_L_CXX=no
9593 hardcode_automatic_CXX=no
9595 module_expsym_cmds_CXX=
9596 link_all_deplibs_CXX=unknown
9597 old_archive_cmds_CXX=$old_archive_cmds
9598 no_undefined_flag_CXX=
9599 whole_archive_flag_spec_CXX=
9600 enable_shared_with_static_runtimes_CXX=no
9602 # Dependencies to place before and after the object being linked:
9604 postdep_objects_CXX=
9607 compiler_lib_search_path_CXX=
9609 # Source file extension for C++ test sources.
9612 # Object file extension for compiled C++ test sources.
9616 # Code to be used in simple compile tests
9617 lt_simple_compile_test_code="int some_variable = 0;\n"
9619 # Code to be used in simple link tests
9620 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9624 # If no C compiler was specified, use CC.
9627 # Allow CC to be a program name with arguments.
9631 # Allow CC to be a program name with arguments.
9636 lt_save_with_gnu_ld=$with_gnu_ld
9637 lt_save_path_LD=$lt_cv_path_LD
9638 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9639 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9641 unset lt_cv_prog_gnu_ld
9643 if test -n "${lt_cv_path_LDCXX+set}"; then
9644 lt_cv_path_LD=$lt_cv_path_LDCXX
9648 test -z "${LDCXX+set}" || LD=$LDCXX
9652 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9654 # We don't want -fno-exception wen compiling C++ code, so set the
9655 # no_builtin_flag separately
9656 if test "$GXX" = yes; then
9657 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9659 lt_prog_compiler_no_builtin_flag_CXX=
9662 if test "$GXX" = yes; then
9663 # Set up default GNU C++ configuration
9666 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9667 if test "${with_gnu_ld+set}" = set; then
9668 withval="$with_gnu_ld"
9669 test "$withval" = no || with_gnu_ld=yes
9674 if test "$GCC" = yes; then
9675 # Check if gcc -print-prog-name=ld gives a path.
9676 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9677 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9680 # gcc leaves a trailing carriage return which upsets mingw
9681 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9683 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9686 # Accept absolute paths.
9688 re_direlt='/[^/][^/]*/\.\./'
9689 # Canonicalize the pathname of ld
9690 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9691 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9692 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9694 test -z "$LD" && LD="$ac_prog"
9697 # If it fails, then pretend we aren't using GCC.
9701 # If it is relative, then search for the first ld in PATH.
9705 elif test "$with_gnu_ld" = yes; then
9706 echo "$as_me:$LINENO: checking for GNU ld" >&5
9707 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9709 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9710 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9712 if test "${lt_cv_path_LD+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 if test -z "$LD"; then
9716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9717 for ac_dir in $PATH; do
9719 test -z "$ac_dir" && ac_dir=.
9720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9721 lt_cv_path_LD="$ac_dir/$ac_prog"
9722 # Check to see if the program is GNU ld. I'd rather use --version,
9723 # but apparently some GNU ld's only accept -v.
9724 # Break only if it was the GNU/non-GNU ld that we prefer.
9725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9726 *GNU* | *'with BFD'*)
9727 test "$with_gnu_ld" != no && break
9730 test "$with_gnu_ld" != yes && break
9737 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9742 if test -n "$LD"; then
9743 echo "$as_me:$LINENO: result: $LD" >&5
9744 echo "${ECHO_T}$LD" >&6
9746 echo "$as_me:$LINENO: result: no" >&5
9747 echo "${ECHO_T}no" >&6
9749 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9750 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9751 { (exit 1); exit 1; }; }
9752 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9753 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9754 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9758 case `$LD -v 2>&1 </dev/null` in
9759 *GNU* | *'with BFD'*)
9760 lt_cv_prog_gnu_ld=yes
9763 lt_cv_prog_gnu_ld=no
9767 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9768 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9769 with_gnu_ld=$lt_cv_prog_gnu_ld
9773 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9774 # archiving commands below assume that GNU ld is being used.
9775 if test "$with_gnu_ld" = yes; then
9776 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777 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'
9779 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9780 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9782 # If archive_cmds runs LD, not CC, wlarc should be empty
9783 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9784 # investigate it a little bit more. (MM)
9787 # ancient GNU ld didn't support --whole-archive et. al.
9788 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9789 grep 'no-whole-archive' > /dev/null; then
9790 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9792 whole_archive_flag_spec_CXX=
9798 # A generic and very simple default shared library creation
9799 # command for GNU C++ for the case where it uses the native
9800 # linker, instead of GNU ld. If possible, this setting should
9801 # overridden to take advantage of the native linker features on
9802 # the platform it is being used on.
9803 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9806 # Commands to make compiler produce verbose output that lists
9807 # what "hidden" libraries, object files and flags are used when
9808 # linking a shared library.
9809 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9817 # PORTME: fill in a description of your system's C++ link characteristics
9818 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9819 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9823 # FIXME: insert proper C++ library support
9827 if test "$host_cpu" = ia64; then
9828 # On IA64, the linker does run time linking by default, so we don't
9829 # have to do anything special.
9830 aix_use_runtimelinking=no
9831 exp_sym_flag='-Bexport'
9834 aix_use_runtimelinking=no
9836 # Test if we are trying to use run time linking or normal
9837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9838 # need to do runtime linking.
9839 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9840 for ld_flag in $LDFLAGS; do
9843 aix_use_runtimelinking=yes
9850 exp_sym_flag='-bexport'
9851 no_entry_flag='-bnoentry'
9854 # When large executables or shared objects are built, AIX ld can
9855 # have problems creating the table of contents. If linking a library
9856 # or program results in "error TOC overflow" add -mminimal-toc to
9857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9861 hardcode_direct_CXX=yes
9862 hardcode_libdir_separator_CXX=':'
9863 link_all_deplibs_CXX=yes
9865 if test "$GXX" = yes; then
9866 case $host_os in aix4.012|aix4.012.*)
9867 # We only want to do this on AIX 4.2 and lower, the check
9868 # below for broken collect2 doesn't work under 4.3+
9869 collect2name=`${CC} -print-prog-name=collect2`
9870 if test -f "$collect2name" && \
9871 strings "$collect2name" | grep resolve_lib_name >/dev/null
9873 # We have reworked collect2
9874 hardcode_direct_CXX=yes
9876 # We have old collect2
9877 hardcode_direct_CXX=unsupported
9878 # It fails to find uninstalled libraries when the uninstalled
9879 # path is not listed in the libpath. Setting hardcode_minus_L
9880 # to unsupported forces relinking
9881 hardcode_minus_L_CXX=yes
9882 hardcode_libdir_flag_spec_CXX='-L$libdir'
9883 hardcode_libdir_separator_CXX=
9886 shared_flag='-shared'
9889 if test "$host_cpu" = ia64; then
9890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9891 # chokes on -Wl,-G. The following line is correct:
9894 if test "$aix_use_runtimelinking" = yes; then
9895 shared_flag='${wl}-G'
9897 shared_flag='${wl}-bM:SRE'
9902 # It seems that -bexpall does not export symbols beginning with
9903 # underscore (_), so it is better to generate a list of symbols to export.
9904 always_export_symbols_CXX=yes
9905 if test "$aix_use_runtimelinking" = yes; then
9906 # Warning - without using the other runtime loading flags (-brtl),
9907 # -berok will link without error, but may produce a broken library.
9908 allow_undefined_flag_CXX='-berok'
9909 # Determine the default libpath from the value encoded in an empty executable.
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try='test -s conftest$ac_exeext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9949 # Check for a 64-bit object if we didn't find anything.
9950 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; }
9953 echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9957 rm -f conftest.err conftest.$ac_objext \
9958 conftest$ac_exeext conftest.$ac_ext
9959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9963 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"
9965 if test "$host_cpu" = ia64; then
9966 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9967 allow_undefined_flag_CXX="-z nodefs"
9968 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"
9970 # Determine the default libpath from the value encoded in an empty executable.
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9990 grep -v '^ *+' conftest.er1 >conftest.err
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10010 # Check for a 64-bit object if we didn't find anything.
10011 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; }
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10018 rm -f conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10022 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10023 # Warning - without using the other run time loading flags,
10024 # -berok will link without error, but may produce a broken library.
10025 no_undefined_flag_CXX=' ${wl}-bernotok'
10026 allow_undefined_flag_CXX=' ${wl}-berok'
10027 # -bexpall does not export symbols beginning with underscore (_)
10028 always_export_symbols_CXX=yes
10029 # Exported symbols can be pulled into shared objects from archives
10030 whole_archive_flag_spec_CXX=' '
10031 archive_cmds_need_lc_CXX=yes
10032 # This is similar to how AIX traditionally builds it's shared libraries.
10033 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'
10038 case $cc_basename in
10040 # FIXME: insert proper C++ library support
10046 cygwin* | mingw* | pw32*)
10047 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10048 # as there is no search path for DLLs.
10049 hardcode_libdir_flag_spec_CXX='-L$libdir'
10050 allow_undefined_flag_CXX=unsupported
10051 always_export_symbols_CXX=no
10052 enable_shared_with_static_runtimes_CXX=yes
10054 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10055 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'
10056 # If the export-symbols file already is a .def file (1st line
10057 # is EXPORTS), use it as is; otherwise, prepend...
10058 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10059 cp $export_symbols $output_objdir/$soname.def;
10061 echo EXPORTS > $output_objdir/$soname.def;
10062 cat $export_symbols >> $output_objdir/$soname.def;
10064 $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'
10070 darwin* | rhapsody*)
10071 if test "$GXX" = yes; then
10072 archive_cmds_need_lc_CXX=no
10074 rhapsody* | darwin1.[012])
10075 allow_undefined_flag_CXX='-undefined suppress'
10078 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10079 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10081 case ${MACOSX_DEPLOYMENT_TARGET} in
10083 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10086 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10092 lt_int_apple_cc_single_mod=no
10093 output_verbose_link_cmd='echo'
10094 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10095 lt_int_apple_cc_single_mod=yes
10097 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10098 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10100 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'
10102 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10105 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10106 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}'
10108 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}'
10110 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10111 hardcode_direct_CXX=no
10112 hardcode_automatic_CXX=yes
10113 hardcode_shlibpath_var_CXX=unsupported
10114 whole_archive_flag_spec_CXX='-all_load $convenience'
10115 link_all_deplibs_CXX=yes
10122 case $cc_basename in
10124 # FIXME: insert proper C++ library support
10128 # Green Hills C++ Compiler
10129 # FIXME: insert proper C++ library support
10133 # FIXME: insert proper C++ library support
10139 # C++ shared libraries reported to be fairly broken before switch to ELF
10143 archive_cmds_need_lc_CXX=no
10145 freebsd* | kfreebsd*-gnu)
10146 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10153 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10154 hardcode_libdir_separator_CXX=:
10155 export_dynamic_flag_spec_CXX='${wl}-E'
10156 hardcode_direct_CXX=yes
10157 hardcode_minus_L_CXX=yes # Not in the search PATH,
10158 # but as the default
10159 # location of the library.
10161 case $cc_basename in
10163 # FIXME: insert proper C++ library support
10167 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'
10168 # Commands to make compiler produce verbose output that lists
10169 # what "hidden" libraries, object files and flags are used when
10170 # linking a shared library.
10172 # There doesn't appear to be a way to prevent this compiler from
10173 # explicitly linking system object files so we need to strip them
10174 # from the output so that they don't get included in the library
10176 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'
10179 if test "$GXX" = yes; then
10180 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'
10182 # FIXME: insert proper C++ library support
10189 if test $with_gnu_ld = no; then
10190 case "$host_cpu" in
10192 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10193 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10194 hardcode_libdir_separator_CXX=:
10197 hardcode_libdir_flag_spec_CXX='-L$libdir'
10200 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10201 hardcode_libdir_separator_CXX=:
10202 export_dynamic_flag_spec_CXX='${wl}-E'
10206 case "$host_cpu" in
10208 hardcode_direct_CXX=no
10209 hardcode_shlibpath_var_CXX=no
10212 hardcode_direct_CXX=no
10213 hardcode_shlibpath_var_CXX=no
10214 hardcode_minus_L_CXX=yes # Not in the search PATH,
10215 # but as the default
10216 # location of the library.
10219 hardcode_direct_CXX=yes
10220 hardcode_minus_L_CXX=yes # Not in the search PATH,
10221 # but as the default
10222 # location of the library.
10226 case $cc_basename in
10228 # FIXME: insert proper C++ library support
10232 case "$host_cpu" in
10234 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10237 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10240 # Commands to make compiler produce verbose output that lists
10241 # what "hidden" libraries, object files and flags are used when
10242 # linking a shared library.
10244 # There doesn't appear to be a way to prevent this compiler from
10245 # explicitly linking system object files so we need to strip them
10246 # from the output so that they don't get included in the library
10248 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'
10251 if test "$GXX" = yes; then
10252 if test $with_gnu_ld = no; then
10253 case "$host_cpu" in
10255 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10258 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'
10263 # FIXME: insert proper C++ library support
10270 case $cc_basename in
10273 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'
10275 # Archives containing C++ object files must be created using
10276 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10277 # necessary to make sure instantiated templates are included
10279 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10282 if test "$GXX" = yes; then
10283 if test "$with_gnu_ld" = no; then
10284 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'
10286 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'
10289 link_all_deplibs_CXX=yes
10292 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10293 hardcode_libdir_separator_CXX=:
10296 case $cc_basename in
10298 # Kuck and Associates, Inc. (KAI) C++ Compiler
10300 # KCC will only create a shared library if the output file
10301 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10302 # to its proper name (with version) after linking.
10303 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'
10304 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'
10305 # Commands to make compiler produce verbose output that lists
10306 # what "hidden" libraries, object files and flags are used when
10307 # linking a shared library.
10309 # There doesn't appear to be a way to prevent this compiler from
10310 # explicitly linking system object files so we need to strip them
10311 # from the output so that they don't get included in the library
10313 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'
10315 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10316 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10318 # Archives containing C++ object files must be created using
10319 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10320 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10325 archive_cmds_need_lc_CXX=no
10326 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327 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'
10328 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10329 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10330 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10334 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10335 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'
10337 runpath_var=LD_RUN_PATH
10338 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10339 hardcode_libdir_separator_CXX=:
10341 # Commands to make compiler produce verbose output that lists
10342 # what "hidden" libraries, object files and flags are used when
10343 # linking a shared library.
10345 # There doesn't appear to be a way to prevent this compiler from
10346 # explicitly linking system object files so we need to strip them
10347 # from the output so that they don't get included in the library
10349 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'
10354 # FIXME: insert proper C++ library support
10358 # FIXME: insert proper C++ library support
10362 case $cc_basename in
10364 # FIXME: insert proper C++ library support
10368 # FIXME: insert proper C++ library support
10373 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10375 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10377 hardcode_libdir_flag_spec_CXX='-R$libdir'
10378 hardcode_direct_CXX=yes
10379 hardcode_shlibpath_var_CXX=no
10381 # Workaround some broken pre-1.5 toolchains
10382 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10385 case $cc_basename in
10387 # Kuck and Associates, Inc. (KAI) C++ Compiler
10389 # KCC will only create a shared library if the output file
10390 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10391 # to its proper name (with version) after linking.
10392 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'
10394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10395 hardcode_libdir_separator_CXX=:
10397 # Archives containing C++ object files must be created using
10398 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10399 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10403 # Rational C++ 2.4.1
10404 # FIXME: insert proper C++ library support
10408 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10409 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'
10411 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10412 hardcode_libdir_separator_CXX=:
10414 # Commands to make compiler produce verbose output that lists
10415 # what "hidden" libraries, object files and flags are used when
10416 # linking a shared library.
10418 # There doesn't appear to be a way to prevent this compiler from
10419 # explicitly linking system object files so we need to strip them
10420 # from the output so that they don't get included in the library
10422 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'
10425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10426 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10427 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'
10429 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10430 hardcode_libdir_separator_CXX=:
10432 # Commands to make compiler produce verbose output that lists
10433 # what "hidden" libraries, object files and flags are used when
10434 # linking a shared library.
10435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10438 # FIXME: insert proper C++ library support
10445 case $cc_basename in
10447 # Kuck and Associates, Inc. (KAI) C++ Compiler
10449 # KCC will only create a shared library if the output file
10450 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10451 # to its proper name (with version) after linking.
10452 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'
10454 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10455 hardcode_libdir_separator_CXX=:
10457 # Archives containing C++ object files must be created using
10458 # the KAI C++ compiler.
10459 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10462 # Rational C++ 2.4.1
10463 # FIXME: insert proper C++ library support
10467 allow_undefined_flag_CXX=' -expect_unresolved \*'
10468 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'
10469 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10470 echo "-hidden">> $lib.exp~
10471 $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~
10474 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10475 hardcode_libdir_separator_CXX=:
10477 # Commands to make compiler produce verbose output that lists
10478 # what "hidden" libraries, object files and flags are used when
10479 # linking a shared library.
10481 # There doesn't appear to be a way to prevent this compiler from
10482 # explicitly linking system object files so we need to strip them
10483 # from the output so that they don't get included in the library
10485 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'
10488 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10489 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10490 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'
10492 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10493 hardcode_libdir_separator_CXX=:
10495 # Commands to make compiler produce verbose output that lists
10496 # what "hidden" libraries, object files and flags are used when
10497 # linking a shared library.
10498 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10501 # FIXME: insert proper C++ library support
10508 # FIXME: insert proper C++ library support
10512 archive_cmds_need_lc_CXX=no
10513 case $cc_basename in
10515 # FIXME: insert proper C++ library support
10519 # FIXME: insert proper C++ library support
10525 case $cc_basename in
10528 # FIXME: insert proper C++ library support
10533 # FIXME: insert proper C++ library support
10537 # FIXME: insert proper C++ library support
10543 case $cc_basename in
10545 # Sun C++ 4.2, 5.x and Centerline C++
10546 no_undefined_flag_CXX=' -zdefs'
10547 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10548 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10549 $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'
10551 hardcode_libdir_flag_spec_CXX='-R$libdir'
10552 hardcode_shlibpath_var_CXX=no
10554 solaris2.0-5 | solaris2.0-5.*) ;;
10556 # The C++ compiler is used as linker so we must use $wl
10557 # flag to pass the commands to the underlying system
10559 # Supported since Solaris 2.6 (maybe 2.5.1?)
10560 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10563 link_all_deplibs_CXX=yes
10565 # Commands to make compiler produce verbose output that lists
10566 # what "hidden" libraries, object files and flags are used when
10567 # linking a shared library.
10569 # There doesn't appear to be a way to prevent this compiler from
10570 # explicitly linking system object files so we need to strip them
10571 # from the output so that they don't get included in the library
10573 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'
10575 # Archives containing C++ object files must be created using
10576 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10577 # necessary to make sure instantiated templates are included
10579 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10582 # Green Hills C++ Compiler
10583 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10585 # The C++ compiler must be used to create the archive.
10586 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10589 # GNU C++ compiler with Solaris linker
10590 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10591 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10592 if $CC --version | grep -v '^2\.7' > /dev/null; then
10593 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10594 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10595 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10597 # Commands to make compiler produce verbose output that lists
10598 # what "hidden" libraries, object files and flags are used when
10599 # linking a shared library.
10600 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10602 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10604 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10605 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10606 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10608 # Commands to make compiler produce verbose output that lists
10609 # what "hidden" libraries, object files and flags are used when
10610 # linking a shared library.
10611 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10614 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10619 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10620 archive_cmds_need_lc_CXX=no
10623 case $cc_basename in
10625 # NonStop-UX NCC 3.20
10626 # FIXME: insert proper C++ library support
10630 # FIXME: insert proper C++ library support
10636 # FIXME: insert proper C++ library support
10640 # FIXME: insert proper C++ library support
10644 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10645 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10646 test "$ld_shlibs_CXX" = no && can_build_shared=no
10652 ## There is no encapsulation within the following macros, do not change
10653 ## the running order or otherwise move them around unless you know exactly
10654 ## what you are doing...
10656 cat > conftest.$ac_ext <<EOF
10660 Foo (void) { a = 0; }
10666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10667 (eval $ac_compile) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; then
10671 # Parse the compiler output and extract the necessary
10672 # objects, libraries and library flags.
10674 # Sentinel used to keep track of whether or not we are before
10675 # the conftest object file.
10676 pre_test_object_deps_done=no
10678 # The `*' in the case matches for architectures that use `case' in
10679 # $output_verbose_cmd can trigger glob expansion during the loop
10680 # eval without this substitution.
10681 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10683 for p in `eval $output_verbose_link_cmd`; do
10687 # Some compilers place space between "-{L,R}" and the path.
10688 # Remove the space.
10689 if test $p = "-L" \
10690 || test $p = "-R"; then
10697 if test "$pre_test_object_deps_done" = no; then
10700 # Internal compiler library paths should come after those
10701 # provided the user. The postdeps already come after the
10702 # user supplied libs so there is no need to process them.
10703 if test -z "$compiler_lib_search_path_CXX"; then
10704 compiler_lib_search_path_CXX="${prev}${p}"
10706 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10709 # The "-l" case would never come before the object being
10710 # linked, so don't bother handling this case.
10713 if test -z "$postdeps_CXX"; then
10714 postdeps_CXX="${prev}${p}"
10716 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10722 # This assumes that the test object file only shows up
10723 # once in the compiler output.
10724 if test "$p" = "conftest.$objext"; then
10725 pre_test_object_deps_done=yes
10729 if test "$pre_test_object_deps_done" = no; then
10730 if test -z "$predep_objects_CXX"; then
10731 predep_objects_CXX="$p"
10733 predep_objects_CXX="$predep_objects_CXX $p"
10736 if test -z "$postdep_objects_CXX"; then
10737 postdep_objects_CXX="$p"
10739 postdep_objects_CXX="$postdep_objects_CXX $p"
10744 *) ;; # Ignore the rest.
10752 echo "libtool.m4: error: problem compiling CXX test program"
10755 $rm -f confest.$objext
10757 case " $postdeps_CXX " in
10758 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10761 lt_prog_compiler_wl_CXX=
10762 lt_prog_compiler_pic_CXX=
10763 lt_prog_compiler_static_CXX=
10765 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10766 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10768 # C++ specific cases for pic, static, wl, etc.
10769 if test "$GXX" = yes; then
10770 lt_prog_compiler_wl_CXX='-Wl,'
10771 lt_prog_compiler_static_CXX='-static'
10775 # All AIX code is PIC.
10776 if test "$host_cpu" = ia64; then
10777 # AIX 5 now supports IA64 processor
10778 lt_prog_compiler_static_CXX='-Bstatic'
10782 # FIXME: we need at least 68020 code to build shared libraries, but
10783 # adding the `-m68020' flag to GCC prevents building anything better,
10785 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10787 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10788 # PIC is the default for these OSes.
10790 mingw* | os2* | pw32*)
10791 # This hack is so that the source file can tell whether it is being
10792 # built for inclusion in a dll (and should export symbols for example).
10793 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10795 darwin* | rhapsody*)
10796 # PIC is the default on this platform
10797 # Common symbols not allowed in MH_DYLIB files
10798 lt_prog_compiler_pic_CXX='-fno-common'
10801 # DJGPP does not support shared libraries at all
10802 lt_prog_compiler_pic_CXX=
10805 if test -d /usr/nec; then
10806 lt_prog_compiler_pic_CXX=-Kconform_pic
10810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10811 # not for PA HP-UX.
10812 case "$host_cpu" in
10816 lt_prog_compiler_pic_CXX='-fPIC'
10821 lt_prog_compiler_pic_CXX='-fPIC'
10827 # All AIX code is PIC.
10828 if test "$host_cpu" = ia64; then
10829 # AIX 5 now supports IA64 processor
10830 lt_prog_compiler_static_CXX='-Bstatic'
10832 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10836 case $cc_basename in
10838 # Green Hills C++ Compiler
10839 # _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"
10844 case $cc_basename in
10846 lt_prog_compiler_pic_CXX='-KPIC'
10849 # Green Hills C++ Compiler
10850 lt_prog_compiler_pic_CXX='-pic'
10856 freebsd* | kfreebsd*-gnu)
10857 # FreeBSD uses GNU C++
10859 hpux9* | hpux10* | hpux11*)
10860 case $cc_basename in
10862 lt_prog_compiler_wl_CXX='-Wl,'
10863 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10864 if test "$host_cpu" != ia64; then
10865 lt_prog_compiler_pic_CXX='+Z'
10869 lt_prog_compiler_wl_CXX='-Wl,'
10870 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10871 case "$host_cpu" in
10876 lt_prog_compiler_pic_CXX='+Z'
10884 irix5* | irix6* | nonstopux*)
10885 case $cc_basename in
10887 lt_prog_compiler_wl_CXX='-Wl,'
10888 lt_prog_compiler_static_CXX='-non_shared'
10889 # CC pic flag -KPIC is the default.
10896 case $cc_basename in
10899 lt_prog_compiler_wl_CXX='--backend -Wl,'
10900 lt_prog_compiler_pic_CXX='-fPIC'
10904 lt_prog_compiler_wl_CXX='-Wl,'
10905 lt_prog_compiler_pic_CXX='-KPIC'
10906 lt_prog_compiler_static_CXX='-static'
10910 # Make sure the PIC flag is empty. It appears that all Alpha
10911 # Linux and Compaq Tru64 Unix objects are PIC.
10912 lt_prog_compiler_pic_CXX=
10913 lt_prog_compiler_static_CXX='-non_shared'
10924 case $cc_basename in
10926 lt_prog_compiler_pic_CXX='-W c,exportall'
10932 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10934 osf3* | osf4* | osf5*)
10935 case $cc_basename in
10937 lt_prog_compiler_wl_CXX='--backend -Wl,'
10940 # Rational C++ 2.4.1
10941 lt_prog_compiler_pic_CXX='-pic'
10944 # Digital/Compaq C++
10945 lt_prog_compiler_wl_CXX='-Wl,'
10946 # Make sure the PIC flag is empty. It appears that all Alpha
10947 # Linux and Compaq Tru64 Unix objects are PIC.
10948 lt_prog_compiler_pic_CXX=
10949 lt_prog_compiler_static_CXX='-non_shared'
10958 case $cc_basename in
10960 lt_prog_compiler_pic_CXX='-fPIC'
10967 case $cc_basename in
10969 # Sun C++ 4.2, 5.x and Centerline C++
10970 lt_prog_compiler_pic_CXX='-KPIC'
10971 lt_prog_compiler_static_CXX='-Bstatic'
10972 lt_prog_compiler_wl_CXX='-Qoption ld '
10975 # Green Hills C++ Compiler
10976 lt_prog_compiler_pic_CXX='-PIC'
10983 case $cc_basename in
10986 lt_prog_compiler_pic_CXX='-pic'
10987 lt_prog_compiler_static_CXX='-Bstatic'
10991 lt_prog_compiler_pic_CXX='-pic'
10998 case $cc_basename in
11000 # NonStop-UX NCC 3.20
11001 lt_prog_compiler_pic_CXX='-KPIC'
11012 lt_prog_compiler_can_build_shared_CXX=no
11017 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11018 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11021 # Check to make sure the PIC flag actually works.
11023 if test -n "$lt_prog_compiler_pic_CXX"; then
11025 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11026 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11027 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 lt_prog_compiler_pic_works_CXX=no
11031 ac_outfile=conftest.$ac_objext
11032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11033 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11034 # Insert the option either (1) after the last *FLAGS variable, or
11035 # (2) before a word containing "conftest.", or (3) at the end.
11036 # Note that $ac_compile itself does not contain backslashes and begins
11037 # with a dollar sign (not a hyphen), so the echo should work correctly.
11038 # The option is referenced via a variable to avoid confusing sed.
11039 lt_compile=`echo "$ac_compile" | $SED \
11040 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11042 -e 's:$: $lt_compiler_flag:'`
11043 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11044 (eval "$lt_compile" 2>conftest.err)
11046 cat conftest.err >&5
11047 echo "$as_me:__oline__: \$? = $ac_status" >&5
11048 if (exit $ac_status) && test -s "$ac_outfile"; then
11049 # The compiler can only warn and ignore the option if not recognized
11050 # So say no if there are warnings
11051 if test ! -s conftest.err; then
11052 lt_prog_compiler_pic_works_CXX=yes
11058 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11059 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11061 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11062 case $lt_prog_compiler_pic_CXX in
11064 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11067 lt_prog_compiler_pic_CXX=
11068 lt_prog_compiler_can_build_shared_CXX=no
11073 # For platforms which do not support PIC, -DPIC is meaningless:
11075 lt_prog_compiler_pic_CXX=
11078 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11082 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11083 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11084 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 lt_cv_prog_compiler_c_o_CXX=no
11088 $rm -r conftest 2>/dev/null
11092 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11094 lt_compiler_flag="-o out/conftest2.$ac_objext"
11095 # Insert the option either (1) after the last *FLAGS variable, or
11096 # (2) before a word containing "conftest.", or (3) at the end.
11097 # Note that $ac_compile itself does not contain backslashes and begins
11098 # with a dollar sign (not a hyphen), so the echo should work correctly.
11099 lt_compile=`echo "$ac_compile" | $SED \
11100 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11102 -e 's:$: $lt_compiler_flag:'`
11103 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11104 (eval "$lt_compile" 2>out/conftest.err)
11106 cat out/conftest.err >&5
11107 echo "$as_me:__oline__: \$? = $ac_status" >&5
11108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11110 # The compiler can only warn and ignore the option if not recognized
11111 # So say no if there are warnings
11112 if test ! -s out/conftest.err; then
11113 lt_cv_prog_compiler_c_o_CXX=yes
11118 # SGI C++ compiler will create directory out/ii_files/ for
11119 # template instantiation
11120 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11121 $rm out/* && rmdir out
11127 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11128 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11131 hard_links="nottested"
11132 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11133 # do not overwrite the value of need_locks provided by the user
11134 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11135 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11140 ln conftest.a conftest.b 2>&5 || hard_links=no
11141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11142 echo "$as_me:$LINENO: result: $hard_links" >&5
11143 echo "${ECHO_T}$hard_links" >&6
11144 if test "$hard_links" = no; then
11145 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11146 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11153 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11154 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11156 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11159 # If we're using GNU nm, then we don't want the "-C" option.
11160 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11161 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11162 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'
11164 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'
11168 export_symbols_cmds_CXX="$ltdll_cmds"
11171 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11174 link_all_deplibs_CXX=no
11177 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11181 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11182 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11183 test "$ld_shlibs_CXX" = no && can_build_shared=no
11185 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11186 if test "$GCC" = yes; then
11187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11191 # Do we need to explicitly link libc?
11193 case "x$archive_cmds_need_lc_CXX" in
11195 # Assume -lc should be added
11196 archive_cmds_need_lc_CXX=yes
11198 if test "$enable_shared" = yes && test "$GCC" = yes; then
11199 case $archive_cmds_CXX in
11201 # FIXME: we may have to deal with multi-command sequences.
11204 # Test whether the compiler implicitly links with -lc since on some
11205 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11206 # to ld, don't add -lc before -lgcc.
11207 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11208 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11213 (eval $ac_compile) 2>&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } 2>conftest.err; then
11219 libobjs=conftest.$ac_objext
11221 wl=$lt_prog_compiler_wl_CXX
11227 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11228 allow_undefined_flag_CXX=
11229 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11230 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }
11235 archive_cmds_need_lc_CXX=no
11237 archive_cmds_need_lc_CXX=yes
11239 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11241 cat conftest.err 1>&5
11244 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11245 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11252 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11253 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11254 library_names_spec=
11255 libname_spec='lib$name'
11259 postuninstall_cmds=
11263 shlibpath_overrides_runpath=unknown
11265 dynamic_linker="$host_os ld.so"
11266 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11267 if test "$GCC" = yes; then
11268 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11269 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11270 # if the path contains ";" then we assume it to be the separator
11271 # otherwise default to the standard path separator (i.e. ":") - it is
11272 # assumed that no part of a normal pathname contains ";" but that should
11273 # okay in the real world where ";" in dirpaths is itself problematic.
11274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11279 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11281 need_lib_prefix=unknown
11282 hardcode_into_libs=no
11284 # when you set need_version to no, make sure it does not cause -set_version
11285 # flags to be left without arguments
11286 need_version=unknown
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11292 shlibpath_var=LIBPATH
11294 # AIX 3 has no versioning support, so we append a major version to the name.
11295 soname_spec='${libname}${release}${shared_ext}$major'
11302 hardcode_into_libs=yes
11303 if test "$host_cpu" = ia64; then
11304 # AIX 5 supports IA64
11305 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11306 shlibpath_var=LD_LIBRARY_PATH
11308 # With GCC up to 2.95.x, collect2 would create an import file
11309 # for dependence libraries. The import file would start with
11310 # the line `#! .'. This would cause the generated library to
11311 # depend on `.', always an invalid library. This was fixed in
11312 # development snapshots of GCC prior to 3.0.
11314 aix4 | aix4.[01] | aix4.[01].*)
11315 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11317 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11320 can_build_shared=no
11324 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11325 # soname into executable. Probably we can add versioning support to
11326 # collect2, so additional links can be useful in future.
11327 if test "$aix_use_runtimelinking" = yes; then
11328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11329 # instead of lib<name>.a to let people know that these are not
11330 # typical AIX shared libraries.
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333 # We preserve .a as extension for shared libraries through AIX4.2
11334 # and later when we are not doing run time linking.
11335 library_names_spec='${libname}${release}.a $libname.a'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11338 shlibpath_var=LIBPATH
11343 library_names_spec='$libname.ixlibrary $libname.a'
11344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11345 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'
11349 library_names_spec='${libname}${shared_ext}'
11350 dynamic_linker="$host_os ld.so"
11351 shlibpath_var=LIBRARY_PATH
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11363 # the default ld.so.conf also contains /usr/contrib/lib and
11364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11365 # libtool to hard-code these into programs
11368 cygwin* | mingw* | pw32*)
11369 version_type=windows
11374 case $GCC,$host_os in
11375 yes,cygwin* | yes,mingw* | yes,pw32*)
11376 library_names_spec='$libname.dll.a'
11377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11378 postinstall_cmds='base_file=`basename \${file}`~
11379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11380 dldir=$destdir/`dirname \$dlpath`~
11381 test -d \$dldir || mkdir -p \$dldir~
11382 $install_prog $dir/$dlname \$dldir/$dlname'
11383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11384 dlpath=$dir/\$dldll~
11386 shlibpath_overrides_runpath=yes
11390 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11391 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11392 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11395 # MinGW DLLs use traditional 'lib' prefix
11396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11398 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11399 # It is most probably a Windows format PATH printed by
11400 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11401 # path with ; separators, and with drive letters. We can handle the
11402 # drive letters (cygwin fileutils understands them), so leave them,
11403 # especially as we might pass files found there to a mingw objdump,
11404 # which wouldn't understand a cygwinified path. Ahh.
11405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11411 # pw32 DLLs use 'pw' prefix rather than 'lib'
11412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11418 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11421 dynamic_linker='Win32 ld.exe'
11422 # FIXME: first we should search . and the directory the executable is in
11426 darwin* | rhapsody*)
11427 dynamic_linker="$host_os dyld"
11428 version_type=darwin
11431 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11432 soname_spec='${libname}${release}${major}$shared_ext'
11433 shlibpath_overrides_runpath=yes
11434 shlibpath_var=DYLD_LIBRARY_PATH
11435 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11436 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11437 if test "$GCC" = yes; then
11438 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"`
11440 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 shlibpath_var=LD_LIBRARY_PATH
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=no
11466 hardcode_into_libs=yes
11467 dynamic_linker='GNU ld.so'
11471 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11472 version_type=freebsd-$objformat
11473 case $version_type in
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11484 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=yes
11489 freebsd3.01* | freebsdelf3.01*)
11490 shlibpath_overrides_runpath=yes
11491 hardcode_into_libs=yes
11494 shlibpath_overrides_runpath=no
11495 hardcode_into_libs=yes
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 hardcode_into_libs=yes
11510 hpux9* | hpux10* | hpux11*)
11511 # Give a soname corresponding to the major version so that dld.sl refuses to
11512 # link against other versions.
11516 case "$host_cpu" in
11519 hardcode_into_libs=yes
11520 dynamic_linker="$host_os dld.so"
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 if test "X$HPUX_IA64_MODE" = X32; then
11526 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11528 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11534 hardcode_into_libs=yes
11535 dynamic_linker="$host_os dld.sl"
11536 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11545 dynamic_linker="$host_os dld.sl"
11546 shlibpath_var=SHLIB_PATH
11547 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11552 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11553 postinstall_cmds='chmod 555 $lib'
11556 irix5* | irix6* | nonstopux*)
11558 nonstopux*) version_type=nonstopux ;;
11560 if test "$lt_cv_prog_gnu_ld" = yes; then
11568 soname_spec='${libname}${release}${shared_ext}$major'
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11571 irix5* | nonstopux*)
11572 libsuff= shlibsuff=
11575 case $LD in # libtool.m4 will add one of these switches to LD
11576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11577 libsuff= shlibsuff= libmagic=32-bit;;
11578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11579 libsuff=32 shlibsuff=N32 libmagic=N32;;
11580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11582 *) libsuff= shlibsuff= libmagic=never-match;;
11586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11587 shlibpath_overrides_runpath=no
11588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11590 hardcode_into_libs=yes
11593 # No shared lib support for Linux oldld, aout, or coff.
11594 linux*oldld* | linux*aout* | linux*coff*)
11598 # This must be Linux ELF.
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604 soname_spec='${libname}${release}${shared_ext}$major'
11605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=no
11608 # This implies no fast_install, which is unacceptable.
11609 # Some rework will be needed to allow for fast_install
11610 # before this can be enabled.
11611 hardcode_into_libs=yes
11613 # Append ld.so.conf contents to the search path
11614 if test -f /etc/ld.so.conf; then
11615 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11619 # We used to test for /lib/ld.so.1 and disable shared libraries on
11620 # powerpc, because MkLinux only supported shared libraries with the
11621 # GNU dynamic linker. Since this was broken with cross compilers,
11622 # most powerpc-linux boxes support dynamic linking these days and
11623 # people can always --disable-shared, the test was removed, and we
11624 # assume the GNU/Linux dynamic linker is in use.
11625 dynamic_linker='GNU/Linux ld.so'
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 hardcode_into_libs=yes
11637 dynamic_linker='NetBSD ld.elf_so'
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11649 dynamic_linker='GNU ld.so'
11656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11659 dynamic_linker='NetBSD (a.out) ld.so'
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11662 soname_spec='${libname}${release}${shared_ext}$major'
11663 dynamic_linker='NetBSD ld.elf_so'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=yes
11667 hardcode_into_libs=yes
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=yes
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 shlibpath_var=LD_LIBRARY_PATH
11684 shlibpath_overrides_runpath=yes
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11696 openbsd2.[89] | openbsd2.[89].*)
11697 shlibpath_overrides_runpath=no
11700 shlibpath_overrides_runpath=yes
11704 shlibpath_overrides_runpath=yes
11709 libname_spec='$name'
11712 library_names_spec='$libname${shared_ext} $libname.a'
11713 dynamic_linker='OS/2 ld.exe'
11714 shlibpath_var=LIBPATH
11717 osf3* | osf4* | osf5*)
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 shlibpath_var=LD_LIBRARY_PATH
11724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732 shlibpath_var=LD_LIBRARY_PATH
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 hardcode_into_libs=yes
11744 # ldd complains unless libraries are executable
11745 postinstall_cmds='chmod +x $lib'
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=yes
11754 if test "$with_gnu_ld" = yes; then
11760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763 soname_spec='${libname}${release}${shared_ext}$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 case $host_vendor in
11767 shlibpath_overrides_runpath=no
11769 export_dynamic_flag_spec='${wl}-Blargedynsym'
11770 runpath_var=LD_RUN_PATH
11778 shlibpath_overrides_runpath=no
11779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11785 if test -d /usr/nec ;then
11787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11788 soname_spec='$libname${shared_ext}.$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11805 echo "${ECHO_T}$dynamic_linker" >&6
11806 test "$dynamic_linker" = no && can_build_shared=no
11808 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11810 hardcode_action_CXX=
11811 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11812 test -n "$runpath_var CXX" || \
11813 test "X$hardcode_automatic_CXX"="Xyes" ; then
11815 # We can hardcode non-existant directories.
11816 if test "$hardcode_direct_CXX" != no &&
11817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11818 # have to relink, otherwise we might link with an installed library
11819 # when we should be linking with a yet-to-be-installed one
11820 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11821 test "$hardcode_minus_L_CXX" != no; then
11822 # Linking always hardcodes the temporary library directory.
11823 hardcode_action_CXX=relink
11825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11826 hardcode_action_CXX=immediate
11829 # We cannot hardcode anything, or else we can only hardcode existing
11831 hardcode_action_CXX=unsupported
11833 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11834 echo "${ECHO_T}$hardcode_action_CXX" >&6
11836 if test "$hardcode_action_CXX" = relink; then
11837 # Fast installation is not supported
11838 enable_fast_install=no
11839 elif test "$shlibpath_overrides_runpath" = yes ||
11840 test "$enable_shared" = no; then
11841 # Fast installation is not necessary
11842 enable_fast_install=needless
11847 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11848 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11849 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11850 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11851 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11852 echo "$as_me:$LINENO: result: yes" >&5
11853 echo "${ECHO_T}yes" >&6
11855 # FIXME - insert some real tests, host_os isn't really good enough
11858 if test -n "$STRIP" ; then
11859 striplib="$STRIP -x"
11860 echo "$as_me:$LINENO: result: yes" >&5
11861 echo "${ECHO_T}yes" >&6
11863 echo "$as_me:$LINENO: result: no" >&5
11864 echo "${ECHO_T}no" >&6
11868 echo "$as_me:$LINENO: result: no" >&5
11869 echo "${ECHO_T}no" >&6
11874 if test "x$enable_dlopen" != xyes; then
11875 enable_dlopen=unknown
11876 enable_dlopen_self=unknown
11877 enable_dlopen_self_static=unknown
11884 lt_cv_dlopen="load_add_on"
11886 lt_cv_dlopen_self=yes
11890 lt_cv_dlopen="LoadLibrary"
11895 lt_cv_dlopen="dlopen"
11900 # if libdl is installed we need to link against it
11901 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 ac_check_lib_save_LIBS=$LIBS
11908 cat >conftest.$ac_ext <<_ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11915 /* Override any gcc2 internal prototype to avoid an error. */
11919 /* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932 (eval $ac_link) 2>conftest.er1
11934 grep -v '^ *+' conftest.er1 >conftest.err
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try='test -s conftest$ac_exeext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_lib_dl_dlopen=yes
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 ac_cv_lib_dl_dlopen=no
11958 rm -f conftest.err conftest.$ac_objext \
11959 conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11962 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11963 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11964 if test $ac_cv_lib_dl_dlopen = yes; then
11965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11968 lt_cv_dlopen="dyld"
11970 lt_cv_dlopen_self=yes
11977 echo "$as_me:$LINENO: checking for shl_load" >&5
11978 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11979 if test "${ac_cv_func_shl_load+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 cat >conftest.$ac_ext <<_ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11990 #define shl_load innocuous_shl_load
11992 /* System header to define __stub macros and hopefully few prototypes,
11993 which can conflict with char shl_load (); below.
11994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11995 <limits.h> exists even on freestanding compilers. */
11998 # include <limits.h>
12000 # include <assert.h>
12005 /* Override any gcc2 internal prototype to avoid an error. */
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12013 /* The GNU C library defines this for functions which it implements
12014 to always fail with ENOSYS. Some functions are actually named
12015 something starting with __ and the normal name is an alias. */
12016 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12019 char (*f) () = shl_load;
12028 return f != shl_load;
12033 rm -f conftest.$ac_objext conftest$ac_exeext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035 (eval $ac_link) 2>conftest.er1
12037 grep -v '^ *+' conftest.er1 >conftest.err
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest$ac_exeext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_func_shl_load=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_cv_func_shl_load=no
12061 rm -f conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12064 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12065 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12066 if test $ac_cv_func_shl_load = yes; then
12067 lt_cv_dlopen="shl_load"
12069 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12070 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12071 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 ac_check_lib_save_LIBS=$LIBS
12076 cat >conftest.$ac_ext <<_ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12083 /* Override any gcc2 internal prototype to avoid an error. */
12087 /* We use char because int might match the return type of a gcc2
12088 builtin and then its argument prototype would still apply. */
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100 (eval $ac_link) 2>conftest.er1
12102 grep -v '^ *+' conftest.er1 >conftest.err
12104 cat conftest.err >&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; } &&
12113 { ac_try='test -s conftest$ac_exeext'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 ac_cv_lib_dld_shl_load=yes
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ac_cv_lib_dld_shl_load=no
12126 rm -f conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12130 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12131 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12132 if test $ac_cv_lib_dld_shl_load = yes; then
12133 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12135 echo "$as_me:$LINENO: checking for dlopen" >&5
12136 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12137 if test "${ac_cv_func_dlopen+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12148 #define dlopen innocuous_dlopen
12150 /* System header to define __stub macros and hopefully few prototypes,
12151 which can conflict with char dlopen (); below.
12152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12153 <limits.h> exists even on freestanding compilers. */
12156 # include <limits.h>
12158 # include <assert.h>
12163 /* Override any gcc2 internal prototype to avoid an error. */
12168 /* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12171 /* The GNU C library defines this for functions which it implements
12172 to always fail with ENOSYS. Some functions are actually named
12173 something starting with __ and the normal name is an alias. */
12174 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12177 char (*f) () = dlopen;
12186 return f != dlopen;
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>conftest.er1
12195 grep -v '^ *+' conftest.er1 >conftest.err
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_func_dlopen=yes
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_cv_func_dlopen=no
12219 rm -f conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12222 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12223 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12224 if test $ac_cv_func_dlopen = yes; then
12225 lt_cv_dlopen="dlopen"
12227 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12228 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12229 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 ac_check_lib_save_LIBS=$LIBS
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12241 /* Override any gcc2 internal prototype to avoid an error. */
12245 /* We use char because int might match the return type of a gcc2
12246 builtin and then its argument prototype would still apply. */
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest$ac_exeext'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 ac_cv_lib_dl_dlopen=yes
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 ac_cv_lib_dl_dlopen=no
12284 rm -f conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12288 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12289 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12290 if test $ac_cv_lib_dl_dlopen = yes; then
12291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12293 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12294 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12295 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 ac_check_lib_save_LIBS=$LIBS
12299 LIBS="-lsvld $LIBS"
12300 cat >conftest.$ac_ext <<_ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12307 /* Override any gcc2 internal prototype to avoid an error. */
12311 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12324 (eval $ac_link) 2>conftest.er1
12326 grep -v '^ *+' conftest.er1 >conftest.err
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
12331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_lib_svld_dlopen=yes
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ac_cv_lib_svld_dlopen=no
12350 rm -f conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_lib_save_LIBS
12354 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12355 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12356 if test $ac_cv_lib_svld_dlopen = yes; then
12357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12359 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12360 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12361 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 ac_check_lib_save_LIBS=$LIBS
12366 cat >conftest.$ac_ext <<_ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12373 /* Override any gcc2 internal prototype to avoid an error. */
12377 /* We use char because int might match the return type of a gcc2
12378 builtin and then its argument prototype would still apply. */
12388 rm -f conftest.$ac_objext conftest$ac_exeext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12390 (eval $ac_link) 2>conftest.er1
12392 grep -v '^ *+' conftest.er1 >conftest.err
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest$ac_exeext'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 ac_cv_lib_dld_dld_link=yes
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ac_cv_lib_dld_dld_link=no
12416 rm -f conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12420 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12421 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12422 if test $ac_cv_lib_dld_dld_link = yes; then
12423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12444 if test "x$lt_cv_dlopen" != xno; then
12450 case $lt_cv_dlopen in
12452 save_CPPFLAGS="$CPPFLAGS"
12453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12455 save_LDFLAGS="$LDFLAGS"
12456 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12459 LIBS="$lt_cv_dlopen_libs $LIBS"
12461 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12462 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12463 if test "${lt_cv_dlopen_self+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 if test "$cross_compiling" = yes; then :
12467 lt_cv_dlopen_self=cross
12469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12470 lt_status=$lt_dlunknown
12471 cat > conftest.$ac_ext <<EOF
12472 #line __oline__ "configure"
12473 #include "confdefs.h"
12482 # define LT_DLGLOBAL RTLD_GLOBAL
12485 # define LT_DLGLOBAL DL_GLOBAL
12487 # define LT_DLGLOBAL 0
12491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12492 find out it does not work in some platform. */
12493 #ifndef LT_DLLAZY_OR_NOW
12495 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12498 # define LT_DLLAZY_OR_NOW DL_LAZY
12501 # define LT_DLLAZY_OR_NOW RTLD_NOW
12504 # define LT_DLLAZY_OR_NOW DL_NOW
12506 # define LT_DLLAZY_OR_NOW 0
12514 extern "C" void exit (int);
12517 void fnord() { int i=42;}
12520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12521 int status = $lt_dlunknown;
12525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12526 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12527 /* dlclose (self); */
12533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12534 (eval $ac_link) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12538 (./conftest; exit; ) 2>/dev/null
12540 case x$lt_status in
12541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12543 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12546 # compilation failed
12547 lt_cv_dlopen_self=no
12554 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12555 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12557 if test "x$lt_cv_dlopen_self" = xyes; then
12558 LDFLAGS="$LDFLAGS $link_static_flag"
12559 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12560 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12561 if test "${lt_cv_dlopen_self_static+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 if test "$cross_compiling" = yes; then :
12565 lt_cv_dlopen_self_static=cross
12567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12568 lt_status=$lt_dlunknown
12569 cat > conftest.$ac_ext <<EOF
12570 #line __oline__ "configure"
12571 #include "confdefs.h"
12580 # define LT_DLGLOBAL RTLD_GLOBAL
12583 # define LT_DLGLOBAL DL_GLOBAL
12585 # define LT_DLGLOBAL 0
12589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12590 find out it does not work in some platform. */
12591 #ifndef LT_DLLAZY_OR_NOW
12593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12596 # define LT_DLLAZY_OR_NOW DL_LAZY
12599 # define LT_DLLAZY_OR_NOW RTLD_NOW
12602 # define LT_DLLAZY_OR_NOW DL_NOW
12604 # define LT_DLLAZY_OR_NOW 0
12612 extern "C" void exit (int);
12615 void fnord() { int i=42;}
12618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12619 int status = $lt_dlunknown;
12623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12625 /* dlclose (self); */
12631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12632 (eval $ac_link) 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12636 (./conftest; exit; ) 2>/dev/null
12638 case x$lt_status in
12639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12641 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12644 # compilation failed
12645 lt_cv_dlopen_self_static=no
12652 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12653 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12656 CPPFLAGS="$save_CPPFLAGS"
12657 LDFLAGS="$save_LDFLAGS"
12662 case $lt_cv_dlopen_self in
12663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12664 *) enable_dlopen_self=unknown ;;
12667 case $lt_cv_dlopen_self_static in
12668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12669 *) enable_dlopen_self_static=unknown ;;
12674 # The else clause should only fire when bootstrapping the
12675 # libtool distribution, otherwise you forgot to ship ltmain.sh
12676 # with your package, and you will get complaints that there are
12677 # no rules to generate ltmain.sh.
12678 if test -f "$ltmain"; then
12679 # See if we are running on zsh, and set the options which allow our commands through
12680 # without removal of \ escapes.
12681 if test -n "${ZSH_VERSION+set}" ; then
12682 setopt NO_GLOB_SUBST
12684 # Now quote all the things that may contain metacharacters while being
12685 # careful not to overquote the AC_SUBSTed values. We take copies of the
12686 # variables and quote the copies for generation of the libtool script.
12687 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12691 deplibs_check_method reload_flag reload_cmds need_locks \
12692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12693 lt_cv_sys_global_symbol_to_c_name_address \
12694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12695 old_postinstall_cmds old_postuninstall_cmds \
12699 lt_prog_compiler_wl_CXX \
12700 lt_prog_compiler_pic_CXX \
12701 lt_prog_compiler_static_CXX \
12702 lt_prog_compiler_no_builtin_flag_CXX \
12703 export_dynamic_flag_spec_CXX \
12704 thread_safe_flag_spec_CXX \
12705 whole_archive_flag_spec_CXX \
12706 enable_shared_with_static_runtimes_CXX \
12707 old_archive_cmds_CXX \
12708 old_archive_from_new_cmds_CXX \
12709 predep_objects_CXX \
12710 postdep_objects_CXX \
12713 compiler_lib_search_path_CXX \
12715 archive_expsym_cmds_CXX \
12716 postinstall_cmds_CXX \
12717 postuninstall_cmds_CXX \
12718 old_archive_from_expsyms_cmds_CXX \
12719 allow_undefined_flag_CXX \
12720 no_undefined_flag_CXX \
12721 export_symbols_cmds_CXX \
12722 hardcode_libdir_flag_spec_CXX \
12723 hardcode_libdir_flag_spec_ld_CXX \
12724 hardcode_libdir_separator_CXX \
12725 hardcode_automatic_CXX \
12727 module_expsym_cmds_CXX \
12728 lt_cv_prog_compiler_c_o_CXX \
12729 exclude_expsyms_CXX \
12730 include_expsyms_CXX; do
12733 old_archive_cmds_CXX | \
12734 old_archive_from_new_cmds_CXX | \
12735 archive_cmds_CXX | \
12736 archive_expsym_cmds_CXX | \
12737 module_cmds_CXX | \
12738 module_expsym_cmds_CXX | \
12739 old_archive_from_expsyms_cmds_CXX | \
12740 export_symbols_cmds_CXX | \
12741 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12742 postinstall_cmds | postuninstall_cmds | \
12743 old_postinstall_cmds | old_postuninstall_cmds | \
12744 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12745 # Double-quote double-evaled strings.
12746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12755 *'\$0 --fallback-echo"')
12756 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12762 cat <<__EOF__ >> "$cfgfile"
12763 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12767 # Shell to use when invoking shell scripts.
12770 # Whether or not to build shared libraries.
12771 build_libtool_libs=$enable_shared
12773 # Whether or not to build static libraries.
12774 build_old_libs=$enable_static
12776 # Whether or not to add -lc for building shared libraries.
12777 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12779 # Whether or not to disallow shared libs when runtime libs are static
12780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12782 # Whether or not to optimize for fast installation.
12783 fast_install=$enable_fast_install
12786 host_alias=$host_alias
12789 # An echo program that does not interpret backslashes.
12794 AR_FLAGS=$lt_AR_FLAGS
12799 # A language-specific compiler.
12800 CC=$lt_compiler_CXX
12802 # Is the compiler the GNU C compiler?
12808 # The linker used to build libraries.
12811 # Whether we need hard or soft links.
12814 # A BSD-compatible nm program.
12817 # A symbol stripping program
12820 # Used to examine libraries when file_magic_cmd begins "file"
12821 MAGIC_CMD=$MAGIC_CMD
12823 # Used on cygwin: DLL creation program.
12826 # Used on cygwin: object dumper.
12829 # Used on cygwin: assembler.
12832 # The name of the directory that contains temporary libtool files.
12835 # How to create reloadable object files.
12836 reload_flag=$lt_reload_flag
12837 reload_cmds=$lt_reload_cmds
12839 # How to pass a linker flag through the compiler.
12840 wl=$lt_lt_prog_compiler_wl_CXX
12842 # Object file suffix (normally "o").
12843 objext="$ac_objext"
12845 # Old archive suffix (normally "a").
12848 # Shared library suffix (normally ".so").
12849 shrext_cmds='$shrext_cmds'
12851 # Executable file suffix (normally "").
12854 # Additional compiler flags for building library objects.
12855 pic_flag=$lt_lt_prog_compiler_pic_CXX
12858 # What is the maximum length of a command?
12859 max_cmd_len=$lt_cv_sys_max_cmd_len
12861 # Does compiler simultaneously support -c and -o options?
12862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12864 # Must we lock files when doing compilation ?
12865 need_locks=$lt_need_locks
12867 # Do we need the lib prefix for modules?
12868 need_lib_prefix=$need_lib_prefix
12870 # Do we need a version for libraries?
12871 need_version=$need_version
12873 # Whether dlopen is supported.
12874 dlopen_support=$enable_dlopen
12876 # Whether dlopen of programs is supported.
12877 dlopen_self=$enable_dlopen_self
12879 # Whether dlopen of statically linked programs is supported.
12880 dlopen_self_static=$enable_dlopen_self_static
12882 # Compiler flag to prevent dynamic linking.
12883 link_static_flag=$lt_lt_prog_compiler_static_CXX
12885 # Compiler flag to turn off builtin functions.
12886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12888 # Compiler flag to allow reflexive dlopens.
12889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12891 # Compiler flag to generate shared objects directly from archives.
12892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12894 # Compiler flag to generate thread-safe objects.
12895 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12897 # Library versioning type.
12898 version_type=$version_type
12900 # Format of library name prefix.
12901 libname_spec=$lt_libname_spec
12903 # List of archive names. First name is the real one, the rest are links.
12904 # The last name is the one that the linker finds with -lNAME.
12905 library_names_spec=$lt_library_names_spec
12907 # The coded name of the library, if different from the real name.
12908 soname_spec=$lt_soname_spec
12910 # Commands used to build and install an old-style archive.
12912 old_archive_cmds=$lt_old_archive_cmds_CXX
12913 old_postinstall_cmds=$lt_old_postinstall_cmds
12914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12916 # Create an old-style archive from a shared archive.
12917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12919 # Create a temporary old-style archive to link instead of a shared archive.
12920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12922 # Commands used to build and install a shared archive.
12923 archive_cmds=$lt_archive_cmds_CXX
12924 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12925 postinstall_cmds=$lt_postinstall_cmds
12926 postuninstall_cmds=$lt_postuninstall_cmds
12928 # Commands used to build a loadable module (assumed same as above if empty)
12929 module_cmds=$lt_module_cmds_CXX
12930 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12932 # Commands to strip libraries.
12933 old_striplib=$lt_old_striplib
12934 striplib=$lt_striplib
12936 # Dependencies to place before the objects being linked to create a
12938 predep_objects=$lt_predep_objects_CXX
12940 # Dependencies to place after the objects being linked to create a
12942 postdep_objects=$lt_postdep_objects_CXX
12944 # Dependencies to place before the objects being linked to create a
12946 predeps=$lt_predeps_CXX
12948 # Dependencies to place after the objects being linked to create a
12950 postdeps=$lt_postdeps_CXX
12952 # The library search path used internally by the compiler when linking
12953 # a shared library.
12954 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12956 # Method to check whether dependent libraries are shared objects.
12957 deplibs_check_method=$lt_deplibs_check_method
12959 # Command to use when deplibs_check_method == file_magic.
12960 file_magic_cmd=$lt_file_magic_cmd
12962 # Flag that allows shared libraries with undefined symbols to be built.
12963 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12965 # Flag that forces no undefined symbols.
12966 no_undefined_flag=$lt_no_undefined_flag_CXX
12968 # Commands used to finish a libtool library installation in a directory.
12969 finish_cmds=$lt_finish_cmds
12971 # Same as above, but a single script fragment to be evaled but not shown.
12972 finish_eval=$lt_finish_eval
12974 # Take the output of nm and produce a listing of raw symbols and C names.
12975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12977 # Transform the output of nm in a proper C declaration
12978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12980 # Transform the output of nm in a C name address pair
12981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12983 # This is the shared library runtime path variable.
12984 runpath_var=$runpath_var
12986 # This is the shared library path variable.
12987 shlibpath_var=$shlibpath_var
12989 # Is shlibpath searched before the hard-coded library search path?
12990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12992 # How to hardcode a shared library path into an executable.
12993 hardcode_action=$hardcode_action_CXX
12995 # Whether we should hardcode library paths into libraries.
12996 hardcode_into_libs=$hardcode_into_libs
12998 # Flag to hardcode \$libdir into a binary during linking.
12999 # This must work even if \$libdir does not exist.
13000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13002 # If ld is used when linking, flag to hardcode \$libdir into
13003 # a binary during linking. This must work even if \$libdir does
13005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13007 # Whether we need a single -rpath flag with a separated argument.
13008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13010 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13011 # resulting binary.
13012 hardcode_direct=$hardcode_direct_CXX
13014 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13015 # resulting binary.
13016 hardcode_minus_L=$hardcode_minus_L_CXX
13018 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13019 # the resulting binary.
13020 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13022 # Set to yes if building a shared library automatically hardcodes DIR into the library
13023 # and all subsequent libraries and executables linked against it.
13024 hardcode_automatic=$hardcode_automatic_CXX
13026 # Variables whose values should be saved in libtool wrapper scripts and
13027 # restored at relink time.
13028 variables_saved_for_relink="$variables_saved_for_relink"
13030 # Whether libtool must link a program against all its dependency libraries.
13031 link_all_deplibs=$link_all_deplibs_CXX
13033 # Compile-time system search path for libraries
13034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13036 # Run-time system search path for libraries
13037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13039 # Fix the shell variable \$srcfile for the compiler.
13040 fix_srcfile_path="$fix_srcfile_path_CXX"
13042 # Set to yes if exported symbols are required.
13043 always_export_symbols=$always_export_symbols_CXX
13045 # The commands to list exported symbols.
13046 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13048 # The commands to extract the exported symbol list from a shared archive.
13049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13051 # Symbols that should not be listed in the preloaded symbols.
13052 exclude_expsyms=$lt_exclude_expsyms_CXX
13054 # Symbols that must always be exported.
13055 include_expsyms=$lt_include_expsyms_CXX
13057 # ### END LIBTOOL TAG CONFIG: $tagname
13063 # If there is no Makefile yet, we rely on a make rule to execute
13064 # `config.status --recheck' to rerun these tests and create the
13065 # libtool script then.
13066 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13067 if test -f "$ltmain_in"; then
13068 test -f Makefile && make "$ltmain"
13074 ac_cpp='$CPP $CPPFLAGS'
13075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13083 with_gnu_ldcxx=$with_gnu_ld
13084 with_gnu_ld=$lt_save_with_gnu_ld
13085 lt_cv_path_LDCXX=$lt_cv_path_LD
13086 lt_cv_path_LD=$lt_save_path_LD
13087 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13088 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13096 if test -n "$F77" && test "X$F77" != "Xno"; then
13099 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13100 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13101 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13104 archive_cmds_need_lc_F77=no
13105 allow_undefined_flag_F77=
13106 always_export_symbols_F77=no
13107 archive_expsym_cmds_F77=
13108 export_dynamic_flag_spec_F77=
13109 hardcode_direct_F77=no
13110 hardcode_libdir_flag_spec_F77=
13111 hardcode_libdir_flag_spec_ld_F77=
13112 hardcode_libdir_separator_F77=
13113 hardcode_minus_L_F77=no
13114 hardcode_automatic_F77=no
13116 module_expsym_cmds_F77=
13117 link_all_deplibs_F77=unknown
13118 old_archive_cmds_F77=$old_archive_cmds
13119 no_undefined_flag_F77=
13120 whole_archive_flag_spec_F77=
13121 enable_shared_with_static_runtimes_F77=no
13123 # Source file extension for f77 test sources.
13126 # Object file extension for compiled f77 test sources.
13130 # Code to be used in simple compile tests
13131 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13133 # Code to be used in simple link tests
13134 lt_simple_link_test_code=" program t\n end\n"
13136 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13138 # If no C compiler was specified, use CC.
13141 # Allow CC to be a program name with arguments.
13145 # Allow CC to be a program name with arguments.
13150 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13152 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13153 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13154 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13155 echo "${ECHO_T}$can_build_shared" >&6
13157 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13158 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13159 test "$can_build_shared" = "no" && enable_shared=no
13161 # On AIX, shared libraries and static libraries use the same namespace, and
13162 # are all built from PIC.
13165 test "$enable_shared" = yes && enable_static=no
13166 if test -n "$RANLIB"; then
13167 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13168 postinstall_cmds='$RANLIB $lib'
13172 test "$enable_shared" = yes && enable_static=no
13175 echo "$as_me:$LINENO: result: $enable_shared" >&5
13176 echo "${ECHO_T}$enable_shared" >&6
13178 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13179 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13180 # Make sure either enable_shared or enable_static is yes.
13181 test "$enable_shared" = yes || enable_static=yes
13182 echo "$as_me:$LINENO: result: $enable_static" >&5
13183 echo "${ECHO_T}$enable_static" >&6
13185 test "$ld_shlibs_F77" = no && can_build_shared=no
13190 lt_prog_compiler_wl_F77=
13191 lt_prog_compiler_pic_F77=
13192 lt_prog_compiler_static_F77=
13194 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13195 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13197 if test "$GCC" = yes; then
13198 lt_prog_compiler_wl_F77='-Wl,'
13199 lt_prog_compiler_static_F77='-static'
13203 # All AIX code is PIC.
13204 if test "$host_cpu" = ia64; then
13205 # AIX 5 now supports IA64 processor
13206 lt_prog_compiler_static_F77='-Bstatic'
13211 # FIXME: we need at least 68020 code to build shared libraries, but
13212 # adding the `-m68020' flag to GCC prevents building anything better,
13214 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13217 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13218 # PIC is the default for these OSes.
13221 mingw* | pw32* | os2*)
13222 # This hack is so that the source file can tell whether it is being
13223 # built for inclusion in a dll (and should export symbols for example).
13224 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13227 darwin* | rhapsody*)
13228 # PIC is the default on this platform
13229 # Common symbols not allowed in MH_DYLIB files
13230 lt_prog_compiler_pic_F77='-fno-common'
13234 # Just because we use GCC doesn't mean we suddenly get shared libraries
13235 # on systems that don't support them.
13236 lt_prog_compiler_can_build_shared_F77=no
13241 if test -d /usr/nec; then
13242 lt_prog_compiler_pic_F77=-Kconform_pic
13247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13248 # not for PA HP-UX.
13249 case "$host_cpu" in
13254 lt_prog_compiler_pic_F77='-fPIC'
13260 lt_prog_compiler_pic_F77='-fPIC'
13264 # PORTME Check for flag to pass linker flags through the system compiler.
13267 lt_prog_compiler_wl_F77='-Wl,'
13268 if test "$host_cpu" = ia64; then
13269 # AIX 5 now supports IA64 processor
13270 lt_prog_compiler_static_F77='-Bstatic'
13272 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13276 mingw* | pw32* | os2*)
13277 # This hack is so that the source file can tell whether it is being
13278 # built for inclusion in a dll (and should export symbols for example).
13279 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13282 hpux9* | hpux10* | hpux11*)
13283 lt_prog_compiler_wl_F77='-Wl,'
13284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13285 # not for PA HP-UX.
13286 case "$host_cpu" in
13291 lt_prog_compiler_pic_F77='+Z'
13294 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13295 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13298 irix5* | irix6* | nonstopux*)
13299 lt_prog_compiler_wl_F77='-Wl,'
13300 # PIC (with -KPIC) is the default.
13301 lt_prog_compiler_static_F77='-non_shared'
13305 lt_prog_compiler_pic_F77='-KPIC'
13306 lt_prog_compiler_static_F77='-Bstatic'
13312 lt_prog_compiler_wl_F77='-Wl,'
13313 lt_prog_compiler_pic_F77='-KPIC'
13314 lt_prog_compiler_static_F77='-static'
13317 lt_prog_compiler_wl_F77='-Wl,'
13318 # All Alpha code is PIC.
13319 lt_prog_compiler_static_F77='-non_shared'
13324 osf3* | osf4* | osf5*)
13325 lt_prog_compiler_wl_F77='-Wl,'
13326 # All OSF/1 code is PIC.
13327 lt_prog_compiler_static_F77='-non_shared'
13331 lt_prog_compiler_pic_F77='-Kpic'
13332 lt_prog_compiler_static_F77='-dn'
13336 lt_prog_compiler_wl_F77='-Wl,'
13337 lt_prog_compiler_pic_F77='-KPIC'
13338 lt_prog_compiler_static_F77='-Bstatic'
13342 lt_prog_compiler_wl_F77='-Qoption ld '
13343 lt_prog_compiler_pic_F77='-PIC'
13344 lt_prog_compiler_static_F77='-Bstatic'
13347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13348 lt_prog_compiler_wl_F77='-Wl,'
13349 lt_prog_compiler_pic_F77='-KPIC'
13350 lt_prog_compiler_static_F77='-Bstatic'
13354 if test -d /usr/nec ;then
13355 lt_prog_compiler_pic_F77='-Kconform_pic'
13356 lt_prog_compiler_static_F77='-Bstatic'
13361 lt_prog_compiler_pic_F77='-pic'
13362 lt_prog_compiler_static_F77='-Bstatic'
13366 lt_prog_compiler_can_build_shared_F77=no
13371 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13372 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13375 # Check to make sure the PIC flag actually works.
13377 if test -n "$lt_prog_compiler_pic_F77"; then
13379 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13380 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13381 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 lt_prog_compiler_pic_works_F77=no
13385 ac_outfile=conftest.$ac_objext
13386 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13387 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13388 # Insert the option either (1) after the last *FLAGS variable, or
13389 # (2) before a word containing "conftest.", or (3) at the end.
13390 # Note that $ac_compile itself does not contain backslashes and begins
13391 # with a dollar sign (not a hyphen), so the echo should work correctly.
13392 # The option is referenced via a variable to avoid confusing sed.
13393 lt_compile=`echo "$ac_compile" | $SED \
13394 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13396 -e 's:$: $lt_compiler_flag:'`
13397 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13398 (eval "$lt_compile" 2>conftest.err)
13400 cat conftest.err >&5
13401 echo "$as_me:__oline__: \$? = $ac_status" >&5
13402 if (exit $ac_status) && test -s "$ac_outfile"; then
13403 # The compiler can only warn and ignore the option if not recognized
13404 # So say no if there are warnings
13405 if test ! -s conftest.err; then
13406 lt_prog_compiler_pic_works_F77=yes
13412 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13413 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13415 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13416 case $lt_prog_compiler_pic_F77 in
13418 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13421 lt_prog_compiler_pic_F77=
13422 lt_prog_compiler_can_build_shared_F77=no
13427 # For platforms which do not support PIC, -DPIC is meaningless:
13429 lt_prog_compiler_pic_F77=
13432 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13436 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13438 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 lt_cv_prog_compiler_c_o_F77=no
13442 $rm -r conftest 2>/dev/null
13446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13448 lt_compiler_flag="-o out/conftest2.$ac_objext"
13449 # Insert the option either (1) after the last *FLAGS variable, or
13450 # (2) before a word containing "conftest.", or (3) at the end.
13451 # Note that $ac_compile itself does not contain backslashes and begins
13452 # with a dollar sign (not a hyphen), so the echo should work correctly.
13453 lt_compile=`echo "$ac_compile" | $SED \
13454 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13456 -e 's:$: $lt_compiler_flag:'`
13457 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13458 (eval "$lt_compile" 2>out/conftest.err)
13460 cat out/conftest.err >&5
13461 echo "$as_me:__oline__: \$? = $ac_status" >&5
13462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13464 # The compiler can only warn and ignore the option if not recognized
13465 # So say no if there are warnings
13466 if test ! -s out/conftest.err; then
13467 lt_cv_prog_compiler_c_o_F77=yes
13472 # SGI C++ compiler will create directory out/ii_files/ for
13473 # template instantiation
13474 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13475 $rm out/* && rmdir out
13481 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13485 hard_links="nottested"
13486 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13487 # do not overwrite the value of need_locks provided by the user
13488 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13494 ln conftest.a conftest.b 2>&5 || hard_links=no
13495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13496 echo "$as_me:$LINENO: result: $hard_links" >&5
13497 echo "${ECHO_T}$hard_links" >&6
13498 if test "$hard_links" = no; then
13499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13507 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13511 allow_undefined_flag_F77=
13512 enable_shared_with_static_runtimes_F77=no
13514 archive_expsym_cmds_F77=
13515 old_archive_From_new_cmds_F77=
13516 old_archive_from_expsyms_cmds_F77=
13517 export_dynamic_flag_spec_F77=
13518 whole_archive_flag_spec_F77=
13519 thread_safe_flag_spec_F77=
13520 hardcode_libdir_flag_spec_F77=
13521 hardcode_libdir_flag_spec_ld_F77=
13522 hardcode_libdir_separator_F77=
13523 hardcode_direct_F77=no
13524 hardcode_minus_L_F77=no
13525 hardcode_shlibpath_var_F77=unsupported
13526 link_all_deplibs_F77=unknown
13527 hardcode_automatic_F77=no
13529 module_expsym_cmds_F77=
13530 always_export_symbols_F77=no
13531 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13532 # include_expsyms should be a list of space-separated symbols to be *always*
13533 # included in the symbol list
13534 include_expsyms_F77=
13535 # exclude_expsyms can be an extended regexp of symbols to exclude
13536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13538 # as well as any symbol that contains `d'.
13539 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13541 # platforms (ab)use it in PIC code, but their linkers get confused if
13542 # the symbol is explicitly referenced. Since portable code cannot
13543 # rely on this symbol name, it's probably fine to never include it in
13544 # preloaded symbol tables.
13545 extract_expsyms_cmds=
13548 cygwin* | mingw* | pw32*)
13549 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13550 # When not using gcc, we currently assume that we are using
13551 # Microsoft Visual C++.
13552 if test "$GCC" != yes; then
13562 if test "$with_gnu_ld" = yes; then
13563 # If archive_cmds runs LD, not CC, wlarc should be empty
13566 # See if GNU ld supports shared libraries.
13568 aix3* | aix4* | aix5*)
13569 # On AIX/PPC, the GNU linker is very broken
13570 if test "$host_cpu" != ia64; then
13574 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13575 *** to be unable to reliably create shared libraries on AIX.
13576 *** Therefore, libtool is disabling shared libraries support. If you
13577 *** really care for shared libraries, you may want to modify your PATH
13578 *** so that a non-GNU linker is found, and then restart.
13585 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)'
13586 hardcode_libdir_flag_spec_F77='-L$libdir'
13587 hardcode_minus_L_F77=yes
13589 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13590 # that the semantics of dynamic libraries on AmigaOS, at least up
13591 # to version 4, is to share data among multiple programs linked
13592 # with the same dynamic library. Since this doesn't match the
13593 # behavior of shared libraries on other platforms, we can't use
13599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13600 allow_undefined_flag_F77=unsupported
13601 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13602 # support --undefined. This deserves some investigation. FIXME
13603 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13609 cygwin* | mingw* | pw32*)
13610 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13611 # as there is no search path for DLLs.
13612 hardcode_libdir_flag_spec_F77='-L$libdir'
13613 allow_undefined_flag_F77=unsupported
13614 always_export_symbols_F77=no
13615 enable_shared_with_static_runtimes_F77=yes
13616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13618 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13619 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13620 # If the export-symbols file already is a .def file (1st line
13621 # is EXPORTS), use it as is; otherwise, prepend...
13622 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13623 cp $export_symbols $output_objdir/$soname.def;
13625 echo EXPORTS > $output_objdir/$soname.def;
13626 cat $export_symbols >> $output_objdir/$soname.def;
13628 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13634 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13636 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13639 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13640 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13645 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13650 *** create shared libraries on Solaris systems. Therefore, libtool
13651 *** is disabling shared libraries support. We urge you to upgrade GNU
13652 *** binutils to release 2.9.1 or newer. Another option is to modify
13653 *** your PATH or compiler configuration so that the native linker is
13654 *** used, and then restart.
13657 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13659 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13666 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13668 hardcode_direct_F77=yes
13669 hardcode_shlibpath_var_F77=no
13673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13674 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13675 archive_cmds_F77="$tmp_archive_cmds"
13676 supports_anon_versioning=no
13677 case `$LD -v 2>/dev/null` in
13678 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13679 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13680 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13681 *\ 2.11.*) ;; # other 2.11 versions
13682 *) supports_anon_versioning=yes ;;
13684 if test $supports_anon_versioning = yes; then
13685 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13687 $echo "local: *; };" >> $output_objdir/$libname.ver~
13688 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13690 archive_expsym_cmds_F77="$tmp_archive_cmds"
13692 link_all_deplibs_F77=no
13699 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13700 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13701 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13708 if test "$ld_shlibs_F77" = yes; then
13709 runpath_var=LD_RUN_PATH
13710 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13711 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13712 # ancient GNU ld didn't support --whole-archive et. al.
13713 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13714 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13716 whole_archive_flag_spec_F77=
13720 # PORTME fill in a description of your system's linker (not GNU ld)
13723 allow_undefined_flag_F77=unsupported
13724 always_export_symbols_F77=yes
13725 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'
13726 # Note: this linker hardcodes the directories in LIBPATH if there
13727 # are no directories specified by -L.
13728 hardcode_minus_L_F77=yes
13729 if test "$GCC" = yes && test -z "$link_static_flag"; then
13730 # Neither direct hardcoding nor static linking is supported with a
13732 hardcode_direct_F77=unsupported
13737 if test "$host_cpu" = ia64; then
13738 # On IA64, the linker does run time linking by default, so we don't
13739 # have to do anything special.
13740 aix_use_runtimelinking=no
13741 exp_sym_flag='-Bexport'
13744 # If we're using GNU nm, then we don't want the "-C" option.
13745 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13746 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13747 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'
13749 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'
13751 aix_use_runtimelinking=no
13753 # Test if we are trying to use run time linking or normal
13754 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13755 # need to do runtime linking.
13756 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13757 for ld_flag in $LDFLAGS; do
13758 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13759 aix_use_runtimelinking=yes
13765 exp_sym_flag='-bexport'
13766 no_entry_flag='-bnoentry'
13769 # When large executables or shared objects are built, AIX ld can
13770 # have problems creating the table of contents. If linking a library
13771 # or program results in "error TOC overflow" add -mminimal-toc to
13772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13775 archive_cmds_F77=''
13776 hardcode_direct_F77=yes
13777 hardcode_libdir_separator_F77=':'
13778 link_all_deplibs_F77=yes
13780 if test "$GCC" = yes; then
13781 case $host_os in aix4.012|aix4.012.*)
13782 # We only want to do this on AIX 4.2 and lower, the check
13783 # below for broken collect2 doesn't work under 4.3+
13784 collect2name=`${CC} -print-prog-name=collect2`
13785 if test -f "$collect2name" && \
13786 strings "$collect2name" | grep resolve_lib_name >/dev/null
13788 # We have reworked collect2
13789 hardcode_direct_F77=yes
13791 # We have old collect2
13792 hardcode_direct_F77=unsupported
13793 # It fails to find uninstalled libraries when the uninstalled
13794 # path is not listed in the libpath. Setting hardcode_minus_L
13795 # to unsupported forces relinking
13796 hardcode_minus_L_F77=yes
13797 hardcode_libdir_flag_spec_F77='-L$libdir'
13798 hardcode_libdir_separator_F77=
13801 shared_flag='-shared'
13804 if test "$host_cpu" = ia64; then
13805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13806 # chokes on -Wl,-G. The following line is correct:
13809 if test "$aix_use_runtimelinking" = yes; then
13810 shared_flag='${wl}-G'
13812 shared_flag='${wl}-bM:SRE'
13817 # It seems that -bexpall does not export symbols beginning with
13818 # underscore (_), so it is better to generate a list of symbols to export.
13819 always_export_symbols_F77=yes
13820 if test "$aix_use_runtimelinking" = yes; then
13821 # Warning - without using the other runtime loading flags (-brtl),
13822 # -berok will link without error, but may produce a broken library.
13823 allow_undefined_flag_F77='-berok'
13824 # Determine the default libpath from the value encoded in an empty executable.
13825 cat >conftest.$ac_ext <<_ACEOF
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832 (eval $ac_link) 2>conftest.er1
13834 grep -v '^ *+' conftest.er1 >conftest.err
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; } &&
13845 { ac_try='test -s conftest$ac_exeext'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13854 # Check for a 64-bit object if we didn't find anything.
13855 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; }
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13862 rm -f conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13866 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13867 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"
13869 if test "$host_cpu" = ia64; then
13870 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13871 allow_undefined_flag_F77="-z nodefs"
13872 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"
13874 # Determine the default libpath from the value encoded in an empty executable.
13875 cat >conftest.$ac_ext <<_ACEOF
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13882 (eval $ac_link) 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; } &&
13895 { ac_try='test -s conftest$ac_exeext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13904 # Check for a 64-bit object if we didn't find anything.
13905 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; }
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13912 rm -f conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13916 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13917 # Warning - without using the other run time loading flags,
13918 # -berok will link without error, but may produce a broken library.
13919 no_undefined_flag_F77=' ${wl}-bernotok'
13920 allow_undefined_flag_F77=' ${wl}-berok'
13921 # -bexpall does not export symbols beginning with underscore (_)
13922 always_export_symbols_F77=yes
13923 # Exported symbols can be pulled into shared objects from archives
13924 whole_archive_flag_spec_F77=' '
13925 archive_cmds_need_lc_F77=yes
13926 # This is similar to how AIX traditionally builds it's shared libraries.
13927 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'
13933 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)'
13934 hardcode_libdir_flag_spec_F77='-L$libdir'
13935 hardcode_minus_L_F77=yes
13936 # see comment about different semantics on the GNU ld section
13941 export_dynamic_flag_spec_F77=-rdynamic
13944 cygwin* | mingw* | pw32*)
13945 # When not using gcc, we currently assume that we are using
13946 # Microsoft Visual C++.
13947 # hardcode_libdir_flag_spec is actually meaningless, as there is
13948 # no search path for DLLs.
13949 hardcode_libdir_flag_spec_F77=' '
13950 allow_undefined_flag_F77=unsupported
13951 # Tell ltmain to make .lib files, not .a files.
13953 # Tell ltmain to make .dll files, not .so files.
13955 # FIXME: Setting linknames here is a bad hack.
13956 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13957 # The linker will automatically build a .lib file if we build a DLL.
13958 old_archive_From_new_cmds_F77='true'
13959 # FIXME: Should let the user specify the lib program.
13960 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13961 fix_srcfile_path='`cygpath -w "$srcfile"`'
13962 enable_shared_with_static_runtimes_F77=yes
13965 darwin* | rhapsody*)
13966 if test "$GXX" = yes ; then
13967 archive_cmds_need_lc_F77=no
13969 rhapsody* | darwin1.[012])
13970 allow_undefined_flag_F77='-undefined suppress'
13973 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13974 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13976 case ${MACOSX_DEPLOYMENT_TARGET} in
13978 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13981 allow_undefined_flag_F77='-undefined dynamic_lookup'
13987 lt_int_apple_cc_single_mod=no
13988 output_verbose_link_cmd='echo'
13989 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13990 lt_int_apple_cc_single_mod=yes
13992 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13993 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13995 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'
13997 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13999 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14000 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}'
14002 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}'
14004 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14005 hardcode_direct_F77=no
14006 hardcode_automatic_F77=yes
14007 hardcode_shlibpath_var_F77=unsupported
14008 whole_archive_flag_spec_F77='-all_load $convenience'
14009 link_all_deplibs_F77=yes
14016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14017 hardcode_libdir_flag_spec_F77='-L$libdir'
14018 hardcode_shlibpath_var_F77=no
14025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14026 # support. Future versions do this automatically, but an explicit c++rt0.o
14027 # does not break anything, and helps significantly (at the cost of a little
14030 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14031 hardcode_libdir_flag_spec_F77='-R$libdir'
14032 hardcode_direct_F77=yes
14033 hardcode_shlibpath_var_F77=no
14036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14038 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14039 hardcode_direct_F77=yes
14040 hardcode_minus_L_F77=yes
14041 hardcode_shlibpath_var_F77=no
14044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14045 freebsd* | kfreebsd*-gnu)
14046 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14047 hardcode_libdir_flag_spec_F77='-R$libdir'
14048 hardcode_direct_F77=yes
14049 hardcode_shlibpath_var_F77=no
14053 if test "$GCC" = yes; then
14054 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'
14056 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'
14058 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14059 hardcode_libdir_separator_F77=:
14060 hardcode_direct_F77=yes
14062 # hardcode_minus_L: Not really in the search PATH,
14063 # but as the default location of the library.
14064 hardcode_minus_L_F77=yes
14065 export_dynamic_flag_spec_F77='${wl}-E'
14069 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14070 case "$host_cpu" in
14072 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14075 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14079 case "$host_cpu" in
14081 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14084 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14088 if test "$with_gnu_ld" = no; then
14089 case "$host_cpu" in
14091 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14092 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14093 hardcode_libdir_separator_F77=:
14094 hardcode_direct_F77=no
14095 hardcode_shlibpath_var_F77=no
14098 hardcode_libdir_flag_spec_F77='-L$libdir'
14099 hardcode_direct_F77=no
14100 hardcode_shlibpath_var_F77=no
14102 # hardcode_minus_L: Not really in the search PATH,
14103 # but as the default location of the library.
14104 hardcode_minus_L_F77=yes
14107 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14108 hardcode_libdir_separator_F77=:
14109 hardcode_direct_F77=yes
14110 export_dynamic_flag_spec_F77='${wl}-E'
14112 # hardcode_minus_L: Not really in the search PATH,
14113 # but as the default location of the library.
14114 hardcode_minus_L_F77=yes
14120 irix5* | irix6* | nonstopux*)
14121 if test "$GCC" = yes; then
14122 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'
14124 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'
14125 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14128 hardcode_libdir_separator_F77=:
14129 link_all_deplibs_F77=yes
14132 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14134 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14136 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14138 hardcode_libdir_flag_spec_F77='-R$libdir'
14139 hardcode_direct_F77=yes
14140 hardcode_shlibpath_var_F77=no
14144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145 hardcode_direct_F77=yes
14146 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14147 hardcode_libdir_separator_F77=:
14148 hardcode_shlibpath_var_F77=no
14152 hardcode_direct_F77=yes
14153 hardcode_shlibpath_var_F77=no
14154 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14155 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14156 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14157 export_dynamic_flag_spec_F77='${wl}-E'
14160 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14161 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14162 hardcode_libdir_flag_spec_F77='-R$libdir'
14165 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14166 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14173 hardcode_libdir_flag_spec_F77='-L$libdir'
14174 hardcode_minus_L_F77=yes
14175 allow_undefined_flag_F77=unsupported
14176 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'
14177 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14181 if test "$GCC" = yes; then
14182 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14183 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'
14185 allow_undefined_flag_F77=' -expect_unresolved \*'
14186 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'
14188 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14189 hardcode_libdir_separator_F77=:
14192 osf4* | osf5*) # as osf3* with the addition of -msym flag
14193 if test "$GCC" = yes; then
14194 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14195 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'
14196 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14198 allow_undefined_flag_F77=' -expect_unresolved \*'
14199 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'
14200 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~
14201 $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'
14203 # Both c and cxx compiler support -rpath directly
14204 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14206 hardcode_libdir_separator_F77=:
14210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211 hardcode_shlibpath_var_F77=no
14212 export_dynamic_flag_spec_F77='${wl}-Bexport'
14213 runpath_var=LD_RUN_PATH
14214 hardcode_runpath_var=yes
14218 no_undefined_flag_F77=' -z text'
14219 if test "$GCC" = yes; then
14220 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14222 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14224 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14225 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14226 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14228 hardcode_libdir_flag_spec_F77='-R$libdir'
14229 hardcode_shlibpath_var_F77=no
14231 solaris2.[0-5] | solaris2.[0-5].*) ;;
14232 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14233 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14235 link_all_deplibs_F77=yes
14239 if test "x$host_vendor" = xsequent; then
14240 # Use $CC to link under sequent, because it throws in some extra .o
14241 # files that make .init and .fini sections work.
14242 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14244 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14246 hardcode_libdir_flag_spec_F77='-L$libdir'
14247 hardcode_direct_F77=yes
14248 hardcode_minus_L_F77=yes
14249 hardcode_shlibpath_var_F77=no
14253 case $host_vendor in
14255 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14256 hardcode_direct_F77=yes # is this really true???
14259 ## LD is ld it makes a PLAMLIB
14260 ## CC just makes a GrossModule.
14261 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14262 reload_cmds_F77='$CC -r -o $output$reload_objs'
14263 hardcode_direct_F77=no
14266 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14267 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14270 runpath_var='LD_RUN_PATH'
14271 hardcode_shlibpath_var_F77=no
14275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14276 hardcode_shlibpath_var_F77=no
14277 export_dynamic_flag_spec_F77='-Bexport'
14281 if test -d /usr/nec; then
14282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283 hardcode_shlibpath_var_F77=no
14284 runpath_var=LD_RUN_PATH
14285 hardcode_runpath_var=yes
14291 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_direct_F77=yes
14293 hardcode_minus_L_F77=no
14294 hardcode_shlibpath_var_F77=no
14295 hardcode_runpath_var=yes
14296 runpath_var=LD_RUN_PATH
14299 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14300 no_undefined_flag_F77='${wl}-z ${wl}text'
14301 if test "$GCC" = yes; then
14302 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14304 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14306 runpath_var='LD_RUN_PATH'
14307 hardcode_shlibpath_var_F77=no
14311 no_undefined_flag_F77=' -z text'
14312 # $CC -shared without GNU ld will not create a library from C++
14313 # object files and a static libstdc++, better avoid it by now
14314 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14315 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14316 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14317 hardcode_libdir_flag_spec_F77=
14318 hardcode_shlibpath_var_F77=no
14319 runpath_var='LD_RUN_PATH'
14323 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324 hardcode_libdir_flag_spec_F77='-L$libdir'
14325 hardcode_shlibpath_var_F77=no
14334 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14335 echo "${ECHO_T}$ld_shlibs_F77" >&6
14336 test "$ld_shlibs_F77" = no && can_build_shared=no
14338 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14339 if test "$GCC" = yes; then
14340 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14344 # Do we need to explicitly link libc?
14346 case "x$archive_cmds_need_lc_F77" in
14348 # Assume -lc should be added
14349 archive_cmds_need_lc_F77=yes
14351 if test "$enable_shared" = yes && test "$GCC" = yes; then
14352 case $archive_cmds_F77 in
14354 # FIXME: we may have to deal with multi-command sequences.
14357 # Test whether the compiler implicitly links with -lc since on some
14358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14359 # to ld, don't add -lc before -lgcc.
14360 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14361 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366 (eval $ac_compile) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } 2>conftest.err; then
14372 libobjs=conftest.$ac_objext
14374 wl=$lt_prog_compiler_wl_F77
14380 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14381 allow_undefined_flag_F77=
14382 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14383 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }
14388 archive_cmds_need_lc_F77=no
14390 archive_cmds_need_lc_F77=yes
14392 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14394 cat conftest.err 1>&5
14397 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14398 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14405 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14406 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14407 library_names_spec=
14408 libname_spec='lib$name'
14412 postuninstall_cmds=
14416 shlibpath_overrides_runpath=unknown
14418 dynamic_linker="$host_os ld.so"
14419 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14420 if test "$GCC" = yes; then
14421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14422 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14423 # if the path contains ";" then we assume it to be the separator
14424 # otherwise default to the standard path separator (i.e. ":") - it is
14425 # assumed that no part of a normal pathname contains ";" but that should
14426 # okay in the real world where ";" in dirpaths is itself problematic.
14427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14432 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14434 need_lib_prefix=unknown
14435 hardcode_into_libs=no
14437 # when you set need_version to no, make sure it does not cause -set_version
14438 # flags to be left without arguments
14439 need_version=unknown
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14445 shlibpath_var=LIBPATH
14447 # AIX 3 has no versioning support, so we append a major version to the name.
14448 soname_spec='${libname}${release}${shared_ext}$major'
14455 hardcode_into_libs=yes
14456 if test "$host_cpu" = ia64; then
14457 # AIX 5 supports IA64
14458 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14459 shlibpath_var=LD_LIBRARY_PATH
14461 # With GCC up to 2.95.x, collect2 would create an import file
14462 # for dependence libraries. The import file would start with
14463 # the line `#! .'. This would cause the generated library to
14464 # depend on `.', always an invalid library. This was fixed in
14465 # development snapshots of GCC prior to 3.0.
14467 aix4 | aix4.[01] | aix4.[01].*)
14468 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14470 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14473 can_build_shared=no
14477 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14478 # soname into executable. Probably we can add versioning support to
14479 # collect2, so additional links can be useful in future.
14480 if test "$aix_use_runtimelinking" = yes; then
14481 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14482 # instead of lib<name>.a to let people know that these are not
14483 # typical AIX shared libraries.
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486 # We preserve .a as extension for shared libraries through AIX4.2
14487 # and later when we are not doing run time linking.
14488 library_names_spec='${libname}${release}.a $libname.a'
14489 soname_spec='${libname}${release}${shared_ext}$major'
14491 shlibpath_var=LIBPATH
14496 library_names_spec='$libname.ixlibrary $libname.a'
14497 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14498 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'
14502 library_names_spec='${libname}${shared_ext}'
14503 dynamic_linker="$host_os ld.so"
14504 shlibpath_var=LIBRARY_PATH
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14515 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14516 # the default ld.so.conf also contains /usr/contrib/lib and
14517 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14518 # libtool to hard-code these into programs
14521 cygwin* | mingw* | pw32*)
14522 version_type=windows
14527 case $GCC,$host_os in
14528 yes,cygwin* | yes,mingw* | yes,pw32*)
14529 library_names_spec='$libname.dll.a'
14530 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14531 postinstall_cmds='base_file=`basename \${file}`~
14532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14533 dldir=$destdir/`dirname \$dlpath`~
14534 test -d \$dldir || mkdir -p \$dldir~
14535 $install_prog $dir/$dlname \$dldir/$dlname'
14536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14537 dlpath=$dir/\$dldll~
14539 shlibpath_overrides_runpath=yes
14543 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14544 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14545 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14548 # MinGW DLLs use traditional 'lib' prefix
14549 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14551 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14552 # It is most probably a Windows format PATH printed by
14553 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14554 # path with ; separators, and with drive letters. We can handle the
14555 # drive letters (cygwin fileutils understands them), so leave them,
14556 # especially as we might pass files found there to a mingw objdump,
14557 # which wouldn't understand a cygwinified path. Ahh.
14558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14564 # pw32 DLLs use 'pw' prefix rather than 'lib'
14565 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14571 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14574 dynamic_linker='Win32 ld.exe'
14575 # FIXME: first we should search . and the directory the executable is in
14579 darwin* | rhapsody*)
14580 dynamic_linker="$host_os dyld"
14581 version_type=darwin
14584 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14585 soname_spec='${libname}${release}${major}$shared_ext'
14586 shlibpath_overrides_runpath=yes
14587 shlibpath_var=DYLD_LIBRARY_PATH
14588 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14589 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14590 if test "$GCC" = yes; then
14591 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"`
14593 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14595 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 shlibpath_var=LD_LIBRARY_PATH
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath=no
14619 hardcode_into_libs=yes
14620 dynamic_linker='GNU ld.so'
14624 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14625 version_type=freebsd-$objformat
14626 case $version_type in
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14637 shlibpath_var=LD_LIBRARY_PATH
14640 shlibpath_overrides_runpath=yes
14642 freebsd3.01* | freebsdelf3.01*)
14643 shlibpath_overrides_runpath=yes
14644 hardcode_into_libs=yes
14647 shlibpath_overrides_runpath=no
14648 hardcode_into_libs=yes
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 hardcode_into_libs=yes
14663 hpux9* | hpux10* | hpux11*)
14664 # Give a soname corresponding to the major version so that dld.sl refuses to
14665 # link against other versions.
14669 case "$host_cpu" in
14672 hardcode_into_libs=yes
14673 dynamic_linker="$host_os dld.so"
14674 shlibpath_var=LD_LIBRARY_PATH
14675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677 soname_spec='${libname}${release}${shared_ext}$major'
14678 if test "X$HPUX_IA64_MODE" = X32; then
14679 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14681 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14683 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14687 hardcode_into_libs=yes
14688 dynamic_linker="$host_os dld.sl"
14689 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14698 dynamic_linker="$host_os dld.sl"
14699 shlibpath_var=SHLIB_PATH
14700 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702 soname_spec='${libname}${release}${shared_ext}$major'
14705 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14706 postinstall_cmds='chmod 555 $lib'
14709 irix5* | irix6* | nonstopux*)
14711 nonstopux*) version_type=nonstopux ;;
14713 if test "$lt_cv_prog_gnu_ld" = yes; then
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14724 irix5* | nonstopux*)
14725 libsuff= shlibsuff=
14728 case $LD in # libtool.m4 will add one of these switches to LD
14729 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14730 libsuff= shlibsuff= libmagic=32-bit;;
14731 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14732 libsuff=32 shlibsuff=N32 libmagic=N32;;
14733 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14734 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14735 *) libsuff= shlibsuff= libmagic=never-match;;
14739 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14740 shlibpath_overrides_runpath=no
14741 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14742 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14743 hardcode_into_libs=yes
14746 # No shared lib support for Linux oldld, aout, or coff.
14747 linux*oldld* | linux*aout* | linux*coff*)
14751 # This must be Linux ELF.
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 shlibpath_overrides_runpath=no
14761 # This implies no fast_install, which is unacceptable.
14762 # Some rework will be needed to allow for fast_install
14763 # before this can be enabled.
14764 hardcode_into_libs=yes
14766 # Append ld.so.conf contents to the search path
14767 if test -f /etc/ld.so.conf; then
14768 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14769 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14772 # We used to test for /lib/ld.so.1 and disable shared libraries on
14773 # powerpc, because MkLinux only supported shared libraries with the
14774 # GNU dynamic linker. Since this was broken with cross compilers,
14775 # most powerpc-linux boxes support dynamic linking these days and
14776 # people can always --disable-shared, the test was removed, and we
14777 # assume the GNU/Linux dynamic linker is in use.
14778 dynamic_linker='GNU/Linux ld.so'
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 shlibpath_overrides_runpath=no
14789 hardcode_into_libs=yes
14790 dynamic_linker='NetBSD ld.elf_so'
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14798 soname_spec='${libname}${release}${shared_ext}$major'
14799 shlibpath_var=LD_LIBRARY_PATH
14800 shlibpath_overrides_runpath=no
14801 hardcode_into_libs=yes
14802 dynamic_linker='GNU ld.so'
14809 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14812 dynamic_linker='NetBSD (a.out) ld.so'
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 dynamic_linker='NetBSD ld.elf_so'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 shlibpath_overrides_runpath=yes
14820 hardcode_into_libs=yes
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 shlibpath_overrides_runpath=yes
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 shlibpath_var=LD_LIBRARY_PATH
14837 shlibpath_overrides_runpath=yes
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14849 openbsd2.[89] | openbsd2.[89].*)
14850 shlibpath_overrides_runpath=no
14853 shlibpath_overrides_runpath=yes
14857 shlibpath_overrides_runpath=yes
14862 libname_spec='$name'
14865 library_names_spec='$libname${shared_ext} $libname.a'
14866 dynamic_linker='OS/2 ld.exe'
14867 shlibpath_var=LIBPATH
14870 osf3* | osf4* | osf5*)
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14878 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14883 soname_spec='${libname}${release}${shared_ext}$major'
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 shlibpath_var=LD_LIBRARY_PATH
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893 soname_spec='${libname}${release}${shared_ext}$major'
14894 shlibpath_var=LD_LIBRARY_PATH
14895 shlibpath_overrides_runpath=yes
14896 hardcode_into_libs=yes
14897 # ldd complains unless libraries are executable
14898 postinstall_cmds='chmod +x $lib'
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 shlibpath_overrides_runpath=yes
14907 if test "$with_gnu_ld" = yes; then
14913 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 shlibpath_var=LD_LIBRARY_PATH
14918 case $host_vendor in
14920 shlibpath_overrides_runpath=no
14922 export_dynamic_flag_spec='${wl}-Blargedynsym'
14923 runpath_var=LD_RUN_PATH
14931 shlibpath_overrides_runpath=no
14932 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14938 if test -d /usr/nec ;then
14940 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14941 soname_spec='$libname${shared_ext}.$major'
14942 shlibpath_var=LD_LIBRARY_PATH
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 shlibpath_var=LD_LIBRARY_PATH
14957 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14958 echo "${ECHO_T}$dynamic_linker" >&6
14959 test "$dynamic_linker" = no && can_build_shared=no
14961 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14962 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14963 hardcode_action_F77=
14964 if test -n "$hardcode_libdir_flag_spec_F77" || \
14965 test -n "$runpath_var F77" || \
14966 test "X$hardcode_automatic_F77"="Xyes" ; then
14968 # We can hardcode non-existant directories.
14969 if test "$hardcode_direct_F77" != no &&
14970 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14971 # have to relink, otherwise we might link with an installed library
14972 # when we should be linking with a yet-to-be-installed one
14973 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14974 test "$hardcode_minus_L_F77" != no; then
14975 # Linking always hardcodes the temporary library directory.
14976 hardcode_action_F77=relink
14978 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14979 hardcode_action_F77=immediate
14982 # We cannot hardcode anything, or else we can only hardcode existing
14984 hardcode_action_F77=unsupported
14986 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14987 echo "${ECHO_T}$hardcode_action_F77" >&6
14989 if test "$hardcode_action_F77" = relink; then
14990 # Fast installation is not supported
14991 enable_fast_install=no
14992 elif test "$shlibpath_overrides_runpath" = yes ||
14993 test "$enable_shared" = no; then
14994 # Fast installation is not necessary
14995 enable_fast_install=needless
15000 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15001 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15002 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15003 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15004 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15005 echo "$as_me:$LINENO: result: yes" >&5
15006 echo "${ECHO_T}yes" >&6
15008 # FIXME - insert some real tests, host_os isn't really good enough
15011 if test -n "$STRIP" ; then
15012 striplib="$STRIP -x"
15013 echo "$as_me:$LINENO: result: yes" >&5
15014 echo "${ECHO_T}yes" >&6
15016 echo "$as_me:$LINENO: result: no" >&5
15017 echo "${ECHO_T}no" >&6
15021 echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6
15029 # The else clause should only fire when bootstrapping the
15030 # libtool distribution, otherwise you forgot to ship ltmain.sh
15031 # with your package, and you will get complaints that there are
15032 # no rules to generate ltmain.sh.
15033 if test -f "$ltmain"; then
15034 # See if we are running on zsh, and set the options which allow our commands through
15035 # without removal of \ escapes.
15036 if test -n "${ZSH_VERSION+set}" ; then
15037 setopt NO_GLOB_SUBST
15039 # Now quote all the things that may contain metacharacters while being
15040 # careful not to overquote the AC_SUBSTed values. We take copies of the
15041 # variables and quote the copies for generation of the libtool script.
15042 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15044 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15045 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15046 deplibs_check_method reload_flag reload_cmds need_locks \
15047 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15048 lt_cv_sys_global_symbol_to_c_name_address \
15049 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15050 old_postinstall_cmds old_postuninstall_cmds \
15054 lt_prog_compiler_wl_F77 \
15055 lt_prog_compiler_pic_F77 \
15056 lt_prog_compiler_static_F77 \
15057 lt_prog_compiler_no_builtin_flag_F77 \
15058 export_dynamic_flag_spec_F77 \
15059 thread_safe_flag_spec_F77 \
15060 whole_archive_flag_spec_F77 \
15061 enable_shared_with_static_runtimes_F77 \
15062 old_archive_cmds_F77 \
15063 old_archive_from_new_cmds_F77 \
15064 predep_objects_F77 \
15065 postdep_objects_F77 \
15068 compiler_lib_search_path_F77 \
15070 archive_expsym_cmds_F77 \
15071 postinstall_cmds_F77 \
15072 postuninstall_cmds_F77 \
15073 old_archive_from_expsyms_cmds_F77 \
15074 allow_undefined_flag_F77 \
15075 no_undefined_flag_F77 \
15076 export_symbols_cmds_F77 \
15077 hardcode_libdir_flag_spec_F77 \
15078 hardcode_libdir_flag_spec_ld_F77 \
15079 hardcode_libdir_separator_F77 \
15080 hardcode_automatic_F77 \
15082 module_expsym_cmds_F77 \
15083 lt_cv_prog_compiler_c_o_F77 \
15084 exclude_expsyms_F77 \
15085 include_expsyms_F77; do
15088 old_archive_cmds_F77 | \
15089 old_archive_from_new_cmds_F77 | \
15090 archive_cmds_F77 | \
15091 archive_expsym_cmds_F77 | \
15092 module_cmds_F77 | \
15093 module_expsym_cmds_F77 | \
15094 old_archive_from_expsyms_cmds_F77 | \
15095 export_symbols_cmds_F77 | \
15096 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15097 postinstall_cmds | postuninstall_cmds | \
15098 old_postinstall_cmds | old_postuninstall_cmds | \
15099 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15100 # Double-quote double-evaled strings.
15101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15110 *'\$0 --fallback-echo"')
15111 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15117 cat <<__EOF__ >> "$cfgfile"
15118 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15120 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15122 # Shell to use when invoking shell scripts.
15125 # Whether or not to build shared libraries.
15126 build_libtool_libs=$enable_shared
15128 # Whether or not to build static libraries.
15129 build_old_libs=$enable_static
15131 # Whether or not to add -lc for building shared libraries.
15132 build_libtool_need_lc=$archive_cmds_need_lc_F77
15134 # Whether or not to disallow shared libs when runtime libs are static
15135 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15137 # Whether or not to optimize for fast installation.
15138 fast_install=$enable_fast_install
15141 host_alias=$host_alias
15144 # An echo program that does not interpret backslashes.
15149 AR_FLAGS=$lt_AR_FLAGS
15154 # A language-specific compiler.
15155 CC=$lt_compiler_F77
15157 # Is the compiler the GNU C compiler?
15163 # The linker used to build libraries.
15166 # Whether we need hard or soft links.
15169 # A BSD-compatible nm program.
15172 # A symbol stripping program
15175 # Used to examine libraries when file_magic_cmd begins "file"
15176 MAGIC_CMD=$MAGIC_CMD
15178 # Used on cygwin: DLL creation program.
15181 # Used on cygwin: object dumper.
15184 # Used on cygwin: assembler.
15187 # The name of the directory that contains temporary libtool files.
15190 # How to create reloadable object files.
15191 reload_flag=$lt_reload_flag
15192 reload_cmds=$lt_reload_cmds
15194 # How to pass a linker flag through the compiler.
15195 wl=$lt_lt_prog_compiler_wl_F77
15197 # Object file suffix (normally "o").
15198 objext="$ac_objext"
15200 # Old archive suffix (normally "a").
15203 # Shared library suffix (normally ".so").
15204 shrext_cmds='$shrext_cmds'
15206 # Executable file suffix (normally "").
15209 # Additional compiler flags for building library objects.
15210 pic_flag=$lt_lt_prog_compiler_pic_F77
15213 # What is the maximum length of a command?
15214 max_cmd_len=$lt_cv_sys_max_cmd_len
15216 # Does compiler simultaneously support -c and -o options?
15217 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15219 # Must we lock files when doing compilation ?
15220 need_locks=$lt_need_locks
15222 # Do we need the lib prefix for modules?
15223 need_lib_prefix=$need_lib_prefix
15225 # Do we need a version for libraries?
15226 need_version=$need_version
15228 # Whether dlopen is supported.
15229 dlopen_support=$enable_dlopen
15231 # Whether dlopen of programs is supported.
15232 dlopen_self=$enable_dlopen_self
15234 # Whether dlopen of statically linked programs is supported.
15235 dlopen_self_static=$enable_dlopen_self_static
15237 # Compiler flag to prevent dynamic linking.
15238 link_static_flag=$lt_lt_prog_compiler_static_F77
15240 # Compiler flag to turn off builtin functions.
15241 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15243 # Compiler flag to allow reflexive dlopens.
15244 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15246 # Compiler flag to generate shared objects directly from archives.
15247 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15249 # Compiler flag to generate thread-safe objects.
15250 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15252 # Library versioning type.
15253 version_type=$version_type
15255 # Format of library name prefix.
15256 libname_spec=$lt_libname_spec
15258 # List of archive names. First name is the real one, the rest are links.
15259 # The last name is the one that the linker finds with -lNAME.
15260 library_names_spec=$lt_library_names_spec
15262 # The coded name of the library, if different from the real name.
15263 soname_spec=$lt_soname_spec
15265 # Commands used to build and install an old-style archive.
15267 old_archive_cmds=$lt_old_archive_cmds_F77
15268 old_postinstall_cmds=$lt_old_postinstall_cmds
15269 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15271 # Create an old-style archive from a shared archive.
15272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15274 # Create a temporary old-style archive to link instead of a shared archive.
15275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15277 # Commands used to build and install a shared archive.
15278 archive_cmds=$lt_archive_cmds_F77
15279 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15280 postinstall_cmds=$lt_postinstall_cmds
15281 postuninstall_cmds=$lt_postuninstall_cmds
15283 # Commands used to build a loadable module (assumed same as above if empty)
15284 module_cmds=$lt_module_cmds_F77
15285 module_expsym_cmds=$lt_module_expsym_cmds_F77
15287 # Commands to strip libraries.
15288 old_striplib=$lt_old_striplib
15289 striplib=$lt_striplib
15291 # Dependencies to place before the objects being linked to create a
15293 predep_objects=$lt_predep_objects_F77
15295 # Dependencies to place after the objects being linked to create a
15297 postdep_objects=$lt_postdep_objects_F77
15299 # Dependencies to place before the objects being linked to create a
15301 predeps=$lt_predeps_F77
15303 # Dependencies to place after the objects being linked to create a
15305 postdeps=$lt_postdeps_F77
15307 # The library search path used internally by the compiler when linking
15308 # a shared library.
15309 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15311 # Method to check whether dependent libraries are shared objects.
15312 deplibs_check_method=$lt_deplibs_check_method
15314 # Command to use when deplibs_check_method == file_magic.
15315 file_magic_cmd=$lt_file_magic_cmd
15317 # Flag that allows shared libraries with undefined symbols to be built.
15318 allow_undefined_flag=$lt_allow_undefined_flag_F77
15320 # Flag that forces no undefined symbols.
15321 no_undefined_flag=$lt_no_undefined_flag_F77
15323 # Commands used to finish a libtool library installation in a directory.
15324 finish_cmds=$lt_finish_cmds
15326 # Same as above, but a single script fragment to be evaled but not shown.
15327 finish_eval=$lt_finish_eval
15329 # Take the output of nm and produce a listing of raw symbols and C names.
15330 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15332 # Transform the output of nm in a proper C declaration
15333 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15335 # Transform the output of nm in a C name address pair
15336 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15338 # This is the shared library runtime path variable.
15339 runpath_var=$runpath_var
15341 # This is the shared library path variable.
15342 shlibpath_var=$shlibpath_var
15344 # Is shlibpath searched before the hard-coded library search path?
15345 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15347 # How to hardcode a shared library path into an executable.
15348 hardcode_action=$hardcode_action_F77
15350 # Whether we should hardcode library paths into libraries.
15351 hardcode_into_libs=$hardcode_into_libs
15353 # Flag to hardcode \$libdir into a binary during linking.
15354 # This must work even if \$libdir does not exist.
15355 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15357 # If ld is used when linking, flag to hardcode \$libdir into
15358 # a binary during linking. This must work even if \$libdir does
15360 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15362 # Whether we need a single -rpath flag with a separated argument.
15363 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15365 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15366 # resulting binary.
15367 hardcode_direct=$hardcode_direct_F77
15369 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15370 # resulting binary.
15371 hardcode_minus_L=$hardcode_minus_L_F77
15373 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15374 # the resulting binary.
15375 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15377 # Set to yes if building a shared library automatically hardcodes DIR into the library
15378 # and all subsequent libraries and executables linked against it.
15379 hardcode_automatic=$hardcode_automatic_F77
15381 # Variables whose values should be saved in libtool wrapper scripts and
15382 # restored at relink time.
15383 variables_saved_for_relink="$variables_saved_for_relink"
15385 # Whether libtool must link a program against all its dependency libraries.
15386 link_all_deplibs=$link_all_deplibs_F77
15388 # Compile-time system search path for libraries
15389 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15391 # Run-time system search path for libraries
15392 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15394 # Fix the shell variable \$srcfile for the compiler.
15395 fix_srcfile_path="$fix_srcfile_path_F77"
15397 # Set to yes if exported symbols are required.
15398 always_export_symbols=$always_export_symbols_F77
15400 # The commands to list exported symbols.
15401 export_symbols_cmds=$lt_export_symbols_cmds_F77
15403 # The commands to extract the exported symbol list from a shared archive.
15404 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15406 # Symbols that should not be listed in the preloaded symbols.
15407 exclude_expsyms=$lt_exclude_expsyms_F77
15409 # Symbols that must always be exported.
15410 include_expsyms=$lt_include_expsyms_F77
15412 # ### END LIBTOOL TAG CONFIG: $tagname
15418 # If there is no Makefile yet, we rely on a make rule to execute
15419 # `config.status --recheck' to rerun these tests and create the
15420 # libtool script then.
15421 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15422 if test -f "$ltmain_in"; then
15423 test -f Makefile && make "$ltmain"
15429 ac_cpp='$CPP $CPPFLAGS'
15430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15442 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15446 # Source file extension for Java test sources.
15449 # Object file extension for compiled Java test sources.
15453 # Code to be used in simple compile tests
15454 lt_simple_compile_test_code="class foo {}\n"
15456 # Code to be used in simple link tests
15457 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15459 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15461 # If no C compiler was specified, use CC.
15464 # Allow CC to be a program name with arguments.
15468 # Allow CC to be a program name with arguments.
15474 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15475 archive_cmds_need_lc_GCJ=no
15478 ## There is no encapsulation within the following macros, do not change
15479 ## the running order or otherwise move them around unless you know exactly
15480 ## what you are doing...
15482 lt_prog_compiler_no_builtin_flag_GCJ=
15484 if test "$GCC" = yes; then
15485 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15488 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15489 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15490 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 lt_cv_prog_compiler_rtti_exceptions=no
15494 ac_outfile=conftest.$ac_objext
15495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15496 lt_compiler_flag="-fno-rtti -fno-exceptions"
15497 # Insert the option either (1) after the last *FLAGS variable, or
15498 # (2) before a word containing "conftest.", or (3) at the end.
15499 # Note that $ac_compile itself does not contain backslashes and begins
15500 # with a dollar sign (not a hyphen), so the echo should work correctly.
15501 # The option is referenced via a variable to avoid confusing sed.
15502 lt_compile=`echo "$ac_compile" | $SED \
15503 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15505 -e 's:$: $lt_compiler_flag:'`
15506 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15507 (eval "$lt_compile" 2>conftest.err)
15509 cat conftest.err >&5
15510 echo "$as_me:__oline__: \$? = $ac_status" >&5
15511 if (exit $ac_status) && test -s "$ac_outfile"; then
15512 # The compiler can only warn and ignore the option if not recognized
15513 # So say no if there are warnings
15514 if test ! -s conftest.err; then
15515 lt_cv_prog_compiler_rtti_exceptions=yes
15521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15522 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15525 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15532 lt_prog_compiler_wl_GCJ=
15533 lt_prog_compiler_pic_GCJ=
15534 lt_prog_compiler_static_GCJ=
15536 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15537 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15539 if test "$GCC" = yes; then
15540 lt_prog_compiler_wl_GCJ='-Wl,'
15541 lt_prog_compiler_static_GCJ='-static'
15545 # All AIX code is PIC.
15546 if test "$host_cpu" = ia64; then
15547 # AIX 5 now supports IA64 processor
15548 lt_prog_compiler_static_GCJ='-Bstatic'
15553 # FIXME: we need at least 68020 code to build shared libraries, but
15554 # adding the `-m68020' flag to GCC prevents building anything better,
15556 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15559 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15560 # PIC is the default for these OSes.
15563 mingw* | pw32* | os2*)
15564 # This hack is so that the source file can tell whether it is being
15565 # built for inclusion in a dll (and should export symbols for example).
15566 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15569 darwin* | rhapsody*)
15570 # PIC is the default on this platform
15571 # Common symbols not allowed in MH_DYLIB files
15572 lt_prog_compiler_pic_GCJ='-fno-common'
15576 # Just because we use GCC doesn't mean we suddenly get shared libraries
15577 # on systems that don't support them.
15578 lt_prog_compiler_can_build_shared_GCJ=no
15583 if test -d /usr/nec; then
15584 lt_prog_compiler_pic_GCJ=-Kconform_pic
15589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15590 # not for PA HP-UX.
15591 case "$host_cpu" in
15596 lt_prog_compiler_pic_GCJ='-fPIC'
15602 lt_prog_compiler_pic_GCJ='-fPIC'
15606 # PORTME Check for flag to pass linker flags through the system compiler.
15609 lt_prog_compiler_wl_GCJ='-Wl,'
15610 if test "$host_cpu" = ia64; then
15611 # AIX 5 now supports IA64 processor
15612 lt_prog_compiler_static_GCJ='-Bstatic'
15614 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15618 mingw* | pw32* | os2*)
15619 # This hack is so that the source file can tell whether it is being
15620 # built for inclusion in a dll (and should export symbols for example).
15621 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15624 hpux9* | hpux10* | hpux11*)
15625 lt_prog_compiler_wl_GCJ='-Wl,'
15626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15627 # not for PA HP-UX.
15628 case "$host_cpu" in
15633 lt_prog_compiler_pic_GCJ='+Z'
15636 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15637 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15640 irix5* | irix6* | nonstopux*)
15641 lt_prog_compiler_wl_GCJ='-Wl,'
15642 # PIC (with -KPIC) is the default.
15643 lt_prog_compiler_static_GCJ='-non_shared'
15647 lt_prog_compiler_pic_GCJ='-KPIC'
15648 lt_prog_compiler_static_GCJ='-Bstatic'
15654 lt_prog_compiler_wl_GCJ='-Wl,'
15655 lt_prog_compiler_pic_GCJ='-KPIC'
15656 lt_prog_compiler_static_GCJ='-static'
15659 lt_prog_compiler_wl_GCJ='-Wl,'
15660 # All Alpha code is PIC.
15661 lt_prog_compiler_static_GCJ='-non_shared'
15666 osf3* | osf4* | osf5*)
15667 lt_prog_compiler_wl_GCJ='-Wl,'
15668 # All OSF/1 code is PIC.
15669 lt_prog_compiler_static_GCJ='-non_shared'
15673 lt_prog_compiler_pic_GCJ='-Kpic'
15674 lt_prog_compiler_static_GCJ='-dn'
15678 lt_prog_compiler_wl_GCJ='-Wl,'
15679 lt_prog_compiler_pic_GCJ='-KPIC'
15680 lt_prog_compiler_static_GCJ='-Bstatic'
15684 lt_prog_compiler_wl_GCJ='-Qoption ld '
15685 lt_prog_compiler_pic_GCJ='-PIC'
15686 lt_prog_compiler_static_GCJ='-Bstatic'
15689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15690 lt_prog_compiler_wl_GCJ='-Wl,'
15691 lt_prog_compiler_pic_GCJ='-KPIC'
15692 lt_prog_compiler_static_GCJ='-Bstatic'
15696 if test -d /usr/nec ;then
15697 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15698 lt_prog_compiler_static_GCJ='-Bstatic'
15703 lt_prog_compiler_pic_GCJ='-pic'
15704 lt_prog_compiler_static_GCJ='-Bstatic'
15708 lt_prog_compiler_can_build_shared_GCJ=no
15713 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15714 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15717 # Check to make sure the PIC flag actually works.
15719 if test -n "$lt_prog_compiler_pic_GCJ"; then
15721 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15723 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 lt_prog_compiler_pic_works_GCJ=no
15727 ac_outfile=conftest.$ac_objext
15728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15729 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15730 # Insert the option either (1) after the last *FLAGS variable, or
15731 # (2) before a word containing "conftest.", or (3) at the end.
15732 # Note that $ac_compile itself does not contain backslashes and begins
15733 # with a dollar sign (not a hyphen), so the echo should work correctly.
15734 # The option is referenced via a variable to avoid confusing sed.
15735 lt_compile=`echo "$ac_compile" | $SED \
15736 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15738 -e 's:$: $lt_compiler_flag:'`
15739 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15740 (eval "$lt_compile" 2>conftest.err)
15742 cat conftest.err >&5
15743 echo "$as_me:__oline__: \$? = $ac_status" >&5
15744 if (exit $ac_status) && test -s "$ac_outfile"; then
15745 # The compiler can only warn and ignore the option if not recognized
15746 # So say no if there are warnings
15747 if test ! -s conftest.err; then
15748 lt_prog_compiler_pic_works_GCJ=yes
15754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15755 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15757 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15758 case $lt_prog_compiler_pic_GCJ in
15760 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15763 lt_prog_compiler_pic_GCJ=
15764 lt_prog_compiler_can_build_shared_GCJ=no
15769 # For platforms which do not support PIC, -DPIC is meaningless:
15771 lt_prog_compiler_pic_GCJ=
15774 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15778 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15780 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 lt_cv_prog_compiler_c_o_GCJ=no
15784 $rm -r conftest 2>/dev/null
15788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15790 lt_compiler_flag="-o out/conftest2.$ac_objext"
15791 # Insert the option either (1) after the last *FLAGS variable, or
15792 # (2) before a word containing "conftest.", or (3) at the end.
15793 # Note that $ac_compile itself does not contain backslashes and begins
15794 # with a dollar sign (not a hyphen), so the echo should work correctly.
15795 lt_compile=`echo "$ac_compile" | $SED \
15796 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798 -e 's:$: $lt_compiler_flag:'`
15799 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15800 (eval "$lt_compile" 2>out/conftest.err)
15802 cat out/conftest.err >&5
15803 echo "$as_me:__oline__: \$? = $ac_status" >&5
15804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15806 # The compiler can only warn and ignore the option if not recognized
15807 # So say no if there are warnings
15808 if test ! -s out/conftest.err; then
15809 lt_cv_prog_compiler_c_o_GCJ=yes
15814 # SGI C++ compiler will create directory out/ii_files/ for
15815 # template instantiation
15816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15817 $rm out/* && rmdir out
15823 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15827 hard_links="nottested"
15828 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15829 # do not overwrite the value of need_locks provided by the user
15830 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15836 ln conftest.a conftest.b 2>&5 || hard_links=no
15837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15838 echo "$as_me:$LINENO: result: $hard_links" >&5
15839 echo "${ECHO_T}$hard_links" >&6
15840 if test "$hard_links" = no; then
15841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15849 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15853 allow_undefined_flag_GCJ=
15854 enable_shared_with_static_runtimes_GCJ=no
15856 archive_expsym_cmds_GCJ=
15857 old_archive_From_new_cmds_GCJ=
15858 old_archive_from_expsyms_cmds_GCJ=
15859 export_dynamic_flag_spec_GCJ=
15860 whole_archive_flag_spec_GCJ=
15861 thread_safe_flag_spec_GCJ=
15862 hardcode_libdir_flag_spec_GCJ=
15863 hardcode_libdir_flag_spec_ld_GCJ=
15864 hardcode_libdir_separator_GCJ=
15865 hardcode_direct_GCJ=no
15866 hardcode_minus_L_GCJ=no
15867 hardcode_shlibpath_var_GCJ=unsupported
15868 link_all_deplibs_GCJ=unknown
15869 hardcode_automatic_GCJ=no
15871 module_expsym_cmds_GCJ=
15872 always_export_symbols_GCJ=no
15873 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15874 # include_expsyms should be a list of space-separated symbols to be *always*
15875 # included in the symbol list
15876 include_expsyms_GCJ=
15877 # exclude_expsyms can be an extended regexp of symbols to exclude
15878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15880 # as well as any symbol that contains `d'.
15881 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15883 # platforms (ab)use it in PIC code, but their linkers get confused if
15884 # the symbol is explicitly referenced. Since portable code cannot
15885 # rely on this symbol name, it's probably fine to never include it in
15886 # preloaded symbol tables.
15887 extract_expsyms_cmds=
15890 cygwin* | mingw* | pw32*)
15891 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15892 # When not using gcc, we currently assume that we are using
15893 # Microsoft Visual C++.
15894 if test "$GCC" != yes; then
15904 if test "$with_gnu_ld" = yes; then
15905 # If archive_cmds runs LD, not CC, wlarc should be empty
15908 # See if GNU ld supports shared libraries.
15910 aix3* | aix4* | aix5*)
15911 # On AIX/PPC, the GNU linker is very broken
15912 if test "$host_cpu" != ia64; then
15916 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15917 *** to be unable to reliably create shared libraries on AIX.
15918 *** Therefore, libtool is disabling shared libraries support. If you
15919 *** really care for shared libraries, you may want to modify your PATH
15920 *** so that a non-GNU linker is found, and then restart.
15927 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)'
15928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15929 hardcode_minus_L_GCJ=yes
15931 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15932 # that the semantics of dynamic libraries on AmigaOS, at least up
15933 # to version 4, is to share data among multiple programs linked
15934 # with the same dynamic library. Since this doesn't match the
15935 # behavior of shared libraries on other platforms, we can't use
15941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15942 allow_undefined_flag_GCJ=unsupported
15943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15944 # support --undefined. This deserves some investigation. FIXME
15945 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951 cygwin* | mingw* | pw32*)
15952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15953 # as there is no search path for DLLs.
15954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15955 allow_undefined_flag_GCJ=unsupported
15956 always_export_symbols_GCJ=no
15957 enable_shared_with_static_runtimes_GCJ=yes
15958 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15960 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15961 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15962 # If the export-symbols file already is a .def file (1st line
15963 # is EXPORTS), use it as is; otherwise, prepend...
15964 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15965 cp $export_symbols $output_objdir/$soname.def;
15967 echo EXPORTS > $output_objdir/$soname.def;
15968 cat $export_symbols >> $output_objdir/$soname.def;
15970 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15976 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15978 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15982 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15987 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15992 *** create shared libraries on Solaris systems. Therefore, libtool
15993 *** is disabling shared libraries support. We urge you to upgrade GNU
15994 *** binutils to release 2.9.1 or newer. Another option is to modify
15995 *** your PATH or compiler configuration so that the native linker is
15996 *** used, and then restart.
15999 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16000 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16008 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16010 hardcode_direct_GCJ=yes
16011 hardcode_shlibpath_var_GCJ=no
16015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16016 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_cmds_GCJ="$tmp_archive_cmds"
16018 supports_anon_versioning=no
16019 case `$LD -v 2>/dev/null` in
16020 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16021 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16022 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16023 *\ 2.11.*) ;; # other 2.11 versions
16024 *) supports_anon_versioning=yes ;;
16026 if test $supports_anon_versioning = yes; then
16027 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16029 $echo "local: *; };" >> $output_objdir/$libname.ver~
16030 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16032 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16034 link_all_deplibs_GCJ=no
16041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16042 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16043 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16050 if test "$ld_shlibs_GCJ" = yes; then
16051 runpath_var=LD_RUN_PATH
16052 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16053 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16054 # ancient GNU ld didn't support --whole-archive et. al.
16055 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16056 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16058 whole_archive_flag_spec_GCJ=
16062 # PORTME fill in a description of your system's linker (not GNU ld)
16065 allow_undefined_flag_GCJ=unsupported
16066 always_export_symbols_GCJ=yes
16067 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'
16068 # Note: this linker hardcodes the directories in LIBPATH if there
16069 # are no directories specified by -L.
16070 hardcode_minus_L_GCJ=yes
16071 if test "$GCC" = yes && test -z "$link_static_flag"; then
16072 # Neither direct hardcoding nor static linking is supported with a
16074 hardcode_direct_GCJ=unsupported
16079 if test "$host_cpu" = ia64; then
16080 # On IA64, the linker does run time linking by default, so we don't
16081 # have to do anything special.
16082 aix_use_runtimelinking=no
16083 exp_sym_flag='-Bexport'
16086 # If we're using GNU nm, then we don't want the "-C" option.
16087 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16088 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16089 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'
16091 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'
16093 aix_use_runtimelinking=no
16095 # Test if we are trying to use run time linking or normal
16096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16097 # need to do runtime linking.
16098 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16099 for ld_flag in $LDFLAGS; do
16100 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16101 aix_use_runtimelinking=yes
16107 exp_sym_flag='-bexport'
16108 no_entry_flag='-bnoentry'
16111 # When large executables or shared objects are built, AIX ld can
16112 # have problems creating the table of contents. If linking a library
16113 # or program results in "error TOC overflow" add -mminimal-toc to
16114 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16115 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16117 archive_cmds_GCJ=''
16118 hardcode_direct_GCJ=yes
16119 hardcode_libdir_separator_GCJ=':'
16120 link_all_deplibs_GCJ=yes
16122 if test "$GCC" = yes; then
16123 case $host_os in aix4.012|aix4.012.*)
16124 # We only want to do this on AIX 4.2 and lower, the check
16125 # below for broken collect2 doesn't work under 4.3+
16126 collect2name=`${CC} -print-prog-name=collect2`
16127 if test -f "$collect2name" && \
16128 strings "$collect2name" | grep resolve_lib_name >/dev/null
16130 # We have reworked collect2
16131 hardcode_direct_GCJ=yes
16133 # We have old collect2
16134 hardcode_direct_GCJ=unsupported
16135 # It fails to find uninstalled libraries when the uninstalled
16136 # path is not listed in the libpath. Setting hardcode_minus_L
16137 # to unsupported forces relinking
16138 hardcode_minus_L_GCJ=yes
16139 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16140 hardcode_libdir_separator_GCJ=
16143 shared_flag='-shared'
16146 if test "$host_cpu" = ia64; then
16147 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16148 # chokes on -Wl,-G. The following line is correct:
16151 if test "$aix_use_runtimelinking" = yes; then
16152 shared_flag='${wl}-G'
16154 shared_flag='${wl}-bM:SRE'
16159 # It seems that -bexpall does not export symbols beginning with
16160 # underscore (_), so it is better to generate a list of symbols to export.
16161 always_export_symbols_GCJ=yes
16162 if test "$aix_use_runtimelinking" = yes; then
16163 # Warning - without using the other runtime loading flags (-brtl),
16164 # -berok will link without error, but may produce a broken library.
16165 allow_undefined_flag_GCJ='-berok'
16166 # Determine the default libpath from the value encoded in an empty executable.
16167 cat >conftest.$ac_ext <<_ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16182 rm -f conftest.$ac_objext conftest$ac_exeext
16183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16184 (eval $ac_link) 2>conftest.er1
16186 grep -v '^ *+' conftest.er1 >conftest.err
16188 cat conftest.err >&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
16191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; } &&
16197 { ac_try='test -s conftest$ac_exeext'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16206 # Check for a 64-bit object if we didn't find anything.
16207 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; }
16210 echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16214 rm -f conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16218 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16219 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"
16221 if test "$host_cpu" = ia64; then
16222 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16223 allow_undefined_flag_GCJ="-z nodefs"
16224 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"
16226 # Determine the default libpath from the value encoded in an empty executable.
16227 cat >conftest.$ac_ext <<_ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16242 rm -f conftest.$ac_objext conftest$ac_exeext
16243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16244 (eval $ac_link) 2>conftest.er1
16246 grep -v '^ *+' conftest.er1 >conftest.err
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest$ac_exeext'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; }; then
16264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16266 # Check for a 64-bit object if we didn't find anything.
16267 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; }
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16274 rm -f conftest.err conftest.$ac_objext \
16275 conftest$ac_exeext conftest.$ac_ext
16276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16278 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16279 # Warning - without using the other run time loading flags,
16280 # -berok will link without error, but may produce a broken library.
16281 no_undefined_flag_GCJ=' ${wl}-bernotok'
16282 allow_undefined_flag_GCJ=' ${wl}-berok'
16283 # -bexpall does not export symbols beginning with underscore (_)
16284 always_export_symbols_GCJ=yes
16285 # Exported symbols can be pulled into shared objects from archives
16286 whole_archive_flag_spec_GCJ=' '
16287 archive_cmds_need_lc_GCJ=yes
16288 # This is similar to how AIX traditionally builds it's shared libraries.
16289 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'
16295 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)'
16296 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16297 hardcode_minus_L_GCJ=yes
16298 # see comment about different semantics on the GNU ld section
16303 export_dynamic_flag_spec_GCJ=-rdynamic
16306 cygwin* | mingw* | pw32*)
16307 # When not using gcc, we currently assume that we are using
16308 # Microsoft Visual C++.
16309 # hardcode_libdir_flag_spec is actually meaningless, as there is
16310 # no search path for DLLs.
16311 hardcode_libdir_flag_spec_GCJ=' '
16312 allow_undefined_flag_GCJ=unsupported
16313 # Tell ltmain to make .lib files, not .a files.
16315 # Tell ltmain to make .dll files, not .so files.
16317 # FIXME: Setting linknames here is a bad hack.
16318 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16319 # The linker will automatically build a .lib file if we build a DLL.
16320 old_archive_From_new_cmds_GCJ='true'
16321 # FIXME: Should let the user specify the lib program.
16322 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16323 fix_srcfile_path='`cygpath -w "$srcfile"`'
16324 enable_shared_with_static_runtimes_GCJ=yes
16327 darwin* | rhapsody*)
16328 if test "$GXX" = yes ; then
16329 archive_cmds_need_lc_GCJ=no
16331 rhapsody* | darwin1.[012])
16332 allow_undefined_flag_GCJ='-undefined suppress'
16335 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16336 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16338 case ${MACOSX_DEPLOYMENT_TARGET} in
16340 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16343 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16349 lt_int_apple_cc_single_mod=no
16350 output_verbose_link_cmd='echo'
16351 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16352 lt_int_apple_cc_single_mod=yes
16354 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16355 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16357 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'
16359 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16360 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16361 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16362 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}'
16364 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}'
16366 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16367 hardcode_direct_GCJ=no
16368 hardcode_automatic_GCJ=yes
16369 hardcode_shlibpath_var_GCJ=unsupported
16370 whole_archive_flag_spec_GCJ='-all_load $convenience'
16371 link_all_deplibs_GCJ=yes
16378 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16379 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16380 hardcode_shlibpath_var_GCJ=no
16387 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16388 # support. Future versions do this automatically, but an explicit c++rt0.o
16389 # does not break anything, and helps significantly (at the cost of a little
16392 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16393 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16394 hardcode_direct_GCJ=yes
16395 hardcode_shlibpath_var_GCJ=no
16398 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16400 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16401 hardcode_direct_GCJ=yes
16402 hardcode_minus_L_GCJ=yes
16403 hardcode_shlibpath_var_GCJ=no
16406 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16407 freebsd* | kfreebsd*-gnu)
16408 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16409 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16410 hardcode_direct_GCJ=yes
16411 hardcode_shlibpath_var_GCJ=no
16415 if test "$GCC" = yes; then
16416 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'
16418 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'
16420 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16421 hardcode_libdir_separator_GCJ=:
16422 hardcode_direct_GCJ=yes
16424 # hardcode_minus_L: Not really in the search PATH,
16425 # but as the default location of the library.
16426 hardcode_minus_L_GCJ=yes
16427 export_dynamic_flag_spec_GCJ='${wl}-E'
16431 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16432 case "$host_cpu" in
16434 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16437 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16441 case "$host_cpu" in
16443 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16446 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16450 if test "$with_gnu_ld" = no; then
16451 case "$host_cpu" in
16453 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16454 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16455 hardcode_libdir_separator_GCJ=:
16456 hardcode_direct_GCJ=no
16457 hardcode_shlibpath_var_GCJ=no
16460 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16461 hardcode_direct_GCJ=no
16462 hardcode_shlibpath_var_GCJ=no
16464 # hardcode_minus_L: Not really in the search PATH,
16465 # but as the default location of the library.
16466 hardcode_minus_L_GCJ=yes
16469 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16470 hardcode_libdir_separator_GCJ=:
16471 hardcode_direct_GCJ=yes
16472 export_dynamic_flag_spec_GCJ='${wl}-E'
16474 # hardcode_minus_L: Not really in the search PATH,
16475 # but as the default location of the library.
16476 hardcode_minus_L_GCJ=yes
16482 irix5* | irix6* | nonstopux*)
16483 if test "$GCC" = yes; then
16484 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'
16486 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'
16487 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16490 hardcode_libdir_separator_GCJ=:
16491 link_all_deplibs_GCJ=yes
16494 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16496 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16498 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16500 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16501 hardcode_direct_GCJ=yes
16502 hardcode_shlibpath_var_GCJ=no
16506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16507 hardcode_direct_GCJ=yes
16508 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16509 hardcode_libdir_separator_GCJ=:
16510 hardcode_shlibpath_var_GCJ=no
16514 hardcode_direct_GCJ=yes
16515 hardcode_shlibpath_var_GCJ=no
16516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16517 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16518 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16519 export_dynamic_flag_spec_GCJ='${wl}-E'
16522 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16523 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16527 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16528 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16536 hardcode_minus_L_GCJ=yes
16537 allow_undefined_flag_GCJ=unsupported
16538 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'
16539 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16543 if test "$GCC" = yes; then
16544 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16545 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'
16547 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16548 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'
16550 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16551 hardcode_libdir_separator_GCJ=:
16554 osf4* | osf5*) # as osf3* with the addition of -msym flag
16555 if test "$GCC" = yes; then
16556 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16557 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'
16558 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16560 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16561 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'
16562 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~
16563 $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'
16565 # Both c and cxx compiler support -rpath directly
16566 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16568 hardcode_libdir_separator_GCJ=:
16572 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16573 hardcode_shlibpath_var_GCJ=no
16574 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16575 runpath_var=LD_RUN_PATH
16576 hardcode_runpath_var=yes
16580 no_undefined_flag_GCJ=' -z text'
16581 if test "$GCC" = yes; then
16582 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16583 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16584 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16586 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16590 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16591 hardcode_shlibpath_var_GCJ=no
16593 solaris2.[0-5] | solaris2.[0-5].*) ;;
16594 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16595 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16597 link_all_deplibs_GCJ=yes
16601 if test "x$host_vendor" = xsequent; then
16602 # Use $CC to link under sequent, because it throws in some extra .o
16603 # files that make .init and .fini sections work.
16604 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16606 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16609 hardcode_direct_GCJ=yes
16610 hardcode_minus_L_GCJ=yes
16611 hardcode_shlibpath_var_GCJ=no
16615 case $host_vendor in
16617 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16618 hardcode_direct_GCJ=yes # is this really true???
16621 ## LD is ld it makes a PLAMLIB
16622 ## CC just makes a GrossModule.
16623 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16624 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16625 hardcode_direct_GCJ=no
16628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16629 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16632 runpath_var='LD_RUN_PATH'
16633 hardcode_shlibpath_var_GCJ=no
16637 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638 hardcode_shlibpath_var_GCJ=no
16639 export_dynamic_flag_spec_GCJ='-Bexport'
16643 if test -d /usr/nec; then
16644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16645 hardcode_shlibpath_var_GCJ=no
16646 runpath_var=LD_RUN_PATH
16647 hardcode_runpath_var=yes
16653 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_direct_GCJ=yes
16655 hardcode_minus_L_GCJ=no
16656 hardcode_shlibpath_var_GCJ=no
16657 hardcode_runpath_var=yes
16658 runpath_var=LD_RUN_PATH
16661 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16662 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16663 if test "$GCC" = yes; then
16664 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16666 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16668 runpath_var='LD_RUN_PATH'
16669 hardcode_shlibpath_var_GCJ=no
16673 no_undefined_flag_GCJ=' -z text'
16674 # $CC -shared without GNU ld will not create a library from C++
16675 # object files and a static libstdc++, better avoid it by now
16676 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16677 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16678 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16679 hardcode_libdir_flag_spec_GCJ=
16680 hardcode_shlibpath_var_GCJ=no
16681 runpath_var='LD_RUN_PATH'
16685 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16686 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16687 hardcode_shlibpath_var_GCJ=no
16696 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16697 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16698 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16700 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16701 if test "$GCC" = yes; then
16702 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16706 # Do we need to explicitly link libc?
16708 case "x$archive_cmds_need_lc_GCJ" in
16710 # Assume -lc should be added
16711 archive_cmds_need_lc_GCJ=yes
16713 if test "$enable_shared" = yes && test "$GCC" = yes; then
16714 case $archive_cmds_GCJ in
16716 # FIXME: we may have to deal with multi-command sequences.
16719 # Test whether the compiler implicitly links with -lc since on some
16720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16721 # to ld, don't add -lc before -lgcc.
16722 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16723 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16728 (eval $ac_compile) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } 2>conftest.err; then
16734 libobjs=conftest.$ac_objext
16736 wl=$lt_prog_compiler_wl_GCJ
16742 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16743 allow_undefined_flag_GCJ=
16744 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16745 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }
16750 archive_cmds_need_lc_GCJ=no
16752 archive_cmds_need_lc_GCJ=yes
16754 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16756 cat conftest.err 1>&5
16759 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16760 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16767 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16768 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16769 library_names_spec=
16770 libname_spec='lib$name'
16774 postuninstall_cmds=
16778 shlibpath_overrides_runpath=unknown
16780 dynamic_linker="$host_os ld.so"
16781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16782 if test "$GCC" = yes; then
16783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16785 # if the path contains ";" then we assume it to be the separator
16786 # otherwise default to the standard path separator (i.e. ":") - it is
16787 # assumed that no part of a normal pathname contains ";" but that should
16788 # okay in the real world where ";" in dirpaths is itself problematic.
16789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16796 need_lib_prefix=unknown
16797 hardcode_into_libs=no
16799 # when you set need_version to no, make sure it does not cause -set_version
16800 # flags to be left without arguments
16801 need_version=unknown
16806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16807 shlibpath_var=LIBPATH
16809 # AIX 3 has no versioning support, so we append a major version to the name.
16810 soname_spec='${libname}${release}${shared_ext}$major'
16817 hardcode_into_libs=yes
16818 if test "$host_cpu" = ia64; then
16819 # AIX 5 supports IA64
16820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16821 shlibpath_var=LD_LIBRARY_PATH
16823 # With GCC up to 2.95.x, collect2 would create an import file
16824 # for dependence libraries. The import file would start with
16825 # the line `#! .'. This would cause the generated library to
16826 # depend on `.', always an invalid library. This was fixed in
16827 # development snapshots of GCC prior to 3.0.
16829 aix4 | aix4.[01] | aix4.[01].*)
16830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16835 can_build_shared=no
16839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16840 # soname into executable. Probably we can add versioning support to
16841 # collect2, so additional links can be useful in future.
16842 if test "$aix_use_runtimelinking" = yes; then
16843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16844 # instead of lib<name>.a to let people know that these are not
16845 # typical AIX shared libraries.
16846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848 # We preserve .a as extension for shared libraries through AIX4.2
16849 # and later when we are not doing run time linking.
16850 library_names_spec='${libname}${release}.a $libname.a'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16853 shlibpath_var=LIBPATH
16858 library_names_spec='$libname.ixlibrary $libname.a'
16859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16860 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'
16864 library_names_spec='${libname}${shared_ext}'
16865 dynamic_linker="$host_os ld.so"
16866 shlibpath_var=LIBRARY_PATH
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873 soname_spec='${libname}${release}${shared_ext}$major'
16874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16878 # the default ld.so.conf also contains /usr/contrib/lib and
16879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16880 # libtool to hard-code these into programs
16883 cygwin* | mingw* | pw32*)
16884 version_type=windows
16889 case $GCC,$host_os in
16890 yes,cygwin* | yes,mingw* | yes,pw32*)
16891 library_names_spec='$libname.dll.a'
16892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16893 postinstall_cmds='base_file=`basename \${file}`~
16894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16895 dldir=$destdir/`dirname \$dlpath`~
16896 test -d \$dldir || mkdir -p \$dldir~
16897 $install_prog $dir/$dlname \$dldir/$dlname'
16898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16899 dlpath=$dir/\$dldll~
16901 shlibpath_overrides_runpath=yes
16905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16906 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16907 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16910 # MinGW DLLs use traditional 'lib' prefix
16911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16913 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16914 # It is most probably a Windows format PATH printed by
16915 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16916 # path with ; separators, and with drive letters. We can handle the
16917 # drive letters (cygwin fileutils understands them), so leave them,
16918 # especially as we might pass files found there to a mingw objdump,
16919 # which wouldn't understand a cygwinified path. Ahh.
16920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16926 # pw32 DLLs use 'pw' prefix rather than 'lib'
16927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16936 dynamic_linker='Win32 ld.exe'
16937 # FIXME: first we should search . and the directory the executable is in
16941 darwin* | rhapsody*)
16942 dynamic_linker="$host_os dyld"
16943 version_type=darwin
16946 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16947 soname_spec='${libname}${release}${major}$shared_ext'
16948 shlibpath_overrides_runpath=yes
16949 shlibpath_var=DYLD_LIBRARY_PATH
16950 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16951 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16952 if test "$GCC" = yes; then
16953 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"`
16955 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16957 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 shlibpath_var=LD_LIBRARY_PATH
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16978 soname_spec='${libname}${release}${shared_ext}$major'
16979 shlibpath_var=LD_LIBRARY_PATH
16980 shlibpath_overrides_runpath=no
16981 hardcode_into_libs=yes
16982 dynamic_linker='GNU ld.so'
16986 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16987 version_type=freebsd-$objformat
16988 case $version_type in
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16999 shlibpath_var=LD_LIBRARY_PATH
17002 shlibpath_overrides_runpath=yes
17004 freebsd3.01* | freebsdelf3.01*)
17005 shlibpath_overrides_runpath=yes
17006 hardcode_into_libs=yes
17009 shlibpath_overrides_runpath=no
17010 hardcode_into_libs=yes
17019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17020 soname_spec='${libname}${release}${shared_ext}$major'
17021 shlibpath_var=LD_LIBRARY_PATH
17022 hardcode_into_libs=yes
17025 hpux9* | hpux10* | hpux11*)
17026 # Give a soname corresponding to the major version so that dld.sl refuses to
17027 # link against other versions.
17031 case "$host_cpu" in
17034 hardcode_into_libs=yes
17035 dynamic_linker="$host_os dld.so"
17036 shlibpath_var=LD_LIBRARY_PATH
17037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039 soname_spec='${libname}${release}${shared_ext}$major'
17040 if test "X$HPUX_IA64_MODE" = X32; then
17041 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17043 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17049 hardcode_into_libs=yes
17050 dynamic_linker="$host_os dld.sl"
17051 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054 soname_spec='${libname}${release}${shared_ext}$major'
17055 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17060 dynamic_linker="$host_os dld.sl"
17061 shlibpath_var=SHLIB_PATH
17062 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064 soname_spec='${libname}${release}${shared_ext}$major'
17067 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17068 postinstall_cmds='chmod 555 $lib'
17071 irix5* | irix6* | nonstopux*)
17073 nonstopux*) version_type=nonstopux ;;
17075 if test "$lt_cv_prog_gnu_ld" = yes; then
17083 soname_spec='${libname}${release}${shared_ext}$major'
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17086 irix5* | nonstopux*)
17087 libsuff= shlibsuff=
17090 case $LD in # libtool.m4 will add one of these switches to LD
17091 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17092 libsuff= shlibsuff= libmagic=32-bit;;
17093 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17094 libsuff=32 shlibsuff=N32 libmagic=N32;;
17095 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17096 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17097 *) libsuff= shlibsuff= libmagic=never-match;;
17101 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17102 shlibpath_overrides_runpath=no
17103 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17104 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17105 hardcode_into_libs=yes
17108 # No shared lib support for Linux oldld, aout, or coff.
17109 linux*oldld* | linux*aout* | linux*coff*)
17113 # This must be Linux ELF.
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 shlibpath_overrides_runpath=no
17123 # This implies no fast_install, which is unacceptable.
17124 # Some rework will be needed to allow for fast_install
17125 # before this can be enabled.
17126 hardcode_into_libs=yes
17128 # Append ld.so.conf contents to the search path
17129 if test -f /etc/ld.so.conf; then
17130 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17131 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17134 # We used to test for /lib/ld.so.1 and disable shared libraries on
17135 # powerpc, because MkLinux only supported shared libraries with the
17136 # GNU dynamic linker. Since this was broken with cross compilers,
17137 # most powerpc-linux boxes support dynamic linking these days and
17138 # people can always --disable-shared, the test was removed, and we
17139 # assume the GNU/Linux dynamic linker is in use.
17140 dynamic_linker='GNU/Linux ld.so'
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 shlibpath_var=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath=no
17151 hardcode_into_libs=yes
17152 dynamic_linker='NetBSD ld.elf_so'
17159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17160 soname_spec='${libname}${release}${shared_ext}$major'
17161 shlibpath_var=LD_LIBRARY_PATH
17162 shlibpath_overrides_runpath=no
17163 hardcode_into_libs=yes
17164 dynamic_linker='GNU ld.so'
17171 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17174 dynamic_linker='NetBSD (a.out) ld.so'
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 dynamic_linker='NetBSD ld.elf_so'
17180 shlibpath_var=LD_LIBRARY_PATH
17181 shlibpath_overrides_runpath=yes
17182 hardcode_into_libs=yes
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188 shlibpath_var=LD_LIBRARY_PATH
17189 shlibpath_overrides_runpath=yes
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197 soname_spec='${libname}${release}${shared_ext}$major'
17198 shlibpath_var=LD_LIBRARY_PATH
17199 shlibpath_overrides_runpath=yes
17206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17211 openbsd2.[89] | openbsd2.[89].*)
17212 shlibpath_overrides_runpath=no
17215 shlibpath_overrides_runpath=yes
17219 shlibpath_overrides_runpath=yes
17224 libname_spec='$name'
17227 library_names_spec='$libname${shared_ext} $libname.a'
17228 dynamic_linker='OS/2 ld.exe'
17229 shlibpath_var=LIBPATH
17232 osf3* | osf4* | osf5*)
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17240 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17245 soname_spec='${libname}${release}${shared_ext}$major'
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 shlibpath_var=LD_LIBRARY_PATH
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath=yes
17258 hardcode_into_libs=yes
17259 # ldd complains unless libraries are executable
17260 postinstall_cmds='chmod +x $lib'
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17267 shlibpath_var=LD_LIBRARY_PATH
17268 shlibpath_overrides_runpath=yes
17269 if test "$with_gnu_ld" = yes; then
17275 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 case $host_vendor in
17282 shlibpath_overrides_runpath=no
17284 export_dynamic_flag_spec='${wl}-Blargedynsym'
17285 runpath_var=LD_RUN_PATH
17293 shlibpath_overrides_runpath=no
17294 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17300 if test -d /usr/nec ;then
17302 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17303 soname_spec='$libname${shared_ext}.$major'
17304 shlibpath_var=LD_LIBRARY_PATH
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17311 soname_spec='${libname}${release}${shared_ext}$major'
17312 shlibpath_var=LD_LIBRARY_PATH
17319 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17320 echo "${ECHO_T}$dynamic_linker" >&6
17321 test "$dynamic_linker" = no && can_build_shared=no
17323 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17324 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17325 hardcode_action_GCJ=
17326 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17327 test -n "$runpath_var GCJ" || \
17328 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17330 # We can hardcode non-existant directories.
17331 if test "$hardcode_direct_GCJ" != no &&
17332 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17333 # have to relink, otherwise we might link with an installed library
17334 # when we should be linking with a yet-to-be-installed one
17335 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17336 test "$hardcode_minus_L_GCJ" != no; then
17337 # Linking always hardcodes the temporary library directory.
17338 hardcode_action_GCJ=relink
17340 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17341 hardcode_action_GCJ=immediate
17344 # We cannot hardcode anything, or else we can only hardcode existing
17346 hardcode_action_GCJ=unsupported
17348 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17349 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17351 if test "$hardcode_action_GCJ" = relink; then
17352 # Fast installation is not supported
17353 enable_fast_install=no
17354 elif test "$shlibpath_overrides_runpath" = yes ||
17355 test "$enable_shared" = no; then
17356 # Fast installation is not necessary
17357 enable_fast_install=needless
17362 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17363 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17364 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17365 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17366 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17367 echo "$as_me:$LINENO: result: yes" >&5
17368 echo "${ECHO_T}yes" >&6
17370 # FIXME - insert some real tests, host_os isn't really good enough
17373 if test -n "$STRIP" ; then
17374 striplib="$STRIP -x"
17375 echo "$as_me:$LINENO: result: yes" >&5
17376 echo "${ECHO_T}yes" >&6
17378 echo "$as_me:$LINENO: result: no" >&5
17379 echo "${ECHO_T}no" >&6
17383 echo "$as_me:$LINENO: result: no" >&5
17384 echo "${ECHO_T}no" >&6
17389 if test "x$enable_dlopen" != xyes; then
17390 enable_dlopen=unknown
17391 enable_dlopen_self=unknown
17392 enable_dlopen_self_static=unknown
17399 lt_cv_dlopen="load_add_on"
17401 lt_cv_dlopen_self=yes
17405 lt_cv_dlopen="LoadLibrary"
17410 lt_cv_dlopen="dlopen"
17415 # if libdl is installed we need to link against it
17416 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17417 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17418 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 ac_check_lib_save_LIBS=$LIBS
17423 cat >conftest.$ac_ext <<_ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17430 /* Override any gcc2 internal prototype to avoid an error. */
17434 /* We use char because int might match the return type of a gcc2
17435 builtin and then its argument prototype would still apply. */
17445 rm -f conftest.$ac_objext conftest$ac_exeext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17447 (eval $ac_link) 2>conftest.er1
17449 grep -v '^ *+' conftest.er1 >conftest.err
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
17454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest$ac_exeext'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 ac_cv_lib_dl_dlopen=yes
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_cv_lib_dl_dlopen=no
17473 rm -f conftest.err conftest.$ac_objext \
17474 conftest$ac_exeext conftest.$ac_ext
17475 LIBS=$ac_check_lib_save_LIBS
17477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17479 if test $ac_cv_lib_dl_dlopen = yes; then
17480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17483 lt_cv_dlopen="dyld"
17485 lt_cv_dlopen_self=yes
17492 echo "$as_me:$LINENO: checking for shl_load" >&5
17493 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17494 if test "${ac_cv_func_shl_load+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17505 #define shl_load innocuous_shl_load
17507 /* System header to define __stub macros and hopefully few prototypes,
17508 which can conflict with char shl_load (); below.
17509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510 <limits.h> exists even on freestanding compilers. */
17513 # include <limits.h>
17515 # include <assert.h>
17520 /* Override any gcc2 internal prototype to avoid an error. */
17525 /* We use char because int might match the return type of a gcc2
17526 builtin and then its argument prototype would still apply. */
17528 /* The GNU C library defines this for functions which it implements
17529 to always fail with ENOSYS. Some functions are actually named
17530 something starting with __ and the normal name is an alias. */
17531 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17534 char (*f) () = shl_load;
17543 return f != shl_load;
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17550 (eval $ac_link) 2>conftest.er1
17552 grep -v '^ *+' conftest.er1 >conftest.err
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; } &&
17563 { ac_try='test -s conftest$ac_exeext'
17564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565 (eval $ac_try) 2>&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; }; then
17569 ac_cv_func_shl_load=yes
17571 echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 ac_cv_func_shl_load=no
17576 rm -f conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17579 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17580 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17581 if test $ac_cv_func_shl_load = yes; then
17582 lt_cv_dlopen="shl_load"
17584 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17585 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17586 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 ac_check_lib_save_LIBS=$LIBS
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17598 /* Override any gcc2 internal prototype to avoid an error. */
17602 /* We use char because int might match the return type of a gcc2
17603 builtin and then its argument prototype would still apply. */
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615 (eval $ac_link) 2>conftest.er1
17617 grep -v '^ *+' conftest.er1 >conftest.err
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest$ac_exeext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_lib_dld_shl_load=yes
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 ac_cv_lib_dld_shl_load=no
17641 rm -f conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17643 LIBS=$ac_check_lib_save_LIBS
17645 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17646 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17647 if test $ac_cv_lib_dld_shl_load = yes; then
17648 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17650 echo "$as_me:$LINENO: checking for dlopen" >&5
17651 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17652 if test "${ac_cv_func_dlopen+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 cat >conftest.$ac_ext <<_ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17663 #define dlopen innocuous_dlopen
17665 /* System header to define __stub macros and hopefully few prototypes,
17666 which can conflict with char dlopen (); below.
17667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17668 <limits.h> exists even on freestanding compilers. */
17671 # include <limits.h>
17673 # include <assert.h>
17678 /* Override any gcc2 internal prototype to avoid an error. */
17683 /* We use char because int might match the return type of a gcc2
17684 builtin and then its argument prototype would still apply. */
17686 /* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17692 char (*f) () = dlopen;
17701 return f != dlopen;
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708 (eval $ac_link) 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest$ac_exeext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 ac_cv_func_dlopen=yes
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_cv_func_dlopen=no
17734 rm -f conftest.err conftest.$ac_objext \
17735 conftest$ac_exeext conftest.$ac_ext
17737 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17738 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17739 if test $ac_cv_func_dlopen = yes; then
17740 lt_cv_dlopen="dlopen"
17742 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17743 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17744 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 ac_check_lib_save_LIBS=$LIBS
17749 cat >conftest.$ac_ext <<_ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17756 /* Override any gcc2 internal prototype to avoid an error. */
17760 /* We use char because int might match the return type of a gcc2
17761 builtin and then its argument prototype would still apply. */
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17773 (eval $ac_link) 2>conftest.er1
17775 grep -v '^ *+' conftest.er1 >conftest.err
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; } &&
17786 { ac_try='test -s conftest$ac_exeext'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17792 ac_cv_lib_dl_dlopen=yes
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17797 ac_cv_lib_dl_dlopen=no
17799 rm -f conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17801 LIBS=$ac_check_lib_save_LIBS
17803 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17804 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17805 if test $ac_cv_lib_dl_dlopen = yes; then
17806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17808 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17809 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17810 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 ac_check_lib_save_LIBS=$LIBS
17814 LIBS="-lsvld $LIBS"
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17822 /* Override any gcc2 internal prototype to avoid an error. */
17826 /* We use char because int might match the return type of a gcc2
17827 builtin and then its argument prototype would still apply. */
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839 (eval $ac_link) 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try='test -s conftest$ac_exeext'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_cv_lib_svld_dlopen=yes
17860 echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17863 ac_cv_lib_svld_dlopen=no
17865 rm -f conftest.err conftest.$ac_objext \
17866 conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17869 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17870 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17871 if test $ac_cv_lib_svld_dlopen = yes; then
17872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17874 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17875 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17876 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17879 ac_check_lib_save_LIBS=$LIBS
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17888 /* Override any gcc2 internal prototype to avoid an error. */
17892 /* We use char because int might match the return type of a gcc2
17893 builtin and then its argument prototype would still apply. */
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905 (eval $ac_link) 2>conftest.er1
17907 grep -v '^ *+' conftest.er1 >conftest.err
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
17912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest$ac_exeext'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_dld_dld_link=yes
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_cv_lib_dld_dld_link=no
17931 rm -f conftest.err conftest.$ac_objext \
17932 conftest$ac_exeext conftest.$ac_ext
17933 LIBS=$ac_check_lib_save_LIBS
17935 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17936 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17937 if test $ac_cv_lib_dld_dld_link = yes; then
17938 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17959 if test "x$lt_cv_dlopen" != xno; then
17965 case $lt_cv_dlopen in
17967 save_CPPFLAGS="$CPPFLAGS"
17968 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17970 save_LDFLAGS="$LDFLAGS"
17971 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17974 LIBS="$lt_cv_dlopen_libs $LIBS"
17976 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17977 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17978 if test "${lt_cv_dlopen_self+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17981 if test "$cross_compiling" = yes; then :
17982 lt_cv_dlopen_self=cross
17984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17985 lt_status=$lt_dlunknown
17986 cat > conftest.$ac_ext <<EOF
17987 #line __oline__ "configure"
17988 #include "confdefs.h"
17997 # define LT_DLGLOBAL RTLD_GLOBAL
18000 # define LT_DLGLOBAL DL_GLOBAL
18002 # define LT_DLGLOBAL 0
18006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18007 find out it does not work in some platform. */
18008 #ifndef LT_DLLAZY_OR_NOW
18010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18013 # define LT_DLLAZY_OR_NOW DL_LAZY
18016 # define LT_DLLAZY_OR_NOW RTLD_NOW
18019 # define LT_DLLAZY_OR_NOW DL_NOW
18021 # define LT_DLLAZY_OR_NOW 0
18029 extern "C" void exit (int);
18032 void fnord() { int i=42;}
18035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18036 int status = $lt_dlunknown;
18040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18042 /* dlclose (self); */
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18053 (./conftest; exit; ) 2>/dev/null
18055 case x$lt_status in
18056 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18057 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18058 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18061 # compilation failed
18062 lt_cv_dlopen_self=no
18069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18070 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18072 if test "x$lt_cv_dlopen_self" = xyes; then
18073 LDFLAGS="$LDFLAGS $link_static_flag"
18074 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18075 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18076 if test "${lt_cv_dlopen_self_static+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 if test "$cross_compiling" = yes; then :
18080 lt_cv_dlopen_self_static=cross
18082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18083 lt_status=$lt_dlunknown
18084 cat > conftest.$ac_ext <<EOF
18085 #line __oline__ "configure"
18086 #include "confdefs.h"
18095 # define LT_DLGLOBAL RTLD_GLOBAL
18098 # define LT_DLGLOBAL DL_GLOBAL
18100 # define LT_DLGLOBAL 0
18104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18105 find out it does not work in some platform. */
18106 #ifndef LT_DLLAZY_OR_NOW
18108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18111 # define LT_DLLAZY_OR_NOW DL_LAZY
18114 # define LT_DLLAZY_OR_NOW RTLD_NOW
18117 # define LT_DLLAZY_OR_NOW DL_NOW
18119 # define LT_DLLAZY_OR_NOW 0
18127 extern "C" void exit (int);
18130 void fnord() { int i=42;}
18133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18134 int status = $lt_dlunknown;
18138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18140 /* dlclose (self); */
18146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18147 (eval $ac_link) 2>&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18151 (./conftest; exit; ) 2>/dev/null
18153 case x$lt_status in
18154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18156 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18159 # compilation failed
18160 lt_cv_dlopen_self_static=no
18167 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18168 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18171 CPPFLAGS="$save_CPPFLAGS"
18172 LDFLAGS="$save_LDFLAGS"
18177 case $lt_cv_dlopen_self in
18178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18179 *) enable_dlopen_self=unknown ;;
18182 case $lt_cv_dlopen_self_static in
18183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18184 *) enable_dlopen_self_static=unknown ;;
18189 # The else clause should only fire when bootstrapping the
18190 # libtool distribution, otherwise you forgot to ship ltmain.sh
18191 # with your package, and you will get complaints that there are
18192 # no rules to generate ltmain.sh.
18193 if test -f "$ltmain"; then
18194 # See if we are running on zsh, and set the options which allow our commands through
18195 # without removal of \ escapes.
18196 if test -n "${ZSH_VERSION+set}" ; then
18197 setopt NO_GLOB_SUBST
18199 # Now quote all the things that may contain metacharacters while being
18200 # careful not to overquote the AC_SUBSTed values. We take copies of the
18201 # variables and quote the copies for generation of the libtool script.
18202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18206 deplibs_check_method reload_flag reload_cmds need_locks \
18207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18208 lt_cv_sys_global_symbol_to_c_name_address \
18209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18210 old_postinstall_cmds old_postuninstall_cmds \
18214 lt_prog_compiler_wl_GCJ \
18215 lt_prog_compiler_pic_GCJ \
18216 lt_prog_compiler_static_GCJ \
18217 lt_prog_compiler_no_builtin_flag_GCJ \
18218 export_dynamic_flag_spec_GCJ \
18219 thread_safe_flag_spec_GCJ \
18220 whole_archive_flag_spec_GCJ \
18221 enable_shared_with_static_runtimes_GCJ \
18222 old_archive_cmds_GCJ \
18223 old_archive_from_new_cmds_GCJ \
18224 predep_objects_GCJ \
18225 postdep_objects_GCJ \
18228 compiler_lib_search_path_GCJ \
18230 archive_expsym_cmds_GCJ \
18231 postinstall_cmds_GCJ \
18232 postuninstall_cmds_GCJ \
18233 old_archive_from_expsyms_cmds_GCJ \
18234 allow_undefined_flag_GCJ \
18235 no_undefined_flag_GCJ \
18236 export_symbols_cmds_GCJ \
18237 hardcode_libdir_flag_spec_GCJ \
18238 hardcode_libdir_flag_spec_ld_GCJ \
18239 hardcode_libdir_separator_GCJ \
18240 hardcode_automatic_GCJ \
18242 module_expsym_cmds_GCJ \
18243 lt_cv_prog_compiler_c_o_GCJ \
18244 exclude_expsyms_GCJ \
18245 include_expsyms_GCJ; do
18248 old_archive_cmds_GCJ | \
18249 old_archive_from_new_cmds_GCJ | \
18250 archive_cmds_GCJ | \
18251 archive_expsym_cmds_GCJ | \
18252 module_cmds_GCJ | \
18253 module_expsym_cmds_GCJ | \
18254 old_archive_from_expsyms_cmds_GCJ | \
18255 export_symbols_cmds_GCJ | \
18256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18257 postinstall_cmds | postuninstall_cmds | \
18258 old_postinstall_cmds | old_postuninstall_cmds | \
18259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18260 # Double-quote double-evaled strings.
18261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18270 *'\$0 --fallback-echo"')
18271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18277 cat <<__EOF__ >> "$cfgfile"
18278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18282 # Shell to use when invoking shell scripts.
18285 # Whether or not to build shared libraries.
18286 build_libtool_libs=$enable_shared
18288 # Whether or not to build static libraries.
18289 build_old_libs=$enable_static
18291 # Whether or not to add -lc for building shared libraries.
18292 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18294 # Whether or not to disallow shared libs when runtime libs are static
18295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18297 # Whether or not to optimize for fast installation.
18298 fast_install=$enable_fast_install
18301 host_alias=$host_alias
18304 # An echo program that does not interpret backslashes.
18309 AR_FLAGS=$lt_AR_FLAGS
18314 # A language-specific compiler.
18315 CC=$lt_compiler_GCJ
18317 # Is the compiler the GNU C compiler?
18323 # The linker used to build libraries.
18326 # Whether we need hard or soft links.
18329 # A BSD-compatible nm program.
18332 # A symbol stripping program
18335 # Used to examine libraries when file_magic_cmd begins "file"
18336 MAGIC_CMD=$MAGIC_CMD
18338 # Used on cygwin: DLL creation program.
18341 # Used on cygwin: object dumper.
18344 # Used on cygwin: assembler.
18347 # The name of the directory that contains temporary libtool files.
18350 # How to create reloadable object files.
18351 reload_flag=$lt_reload_flag
18352 reload_cmds=$lt_reload_cmds
18354 # How to pass a linker flag through the compiler.
18355 wl=$lt_lt_prog_compiler_wl_GCJ
18357 # Object file suffix (normally "o").
18358 objext="$ac_objext"
18360 # Old archive suffix (normally "a").
18363 # Shared library suffix (normally ".so").
18364 shrext_cmds='$shrext_cmds'
18366 # Executable file suffix (normally "").
18369 # Additional compiler flags for building library objects.
18370 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18373 # What is the maximum length of a command?
18374 max_cmd_len=$lt_cv_sys_max_cmd_len
18376 # Does compiler simultaneously support -c and -o options?
18377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18379 # Must we lock files when doing compilation ?
18380 need_locks=$lt_need_locks
18382 # Do we need the lib prefix for modules?
18383 need_lib_prefix=$need_lib_prefix
18385 # Do we need a version for libraries?
18386 need_version=$need_version
18388 # Whether dlopen is supported.
18389 dlopen_support=$enable_dlopen
18391 # Whether dlopen of programs is supported.
18392 dlopen_self=$enable_dlopen_self
18394 # Whether dlopen of statically linked programs is supported.
18395 dlopen_self_static=$enable_dlopen_self_static
18397 # Compiler flag to prevent dynamic linking.
18398 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18400 # Compiler flag to turn off builtin functions.
18401 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18403 # Compiler flag to allow reflexive dlopens.
18404 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18406 # Compiler flag to generate shared objects directly from archives.
18407 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18409 # Compiler flag to generate thread-safe objects.
18410 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18412 # Library versioning type.
18413 version_type=$version_type
18415 # Format of library name prefix.
18416 libname_spec=$lt_libname_spec
18418 # List of archive names. First name is the real one, the rest are links.
18419 # The last name is the one that the linker finds with -lNAME.
18420 library_names_spec=$lt_library_names_spec
18422 # The coded name of the library, if different from the real name.
18423 soname_spec=$lt_soname_spec
18425 # Commands used to build and install an old-style archive.
18427 old_archive_cmds=$lt_old_archive_cmds_GCJ
18428 old_postinstall_cmds=$lt_old_postinstall_cmds
18429 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18431 # Create an old-style archive from a shared archive.
18432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18434 # Create a temporary old-style archive to link instead of a shared archive.
18435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18437 # Commands used to build and install a shared archive.
18438 archive_cmds=$lt_archive_cmds_GCJ
18439 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18440 postinstall_cmds=$lt_postinstall_cmds
18441 postuninstall_cmds=$lt_postuninstall_cmds
18443 # Commands used to build a loadable module (assumed same as above if empty)
18444 module_cmds=$lt_module_cmds_GCJ
18445 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18447 # Commands to strip libraries.
18448 old_striplib=$lt_old_striplib
18449 striplib=$lt_striplib
18451 # Dependencies to place before the objects being linked to create a
18453 predep_objects=$lt_predep_objects_GCJ
18455 # Dependencies to place after the objects being linked to create a
18457 postdep_objects=$lt_postdep_objects_GCJ
18459 # Dependencies to place before the objects being linked to create a
18461 predeps=$lt_predeps_GCJ
18463 # Dependencies to place after the objects being linked to create a
18465 postdeps=$lt_postdeps_GCJ
18467 # The library search path used internally by the compiler when linking
18468 # a shared library.
18469 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18471 # Method to check whether dependent libraries are shared objects.
18472 deplibs_check_method=$lt_deplibs_check_method
18474 # Command to use when deplibs_check_method == file_magic.
18475 file_magic_cmd=$lt_file_magic_cmd
18477 # Flag that allows shared libraries with undefined symbols to be built.
18478 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18480 # Flag that forces no undefined symbols.
18481 no_undefined_flag=$lt_no_undefined_flag_GCJ
18483 # Commands used to finish a libtool library installation in a directory.
18484 finish_cmds=$lt_finish_cmds
18486 # Same as above, but a single script fragment to be evaled but not shown.
18487 finish_eval=$lt_finish_eval
18489 # Take the output of nm and produce a listing of raw symbols and C names.
18490 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18492 # Transform the output of nm in a proper C declaration
18493 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18495 # Transform the output of nm in a C name address pair
18496 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18498 # This is the shared library runtime path variable.
18499 runpath_var=$runpath_var
18501 # This is the shared library path variable.
18502 shlibpath_var=$shlibpath_var
18504 # Is shlibpath searched before the hard-coded library search path?
18505 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18507 # How to hardcode a shared library path into an executable.
18508 hardcode_action=$hardcode_action_GCJ
18510 # Whether we should hardcode library paths into libraries.
18511 hardcode_into_libs=$hardcode_into_libs
18513 # Flag to hardcode \$libdir into a binary during linking.
18514 # This must work even if \$libdir does not exist.
18515 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18517 # If ld is used when linking, flag to hardcode \$libdir into
18518 # a binary during linking. This must work even if \$libdir does
18520 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18522 # Whether we need a single -rpath flag with a separated argument.
18523 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18525 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18526 # resulting binary.
18527 hardcode_direct=$hardcode_direct_GCJ
18529 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18530 # resulting binary.
18531 hardcode_minus_L=$hardcode_minus_L_GCJ
18533 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18534 # the resulting binary.
18535 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18537 # Set to yes if building a shared library automatically hardcodes DIR into the library
18538 # and all subsequent libraries and executables linked against it.
18539 hardcode_automatic=$hardcode_automatic_GCJ
18541 # Variables whose values should be saved in libtool wrapper scripts and
18542 # restored at relink time.
18543 variables_saved_for_relink="$variables_saved_for_relink"
18545 # Whether libtool must link a program against all its dependency libraries.
18546 link_all_deplibs=$link_all_deplibs_GCJ
18548 # Compile-time system search path for libraries
18549 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18551 # Run-time system search path for libraries
18552 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18554 # Fix the shell variable \$srcfile for the compiler.
18555 fix_srcfile_path="$fix_srcfile_path_GCJ"
18557 # Set to yes if exported symbols are required.
18558 always_export_symbols=$always_export_symbols_GCJ
18560 # The commands to list exported symbols.
18561 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18563 # The commands to extract the exported symbol list from a shared archive.
18564 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18566 # Symbols that should not be listed in the preloaded symbols.
18567 exclude_expsyms=$lt_exclude_expsyms_GCJ
18569 # Symbols that must always be exported.
18570 include_expsyms=$lt_include_expsyms_GCJ
18572 # ### END LIBTOOL TAG CONFIG: $tagname
18578 # If there is no Makefile yet, we rely on a make rule to execute
18579 # `config.status --recheck' to rerun these tests and create the
18580 # libtool script then.
18581 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18582 if test -f "$ltmain_in"; then
18583 test -f Makefile && make "$ltmain"
18589 ac_cpp='$CPP $CPPFLAGS'
18590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18605 # Source file extension for RC test sources.
18608 # Object file extension for compiled RC test sources.
18612 # Code to be used in simple compile tests
18613 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18615 # Code to be used in simple link tests
18616 lt_simple_link_test_code="$lt_simple_compile_test_code"
18618 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18620 # If no C compiler was specified, use CC.
18623 # Allow CC to be a program name with arguments.
18627 # Allow CC to be a program name with arguments.
18632 lt_cv_prog_compiler_c_o_RC=yes
18634 # The else clause should only fire when bootstrapping the
18635 # libtool distribution, otherwise you forgot to ship ltmain.sh
18636 # with your package, and you will get complaints that there are
18637 # no rules to generate ltmain.sh.
18638 if test -f "$ltmain"; then
18639 # See if we are running on zsh, and set the options which allow our commands through
18640 # without removal of \ escapes.
18641 if test -n "${ZSH_VERSION+set}" ; then
18642 setopt NO_GLOB_SUBST
18644 # Now quote all the things that may contain metacharacters while being
18645 # careful not to overquote the AC_SUBSTed values. We take copies of the
18646 # variables and quote the copies for generation of the libtool script.
18647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18651 deplibs_check_method reload_flag reload_cmds need_locks \
18652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18653 lt_cv_sys_global_symbol_to_c_name_address \
18654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18655 old_postinstall_cmds old_postuninstall_cmds \
18659 lt_prog_compiler_wl_RC \
18660 lt_prog_compiler_pic_RC \
18661 lt_prog_compiler_static_RC \
18662 lt_prog_compiler_no_builtin_flag_RC \
18663 export_dynamic_flag_spec_RC \
18664 thread_safe_flag_spec_RC \
18665 whole_archive_flag_spec_RC \
18666 enable_shared_with_static_runtimes_RC \
18667 old_archive_cmds_RC \
18668 old_archive_from_new_cmds_RC \
18669 predep_objects_RC \
18670 postdep_objects_RC \
18673 compiler_lib_search_path_RC \
18675 archive_expsym_cmds_RC \
18676 postinstall_cmds_RC \
18677 postuninstall_cmds_RC \
18678 old_archive_from_expsyms_cmds_RC \
18679 allow_undefined_flag_RC \
18680 no_undefined_flag_RC \
18681 export_symbols_cmds_RC \
18682 hardcode_libdir_flag_spec_RC \
18683 hardcode_libdir_flag_spec_ld_RC \
18684 hardcode_libdir_separator_RC \
18685 hardcode_automatic_RC \
18687 module_expsym_cmds_RC \
18688 lt_cv_prog_compiler_c_o_RC \
18689 exclude_expsyms_RC \
18690 include_expsyms_RC; do
18693 old_archive_cmds_RC | \
18694 old_archive_from_new_cmds_RC | \
18695 archive_cmds_RC | \
18696 archive_expsym_cmds_RC | \
18698 module_expsym_cmds_RC | \
18699 old_archive_from_expsyms_cmds_RC | \
18700 export_symbols_cmds_RC | \
18701 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18702 postinstall_cmds | postuninstall_cmds | \
18703 old_postinstall_cmds | old_postuninstall_cmds | \
18704 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18705 # Double-quote double-evaled strings.
18706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18715 *'\$0 --fallback-echo"')
18716 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18722 cat <<__EOF__ >> "$cfgfile"
18723 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18727 # Shell to use when invoking shell scripts.
18730 # Whether or not to build shared libraries.
18731 build_libtool_libs=$enable_shared
18733 # Whether or not to build static libraries.
18734 build_old_libs=$enable_static
18736 # Whether or not to add -lc for building shared libraries.
18737 build_libtool_need_lc=$archive_cmds_need_lc_RC
18739 # Whether or not to disallow shared libs when runtime libs are static
18740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18742 # Whether or not to optimize for fast installation.
18743 fast_install=$enable_fast_install
18746 host_alias=$host_alias
18749 # An echo program that does not interpret backslashes.
18754 AR_FLAGS=$lt_AR_FLAGS
18759 # A language-specific compiler.
18762 # Is the compiler the GNU C compiler?
18768 # The linker used to build libraries.
18771 # Whether we need hard or soft links.
18774 # A BSD-compatible nm program.
18777 # A symbol stripping program
18780 # Used to examine libraries when file_magic_cmd begins "file"
18781 MAGIC_CMD=$MAGIC_CMD
18783 # Used on cygwin: DLL creation program.
18786 # Used on cygwin: object dumper.
18789 # Used on cygwin: assembler.
18792 # The name of the directory that contains temporary libtool files.
18795 # How to create reloadable object files.
18796 reload_flag=$lt_reload_flag
18797 reload_cmds=$lt_reload_cmds
18799 # How to pass a linker flag through the compiler.
18800 wl=$lt_lt_prog_compiler_wl_RC
18802 # Object file suffix (normally "o").
18803 objext="$ac_objext"
18805 # Old archive suffix (normally "a").
18808 # Shared library suffix (normally ".so").
18809 shrext_cmds='$shrext_cmds'
18811 # Executable file suffix (normally "").
18814 # Additional compiler flags for building library objects.
18815 pic_flag=$lt_lt_prog_compiler_pic_RC
18818 # What is the maximum length of a command?
18819 max_cmd_len=$lt_cv_sys_max_cmd_len
18821 # Does compiler simultaneously support -c and -o options?
18822 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18824 # Must we lock files when doing compilation ?
18825 need_locks=$lt_need_locks
18827 # Do we need the lib prefix for modules?
18828 need_lib_prefix=$need_lib_prefix
18830 # Do we need a version for libraries?
18831 need_version=$need_version
18833 # Whether dlopen is supported.
18834 dlopen_support=$enable_dlopen
18836 # Whether dlopen of programs is supported.
18837 dlopen_self=$enable_dlopen_self
18839 # Whether dlopen of statically linked programs is supported.
18840 dlopen_self_static=$enable_dlopen_self_static
18842 # Compiler flag to prevent dynamic linking.
18843 link_static_flag=$lt_lt_prog_compiler_static_RC
18845 # Compiler flag to turn off builtin functions.
18846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18848 # Compiler flag to allow reflexive dlopens.
18849 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18851 # Compiler flag to generate shared objects directly from archives.
18852 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18854 # Compiler flag to generate thread-safe objects.
18855 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18857 # Library versioning type.
18858 version_type=$version_type
18860 # Format of library name prefix.
18861 libname_spec=$lt_libname_spec
18863 # List of archive names. First name is the real one, the rest are links.
18864 # The last name is the one that the linker finds with -lNAME.
18865 library_names_spec=$lt_library_names_spec
18867 # The coded name of the library, if different from the real name.
18868 soname_spec=$lt_soname_spec
18870 # Commands used to build and install an old-style archive.
18872 old_archive_cmds=$lt_old_archive_cmds_RC
18873 old_postinstall_cmds=$lt_old_postinstall_cmds
18874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18876 # Create an old-style archive from a shared archive.
18877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18879 # Create a temporary old-style archive to link instead of a shared archive.
18880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18882 # Commands used to build and install a shared archive.
18883 archive_cmds=$lt_archive_cmds_RC
18884 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18885 postinstall_cmds=$lt_postinstall_cmds
18886 postuninstall_cmds=$lt_postuninstall_cmds
18888 # Commands used to build a loadable module (assumed same as above if empty)
18889 module_cmds=$lt_module_cmds_RC
18890 module_expsym_cmds=$lt_module_expsym_cmds_RC
18892 # Commands to strip libraries.
18893 old_striplib=$lt_old_striplib
18894 striplib=$lt_striplib
18896 # Dependencies to place before the objects being linked to create a
18898 predep_objects=$lt_predep_objects_RC
18900 # Dependencies to place after the objects being linked to create a
18902 postdep_objects=$lt_postdep_objects_RC
18904 # Dependencies to place before the objects being linked to create a
18906 predeps=$lt_predeps_RC
18908 # Dependencies to place after the objects being linked to create a
18910 postdeps=$lt_postdeps_RC
18912 # The library search path used internally by the compiler when linking
18913 # a shared library.
18914 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18916 # Method to check whether dependent libraries are shared objects.
18917 deplibs_check_method=$lt_deplibs_check_method
18919 # Command to use when deplibs_check_method == file_magic.
18920 file_magic_cmd=$lt_file_magic_cmd
18922 # Flag that allows shared libraries with undefined symbols to be built.
18923 allow_undefined_flag=$lt_allow_undefined_flag_RC
18925 # Flag that forces no undefined symbols.
18926 no_undefined_flag=$lt_no_undefined_flag_RC
18928 # Commands used to finish a libtool library installation in a directory.
18929 finish_cmds=$lt_finish_cmds
18931 # Same as above, but a single script fragment to be evaled but not shown.
18932 finish_eval=$lt_finish_eval
18934 # Take the output of nm and produce a listing of raw symbols and C names.
18935 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18937 # Transform the output of nm in a proper C declaration
18938 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18940 # Transform the output of nm in a C name address pair
18941 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18943 # This is the shared library runtime path variable.
18944 runpath_var=$runpath_var
18946 # This is the shared library path variable.
18947 shlibpath_var=$shlibpath_var
18949 # Is shlibpath searched before the hard-coded library search path?
18950 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18952 # How to hardcode a shared library path into an executable.
18953 hardcode_action=$hardcode_action_RC
18955 # Whether we should hardcode library paths into libraries.
18956 hardcode_into_libs=$hardcode_into_libs
18958 # Flag to hardcode \$libdir into a binary during linking.
18959 # This must work even if \$libdir does not exist.
18960 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18962 # If ld is used when linking, flag to hardcode \$libdir into
18963 # a binary during linking. This must work even if \$libdir does
18965 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18967 # Whether we need a single -rpath flag with a separated argument.
18968 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18970 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18971 # resulting binary.
18972 hardcode_direct=$hardcode_direct_RC
18974 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18975 # resulting binary.
18976 hardcode_minus_L=$hardcode_minus_L_RC
18978 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18979 # the resulting binary.
18980 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18982 # Set to yes if building a shared library automatically hardcodes DIR into the library
18983 # and all subsequent libraries and executables linked against it.
18984 hardcode_automatic=$hardcode_automatic_RC
18986 # Variables whose values should be saved in libtool wrapper scripts and
18987 # restored at relink time.
18988 variables_saved_for_relink="$variables_saved_for_relink"
18990 # Whether libtool must link a program against all its dependency libraries.
18991 link_all_deplibs=$link_all_deplibs_RC
18993 # Compile-time system search path for libraries
18994 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18996 # Run-time system search path for libraries
18997 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18999 # Fix the shell variable \$srcfile for the compiler.
19000 fix_srcfile_path="$fix_srcfile_path_RC"
19002 # Set to yes if exported symbols are required.
19003 always_export_symbols=$always_export_symbols_RC
19005 # The commands to list exported symbols.
19006 export_symbols_cmds=$lt_export_symbols_cmds_RC
19008 # The commands to extract the exported symbol list from a shared archive.
19009 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19011 # Symbols that should not be listed in the preloaded symbols.
19012 exclude_expsyms=$lt_exclude_expsyms_RC
19014 # Symbols that must always be exported.
19015 include_expsyms=$lt_include_expsyms_RC
19017 # ### END LIBTOOL TAG CONFIG: $tagname
19023 # If there is no Makefile yet, we rely on a make rule to execute
19024 # `config.status --recheck' to rerun these tests and create the
19025 # libtool script then.
19026 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19027 if test -f "$ltmain_in"; then
19028 test -f Makefile && make "$ltmain"
19034 ac_cpp='$CPP $CPPFLAGS'
19035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19044 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19045 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19046 { (exit 1); exit 1; }; }
19050 # Append the new tag name to the list of available tags.
19051 if test -n "$tagname" ; then
19052 available_tags="$available_tags $tagname"
19058 # Now substitute the updated list of available tags.
19059 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19060 mv "${ofile}T" "$ofile"
19064 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19065 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19066 { (exit 1); exit 1; }; }
19072 # This can be used to rebuild libtool when needed
19073 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19075 # Always use our own libtool.
19076 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19078 # Prevent multiple expansion
19101 ac_cpp='$CXXCPP $CPPFLAGS'
19102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19108 # Check whether --with-libusb or --without-libusb was given.
19109 if test "${with_libusb+set}" = set; then
19110 withval="$with_libusb"
19111 LIBUSB_LIB_PATH="$with_libusb/lib"
19112 LIBUSB_INC_PATH="$with_libusb/include"
19114 LIBUSB_LIB_PATH="/usr/lib"
19115 LIBUSB_INC_PATH="/usr/include"
19118 # Check whether --with-boost or --without-boost was given.
19119 if test "${with_boost+set}" = set; then
19120 withval="$with_boost"
19121 BOOST_LIB_PATH="$with_boost/lib"
19122 BOOST_INC_PATH="$with_boost/include"
19123 BOOST_ENABLED="true"
19125 BOOST_LIB_PATH="/usr/lib"
19126 BOOST_INC_PATH="/usr/include"
19136 if test "$BOOST_ENABLED" = "true"; then
19138 WITH_BOOST_FALSE='#'
19140 WITH_BOOST_TRUE='#'
19145 # Checks for libraries.
19146 #AC_CHECK_LIB([IOKit], [main])
19148 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
19149 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
19150 if test "${ac_cv_lib_pthread_main+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 ac_check_lib_save_LIBS=$LIBS
19154 LIBS="-lpthread $LIBS"
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19171 rm -f conftest.$ac_objext conftest$ac_exeext
19172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19173 (eval $ac_link) 2>conftest.er1
19175 grep -v '^ *+' conftest.er1 >conftest.err
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } &&
19180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest$ac_exeext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_lib_pthread_main=yes
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ac_cv_lib_pthread_main=no
19199 rm -f conftest.err conftest.$ac_objext \
19200 conftest$ac_exeext conftest.$ac_ext
19201 LIBS=$ac_check_lib_save_LIBS
19203 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
19204 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
19205 if test $ac_cv_lib_pthread_main = yes; then
19206 cat >>confdefs.h <<_ACEOF
19207 @%:@define HAVE_LIBPTHREAD 1
19210 LIBS="-lpthread $LIBS"
19214 #AC_CHECK_LIB([libusb], [libusb_init])
19216 # Checks for header files.
19222 ac_header_dirent=no
19223 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19224 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19225 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19226 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 cat >conftest.$ac_ext <<_ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19236 #include <sys/types.h>
19248 rm -f conftest.$ac_objext
19249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19250 (eval $ac_compile) 2>conftest.er1
19252 grep -v '^ *+' conftest.er1 >conftest.err
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
19257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } &&
19263 { ac_try='test -s conftest.$ac_objext'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 eval "$as_ac_Header=yes"
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 eval "$as_ac_Header=no"
19276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19281 cat >>confdefs.h <<_ACEOF
19282 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19285 ac_header_dirent=$ac_hdr; break
19289 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19290 if test $ac_header_dirent = dirent.h; then
19291 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19292 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19293 if test "${ac_cv_search_opendir+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 ac_func_search_save_LIBS=$LIBS
19297 ac_cv_search_opendir=no
19298 cat >conftest.$ac_ext <<_ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19305 /* Override any gcc2 internal prototype to avoid an error. */
19309 /* We use char because int might match the return type of a gcc2
19310 builtin and then its argument prototype would still apply. */
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19322 (eval $ac_link) 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; } &&
19335 { ac_try='test -s conftest$ac_exeext'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
19341 ac_cv_search_opendir="none required"
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19347 rm -f conftest.err conftest.$ac_objext \
19348 conftest$ac_exeext conftest.$ac_ext
19349 if test "$ac_cv_search_opendir" = no; then
19350 for ac_lib in dir; do
19351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19359 /* Override any gcc2 internal prototype to avoid an error. */
19363 /* We use char because int might match the return type of a gcc2
19364 builtin and then its argument prototype would still apply. */
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19376 (eval $ac_link) 2>conftest.er1
19378 grep -v '^ *+' conftest.er1 >conftest.err
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest$ac_exeext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_cv_search_opendir="-l$ac_lib"
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19402 rm -f conftest.err conftest.$ac_objext \
19403 conftest$ac_exeext conftest.$ac_ext
19406 LIBS=$ac_func_search_save_LIBS
19408 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19409 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19410 if test "$ac_cv_search_opendir" != no; then
19411 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19416 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19417 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19418 if test "${ac_cv_search_opendir+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19421 ac_func_search_save_LIBS=$LIBS
19422 ac_cv_search_opendir=no
19423 cat >conftest.$ac_ext <<_ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19430 /* Override any gcc2 internal prototype to avoid an error. */
19434 /* We use char because int might match the return type of a gcc2
19435 builtin and then its argument prototype would still apply. */
19445 rm -f conftest.$ac_objext conftest$ac_exeext
19446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19447 (eval $ac_link) 2>conftest.er1
19449 grep -v '^ *+' conftest.er1 >conftest.err
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
19454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest$ac_exeext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_cv_search_opendir="none required"
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19472 rm -f conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19474 if test "$ac_cv_search_opendir" = no; then
19475 for ac_lib in x; do
19476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19484 /* Override any gcc2 internal prototype to avoid an error. */
19488 /* We use char because int might match the return type of a gcc2
19489 builtin and then its argument prototype would still apply. */
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19501 (eval $ac_link) 2>conftest.er1
19503 grep -v '^ *+' conftest.er1 >conftest.err
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest$ac_exeext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 ac_cv_search_opendir="-l$ac_lib"
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19527 rm -f conftest.err conftest.$ac_objext \
19528 conftest$ac_exeext conftest.$ac_ext
19531 LIBS=$ac_func_search_save_LIBS
19533 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19534 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19535 if test "$ac_cv_search_opendir" != no; then
19536 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19543 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19544 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19545 if test "${ac_cv_header_stdc+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 cat >conftest.$ac_ext <<_ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19554 #include <stdlib.h>
19555 #include <stdarg.h>
19556 #include <string.h>
19567 rm -f conftest.$ac_objext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569 (eval $ac_compile) 2>conftest.er1
19571 grep -v '^ *+' conftest.er1 >conftest.err
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
19576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 ac_cv_header_stdc=yes
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 ac_cv_header_stdc=no
19595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19597 if test $ac_cv_header_stdc = yes; then
19598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 #include <string.h>
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609 $EGREP "memchr" >/dev/null 2>&1; then
19612 ac_cv_header_stdc=no
19618 if test $ac_cv_header_stdc = yes; then
19619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19620 cat >conftest.$ac_ext <<_ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19626 #include <stdlib.h>
19629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19630 $EGREP "free" >/dev/null 2>&1; then
19633 ac_cv_header_stdc=no
19639 if test $ac_cv_header_stdc = yes; then
19640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19641 if test "$cross_compiling" = yes; then
19644 cat >conftest.$ac_ext <<_ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19651 #if ((' ' & 0x0FF) == 0x020)
19652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19655 # define ISLOWER(c) \
19656 (('a' <= (c) && (c) <= 'i') \
19657 || ('j' <= (c) && (c) <= 'r') \
19658 || ('s' <= (c) && (c) <= 'z'))
19659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19667 for (i = 0; i < 256; i++)
19668 if (XOR (islower (i), ISLOWER (i))
19669 || toupper (i) != TOUPPER (i))
19674 rm -f conftest$ac_exeext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19676 (eval $ac_link) 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; }; then
19687 echo "$as_me: program exited with status $ac_status" >&5
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19691 ( exit $ac_status )
19692 ac_cv_header_stdc=no
19694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19698 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19699 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19700 if test $ac_cv_header_stdc = yes; then
19702 cat >>confdefs.h <<\_ACEOF
19703 @%:@define STDC_HEADERS 1
19711 for ac_header in assert.h stdint.h time.h
19713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19715 echo "$as_me:$LINENO: checking for $ac_header" >&5
19716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19723 # Is the header compilable?
19724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19726 cat >conftest.$ac_ext <<_ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19732 $ac_includes_default
19733 @%:@include <$ac_header>
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; } &&
19750 { ac_try='test -s conftest.$ac_objext'
19751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752 (eval $ac_try) 2>&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; }; then
19756 ac_header_compiler=yes
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19761 ac_header_compiler=no
19763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19765 echo "${ECHO_T}$ac_header_compiler" >&6
19767 # Is the header present?
19768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19770 cat >conftest.$ac_ext <<_ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19776 @%:@include <$ac_header>
19778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19781 grep -v '^ *+' conftest.er1 >conftest.err
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } >/dev/null; then
19786 if test -s conftest.err; then
19787 ac_cpp_err=$ac_cxx_preproc_warn_flag
19788 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19795 if test -z "$ac_cpp_err"; then
19796 ac_header_preproc=yes
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_header_preproc=no
19803 rm -f conftest.err conftest.$ac_ext
19804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19805 echo "${ECHO_T}$ac_header_preproc" >&6
19807 # So? What about this header?
19808 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19814 ac_header_preproc=yes
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19831 @%:@@%:@ ------------------------------------------------ @%:@@%:@
19832 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
19833 @%:@@%:@ ------------------------------------------------ @%:@@%:@
19836 sed "s/^/$as_me: WARNING: /" >&2
19839 echo "$as_me:$LINENO: checking for $ac_header" >&5
19840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 eval "$as_ac_Header=\$ac_header_preproc"
19846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19851 cat >>confdefs.h <<_ACEOF
19852 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19860 # Checks for typedefs, structures, and compiler characteristics.
19862 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19863 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19864 if test "${ac_cv_header_time+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 #include <sys/types.h>
19874 #include <sys/time.h>
19880 if ((struct tm *) 0)
19886 rm -f conftest.$ac_objext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888 (eval $ac_compile) 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } &&
19895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; } &&
19901 { ac_try='test -s conftest.$ac_objext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_cv_header_time=yes
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ac_cv_header_time=no
19914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19916 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19917 echo "${ECHO_T}$ac_cv_header_time" >&6
19918 if test $ac_cv_header_time = yes; then
19920 cat >>confdefs.h <<\_ACEOF
19921 @%:@define TIME_WITH_SYS_TIME 1
19926 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19927 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19928 if test "${ac_cv_struct_tm+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 cat >conftest.$ac_ext <<_ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 #include <sys/types.h>
19943 struct tm *tp; tp->tm_sec;
19948 rm -f conftest.$ac_objext
19949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19950 (eval $ac_compile) 2>conftest.er1
19952 grep -v '^ *+' conftest.er1 >conftest.err
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } &&
19957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; } &&
19963 { ac_try='test -s conftest.$ac_objext'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; }; then
19969 ac_cv_struct_tm=time.h
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19974 ac_cv_struct_tm=sys/time.h
19976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19978 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19979 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19980 if test $ac_cv_struct_tm = sys/time.h; then
19982 cat >>confdefs.h <<\_ACEOF
19983 @%:@define TM_IN_SYS_TIME 1
19989 # Checks for library functions.
19990 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19991 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19992 if test "${ac_cv_func_closedir_void+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 if test "$cross_compiling" = yes; then
19996 ac_cv_func_closedir_void=yes
19998 cat >conftest.$ac_ext <<_ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20004 $ac_includes_default
20005 #include <$ac_header_dirent>
20006 #ifndef __cplusplus
20013 exit (closedir (opendir (".")) != 0);
20018 rm -f conftest$ac_exeext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20020 (eval $ac_link) 2>&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; }; then
20029 ac_cv_func_closedir_void=no
20031 echo "$as_me: program exited with status $ac_status" >&5
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20035 ( exit $ac_status )
20036 ac_cv_func_closedir_void=yes
20038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20041 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20042 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20043 if test $ac_cv_func_closedir_void = yes; then
20045 cat >>confdefs.h <<\_ACEOF
20046 @%:@define CLOSEDIR_VOID 1
20051 if test $ac_cv_c_compiler_gnu = yes; then
20052 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20053 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20054 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 ac_pattern="Autoconf.*'x'"
20058 cat >conftest.$ac_ext <<_ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20068 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20069 ac_cv_prog_gcc_traditional=yes
20071 ac_cv_prog_gcc_traditional=no
20076 if test $ac_cv_prog_gcc_traditional = no; then
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 #include <termio.h>
20086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20087 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20088 ac_cv_prog_gcc_traditional=yes
20094 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20095 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20096 if test $ac_cv_prog_gcc_traditional = yes; then
20097 CC="$CC -traditional"
20102 for ac_header in stdlib.h
20104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20106 echo "$as_me:$LINENO: checking for $ac_header" >&5
20107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20114 # Is the header compilable?
20115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20117 cat >conftest.$ac_ext <<_ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 $ac_includes_default
20124 @%:@include <$ac_header>
20126 rm -f conftest.$ac_objext
20127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20128 (eval $ac_compile) 2>conftest.er1
20130 grep -v '^ *+' conftest.er1 >conftest.err
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } &&
20135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; } &&
20141 { ac_try='test -s conftest.$ac_objext'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 ac_header_compiler=yes
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152 ac_header_compiler=no
20154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20156 echo "${ECHO_T}$ac_header_compiler" >&6
20158 # Is the header present?
20159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20161 cat >conftest.$ac_ext <<_ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 @%:@include <$ac_header>
20169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } >/dev/null; then
20177 if test -s conftest.err; then
20178 ac_cpp_err=$ac_cxx_preproc_warn_flag
20179 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20186 if test -z "$ac_cpp_err"; then
20187 ac_header_preproc=yes
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 ac_header_preproc=no
20194 rm -f conftest.err conftest.$ac_ext
20195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20196 echo "${ECHO_T}$ac_header_preproc" >&6
20198 # So? What about this header?
20199 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20205 ac_header_preproc=yes
20208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20222 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20223 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
20224 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20227 sed "s/^/$as_me: WARNING: /" >&2
20230 echo "$as_me:$LINENO: checking for $ac_header" >&5
20231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 eval "$as_ac_Header=\$ac_header_preproc"
20237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20242 cat >>confdefs.h <<_ACEOF
20243 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20250 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20251 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20252 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 if test "$cross_compiling" = yes; then
20256 ac_cv_func_malloc_0_nonnull=no
20258 cat >conftest.$ac_ext <<_ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 #if STDC_HEADERS || HAVE_STDLIB_H
20265 # include <stdlib.h>
20273 exit (malloc (0) ? 0 : 1);
20278 rm -f conftest$ac_exeext
20279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20280 (eval $ac_link) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 ac_cv_func_malloc_0_nonnull=yes
20291 echo "$as_me: program exited with status $ac_status" >&5
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ( exit $ac_status )
20296 ac_cv_func_malloc_0_nonnull=no
20298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20301 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20302 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20303 if test $ac_cv_func_malloc_0_nonnull = yes; then
20305 cat >>confdefs.h <<\_ACEOF
20306 @%:@define HAVE_MALLOC 1
20310 cat >>confdefs.h <<\_ACEOF
20311 @%:@define HAVE_MALLOC 0
20314 case $LIB@&t@OBJS in
20315 "malloc.$ac_objext" | \
20316 *" malloc.$ac_objext" | \
20317 "malloc.$ac_objext "* | \
20318 *" malloc.$ac_objext "* ) ;;
20319 *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" ;;
20323 cat >>confdefs.h <<\_ACEOF
20324 @%:@define malloc rpl_malloc
20334 for ac_header in stdlib.h sys/time.h unistd.h
20336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20338 echo "$as_me:$LINENO: checking for $ac_header" >&5
20339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20346 # Is the header compilable?
20347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20349 cat >conftest.$ac_ext <<_ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 $ac_includes_default
20356 @%:@include <$ac_header>
20358 rm -f conftest.$ac_objext
20359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20360 (eval $ac_compile) 2>conftest.er1
20362 grep -v '^ *+' conftest.er1 >conftest.err
20364 cat conftest.err >&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); } &&
20367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest.$ac_objext'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_header_compiler=yes
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ac_header_compiler=no
20386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20388 echo "${ECHO_T}$ac_header_compiler" >&6
20390 # Is the header present?
20391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20393 cat >conftest.$ac_ext <<_ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 @%:@include <$ac_header>
20401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20404 grep -v '^ *+' conftest.er1 >conftest.err
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } >/dev/null; then
20409 if test -s conftest.err; then
20410 ac_cpp_err=$ac_cxx_preproc_warn_flag
20411 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20418 if test -z "$ac_cpp_err"; then
20419 ac_header_preproc=yes
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 ac_header_preproc=no
20426 rm -f conftest.err conftest.$ac_ext
20427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20428 echo "${ECHO_T}$ac_header_preproc" >&6
20430 # So? What about this header?
20431 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20437 ac_header_preproc=yes
20440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20454 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20455 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
20456 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20459 sed "s/^/$as_me: WARNING: /" >&2
20462 echo "$as_me:$LINENO: checking for $ac_header" >&5
20463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 eval "$as_ac_Header=\$ac_header_preproc"
20469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20474 cat >>confdefs.h <<_ACEOF
20475 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20483 for ac_func in alarm
20485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20486 echo "$as_me:$LINENO: checking for $ac_func" >&5
20487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20488 if eval "test \"\${$as_ac_var+set}\" = set"; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20499 #define $ac_func innocuous_$ac_func
20501 /* System header to define __stub macros and hopefully few prototypes,
20502 which can conflict with char $ac_func (); below.
20503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20504 <limits.h> exists even on freestanding compilers. */
20507 # include <limits.h>
20509 # include <assert.h>
20514 /* Override any gcc2 internal prototype to avoid an error. */
20519 /* We use char because int might match the return type of a gcc2
20520 builtin and then its argument prototype would still apply. */
20522 /* The GNU C library defines this for functions which it implements
20523 to always fail with ENOSYS. Some functions are actually named
20524 something starting with __ and the normal name is an alias. */
20525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20528 char (*f) () = $ac_func;
20537 return f != $ac_func;
20542 rm -f conftest.$ac_objext conftest$ac_exeext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20544 (eval $ac_link) 2>conftest.er1
20546 grep -v '^ *+' conftest.er1 >conftest.err
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
20551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; } &&
20557 { ac_try='test -s conftest$ac_exeext'
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
20563 eval "$as_ac_var=yes"
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20568 eval "$as_ac_var=no"
20570 rm -f conftest.err conftest.$ac_objext \
20571 conftest$ac_exeext conftest.$ac_ext
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20575 if test `eval echo '${'$as_ac_var'}'` = yes; then
20576 cat >>confdefs.h <<_ACEOF
20577 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20583 echo "$as_me:$LINENO: checking for working mktime" >&5
20584 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
20585 if test "${ac_cv_func_working_mktime+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20588 if test "$cross_compiling" = yes; then
20589 ac_cv_func_working_mktime=no
20591 cat >conftest.$ac_ext <<_ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 /* Test program from Paul Eggert and Tony Leneis. */
20598 #if TIME_WITH_SYS_TIME
20599 # include <sys/time.h>
20602 # if HAVE_SYS_TIME_H
20603 # include <sys/time.h>
20610 # include <stdlib.h>
20614 # include <unistd.h>
20618 # define alarm(X) /* empty */
20621 /* Work around redefinition to rpl_putenv by other config tests. */
20624 static time_t time_t_max;
20625 static time_t time_t_min;
20627 /* Values we'll use to set the TZ environment variable. */
20628 static char *tz_strings[] = {
20629 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20630 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20632 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20634 /* Fail if mktime fails to convert a date in the spring-forward gap.
20635 Based on a problem report from Andreas Jaeger. */
20637 spring_forward_gap ()
20639 /* glibc (up to about 1998-10-07) failed this test. */
20642 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20643 instead of "TZ=America/Vancouver" in order to detect the bug even
20644 on systems that don't support the Olson extension, or don't have the
20645 full zoneinfo tables installed. */
20646 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20655 if (mktime (&tm) == (time_t)-1)
20664 if ((lt = localtime (&now)) && mktime (lt) != now)
20672 mktime_test1 (now);
20673 mktime_test1 ((time_t) (time_t_max - now));
20674 mktime_test1 ((time_t) (time_t_min + now));
20680 /* Based on code from Ariel Faigon. */
20690 if (tm.tm_mon != 2 || tm.tm_mday != 31)
20700 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20701 now = mktime (&tm);
20702 if (now != (time_t) -1)
20704 struct tm *lt = localtime (&now);
20706 && lt->tm_year == tm.tm_year
20707 && lt->tm_mon == tm.tm_mon
20708 && lt->tm_mday == tm.tm_mday
20709 && lt->tm_hour == tm.tm_hour
20710 && lt->tm_min == tm.tm_min
20711 && lt->tm_sec == tm.tm_sec
20712 && lt->tm_yday == tm.tm_yday
20713 && lt->tm_wday == tm.tm_wday
20714 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20715 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20726 /* This test makes some buggy mktime implementations loop.
20727 Give up after 60 seconds; a mktime slower than that
20728 isn't worth using anyway. */
20731 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
20734 if ((time_t) -1 < 0)
20735 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
20737 delta = time_t_max / 997; /* a suitable prime number */
20738 for (i = 0; i < N_STRINGS; i++)
20741 putenv (tz_strings[i]);
20743 for (t = 0; t <= time_t_max - delta; t += delta)
20745 mktime_test ((time_t) 1);
20746 mktime_test ((time_t) (60 * 60));
20747 mktime_test ((time_t) (60 * 60 * 24));
20749 for (j = 1; 0 < j; j *= 2)
20751 bigtime_test (j - 1);
20754 spring_forward_gap ();
20758 rm -f conftest$ac_exeext
20759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20760 (eval $ac_link) 2>&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; }; then
20769 ac_cv_func_working_mktime=yes
20771 echo "$as_me: program exited with status $ac_status" >&5
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 ( exit $ac_status )
20776 ac_cv_func_working_mktime=no
20778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20781 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
20782 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
20783 if test $ac_cv_func_working_mktime = no; then
20784 case $LIB@&t@OBJS in
20785 "mktime.$ac_objext" | \
20786 *" mktime.$ac_objext" | \
20787 "mktime.$ac_objext "* | \
20788 *" mktime.$ac_objext "* ) ;;
20789 *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext" ;;
20795 for ac_header in stdlib.h
20797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20799 echo "$as_me:$LINENO: checking for $ac_header" >&5
20800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20807 # Is the header compilable?
20808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20810 cat >conftest.$ac_ext <<_ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20816 $ac_includes_default
20817 @%:@include <$ac_header>
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20821 (eval $ac_compile) 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; } &&
20834 { ac_try='test -s conftest.$ac_objext'
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840 ac_header_compiler=yes
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 ac_header_compiler=no
20847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20849 echo "${ECHO_T}$ac_header_compiler" >&6
20851 # Is the header present?
20852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860 @%:@include <$ac_header>
20862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20865 grep -v '^ *+' conftest.er1 >conftest.err
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } >/dev/null; then
20870 if test -s conftest.err; then
20871 ac_cpp_err=$ac_cxx_preproc_warn_flag
20872 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20879 if test -z "$ac_cpp_err"; then
20880 ac_header_preproc=yes
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20885 ac_header_preproc=no
20887 rm -f conftest.err conftest.$ac_ext
20888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20889 echo "${ECHO_T}$ac_header_preproc" >&6
20891 # So? What about this header?
20892 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20898 ac_header_preproc=yes
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20915 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20916 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
20917 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20920 sed "s/^/$as_me: WARNING: /" >&2
20923 echo "$as_me:$LINENO: checking for $ac_header" >&5
20924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20928 eval "$as_ac_Header=\$ac_header_preproc"
20930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20935 cat >>confdefs.h <<_ACEOF
20936 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20943 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
20944 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
20945 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 if test "$cross_compiling" = yes; then
20949 ac_cv_func_realloc_0_nonnull=no
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 #if STDC_HEADERS || HAVE_STDLIB_H
20958 # include <stdlib.h>
20966 exit (realloc (0, 0) ? 0 : 1);
20971 rm -f conftest$ac_exeext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20973 (eval $ac_link) 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978 (eval $ac_try) 2>&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); }; }; then
20982 ac_cv_func_realloc_0_nonnull=yes
20984 echo "$as_me: program exited with status $ac_status" >&5
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20988 ( exit $ac_status )
20989 ac_cv_func_realloc_0_nonnull=no
20991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20994 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
20995 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
20996 if test $ac_cv_func_realloc_0_nonnull = yes; then
20998 cat >>confdefs.h <<\_ACEOF
20999 @%:@define HAVE_REALLOC 1
21003 cat >>confdefs.h <<\_ACEOF
21004 @%:@define HAVE_REALLOC 0
21007 case $LIB@&t@OBJS in
21008 "realloc.$ac_objext" | \
21009 *" realloc.$ac_objext" | \
21010 "realloc.$ac_objext "* | \
21011 *" realloc.$ac_objext "* ) ;;
21012 *) LIB@&t@OBJS="$LIB@&t@OBJS realloc.$ac_objext" ;;
21016 cat >>confdefs.h <<\_ACEOF
21017 @%:@define realloc rpl_realloc
21026 for ac_header in sys/select.h sys/socket.h
21028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21030 echo "$as_me:$LINENO: checking for $ac_header" >&5
21031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21038 # Is the header compilable?
21039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21041 cat >conftest.$ac_ext <<_ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21047 $ac_includes_default
21048 @%:@include <$ac_header>
21050 rm -f conftest.$ac_objext
21051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21052 (eval $ac_compile) 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } &&
21059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061 (eval $ac_try) 2>&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); }; } &&
21065 { ac_try='test -s conftest.$ac_objext'
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; }; then
21071 ac_header_compiler=yes
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21076 ac_header_compiler=no
21078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21080 echo "${ECHO_T}$ac_header_compiler" >&6
21082 # Is the header present?
21083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21085 cat >conftest.$ac_ext <<_ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 @%:@include <$ac_header>
21093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21096 grep -v '^ *+' conftest.er1 >conftest.err
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } >/dev/null; then
21101 if test -s conftest.err; then
21102 ac_cpp_err=$ac_cxx_preproc_warn_flag
21103 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21110 if test -z "$ac_cpp_err"; then
21111 ac_header_preproc=yes
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ac_header_preproc=no
21118 rm -f conftest.err conftest.$ac_ext
21119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21120 echo "${ECHO_T}$ac_header_preproc" >&6
21122 # So? What about this header?
21123 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21129 ac_header_preproc=yes
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21146 @%:@@%:@ ------------------------------------------------ @%:@@%:@
21147 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
21148 @%:@@%:@ ------------------------------------------------ @%:@@%:@
21151 sed "s/^/$as_me: WARNING: /" >&2
21154 echo "$as_me:$LINENO: checking for $ac_header" >&5
21155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21159 eval "$as_ac_Header=\$ac_header_preproc"
21161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21166 cat >>confdefs.h <<_ACEOF
21167 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21174 echo "$as_me:$LINENO: checking types of arguments for select" >&5
21175 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
21176 if test "${ac_cv_func_select_args+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21180 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
21181 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 $ac_includes_default
21189 #if HAVE_SYS_SELECT_H
21190 # include <sys/select.h>
21192 #if HAVE_SYS_SOCKET_H
21193 # include <sys/socket.h>
21199 extern int select ($ac_arg1,
21200 $ac_arg234, $ac_arg234, $ac_arg234,
21206 rm -f conftest.$ac_objext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21208 (eval $ac_compile) 2>conftest.er1
21210 grep -v '^ *+' conftest.er1 >conftest.err
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } &&
21215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; } &&
21221 { ac_try='test -s conftest.$ac_objext'
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; }; then
21227 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21237 # Provide a safe default value.
21238 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21241 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21242 echo "${ECHO_T}$ac_cv_func_select_args" >&6
21243 ac_save_IFS=$IFS; IFS=','
21244 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21248 cat >>confdefs.h <<_ACEOF
21249 @%:@define SELECT_TYPE_ARG1 $1
21253 cat >>confdefs.h <<_ACEOF
21254 @%:@define SELECT_TYPE_ARG234 ($2)
21258 cat >>confdefs.h <<_ACEOF
21259 @%:@define SELECT_TYPE_ARG5 ($3)
21264 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21265 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
21266 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21269 rm -f conftest.sym conftest.file
21270 echo >conftest.file
21271 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21272 if test "$cross_compiling" = yes; then
21273 ac_cv_func_lstat_dereferences_slashed_symlink=no
21275 cat >conftest.$ac_ext <<_ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21281 $ac_includes_default
21286 /* Linux will dereference the symlink and fail.
21287 That is better in the sense that it means we will not
21288 have to compile and use the lstat wrapper. */
21289 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
21294 rm -f conftest$ac_exeext
21295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21296 (eval $ac_link) 2>&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 ac_cv_func_lstat_dereferences_slashed_symlink=yes
21307 echo "$as_me: program exited with status $ac_status" >&5
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ( exit $ac_status )
21312 ac_cv_func_lstat_dereferences_slashed_symlink=no
21314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21317 # If the `ln -s' command failed, then we probably don't even
21318 # have an lstat function.
21319 ac_cv_func_lstat_dereferences_slashed_symlink=no
21321 rm -f conftest.sym conftest.file
21324 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21325 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
21327 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21329 cat >>confdefs.h <<_ACEOF
21330 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21334 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21335 case $LIB@&t@OBJS in
21336 "lstat.$ac_objext" | \
21337 *" lstat.$ac_objext" | \
21338 "lstat.$ac_objext "* | \
21339 *" lstat.$ac_objext "* ) ;;
21340 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" ;;
21345 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21346 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
21347 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
21350 if test "$cross_compiling" = yes; then
21351 ac_cv_func_stat_empty_string_bug=yes
21353 cat >conftest.$ac_ext <<_ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21359 $ac_includes_default
21364 exit (stat ("", &sbuf) ? 1 : 0);
21369 rm -f conftest$ac_exeext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371 (eval $ac_link) 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 ac_cv_func_stat_empty_string_bug=yes
21382 echo "$as_me: program exited with status $ac_status" >&5
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 ( exit $ac_status )
21387 ac_cv_func_stat_empty_string_bug=no
21389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21392 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
21393 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
21394 if test $ac_cv_func_stat_empty_string_bug = yes; then
21395 case $LIB@&t@OBJS in
21396 "stat.$ac_objext" | \
21397 *" stat.$ac_objext" | \
21398 "stat.$ac_objext "* | \
21399 *" stat.$ac_objext "* ) ;;
21400 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext" ;;
21404 cat >>confdefs.h <<_ACEOF
21405 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
21419 for ac_func in bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul
21421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21422 echo "$as_me:$LINENO: checking for $ac_func" >&5
21423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21424 if eval "test \"\${$as_ac_var+set}\" = set"; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21435 #define $ac_func innocuous_$ac_func
21437 /* System header to define __stub macros and hopefully few prototypes,
21438 which can conflict with char $ac_func (); below.
21439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21440 <limits.h> exists even on freestanding compilers. */
21443 # include <limits.h>
21445 # include <assert.h>
21450 /* Override any gcc2 internal prototype to avoid an error. */
21455 /* We use char because int might match the return type of a gcc2
21456 builtin and then its argument prototype would still apply. */
21458 /* The GNU C library defines this for functions which it implements
21459 to always fail with ENOSYS. Some functions are actually named
21460 something starting with __ and the normal name is an alias. */
21461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21464 char (*f) () = $ac_func;
21473 return f != $ac_func;
21478 rm -f conftest.$ac_objext conftest$ac_exeext
21479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21480 (eval $ac_link) 2>conftest.er1
21482 grep -v '^ *+' conftest.er1 >conftest.err
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } &&
21487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; } &&
21493 { ac_try='test -s conftest$ac_exeext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 eval "$as_ac_var=yes"
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 eval "$as_ac_var=no"
21506 rm -f conftest.err conftest.$ac_objext \
21507 conftest$ac_exeext conftest.$ac_ext
21509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21511 if test `eval echo '${'$as_ac_var'}'` = yes; then
21512 cat >>confdefs.h <<_ACEOF
21513 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21520 ac_config_files="$ac_config_files Makefile src/Makefile tools/Makefile examples/Makefile man/Makefile"
21522 cat >confcache <<\_ACEOF
21523 # This file is a shell script that caches the results of configure
21524 # tests run on this system so they can be shared between configure
21525 # scripts and configure runs, see configure's option --config-cache.
21526 # It is not useful on other systems. If it contains results you don't
21527 # want to keep, you may remove or edit it.
21529 # config.status only pays attention to the cache file if you give it
21530 # the --recheck option to rerun configure.
21532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21534 # following values.
21538 # The following way of writing the cache mishandles newlines in values,
21539 # but we know of no workaround that is simple, portable, and efficient.
21540 # So, don't put newlines in cache variables' values.
21541 # Ultrix sh set writes to stderr and can't be redirected directly,
21542 # and sets the high bit in the cache file unless we assign to the vars.
21545 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21547 # `set' does not quote correctly, so add quotes (double-quote
21548 # substitution turns \\\\ into \\, and sed turns \\ into \).
21551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21554 # `set' quotes correctly as required by POSIX, so do not add quotes.
21556 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21565 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21567 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21568 if test -w $cache_file; then
21569 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21570 cat confcache >$cache_file
21572 echo "not updating unwritable cache $cache_file"
21577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21578 # Let make expand exec_prefix.
21579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21581 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21582 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21583 # trailing colons and then remove the whole line if VPATH becomes empty
21584 # (actually we leave an empty line to preserve line numbers).
21585 if test "x$srcdir" = x.; then
21586 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21587 s/:*\$(srcdir):*/:/;
21588 s/:*\${srcdir}:*/:/;
21590 s/^\([^=]*=[ ]*\):*/\1/;
21596 DEFS=-DHAVE_CONFIG_H
21600 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21601 # 1. Remove the extension, and $U if already installed.
21602 ac_i=`echo "$ac_i" |
21603 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21605 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21606 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21608 LIB@&t@OBJS=$ac_libobjs
21610 LTLIBOBJS=$ac_ltlibobjs
21613 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21614 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21615 Usually this means the macro was only invoked conditionally." >&5
21616 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21617 Usually this means the macro was only invoked conditionally." >&2;}
21618 { (exit 1); exit 1; }; }
21620 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21621 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21622 Usually this means the macro was only invoked conditionally." >&5
21623 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21624 Usually this means the macro was only invoked conditionally." >&2;}
21625 { (exit 1); exit 1; }; }
21627 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21628 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21629 Usually this means the macro was only invoked conditionally." >&5
21630 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21631 Usually this means the macro was only invoked conditionally." >&2;}
21632 { (exit 1); exit 1; }; }
21634 if test -z "${WITH_BOOST_TRUE}" && test -z "${WITH_BOOST_FALSE}"; then
21635 { { echo "$as_me:$LINENO: error: conditional \"WITH_BOOST\" was never defined.
21636 Usually this means the macro was only invoked conditionally." >&5
21637 echo "$as_me: error: conditional \"WITH_BOOST\" was never defined.
21638 Usually this means the macro was only invoked conditionally." >&2;}
21639 { (exit 1); exit 1; }; }
21642 : ${CONFIG_STATUS=./config.status}
21643 ac_clean_files_save=$ac_clean_files
21644 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21645 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21646 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21647 cat >$CONFIG_STATUS <<_ACEOF
21649 # Generated by $as_me.
21650 # Run this file to recreate the current configuration.
21651 # Compiler output produced by configure, useful for debugging
21652 # configure, is in config.log if it exists.
21655 ac_cs_recheck=false
21657 SHELL=\${CONFIG_SHELL-$SHELL}
21660 cat >>$CONFIG_STATUS <<\_ACEOF
21661 ## --------------------- ##
21662 ## M4sh Initialization. ##
21663 ## --------------------- ##
21665 # Be Bourne compatible
21666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21669 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21670 # is contrary to our usage. Disable this feature.
21671 alias -g '${1+"$@"}'='"$@"'
21672 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21675 DUALCASE=1; export DUALCASE # for MKS sh
21677 # Support unset when possible.
21678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21685 # Work around bugs in pre-3.0 UWIN ksh.
21686 $as_unset ENV MAIL MAILPATH
21693 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21694 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21695 LC_TELEPHONE LC_TIME
21697 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21698 eval $as_var=C; export $as_var
21704 # Required to use basename.
21705 if expr a : '\(a\)' >/dev/null 2>&1; then
21711 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21712 as_basename=basename
21718 # Name of the executable.
21719 as_me=`$as_basename "$0" ||
21720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21721 X"$0" : 'X\(//\)$' \| \
21722 X"$0" : 'X\(/\)$' \| \
21723 . : '\(.\)' 2>/dev/null ||
21725 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21726 /^X\/\(\/\/\)$/{ s//\1/; q; }
21727 /^X\/\(\/\).*/{ s//\1/; q; }
21731 # PATH needs CR, and LINENO needs CR and PATH.
21732 # Avoid depending upon Character Ranges.
21733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21736 as_cr_digits='0123456789'
21737 as_cr_alnum=$as_cr_Letters$as_cr_digits
21739 # The user is always right.
21740 if test "${PATH_SEPARATOR+set}" != set; then
21741 echo "#! /bin/sh" >conf$$.sh
21742 echo "exit 0" >>conf$$.sh
21744 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21753 as_lineno_1=$LINENO
21754 as_lineno_2=$LINENO
21755 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21756 test "x$as_lineno_1" != "x$as_lineno_2" &&
21757 test "x$as_lineno_3" = "x$as_lineno_2" || {
21758 # Find who we are. Look in the path if we contain no path at all
21761 *[\\/]* ) as_myself=$0 ;;
21762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21763 for as_dir in $PATH
21766 test -z "$as_dir" && as_dir=.
21767 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21772 # We did not find ourselves, most probably we were run as `sh COMMAND'
21773 # in which case we are not to be found in the path.
21774 if test "x$as_myself" = x; then
21777 if test ! -f "$as_myself"; then
21778 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21779 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21780 { (exit 1); exit 1; }; }
21782 case $CONFIG_SHELL in
21784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21785 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21788 test -z "$as_dir" && as_dir=.
21789 for as_base in sh bash ksh sh5; do
21792 if ("$as_dir/$as_base" -c '
21793 as_lineno_1=$LINENO
21794 as_lineno_2=$LINENO
21795 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21796 test "x$as_lineno_1" != "x$as_lineno_2" &&
21797 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21798 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21799 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21800 CONFIG_SHELL=$as_dir/$as_base
21801 export CONFIG_SHELL
21802 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21810 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21811 # uniformly replaced by the line number. The first 'sed' inserts a
21812 # line-number line before each line; the second 'sed' does the real
21813 # work. The second script uses 'N' to pair each line-number line
21814 # with the numbered line, and appends trailing '-' during
21815 # substitution so that $LINENO is not a special case at line end.
21816 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21817 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21818 sed '=' <$as_myself |
21823 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21826 s,^['$as_cr_digits']*\n,,
21827 ' >$as_me.lineno &&
21828 chmod +x $as_me.lineno ||
21829 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21830 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21831 { (exit 1); exit 1; }; }
21833 # Don't try to exec as it changes $[0], causing all sort of problems
21834 # (the dirname of $[0] is not the place where we might find the
21835 # original and so on. Autoconf is especially sensible to this).
21837 # Exit status is that of the last command.
21842 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21843 *c*,-n*) ECHO_N= ECHO_C='
21845 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21846 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21849 if expr a : '\(a\)' >/dev/null 2>&1; then
21855 rm -f conf$$ conf$$.exe conf$$.file
21857 if ln -s conf$$.file conf$$ 2>/dev/null; then
21858 # We could just check for DJGPP; but this test a) works b) is more generic
21859 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21860 if test -f conf$$.exe; then
21861 # Don't use ln at all; we don't have any links
21866 elif ln conf$$.file conf$$ 2>/dev/null; then
21871 rm -f conf$$ conf$$.exe conf$$.file
21873 if mkdir -p . 2>/dev/null; then
21876 test -d ./-p && rmdir ./-p
21880 as_executable_p="test -f"
21882 # Sed expression to map a string onto a valid CPP name.
21883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21885 # Sed expression to map a string onto a valid variable name.
21886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21890 # We need space, tab and new line, in precisely that order.
21900 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21901 # report actual input values of CONFIG_FILES etc. instead of their
21902 # values after options handling. Logging --version etc. is OK.
21906 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21907 @%:@@%:@ Running $as_me. @%:@@%:@
21912 This file was extended by barry $as_me 0.4, which was
21913 generated by GNU Autoconf 2.59. Invocation command line was
21915 CONFIG_FILES = $CONFIG_FILES
21916 CONFIG_HEADERS = $CONFIG_HEADERS
21917 CONFIG_LINKS = $CONFIG_LINKS
21918 CONFIG_COMMANDS = $CONFIG_COMMANDS
21922 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21926 # Files that config.status was made for.
21927 if test -n "$ac_config_files"; then
21928 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21931 if test -n "$ac_config_headers"; then
21932 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21935 if test -n "$ac_config_links"; then
21936 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21939 if test -n "$ac_config_commands"; then
21940 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21943 cat >>$CONFIG_STATUS <<\_ACEOF
21946 \`$as_me' instantiates files from templates according to the
21947 current configuration.
21949 Usage: $0 [OPTIONS] [FILE]...
21951 -h, --help print this help, then exit
21952 -V, --version print version number, then exit
21953 -q, --quiet do not print progress messages
21954 -d, --debug don't remove temporary files
21955 --recheck update $as_me by reconfiguring in the same conditions
21956 --file=FILE[:TEMPLATE]
21957 instantiate the configuration file FILE
21958 --header=FILE[:TEMPLATE]
21959 instantiate the configuration header FILE
21961 Configuration files:
21964 Configuration headers:
21967 Configuration commands:
21970 Report bugs to <bug-autoconf@gnu.org>."
21973 cat >>$CONFIG_STATUS <<_ACEOF
21975 barry config.status 0.4
21976 configured by $0, generated by GNU Autoconf 2.59,
21977 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21979 Copyright (C) 2003 Free Software Foundation, Inc.
21980 This config.status script is free software; the Free Software Foundation
21981 gives unlimited permission to copy, distribute and modify it."
21986 cat >>$CONFIG_STATUS <<\_ACEOF
21987 # If no file are specified by the user, then we need to provide default
21988 # value. By we need to know if files were specified by the user.
21994 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21995 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22003 *) # This is not an option, so the user has probably given explicit
22006 ac_need_defaults=false;;
22010 # Handling of the options.
22012 cat >>$CONFIG_STATUS <<\_ACEOF
22013 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22015 --version | --vers* | -V )
22016 echo "$ac_cs_version"; exit 0 ;;
22018 # Conflict between --help and --header
22019 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22020 Try \`$0 --help' for more information." >&5
22021 echo "$as_me: error: ambiguous option: $1
22022 Try \`$0 --help' for more information." >&2;}
22023 { (exit 1); exit 1; }; };;
22024 --help | --hel | -h )
22025 echo "$ac_cs_usage"; exit 0 ;;
22026 --debug | --d* | -d )
22028 --file | --fil | --fi | --f )
22030 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22031 ac_need_defaults=false;;
22032 --header | --heade | --head | --hea )
22034 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22035 ac_need_defaults=false;;
22036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22040 # This is an error.
22041 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22042 Try \`$0 --help' for more information." >&5
22043 echo "$as_me: error: unrecognized option: $1
22044 Try \`$0 --help' for more information." >&2;}
22045 { (exit 1); exit 1; }; } ;;
22047 *) ac_config_targets="$ac_config_targets $1" ;;
22053 ac_configure_extra_args=
22055 if $ac_cs_silent; then
22057 ac_configure_extra_args="$ac_configure_extra_args --silent"
22061 cat >>$CONFIG_STATUS <<_ACEOF
22062 if \$ac_cs_recheck; then
22063 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22064 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22069 cat >>$CONFIG_STATUS <<_ACEOF
22071 # INIT-COMMANDS section.
22074 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22080 cat >>$CONFIG_STATUS <<\_ACEOF
22081 for ac_config_target in $ac_config_targets
22083 case "$ac_config_target" in
22084 # Handling of arguments.
22085 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22086 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22087 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22088 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22089 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22090 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22091 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
22092 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22093 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22094 { (exit 1); exit 1; }; };;
22098 # If the user did not use the arguments to specify the items to instantiate,
22099 # then the envvar interface is used. Set only those that are not.
22100 # We use the long form for the default assignment because of an extremely
22101 # bizarre bug on SunOS 4.1.3.
22102 if $ac_need_defaults; then
22103 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22104 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22105 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22108 # Have a temporary directory for convenience. Make it in the build tree
22109 # simply because there is no reason to put it here, and in addition,
22110 # creating and moving files from /tmp can sometimes cause problems.
22111 # Create a temporary directory, and hook for its removal unless debugging.
22114 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22115 trap '{ (exit 1); exit 1; }' 1 2 13 15
22118 # Create a (secure) tmp directory for tmp files.
22121 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22122 test -n "$tmp" && test -d "$tmp"
22125 tmp=./confstat$$-$RANDOM
22126 (umask 077 && mkdir $tmp)
22129 echo "$me: cannot create a temporary directory in ." >&2
22130 { (exit 1); exit 1; }
22135 cat >>$CONFIG_STATUS <<_ACEOF
22138 # CONFIG_FILES section.
22141 # No need to generate the scripts if there are no CONFIG_FILES.
22142 # This happens for instance when ./config.status config.h
22143 if test -n "\$CONFIG_FILES"; then
22144 # Protect against being on the right side of a sed subst in config.status.
22145 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22146 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22147 s,@SHELL@,$SHELL,;t t
22148 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22149 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22150 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22151 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22152 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22153 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22154 s,@exec_prefix@,$exec_prefix,;t t
22155 s,@prefix@,$prefix,;t t
22156 s,@program_transform_name@,$program_transform_name,;t t
22157 s,@bindir@,$bindir,;t t
22158 s,@sbindir@,$sbindir,;t t
22159 s,@libexecdir@,$libexecdir,;t t
22160 s,@datadir@,$datadir,;t t
22161 s,@sysconfdir@,$sysconfdir,;t t
22162 s,@sharedstatedir@,$sharedstatedir,;t t
22163 s,@localstatedir@,$localstatedir,;t t
22164 s,@libdir@,$libdir,;t t
22165 s,@includedir@,$includedir,;t t
22166 s,@oldincludedir@,$oldincludedir,;t t
22167 s,@infodir@,$infodir,;t t
22168 s,@mandir@,$mandir,;t t
22169 s,@build_alias@,$build_alias,;t t
22170 s,@host_alias@,$host_alias,;t t
22171 s,@target_alias@,$target_alias,;t t
22172 s,@DEFS@,$DEFS,;t t
22173 s,@ECHO_C@,$ECHO_C,;t t
22174 s,@ECHO_N@,$ECHO_N,;t t
22175 s,@ECHO_T@,$ECHO_T,;t t
22176 s,@LIBS@,$LIBS,;t t
22177 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22178 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22179 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22180 s,@CYGPATH_W@,$CYGPATH_W,;t t
22181 s,@PACKAGE@,$PACKAGE,;t t
22182 s,@VERSION@,$VERSION,;t t
22183 s,@ACLOCAL@,$ACLOCAL,;t t
22184 s,@AUTOCONF@,$AUTOCONF,;t t
22185 s,@AUTOMAKE@,$AUTOMAKE,;t t
22186 s,@AUTOHEADER@,$AUTOHEADER,;t t
22187 s,@MAKEINFO@,$MAKEINFO,;t t
22188 s,@install_sh@,$install_sh,;t t
22189 s,@STRIP@,$STRIP,;t t
22190 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22191 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22192 s,@mkdir_p@,$mkdir_p,;t t
22194 s,@SET_MAKE@,$SET_MAKE,;t t
22195 s,@am__leading_dot@,$am__leading_dot,;t t
22196 s,@AMTAR@,$AMTAR,;t t
22197 s,@am__tar@,$am__tar,;t t
22198 s,@am__untar@,$am__untar,;t t
22200 s,@CFLAGS@,$CFLAGS,;t t
22201 s,@LDFLAGS@,$LDFLAGS,;t t
22202 s,@CPPFLAGS@,$CPPFLAGS,;t t
22203 s,@ac_ct_CC@,$ac_ct_CC,;t t
22204 s,@EXEEXT@,$EXEEXT,;t t
22205 s,@OBJEXT@,$OBJEXT,;t t
22206 s,@DEPDIR@,$DEPDIR,;t t
22207 s,@am__include@,$am__include,;t t
22208 s,@am__quote@,$am__quote,;t t
22209 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22210 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22211 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22212 s,@CCDEPMODE@,$CCDEPMODE,;t t
22213 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22214 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22216 s,@CXXFLAGS@,$CXXFLAGS,;t t
22217 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22218 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22219 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22220 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22221 s,@build@,$build,;t t
22222 s,@build_cpu@,$build_cpu,;t t
22223 s,@build_vendor@,$build_vendor,;t t
22224 s,@build_os@,$build_os,;t t
22225 s,@host@,$host,;t t
22226 s,@host_cpu@,$host_cpu,;t t
22227 s,@host_vendor@,$host_vendor,;t t
22228 s,@host_os@,$host_os,;t t
22229 s,@EGREP@,$EGREP,;t t
22230 s,@LN_S@,$LN_S,;t t
22231 s,@ECHO@,$ECHO,;t t
22233 s,@ac_ct_AR@,$ac_ct_AR,;t t
22234 s,@RANLIB@,$RANLIB,;t t
22235 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22237 s,@CXXCPP@,$CXXCPP,;t t
22239 s,@FFLAGS@,$FFLAGS,;t t
22240 s,@ac_ct_F77@,$ac_ct_F77,;t t
22241 s,@LIBTOOL@,$LIBTOOL,;t t
22242 s,@LIBUSB_LIB_PATH@,$LIBUSB_LIB_PATH,;t t
22243 s,@LIBUSB_INC_PATH@,$LIBUSB_INC_PATH,;t t
22244 s,@BOOST_LIB_PATH@,$BOOST_LIB_PATH,;t t
22245 s,@BOOST_INC_PATH@,$BOOST_INC_PATH,;t t
22246 s,@WITH_BOOST_TRUE@,$WITH_BOOST_TRUE,;t t
22247 s,@WITH_BOOST_FALSE@,$WITH_BOOST_FALSE,;t t
22248 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
22249 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22254 cat >>$CONFIG_STATUS <<\_ACEOF
22255 # Split the substitutions into bite-sized pieces for seds with
22256 # small command number limits, like on Digital OSF/1 and HP-UX.
22257 ac_max_sed_lines=48
22258 ac_sed_frag=1 # Number of current file.
22259 ac_beg=1 # First line for current file.
22260 ac_end=$ac_max_sed_lines # Line after last line for current file.
22263 while $ac_more_lines; do
22264 if test $ac_beg -gt 1; then
22265 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22267 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22269 if test ! -s $tmp/subs.frag; then
22270 ac_more_lines=false
22272 # The purpose of the label and of the branching condition is to
22273 # speed up the sed processing (if there are no `@' at all, there
22274 # is no need to browse any of the substitutions).
22275 # These are the two extra sed commands mentioned above.
22277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22278 if test -z "$ac_sed_cmds"; then
22279 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22281 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22283 ac_sed_frag=`expr $ac_sed_frag + 1`
22285 ac_end=`expr $ac_end + $ac_max_sed_lines`
22288 if test -z "$ac_sed_cmds"; then
22291 fi # test -n "$CONFIG_FILES"
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22295 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22298 - | *:- | *:-:* ) # input from stdin
22300 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22302 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22304 * ) ac_file_in=$ac_file.in ;;
22307 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22308 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22310 X"$ac_file" : 'X\(//\)[^/]' \| \
22311 X"$ac_file" : 'X\(//\)$' \| \
22312 X"$ac_file" : 'X\(/\)' \| \
22313 . : '\(.\)' 2>/dev/null ||
22315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22317 /^X\(\/\/\)$/{ s//\1/; q; }
22318 /^X\(\/\).*/{ s//\1/; q; }
22320 { if $as_mkdir_p; then
22325 while test ! -d "$as_dir"; do
22326 as_dirs="$as_dir $as_dirs"
22327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22329 X"$as_dir" : 'X\(//\)[^/]' \| \
22330 X"$as_dir" : 'X\(//\)$' \| \
22331 X"$as_dir" : 'X\(/\)' \| \
22332 . : '\(.\)' 2>/dev/null ||
22334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22336 /^X\(\/\/\)$/{ s//\1/; q; }
22337 /^X\(\/\).*/{ s//\1/; q; }
22340 test ! -n "$as_dirs" || mkdir $as_dirs
22341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22343 { (exit 1); exit 1; }; }; }
22347 if test "$ac_dir" != .; then
22348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22349 # A "../" for each directory in $ac_dir_suffix.
22350 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22352 ac_dir_suffix= ac_top_builddir=
22356 .) # No --srcdir option. We are building in place.
22358 if test -z "$ac_top_builddir"; then
22361 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22363 [\\/]* | ?:[\\/]* ) # Absolute path.
22364 ac_srcdir=$srcdir$ac_dir_suffix;
22365 ac_top_srcdir=$srcdir ;;
22366 *) # Relative path.
22367 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22368 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22371 # Do not use `cd foo && pwd` to compute absolute paths, because
22372 # the directories may not exist.
22374 .) ac_abs_builddir="$ac_dir";;
22377 .) ac_abs_builddir=`pwd`;;
22378 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22379 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22382 case $ac_abs_builddir in
22383 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22385 case ${ac_top_builddir}. in
22386 .) ac_abs_top_builddir=$ac_abs_builddir;;
22387 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22388 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22391 case $ac_abs_builddir in
22392 .) ac_abs_srcdir=$ac_srcdir;;
22395 .) ac_abs_srcdir=$ac_abs_builddir;;
22396 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22397 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22400 case $ac_abs_builddir in
22401 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22403 case $ac_top_srcdir in
22404 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22405 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22406 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22413 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22416 # Let's still pretend it is `configure' which instantiates (i.e., don't
22417 # use $as_me), people would be surprised to read:
22418 # /* config.h. Generated by config.status. */
22419 if test x"$ac_file" = x-; then
22422 configure_input="$ac_file. "
22424 configure_input=$configure_input"Generated from `echo $ac_file_in |
22425 sed 's,.*/,,'` by configure."
22427 # First look for the input files in the build tree, otherwise in the
22429 ac_file_inputs=`IFS=:
22430 for f in $ac_file_in; do
22432 -) echo $tmp/stdin ;;
22434 # Absolute (can't be DOS-style, as IFS=:)
22435 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22436 echo "$as_me: error: cannot find input file: $f" >&2;}
22437 { (exit 1); exit 1; }; }
22440 if test -f "$f"; then
22443 elif test -f "$srcdir/$f"; then
22448 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22449 echo "$as_me: error: cannot find input file: $f" >&2;}
22450 { (exit 1); exit 1; }; }
22453 done` || { (exit 1); exit 1; }
22455 if test x"$ac_file" != x-; then
22456 { echo "$as_me:$LINENO: creating $ac_file" >&5
22457 echo "$as_me: creating $ac_file" >&6;}
22461 cat >>$CONFIG_STATUS <<_ACEOF
22465 cat >>$CONFIG_STATUS <<\_ACEOF
22467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22468 s,@configure_input@,$configure_input,;t t
22469 s,@srcdir@,$ac_srcdir,;t t
22470 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22471 s,@top_srcdir@,$ac_top_srcdir,;t t
22472 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22473 s,@builddir@,$ac_builddir,;t t
22474 s,@abs_builddir@,$ac_abs_builddir,;t t
22475 s,@top_builddir@,$ac_top_builddir,;t t
22476 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22477 s,@INSTALL@,$ac_INSTALL,;t t
22478 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22480 if test x"$ac_file" != x-; then
22481 mv $tmp/out $ac_file
22489 cat >>$CONFIG_STATUS <<\_ACEOF
22492 # CONFIG_HEADER section.
22495 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22496 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22498 # ac_d sets the value in "#define NAME VALUE" lines.
22499 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22500 ac_dB='[ ].*$,\1#\2'
22503 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22504 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22505 ac_uB='$,\1#\2define\3'
22509 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22510 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22512 - | *:- | *:-:* ) # input from stdin
22514 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22516 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22518 * ) ac_file_in=$ac_file.in ;;
22521 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22522 echo "$as_me: creating $ac_file" >&6;}
22524 # First look for the input files in the build tree, otherwise in the
22526 ac_file_inputs=`IFS=:
22527 for f in $ac_file_in; do
22529 -) echo $tmp/stdin ;;
22531 # Absolute (can't be DOS-style, as IFS=:)
22532 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22533 echo "$as_me: error: cannot find input file: $f" >&2;}
22534 { (exit 1); exit 1; }; }
22535 # Do quote $f, to prevent DOS paths from being IFS'd.
22538 if test -f "$f"; then
22541 elif test -f "$srcdir/$f"; then
22546 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22547 echo "$as_me: error: cannot find input file: $f" >&2;}
22548 { (exit 1); exit 1; }; }
22551 done` || { (exit 1); exit 1; }
22552 # Remove the trailing spaces.
22553 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22557 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22558 # `conftest.undefs', that substitutes the proper values into
22559 # config.h.in to produce config.h. The first handles `#define'
22560 # templates, and the second `#undef' templates.
22561 # And first: Protect against being on the right side of a sed subst in
22562 # config.status. Protect against being in an unquoted here document
22563 # in config.status.
22564 rm -f conftest.defines conftest.undefs
22565 # Using a here document instead of a string reduces the quoting nightmare.
22566 # Putting comments in sed scripts is not portable.
22568 # `end' is used to avoid that the second main sed command (meant for
22569 # 0-ary CPP macros) applies to n-ary macro definitions.
22570 # See the Autoconf documentation for `clear'.
22571 cat >confdef2sed.sed <<\_ACEOF
22576 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22578 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22581 # If some macros were called several times there might be several times
22582 # the same #defines, which is useless. Nevertheless, we may not want to
22583 # sort them, since we want the *last* AC-DEFINE to be honored.
22584 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22585 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22586 rm -f confdef2sed.sed
22588 # This sed command replaces #undef with comments. This is necessary, for
22589 # example, in the case of _POSIX_SOURCE, which is predefined and required
22590 # on some systems where configure will not decide to define it.
22591 cat >>conftest.undefs <<\_ACEOF
22592 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22595 # Break up conftest.defines because some shells have a limit on the size
22596 # of here documents, and old seds have small limits too (100 cmds).
22597 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22598 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22599 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22600 echo ' :' >>$CONFIG_STATUS
22601 rm -f conftest.tail
22602 while grep . conftest.defines >/dev/null
22604 # Write a limited-size here document to $tmp/defines.sed.
22605 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22606 # Speed up: don't consider the non `#define' lines.
22607 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22608 # Work around the forget-to-reset-the-flag bug.
22609 echo 't clr' >>$CONFIG_STATUS
22610 echo ': clr' >>$CONFIG_STATUS
22611 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22613 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22615 mv $tmp/out $tmp/in
22617 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22618 rm -f conftest.defines
22619 mv conftest.tail conftest.defines
22621 rm -f conftest.defines
22622 echo ' fi # grep' >>$CONFIG_STATUS
22623 echo >>$CONFIG_STATUS
22625 # Break up conftest.undefs because some shells have a limit on the size
22626 # of here documents, and old seds have small limits too (100 cmds).
22627 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22628 rm -f conftest.tail
22629 while grep . conftest.undefs >/dev/null
22631 # Write a limited-size here document to $tmp/undefs.sed.
22632 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22633 # Speed up: don't consider the non `#undef'
22634 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22635 # Work around the forget-to-reset-the-flag bug.
22636 echo 't clr' >>$CONFIG_STATUS
22637 echo ': clr' >>$CONFIG_STATUS
22638 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22640 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22642 mv $tmp/out $tmp/in
22644 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22645 rm -f conftest.undefs
22646 mv conftest.tail conftest.undefs
22648 rm -f conftest.undefs
22650 cat >>$CONFIG_STATUS <<\_ACEOF
22651 # Let's still pretend it is `configure' which instantiates (i.e., don't
22652 # use $as_me), people would be surprised to read:
22653 # /* config.h. Generated by config.status. */
22654 if test x"$ac_file" = x-; then
22655 echo "/* Generated by configure. */" >$tmp/config.h
22657 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22659 cat $tmp/in >>$tmp/config.h
22661 if test x"$ac_file" != x-; then
22662 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22663 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22664 echo "$as_me: $ac_file is unchanged" >&6;}
22666 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22667 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22668 X"$ac_file" : 'X\(//\)[^/]' \| \
22669 X"$ac_file" : 'X\(//\)$' \| \
22670 X"$ac_file" : 'X\(/\)' \| \
22671 . : '\(.\)' 2>/dev/null ||
22673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22675 /^X\(\/\/\)$/{ s//\1/; q; }
22676 /^X\(\/\).*/{ s//\1/; q; }
22678 { if $as_mkdir_p; then
22683 while test ! -d "$as_dir"; do
22684 as_dirs="$as_dir $as_dirs"
22685 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22687 X"$as_dir" : 'X\(//\)[^/]' \| \
22688 X"$as_dir" : 'X\(//\)$' \| \
22689 X"$as_dir" : 'X\(/\)' \| \
22690 . : '\(.\)' 2>/dev/null ||
22692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22694 /^X\(\/\/\)$/{ s//\1/; q; }
22695 /^X\(\/\).*/{ s//\1/; q; }
22698 test ! -n "$as_dirs" || mkdir $as_dirs
22699 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22700 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22701 { (exit 1); exit 1; }; }; }
22704 mv $tmp/config.h $ac_file
22708 rm -f $tmp/config.h
22710 # Compute $ac_file's index in $config_headers.
22712 for _am_header in $config_headers :; do
22713 case $_am_header in
22714 $ac_file | $ac_file:* )
22717 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22720 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22721 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22722 X$ac_file : 'X\(//\)[^/]' \| \
22723 X$ac_file : 'X\(//\)$' \| \
22724 X$ac_file : 'X\(/\)' \| \
22725 . : '\(.\)' 2>/dev/null ||
22727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22729 /^X\(\/\/\)$/{ s//\1/; q; }
22730 /^X\(\/\).*/{ s//\1/; q; }
22731 s/.*/./; q'`/stamp-h$_am_stamp_count
22734 cat >>$CONFIG_STATUS <<\_ACEOF
22737 # CONFIG_COMMANDS section.
22739 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22740 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22741 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22742 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22743 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22744 X"$ac_dest" : 'X\(//\)[^/]' \| \
22745 X"$ac_dest" : 'X\(//\)$' \| \
22746 X"$ac_dest" : 'X\(/\)' \| \
22747 . : '\(.\)' 2>/dev/null ||
22749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22751 /^X\(\/\/\)$/{ s//\1/; q; }
22752 /^X\(\/\).*/{ s//\1/; q; }
22754 { if $as_mkdir_p; then
22759 while test ! -d "$as_dir"; do
22760 as_dirs="$as_dir $as_dirs"
22761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22763 X"$as_dir" : 'X\(//\)[^/]' \| \
22764 X"$as_dir" : 'X\(//\)$' \| \
22765 X"$as_dir" : 'X\(/\)' \| \
22766 . : '\(.\)' 2>/dev/null ||
22768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22770 /^X\(\/\/\)$/{ s//\1/; q; }
22771 /^X\(\/\).*/{ s//\1/; q; }
22774 test ! -n "$as_dirs" || mkdir $as_dirs
22775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22777 { (exit 1); exit 1; }; }; }
22781 if test "$ac_dir" != .; then
22782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22783 # A "../" for each directory in $ac_dir_suffix.
22784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22786 ac_dir_suffix= ac_top_builddir=
22790 .) # No --srcdir option. We are building in place.
22792 if test -z "$ac_top_builddir"; then
22795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22797 [\\/]* | ?:[\\/]* ) # Absolute path.
22798 ac_srcdir=$srcdir$ac_dir_suffix;
22799 ac_top_srcdir=$srcdir ;;
22800 *) # Relative path.
22801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22805 # Do not use `cd foo && pwd` to compute absolute paths, because
22806 # the directories may not exist.
22808 .) ac_abs_builddir="$ac_dir";;
22811 .) ac_abs_builddir=`pwd`;;
22812 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22813 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22816 case $ac_abs_builddir in
22817 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22819 case ${ac_top_builddir}. in
22820 .) ac_abs_top_builddir=$ac_abs_builddir;;
22821 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22822 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22825 case $ac_abs_builddir in
22826 .) ac_abs_srcdir=$ac_srcdir;;
22829 .) ac_abs_srcdir=$ac_abs_builddir;;
22830 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22831 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22834 case $ac_abs_builddir in
22835 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22837 case $ac_top_srcdir in
22838 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22839 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22840 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22845 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22846 echo "$as_me: executing $ac_dest commands" >&6;}
22848 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22849 # Strip MF so we end up with the name of the file.
22850 mf=`echo "$mf" | sed -e 's/:.*$//'`
22851 # Check whether this is an Automake generated Makefile or not.
22852 # We used to match only the files named `Makefile.in', but
22853 # some people rename them; so instead we look at the file content.
22854 # Grep'ing the first line is not enough: some people post-process
22855 # each Makefile.in and add a new line on top of each file to say so.
22856 # So let's grep whole file.
22857 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22858 dirpart=`(dirname "$mf") 2>/dev/null ||
22859 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22860 X"$mf" : 'X\(//\)[^/]' \| \
22861 X"$mf" : 'X\(//\)$' \| \
22862 X"$mf" : 'X\(/\)' \| \
22863 . : '\(.\)' 2>/dev/null ||
22865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22867 /^X\(\/\/\)$/{ s//\1/; q; }
22868 /^X\(\/\).*/{ s//\1/; q; }
22873 # Extract the definition of DEPDIR, am__include, and am__quote
22874 # from the Makefile without running `make'.
22875 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22876 test -z "$DEPDIR" && continue
22877 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22878 test -z "am__include" && continue
22879 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22880 # When using ansi2knr, U may be empty or an underscore; expand it
22881 U=`sed -n 's/^U = //p' < "$mf"`
22882 # Find all dependency output files, they are included files with
22883 # $(DEPDIR) in their names. We invoke sed twice because it is the
22884 # simplest approach to changing $(DEPDIR) to its actual value in the
22886 for file in `sed -n "
22887 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22888 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22889 # Make sure the directory exists.
22890 test -f "$dirpart/$file" && continue
22891 fdir=`(dirname "$file") 2>/dev/null ||
22892 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22893 X"$file" : 'X\(//\)[^/]' \| \
22894 X"$file" : 'X\(//\)$' \| \
22895 X"$file" : 'X\(/\)' \| \
22896 . : '\(.\)' 2>/dev/null ||
22898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22900 /^X\(\/\/\)$/{ s//\1/; q; }
22901 /^X\(\/\).*/{ s//\1/; q; }
22903 { if $as_mkdir_p; then
22904 mkdir -p $dirpart/$fdir
22906 as_dir=$dirpart/$fdir
22908 while test ! -d "$as_dir"; do
22909 as_dirs="$as_dir $as_dirs"
22910 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22912 X"$as_dir" : 'X\(//\)[^/]' \| \
22913 X"$as_dir" : 'X\(//\)$' \| \
22914 X"$as_dir" : 'X\(/\)' \| \
22915 . : '\(.\)' 2>/dev/null ||
22917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22919 /^X\(\/\/\)$/{ s//\1/; q; }
22920 /^X\(\/\).*/{ s//\1/; q; }
22923 test ! -n "$as_dirs" || mkdir $as_dirs
22924 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22925 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22926 { (exit 1); exit 1; }; }; }
22928 # echo "creating $dirpart/$file"
22929 echo '# dummy' > "$dirpart/$file"
22937 cat >>$CONFIG_STATUS <<\_ACEOF
22939 { (exit 0); exit 0; }
22941 chmod +x $CONFIG_STATUS
22942 ac_clean_files=$ac_clean_files_save
22945 # configure is writing to config.log, and then calls config.status.
22946 # config.status does its own redirection, appending to config.log.
22947 # Unfortunately, on DOS this fails, as config.log is still kept open
22948 # by configure, so config.status won't be able to write to it; its
22949 # output is simply discarded. So we exec the FD to /dev/null,
22950 # effectively closing config.log, so it can be properly (re)opened and
22951 # appended to by config.status. When coming back to configure, we
22952 # need to make the FD available again.
22953 if test "$no_create" != yes; then
22955 ac_config_status_args=
22956 test "$silent" = yes &&
22957 ac_config_status_args="$ac_config_status_args --quiet"
22959 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22961 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22962 # would make configure fail if this is the last instruction.
22963 $ac_cs_success || { (exit 1); exit 1; }